Классы для работы с текстом
В качестве примера адаптивности используется модификатор -tablet
.
Цвет Colors module
t-red
↝ color: $red См. таблицу цветов
Размеры
t120
↝ font-size: 1.2remt120-tablet
↝ font-size: 1.2rem for tablett120em
↝ font-size: 1.2emt30px
↝ font-size: 30px
«Сброс»
t-normal
↝ font-weight: normal; font-style: normal; text-decoration: none;
Полужирность
t-bold
,t-bold700
↝ font-weight: boldt-bold-normal
,t-bold400
↝ font-weight: normalt-bold-bolder
↝ font-weight: boldert-bold-light
↝ font-weight: lightert-bold100[200..900]
↝ font-weight: 100[200..900]
Оформление
t-italic
↝ font-style: italict-underline
↝ text-decoration: underlinet-strike
↝ text-decoration: line-throught-decoration-none
↝ text-decoration: none
Регистр
t-small-caps
↝ font-variant: small-capst-capitalize
↝ text-transform: capitalizet-upper
↝ text-transform: uppercaset-lower
↝ text-transform: lowercase
t-small-caps Sample Text
t-capitalize Sample Text
t-upper Sample Text
t-lower Sample Text
Выравнивание
t-right
↝ text-align: rightt-left
↝ text-align: leftt-center
↝ text-align: centert-justify
↝ text-align: justifyt-right-tablet
↝ text-align: right for tablet @mediat-left-tablet
↝ text-align: left for tablet @mediat-center-tablet
↝ text-align: center for tablet @mediat-justify-tablet
↝ text-align: justify for tablet @media
Переносы
t-nowrap
↝ white-space: nowrapt-nowrap-tablet
↝ white-space: nowrap for tablet @mediat-wrap
↝ white-space: normalt-wrap-tablet
↝ white-space: normal for tablet @mediat-pre-wrap
↝ white-space: pre-wrapt-break-word
↝ word-wrap: break-wordt-break-all
↝ word-break: break-allt-break-keep
↝ word-break: keep-allt-hyphens
↝ hyphens: auto
Перенос слов зависит от используемого браузера и установленных словарей.
Шрифты (Safe fonts)
t-georgia
↝ font-family: Georgia, "Times New Roman", serift-palatino
↝ font-family: "Palatino Linotype", "Book Antiqua", Palatino, serift-times
↝ font-family: "Times New Roman", serift-arial
↝ font-family: Arial, Helvetica, Verdana, sans-serift-arial-black
↝ font-family: "Arial Black", Gadget, sans-serift-comic
↝ font-family: "Comic Sans MS", cursive, sans-serift-impact
↝ font-family: Impact, Charcoal, sans-serift-tahoma
↝ font-family: Tahoma, Geneva, sans-serift-trebuchet
↝ font-family: "Trebuchet MS", Helvetica, sans-serift-verdana
↝ font-family: Verdana, Arial, Helvetica, sans-serift-mono
↝ font-family: $text_monospace;
t-georgia
t-palatino
t-times
t-arial
t-arial-black
t-comic
t-impact
t-tahoma
t-trebuchet
t-verdana
t-mono
Обрезка
t-ellipsis
↝ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;t-line-clamp
↝ overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--line, 3); css-var
t-ellipsis Text text text text text text text text
t-line-clamp Text text text text text text text text text text text text text text text text text text text text text text text text text