Sha256: d732eae3ac8f9bb3411d763a318c92e52bbe287dd181f174c99cf053c6774c24
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 Bytes
Contents
//* // This mixin allows you to specify custom styling for items that should be // hidden based on the attached filters. By default, filtered items are set to // `display: none;` — use this mixin to provide custom styles. // // Note that this mixin can't be used at the root level — it must be nested // under another selector. // // @example // .foo { // @include when-filtered { // background: red; // } // } // // // yields: // // .foo[data-filtered-status = "hidden"] { // display: block !important; // overrides the default hidden state // background: red; // } @mixin when-filtered { &[data-filtered-status = "hidden"] { display: block !important; @content; } } .filter--highlight { background-color: color(yellow); } [data-filtered-status = "hidden"] { display: none !important; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docks_theme_api-1.0.3 | source/behaviors/filterable/filterable.scss |
docks_theme_api-1.0.2 | source/behaviors/filterable/filterable.scss |