Sha256: 1fc5f738b2253a8de66bd096e9d8bfe2ef342afbfa6fa65668ec89f1d56fdbeb
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
@mixin define-append($append) { @if is-unitless($append) { @include define-elastic-append(to-percentage-from-unitless($append)); } @else if is-percentage($append) { @include define-elastic-append($append); } @else { @include define-fixed-append($append); } } @mixin define-elastic-append($append-percentage) { $append-fraction: to-fraction-from-percentage($append-percentage); $approximate-append-percentage: number-approximate-low($append-percentage); @if is-round($approximate-append-percentage) { #{ select-class(append $approximate-append-percentage) }, #{ select-class(append $append-fraction) } { @include set-append($approximate-append-percentage); } } @else { #{ select-class(append $append-fraction) } { @include set-append($approximate-append-percentage); } } } @mixin define-fixed-append($append) { #{ select-class(append $append) } { @include set-append($append); } } @mixin define-appends($appends) { @each $append in list-series($appends) { @include define-append($append); } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dashy-0.0.5 | app/assets/stylesheets/dashy/define/_append.scss |
dashy-0.0.3 | app/assets/stylesheets/dashy/define/_append.scss |
dashy-0.0.4 | app/assets/stylesheets/dashy/define/_append.scss |