Skip to content

Instantly share code, notes, and snippets.

@sebastiano-guerriero
Last active February 13, 2019 08:42
Show Gist options
  • Select an option

  • Save sebastiano-guerriero/46478bec2b8455da09a3633bbcd65294 to your computer and use it in GitHub Desktop.

Select an option

Save sebastiano-guerriero/46478bec2b8455da09a3633bbcd65294 to your computer and use it in GitHub Desktop.
: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