Skip to content

Instantly share code, notes, and snippets.

@lechup
Created September 28, 2016 14:18
Show Gist options
  • Save lechup/269fd0e93e82d205266d636981ddceb0 to your computer and use it in GitHub Desktop.
Save lechup/269fd0e93e82d205266d636981ddceb0 to your computer and use it in GitHub Desktop.
Responsive visibility utilities for reflex-grid
// Responsive visibility utilities
// reflex-grid
// based on Twitter bootstrap 4
// http://v4-alpha.getbootstrap.com/layout/responsive-utilities/#available-classes
@reflex-xs: 480px;
@reflex-sm: 768px;
@reflex-md: 992px;
@reflex-lg: 1200px;
@reflex-xlg: 1600px;
.hidden() {
display: none !important;
}
.hidden-xs-up {
@media (min-width: @reflex-xs) {
.hidden;
}
}
.hidden-xs-down {
@media (max-width: @reflex-xs) {
.hidden;
}
}
.hidden-sm-up {
@media (min-width: @reflex-sm) {
.hidden;
}
}
.hidden-sm-down {
@media (max-width: @reflex-sm) {
.hidden;
}
}
.hidden-md-up {
@media (min-width: @reflex-md) {
.hidden;
}
}
.hidden-md-down {
@media (max-width: @reflex-md) {
.hidden;
}
}
.hidden-lg-up {
@media (min-width: @reflex-lg) {
.hidden;
}
}
.hidden-lg-down {
@media (max-width: @reflex-lg) {
.hidden;
}
}
.hidden-lgx-up {
@media (min-width: @reflex-xlg) {
.hidden;
}
}
.hidden-lgx-down {
@media (max-width: @reflex-xlg) {
.hidden;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment