10.0.0 • Published 2 months ago

postcss-mixins v10.0.0

Weekly downloads
127,704
License
MIT
Repository
github
Last release
2 months ago

PostCSS Mixins

PostCSS plugin for mixins.

Note, that you must set this plugin before postcss-simple-vars and postcss-nested.

@define-mixin icon $network, $color: blue {
    .icon.is-$(network) {
        color: $color;
        @mixin-content;
    }
    .icon.is-$(network):hover {
        color: white;
        background: $color;
    }
}

@mixin icon twitter {
    background: url(twt.png);
}
@mixin icon youtube, red {
    background: url(youtube.png);
}
.icon.is-twitter {
    color: blue;
    background: url(twt.png);
}
.icon.is-twitter:hover {
    color: white;
    background: blue;
}
.icon.is-youtube {
    color: red;
    background: url(youtube.png);
}
.icon.is-youtube:hover {
    color: white;
    background: red;
}

postcss-utilities collection is better for clearfix and other popular hacks. For simple cases you can use postcss-define-property.

Docs

Read full docs here.

vue-steps-kgloballistings-test-components@rock-kit/ui-postcss-configgintonicpostcss-config-pack@dubb/mickeymfp-react-componentsbrowcomp@fundefund/funde_ck@temporg/ui-postcss-configtorch-cssvuepress-theme-tsed2@infinitebrahmanuniverse/nolb-postcss-m@native-elements/core@everything-registry/sub-chunk-2461@yme/postcss-preset@yme/postcss-preset-ymecherry-designcherry-postcss@amazee/react-scripts@10up/frontity-build-config@10up/scripts@boris-turner/claycli@braille/react-scripts-ts@buchanaf/postcss-dependenciesbase-editor@charge/sdk@ckeditor/ckeditor5-dev-utils@ckeditor/ckeditor5-dev-build-tools@clark/ember-css-modules-config@ckeditor/vite-plugin-ckeditor5cssbagdatawheel-canondexter-clientdevosa-tw-uide.css.configdigitalsilk-toolkitnpm-npxo2-grootomni-common-ui@digest/postcss@delement/uidoug-appdophinbem-gridbelmudeskbookers-react-scriptsdeskbookers-shared-componentspostcss-ui-themepcss-cliphrontend-webpackpineglade-appplastticprotobuilderpostcss-evokitpostcss-sassypostcss-blue-pluginspostcss-preset-infimapostcss-preset-mantinepostcss-preset-moxypostcss-preset-raikoupostcss-niduscsspostcss-pack-alanevpostcss-packlitebabel-plugin-prejss@blueking/lesscode-cli@cloudfour/gulp-tasks@clevercanyon/dev-depscentralizrcharge-sdk@dgrammatiko/joomla-tools@davidwells/config-postcss@datawheel/canon-core@deflock/assettler-processor-modularcss@helpfulhuman/postcss-presetrh_styleguide@hoaitt/ckeditor5-build-classic-mentionrstrttera-ckeditor5@harsha-jalan/ckeditor5-custom-buildenb-bem-grid@gravityforms/gulp-tasksckeditor-5-imi-1ckeditor5-build-yektackeditor5-custom-ksckeditor5-custom-symmetreckeditor5-custom-build-tn-plugin@dlghq/postcss-dialogcreate-mashup-appck-wyck-wy-1@drewfle/config@drewfle/rollupperclientkitclientkit-css@drblmthw/testujsk_custom_ckeditor5@doyakovlev/arui-scriptsckeditor5-build-classic-ticketckeditor5-build-classic-v-editckeditor5-custom-build-megampire
10.0.0

2 months ago

9.0.4

2 years ago

9.0.3

2 years ago

9.0.2

2 years ago

9.0.1

2 years ago

9.0.0

2 years ago

8.1.0

3 years ago

8.0.0

3 years ago

7.0.3

3 years ago

7.0.2

3 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.2.3

4 years ago

6.2.2

5 years ago

6.2.1

5 years ago

6.2.0

6 years ago

6.1.1

7 years ago

6.1.0

7 years ago

6.0.1

7 years ago

6.0.0

7 years ago

5.4.1

7 years ago

5.4.0

8 years ago

5.3.0

8 years ago

5.2.0

8 years ago

5.1.0

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.0.2

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.1.1

8 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago