Last active
February 13, 2019 08:42
-
-
Save sebastiano-guerriero/46478bec2b8455da09a3633bbcd65294 to your computer and use it in GitHub Desktop.
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 { | |
| display: var(--display) !important; | |
| } | |
| .hide--xs { | |
| display: none !important; | |
| } | |
| } | |
| @include breakpoint(sm) { | |
| .display--sm { | |
| display: var(--display) !important; | |
| } | |
| .hide--sm { | |
| display: none !important; | |
| } | |
| } | |
| @include breakpoint(md) { | |
| .display--md { | |
| display: var(--display) !important; | |
| } | |
| .hide--md { | |
| display: none !important; | |
| } | |
| } | |
| @include breakpoint(lg) { | |
| .display--lg { | |
| display: var(--display) !important; | |
| } | |
| .hide--lg { | |
| display: none !important; | |
| } | |
| } | |
| @include breakpoint(xl) { | |
| .display--xl { | |
| display: var(--display) !important; | |
| } | |
| .hide--xl { | |
| display: none !important; | |
| } | |
| } | |
| // component code - not included in the _visibility.scss file | |
| .component div { | |
| --display: inline-block; | |
| display: var(--display); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment