/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/components/src/surface/style.module.scss
53 строки
2 KB
Marco Ciampini
Components: migrate Surface to SCSS module (#79445)
24 июн 2026, 22:41
Не верифицирован
24 июн 2026, 22:41
3717269
Код
Авторство
О чём код?
.surface { background-color: var(--wpds-color-background-surface-neutral-strong); color: var(--wpds-color-foreground-content-neutral); position: relative; } .border-bottom { border-bottom: var(--wpds-border-width-xs) solid var(--wpds-color-stroke-surface-neutral); } .border-left { /* stylelint-disable-next-line plugin/use-logical-properties-and-values -- Surface exposes physical border props. */ border-left: var(--wpds-border-width-xs) solid var(--wpds-color-stroke-surface-neutral); } .border-right { /* stylelint-disable-next-line plugin/use-logical-properties-and-values -- Surface exposes physical border props. */ border-right: var(--wpds-border-width-xs) solid var(--wpds-color-stroke-surface-neutral); } .border-top { border-top: var(--wpds-border-width-xs) solid var(--wpds-color-stroke-surface-neutral); } .secondary { background: var(--wpds-color-background-surface-neutral-weak); } .dotted { background: linear-gradient(90deg, var(--wpds-color-background-surface-neutral-strong) var(--wp-components-surface-background-size-dotted), transparent 1%) center, linear-gradient(var(--wpds-color-background-surface-neutral-strong) var(--wp-components-surface-background-size-dotted), transparent 1%) center, var(--wpds-color-stroke-surface-neutral); background-size: var(--wp-components-surface-background-size) var(--wp-components-surface-background-size); } .grid { background: var(--wpds-color-background-surface-neutral-strong); background-image: linear-gradient(var(--wpds-color-stroke-surface-neutral-weak) var(--wpds-border-width-xs), transparent var(--wpds-border-width-xs)), linear-gradient(90deg, var(--wpds-color-stroke-surface-neutral-weak) var(--wpds-border-width-xs), transparent var(--wpds-border-width-xs)); background-size: var(--wp-components-surface-background-size) var(--wp-components-surface-background-size); }