_text.scss 1.3 KB

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