Now each mixin has its own module.
The wocss-tools-mixins
module contains a few framework mixins that are required for using any of the rest of wocss.
Install using npm:
$ npm install --save wocss-tools-mixins
Simple media queries mixins.
Styles take effect from the provided measure and above.
@include from('lg') { ... }
Styles take effect from zero up to the provided measure.
@include to('md') { ... }
When the screen size is between the two provided measure, the styles in the block will take effect.
@include from-to(500px, 800px) { ... }
A few mixins to help tame those layouts.
Center the element.
.container {
@include layout-center(1000px, 0);
}
It makes an element a container as the container bootstrap.
.container {
@include layout-wrapper();
}
It makes an element a block.
.container {
@include layout-block();
}
Removes any styles that were previously set on a input.
.form-control {
@include reset-input();
// more code
}
Removes any styles that were previously set on a list, clearing out all the margins and padding that are there by default.
.items {
@include reset-list();
// more code
}
Removes any styles that were previously set on links, even that annoying text-decoration.
.article {
@include reset-link();
// more code
}