This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @media only screen and (max-width: map-get($map: $breakpoints, $key: xs) - 0.05rem) { | |
| .display--xs, .display--sm, .display--md, .display--lg, .display--xl { | |
| display: none !important; | |
| } | |
| } | |
| @media only screen and (max-width: map-get($map: $breakpoints, $key: sm) - 0.05rem) { | |
| .display--sm, .display--md, .display--lg, .display--xl { | |
| display: none !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .is-visible { | |
| display: var(--display) !important; | |
| } | |
| .component { | |
| display: none; | |
| --display: flex; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @mixin display($display-value) { | |
| --display: #{$display-value}; | |
| display: var(--display); | |
| } | |
| .component div { | |
| @include display(inline-block); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --display: block; | |
| } | |
| [class^="display--"] { | |
| display: none !important; | |
| } | |
| @include breakpoint(xs) { | |
| .display--xs { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [class^="display--"] { | |
| display: none !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --display: block; | |
| } | |
| // component code - not included in the _visibility.scss file | |
| .component div { | |
| --display: inline-block; | |
| display: var(--display); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @include breakpoint(xs) { | |
| .display--xs { | |
| display: block !important; | |
| } | |
| .hide--xs { | |
| display: none !important; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="component"> | |
| <div>One</div> | |
| <div class="display--md">Two</div> | |
| <div class="display--md">Three</div> | |
| <div class="display--lg">Four</div> | |
| <div>Five</div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div> | |
| <div>One</div> | |
| <div class="hide block--md">Two</div> | |
| <div class="hide inline-block--md">Three</div> | |
| <div class="hide flex--lg">Four</div> | |
| <div>Five</div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .block { | |
| display: block !important; | |
| } | |
| .inline-block { | |
| display: inline-block !important; | |
| } | |
| .inline { | |
| display: inline !important; |