Layout von Websiten mit Bootstrap und Foundation
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.9KB

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