# atomic-reset

> Set mixins to reset the style and convenience of the layout

Latest version **0.0.3** (published 2017-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install atomic-reset
pnpm add atomic-reset
yarn add atomic-reset
bun add atomic-reset
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-11-30 |
| First published | 2017-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | login2030 |
| Maintainers | arias2030 |
| Keywords | stylus, css, reset, mixins |

## Links

- npm: https://www.npmjs.com/package/atomic-reset
- Repository: https://github.com/login2030/atomic-reset
- Homepage: https://github.com/login2030/atomic-reset#readme
- Issues: https://github.com/login2030/atomic-reset/issues
- npm.io page: https://npm.io/package/atomic-reset

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2017-11-30
- 0.0.1 — 2017-11-24

## README

Для работы вы должны установить Stylus в свой проект

Например

```
$ npm install --save-dev gulp-stylus
```

И подключить его следуя инструкциям к `gulp-stylus`

Дальше Вы устанавливаете atomic-reset:

```fish
$ npm install atomic-reset --save-dev
```

В любом .styl файле своего проекта вы можете подключить atomic-reset и миксины будут работать:

```stylus
@import './node_modules/atomic-reset'
```

## Миксины

### r-offset()

Сбрасывает наружние и внешние отступы

Параметры: -

```stylus
p
  r-offset()
```

```css
p {
  margin: 0;
  padding: 0;
}
```

### r-clearfix()

Сбрасывает псевдоэлементы `before` и `after`

Параметры: -

```stylus
p
  r-clearfix()
```

```css
p:before,
p:after {
  content: '';
  content: none;
  display: none;
}
```

### r-bs()

Сбрасывает стиль `box-sizing`

Параметры:

- <b>@param $r-bs</b>:
  - <b>border-box</b>: В размеры блока входят padding и border
  - content-box: В размеры блока не входят margin, padding и border
  - padding-box: В размеры блока входит только padding
  - inherit: Наследует значение родителя

``` stylus
div
  r-bs()
```

``` css
div {
  box-sizing: border-box;
}
```

### r-outline()

Сбрасывает стиль `outline`

Параметры: -

``` stylus
button
  r-outline()
```

``` css
button {
  outline: none;
}
```

### r-b()

Параметры:

- <b>@param $r-bs</b>:
  - <b>border-box</b>: В размеры блока входят padding и border
  - content-box: В размеры блока не входят margin, padding и border
  - padding-box: В размеры блока входит только padding
  - inherit: Наследует значение родителя.

``` stylus
span
  r-b()
```

``` css
span {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: block;
}
```

... to be continued ...

### r-i()

### r-ib()

### r-f()

### r-button

### r-input

### r-list

### r-link

### r-select

### r-table

---
_Source: https://npm.io/package/atomic-reset · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
