sasset:working_with_math_operations
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | sasset:working_with_math_operations [2016/04/02 12:19] (current) – created leo | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |<- [[Using comments and hidden comments]]|[[Modifying colors]] ->| | ||
+ | * multiplication * | ||
+ | * division / | ||
+ | * | ||
+ | |||
+ | /!\ attention au dash (-) : élément de nom valide en SASS/CSS -> $qty-1 (nom) != $qty - 1 (opération) | ||
+ | |||
+ | < | ||
+ | @mixin imagegrid($qty, | ||
+ | width: ((100% - (($qty - 1) * $margin))/ | ||
+ | & | ||
+ | margin-right: | ||
+ | margin-bottom: | ||
+ | } | ||
+ | & | ||
+ | margin-right: | ||
+ | margin-bottom: | ||
+ | } | ||
+ | } | ||
+ | |||
+ | .grid { | ||
+ | @include clearfix; | ||
+ | .item { | ||
+ | float:left; | ||
+ | @include imagegrid(5, | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | -> très intéressant de voir la démo d' |
sasset/working_with_math_operations.txt · Last modified: 2016/04/02 12:19 by leo