# mixins.scss

> mixins for scss syntax of sass

Latest version **3.0.0** (published 2017-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install mixins.scss
pnpm add mixins.scss
yarn add mixins.scss
bun add mixins.scss
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-02-03 |
| First published | 2016-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ricardo moreno |
| Maintainers | rich-97 |
| Keywords | mixins, sass, scss, css |

## Links

- npm: https://www.npmjs.com/package/mixins.scss
- Repository: https://github.com/rich-97/mixins.scss
- Homepage: https://github.com/rich-97/mixins.scss#readme
- Issues: https://github.com/rich-97/mixins.scss/issues
- npm.io page: https://npm.io/package/mixins.scss

## 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

- 3.0.0 (latest) — 2017-02-03
- 2.3.1 — 2016-12-30
- 2.3.0 — 2016-12-30
- 1.2.0 — 2016-10-10

## README

# mixins.scss [![mixins.sass](https://img.shields.io/npm/v/mixins.scss.svg?style=flat-square)](https://www.npmjs.com/package/mixins.scss)

scss **mixins** syntax of `sass`

## Installation

via `npm`
```shell
npm i mixins.scss --save
```

via `bower`
```shell
bower install mixins.scss --save
```
## Usage

-   [`font-face`](#font-face)
-   [`trans`](#trans)
-   [`trans-bezier`](#trans-bezier)
-   [`border`](#border)
-   [`bgc`](#bgc)
-   [`media`](#media)
-   [`clearfix`](#clearfix)
-   [`text-overflow`](#text-overflow)
-   [`overflow-x`](#overflow-x)
-   [`unstyled-list`](#unstyled-list)
-   [`inline-list`](#inline-list)
-   [`unstyled-link`](#link)
-   [`hidden`](#hidden)
-   [`heading`](#heading-font)
-   [`center-block`](#center-block)

### font-face

```scss
/*
* @param $fontname name of font
* @param $path the path of font
* @apram $weight this is optional param default: normal
*/

// font-weight: normal
@include font-face('yourfontname', '/path/font');

// or include font-weight
@include font-face('yourfontname', '/path/font', 600);
```

### trans

```scss
/*
* @param $args is optional default: all .5s ease, or use the following list for use the prefix (all .5s):
* 1. linear
* 2. ease-in
* 3. ease-in-out
* 4. ease-out
*/

.foo {
  @include trans;
}

// Use the name of animation
.foo {
  @include trans(linear);
}

// also ..
.foo {
  @include trans(border-radius .2s ease-in-out);
}
```

### trans-bezier

```scss
/*
* @params $n, $m, $l, $p betwen 0 and 1
*/

.foo {
  @include trans-bezier(0.25, 0.25, 0.5, 0.1);
}
```

### border

```scss
/*
* @param $width border width the param not have unity
* @param $color is optional default: #0b0b0b
* @param $style is optional default: solid
*/

  .foo {
    @include border(1, $color);
  }

  // or include style
  .foo {
    @include border(5, $color, dotted);
  }
```

### bgc

`background-color`

```scss
/*
* @param $color this param has 3 option:
* 1. hex color e.p #009288
* 2. rgba color e.p (1, 22, 31, .8)
* 3. rgb color e.p (22, 14, 21)
*/

// hex color
@include bgc(#009688);

// rgb color
@include bgc((22, 35, 88));

// rgba coor
@include bgc((34, 123, 1, .8));
```

### media

```scss
/*
* @param $media options:
* - xs : 360px
* - sm : 767px
* - md : 1023px
* - lg : 1360px
 */

.foo {
  @include media(xs) {
    width: 50%;
  }
}

// or

@include media(xs) {
  .foo {
    width: 50%;
  }
}
```

### clearfix

```scss
@include clearfix;
```

### text-overflow

```scss
@include text-overflow;
```

### overflow-x

```scss
@include overflow-x;
```

### unstyled-list

```scss
@include unstyled-list;
```

### inline-list

```scss
@include inline-list;
```

### unstyled-link

```scss
/*
* @param $color is optional default: #000
*/

a {
  @include unstyled-link;
}

// or adding color
a {
  @include unstyled-link(#0b0b0b);
}
```

### hidden

```scss
/*
* @param $what options:
* - invisible or hide.
*/

.foo {
  @include hidden('invisible');
}
```

### heading

```scss
// Styles for heading h1, h2... h6.

@include heading {
    font-family: 'Ubuntu';
    color: #ccc;
}
```
### center-block

```scss
/*
* @param $width the width of element only on percentage (unity relative)
  @param $margin is optional default: 0 auto  or (margin-top and margin-bottom) unity: pixels
*/

foo {
  // equivalent to width: 70%; and margin: 20px auto;
  @include center-block(70, 20);
}
```

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