Sha256: aedbcae709b21b9966b734d93dd149b481fd4d16e31f9a7c6fd085aca4f6ed35
Contents?: true
Size: 716 Bytes
Versions: 11
Compression:
Stored size: 716 Bytes
Contents
// ----------------------------------------------------------------------------- // State constructor // ----------------------------------------------------------------------------- $state-namespace: 'is' !default; @function _state($states...) { $selector: (); $namespace: if($bem-use-namespaces, $state-namespace + '-', ''); @each $state in $states { $s: selector-append(&, '.#{$namespace}#{$state}'); $selector: append($selector, $s, 'comma'); } $set-current: set-current-context('state', $states, $selector); @return $selector; } @mixin state($states...) { @at-root #{_state($states...)} { @content; } $unset-state: unset-current-context('state'); }
Version data entries
11 entries across 11 versions & 1 rubygems