/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/components/src/text/styles.ts
39 строк
766 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import { css } from '@emotion/react'; import { COLORS, CONFIG } from '../utils'; export const Text = css` color: ${ COLORS.theme.foreground }; line-height: ${ CONFIG.fontLineHeightBase }; margin: 0; text-wrap: pretty; `; export const block = css` display: block; `; export const positive = css` color: ${ COLORS.alert.green }; `; export const destructive = css` color: ${ COLORS.alert.red }; `; export const muted = css` color: ${ COLORS.theme.gray[ 700 ] }; `; export const highlighterText = css` mark { background: ${ COLORS.alert.yellow }; border-radius: ${ CONFIG.radiusSmall }; box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset, 0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset; } `; export const upperCase = css` text-transform: uppercase; `;