assets/stylesheets/bootstrap/utilities/_display.scss in bootstrap-4.0.0.alpha6 vs assets/stylesheets/bootstrap/utilities/_display.scss in bootstrap-4.0.0.beta

- old
+ new

@@ -1,7 +1,7 @@ // -// Display utilities +// Utilities for common `display` values // @each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); @@ -12,7 +12,42 @@ .d#{$infix}-block { display: block !important; } .d#{$infix}-table { display: table !important; } .d#{$infix}-table-cell { display: table-cell !important; } .d#{$infix}-flex { display: flex !important; } .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; } }