Added responsive show/hide classes

This commit is contained in:
Mike Francis 2015-03-06 16:41:33 +00:00
parent 9518f9ab18
commit c8196e2bec
1 changed files with 24 additions and 0 deletions

View File

@ -55,3 +55,27 @@ img.aligncenter {
.sr-only { .sr-only {
display: none; display: none;
} }
/**
* Responsive
*/
@each $breakpoint in $breakpoints {
$key : nth($breakpoint, 1);
$value : nth($breakpoint, 2);
.visible-#{$key} {
@media only screen and #{$value} {
display: block !important;
}
}
.hidden-#{$key} {
@media only screen and #{$value} {
display: none !important;
}
}
}