No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_text.scss 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // stylelint-disable declaration-no-important
  2. //
  3. // Text
  4. //
  5. .text-monospace { font-family: $font-family-monospace; }
  6. // Alignment
  7. .text-justify { text-align: justify !important; }
  8. .text-nowrap { white-space: nowrap !important; }
  9. .text-truncate { @include text-truncate; }
  10. // Responsive alignment
  11. @each $breakpoint in map-keys($grid-breakpoints) {
  12. @include media-breakpoint-up($breakpoint) {
  13. $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
  14. .text#{$infix}-left { text-align: left !important; }
  15. .text#{$infix}-right { text-align: right !important; }
  16. .text#{$infix}-center { text-align: center !important; }
  17. }
  18. }
  19. // Transformation
  20. .text-lowercase { text-transform: lowercase !important; }
  21. .text-uppercase { text-transform: uppercase !important; }
  22. .text-capitalize { text-transform: capitalize !important; }
  23. // Weight and italics
  24. .font-weight-light { font-weight: $font-weight-light !important; }
  25. .font-weight-normal { font-weight: $font-weight-normal !important; }
  26. .font-weight-bold { font-weight: $font-weight-bold !important; }
  27. .font-italic { font-style: italic !important; }
  28. // Contextual colors
  29. .text-white { color: $white !important; }
  30. @each $color, $value in $theme-colors {
  31. @include text-emphasis-variant(".text-#{$color}", $value);
  32. }
  33. .text-body { color: $body-color !important; }
  34. .text-muted { color: $text-muted !important; }
  35. .text-black-50 { color: rgba($black, .5) !important; }
  36. .text-white-50 { color: rgba($white, .5) !important; }
  37. // Misc
  38. .text-hide {
  39. @include text-hide($ignore-warning: true);
  40. }