Sha256: cbedf2f5942a13c5f8f3805ae61846af847fbbcbabbafc3be53e49dff6fa27ad
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
// ----------------------------------------------------------------------------- // State constructor // ----------------------------------------------------------------------------- $bem-state-namespace: 'is' !default; @function _state($states...) { $selector: (); $namespace: if($bem-use-namespaces, $bem-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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bem-constructor-0.9.0 | stylesheets/_state.scss |