mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 00:29:52 +02:00
Prevent print utils from overriding all other display utils (#25269)
* Prevent print utils from overriding all other display utils Fixes #25221. I agree with the referenced issue—this is unexpected and also causes a serious bug when mixed with other utility classes. This wasn't an issue in v3 given we had different utilities for hiding that weren't focused on display property. * Add printing changes to migration docs * unrelated heading sentence case change * List out all .d-print- classes
This commit is contained in:
@@ -25,32 +25,14 @@
|
||||
// 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;
|
||||
}
|
||||
@media print {
|
||||
.d-print-none { display: none !important; }
|
||||
.d-print-inline { display: inline !important; }
|
||||
.d-print-inline-block { display: inline-block !important; }
|
||||
.d-print-block { display: block !important; }
|
||||
.d-print-table { display: table !important; }
|
||||
.d-print-table-row { display: table-row !important; }
|
||||
.d-print-table-cell { display: table-cell !important; }
|
||||
.d-print-flex { display: flex !important; }
|
||||
.d-print-inline-flex { display: inline-flex !important; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user