sasset:creating_basic_mixins
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | sasset:creating_basic_mixins [2016/04/02 11:49] (current) – created leo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |<- [[Using Partials]]|[[Using the @extend method]] ->| | ||
| + | Mixins -> " | ||
| + | |||
| + | < | ||
| + | @mixin < | ||
| + | < | ||
| + | } | ||
| + | @include < | ||
| + | |||
| + | @mixin backImage($image) { | ||
| + | background: url($image); | ||
| + | } | ||
| + | |||
| + | .style { | ||
| + | @include backimage(' | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | Les paramètres sont optionnels : | ||
| + | |||
| + | < | ||
| + | @mixin clearfix { | ||
| + | &: | ||
| + | &:after { | ||
| + | content:''; | ||
| + | display: table; | ||
| + | } | ||
| + | &:after { | ||
| + | clear:both; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
sasset/creating_basic_mixins.txt · Last modified: 2016/04/02 11:49 by leo