Цвет полос
stripe-color
В SIMAI Framework с помощью модифкаторов можно задать цвет фона.
Классы
Класс | Значение | Цвет |
---|---|---|
stripe-surface-highest |
background-color: |
|
stripe-surface-high |
background-color: |
|
stripe-surface-default |
background-color: |
|
stripe-surface-low |
background-color: |
|
stripe-surface-lowest |
background-color: |
|
stripe-surface-inverse |
background-color: |
|
stripe-surface-variant |
background-color: |
|
stripe-primary-default |
background-color: |
|
stripe-primary-tonal |
background-color: |
|
stripe-primary-inverse |
background-color: |
|
stripe-primary-contrast |
background-color: |
|
stripe-secondary-default |
background-color: |
|
stripe-secondary-tonal |
background-color: |
|
stripe-secondary-inverse |
background-color: |
|
stripe-secondary-contrast |
background-color: |
|
stripe-tertiary-default |
background-color: |
|
stripe-tertiary-tonal |
background-color: |
|
stripe-tertiary-inverse |
background-color: |
|
stripe-tertiary-contrast |
background-color: |
|
stripe-info-default |
background-color: |
|
stripe-info-tonal |
background-color: |
|
stripe-info-inverse |
background-color: |
|
stripe-info-contrast |
background-color: |
|
stripe-success-default |
background-color: |
|
stripe-success-tonal |
background-color: |
|
stripe-success-inverse |
background-color: |
|
stripe-success-contrast |
background-color: |
|
stripe-warning-default |
background-color: |
|
stripe-warning-tonal |
background-color: |
|
stripe-warning-inverse |
background-color: |
|
stripe-warning-contrast |
background-color: |
|
stripe-danger-default |
background-color: |
|
stripe-danger-tonal |
background-color: |
|
stripe-danger-inverse |
background-color: |
|
stripe-danger-contrast |
background-color: |
|
stripe-transparent |
background-color: |
|
stripe-current |
background-color: |
|
stripe-inherit |
background-color: |
Описание
Адаптивный модификатор. Задает фон элемента в зависимости от размера области просмотра.
Использование модификатора: {контрольная точка}:{цвет}-{тон}
- Контрольная точка. Необязательный параметр. Применяет модификатор начиная с определенного размера области просмотра, согласно контрольным точкам (
sm
,md
,lg
,xl
). Если контрольная точка не задана, то действует для любого размера области просмотра. - Цвет. Обязательный параметр. Может принимать значения:
stripe-transparent
- прозрачный;stripe-current
- текущйи цвет заданный с помощью стиляcolor
;stripe-{black, white, gray, red, orange, yellow, green, blue, purple, pink}
- цвет из палитры цветов;
- Тон цвета. Не обязательный параметр. Принимает значение от 1 до 10.
Пример
Используйте модификатор stripe-{color}
для установки цвета фона.
stripe-red-6
stripe-blue-3
stripe-gray-4
<div class="stripe-danger-default..."></div>