_display.scss 542 B

1234567891011121314151617181920212223242526272829
  1. // stylelint-disable declaration-no-important
  2. //
  3. // Utilities for common `display` values
  4. //
  5. @each $breakpoint in map-keys($grid-breakpoints) {
  6. @include media-breakpoint-up($breakpoint) {
  7. $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
  8. @each $value in $displays {
  9. .d#{$infix}-#{$value} {
  10. display: $value !important;
  11. }
  12. }
  13. }
  14. }
  15. //
  16. // Utilities for toggling `display` in print
  17. //
  18. @media print {
  19. @each $value in $displays {
  20. .d-print-#{$value} {
  21. display: $value !important;
  22. }
  23. }
  24. }