Sha256: 6764770b110adec3f0c855192d4ed99f20f388928d938524f75d92a95309b2ce
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
@mixin visible-on($size, $display: inherit) { @if $size == large { &.hide-for-large { display: $display !important; } } @else if $size == small { &.hide-for-small { display: $display !important; } } } // Elements that need special `display` @mixin special-display($size) { table { @include visible-on($size, table); } thead { @include visible-on($size, table-header-group); } tbody { @include visible-on($size, table-row-group); } tr { @include visible-on($size, table-row); } td, th { @include visible-on($size, table-cell); } span, b, em, strong, .bold, .italic, code { @include visible-on($size, inline-block); } } @if $include-visibility { /* --------------- EDGE Visibility --------------- */ /* Above small breakpoint (>#{$small-screen}) */ .hide-for-large { display: none !important; } @include medium-up { .hide-for-small { display: inherit !important; } @include special-display(small); } /* Below small breakpoint (<=#{$small-screen}) */ @include small { .hide-for-small { display: none !important; } .hide-for-large { display: inherit !important; } @include special-display(large); } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
edge_framework-0.6.1 | assets/sass/edge/components/_visibility.scss |
edge_framework-0.6.0 | assets/sass/edge/components/_visibility.scss |