1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Drop the .hidden and .visible classes, save for the print ones

— Moves print display utils to display utils file
— Removes all other .hidden- utils
— Expands on .invisible and it's mixin to provide options for visibility: visible and visibility: hidden
This commit is contained in:
Mark Otto
2017-03-03 12:58:57 -08:00
committed by Mark Otto
parent ebe405a01b
commit 4778190d78
3 changed files with 43 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
//
// Display utilities
// Utilities for common `display` values
//
@each $breakpoint in map-keys($grid-breakpoints) {
@@ -16,3 +16,38 @@
.d#{$infix}-inline-flex { display: inline-flex !important; }
}
}
//
// Utilities for toggling `display` in print
//
.d-print-block {
display: none !important;
@media print {
display: block !important;
}
}
.d-print-inline {
display: none !important;
@media print {
display: inline !important;
}
}
.d-print-inline-block {
display: none !important;
@media print {
display: inline-block !important;
}
}
.d-print-none {
@media print {
display: none !important;
}
}