0.0.8 • Published 3 years ago

style-import v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

style-import

Common style patterns for SASS

install

npm install style-import

SCSS

Include link to file:

@import "~style-import/index.scss";

children

Adds styles to all children tags

.container {
    @include children {
        color: white;
        background-color: black;
    };
}

children-row-spacing

Adds spacing between children rows

.container {
    @include children-row-spacing(10px);
}

children-column-spacing

Adds spacing between children columns

.container {
    @include children-column-spacing(10px);
}

mobile

Adds styles when media query detect mobile

.container {
    font-size: 12px;

    // $max-width: optional value, default is 800px. 
    @include mobile($max-width) {
        font-size: 16px;
    }
}

tablet

Adds styles when media query detect tablet

.container {
    font-size: 12px;

    // $max-width: optional value, default is 1000px. 
    @include tablet($max-width) {
        font-size: 16px;
    }
}
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago