файл пакета→ .shtukbase/packages/keer-ui/library/styles/frame.css
library/styles/frame.css
71 строка, 2.4 КБ.
Файл как есть в пакете: код и комментарии в нём не переводятся.
- /*
- * The page frame and backing: lines, crosshairs, dots and grain.
- *
- * Only the mechanism is here (position, layers); the color, step, size and strength come from
- * tokens.css, so a theme changes the look of the frame without edits to this file. In a theme without
- * crosshairs their size is zero, without grain the opacity is zero.
- */
- /* Where to use: the page backing: AppShell. */
- @utility canvas {
- background-color: var(--ds-bg);
- background-image: var(--ds-canvas-pattern);
- background-size: var(--ds-canvas-step) var(--ds-canvas-step);
- background-position: var(--ds-canvas-offset) var(--ds-canvas-offset);
- }
- /* Where to use: the side panel: a sheen over the gray background (nothing in a theme without a sheen). */
- @utility sidebar-sheen {
- background-image: var(--ds-sidebar-sheen);
- }
- /* Where to use: grain over the surface background, under its content: the backing, the side panel, the header. */
- @utility grain {
- isolation: isolate;
- &::before {
- content: "";
- position: absolute;
- inset: 0;
- z-index: -1;
- border-radius: inherit;
- pointer-events: none;
- background-image: var(--ds-grain-image);
- background-size: var(--ds-grain-size) var(--ds-grain-size);
- opacity: var(--ds-grain-opacity);
- }
- }
- /* Where to use: a crosshair in the bottom left corner, where the line under the header or heading meets the edge of the side panel. */
- @utility frame-cross {
- &::after {
- content: "";
- position: absolute;
- left: calc(var(--ds-frame-cross-size) / -2);
- bottom: calc(var(--ds-frame-cross-size) / -2);
- z-index: 1;
- width: var(--ds-frame-cross-size);
- height: var(--ds-frame-cross-size);
- pointer-events: none;
- background: var(--ds-frame-cross);
- }
- }
- /* Where to use: a semi-transparent page header blurs what is under it: AppShell. */
- @utility topbar-blur {
- backdrop-filter: var(--ds-topbar-blur);
- }
- /* Where to use: the same crosshair in the bottom right corner, on the side of the side panel where its edge meets the line under the header: SidebarHeader. */
- @utility frame-cross-end {
- &::after {
- content: "";
- position: absolute;
- right: calc(var(--ds-frame-cross-size) / -2 - 0.5px);
- bottom: calc(var(--ds-frame-cross-size) / -2 - 0.5px);
- z-index: 1;
- width: var(--ds-frame-cross-size);
- height: var(--ds-frame-cross-size);
- pointer-events: none;
- background: var(--ds-frame-cross);
- }
- }