chore(review): 1106 화면·테마 조치 브랜치를 합친다

This commit is contained in:
DongHyeonka
2026-11-06 07:24:11 +09:00
8 changed files with 239 additions and 2 deletions
@@ -5,6 +5,23 @@
--field-border: var(--color-border-strong);
--field-border-invalid: var(--color-danger);
--dialog-elevation: var(--elevation-dialog);
/* 1106/08-03. The modal scrim: the content colour at this weight.
`--dialog-backdrop` is the translucent scrim `::backdrop` paints.
`--dialog-backdrop-on-surface` is that scrim already laid over the page
surface, an opaque colour, for the root background under the scrollbar
gutter while a modal is open (primitives.css). The two agree because a
browser blends a translucent colour over another in sRGB. */
--dialog-backdrop-weight: 55%;
--dialog-backdrop: color-mix(
in oklab,
var(--color-content) var(--dialog-backdrop-weight),
transparent
);
--dialog-backdrop-on-surface: color-mix(
in srgb,
var(--color-content) var(--dialog-backdrop-weight),
var(--color-surface)
);
--navigation-active-background: color-mix(
in oklab,
var(--color-action) 14%,
+4
View File
@@ -15,6 +15,10 @@
margin: 0;
min-width: 20rem;
min-height: 100vh;
/* 1106/08-03. The same colour as the root background. The page covers
the window except the scrollbar gutter, so the root background shows
only there, where primitives.css darkens it under an open modal. */
background: var(--color-surface);
}
/* 08-06. Korean breaks between words, not between syllables. A word too
+18 -1
View File
@@ -414,10 +414,27 @@
}
.ui-dialog::backdrop {
background: color-mix(in oklab, var(--color-content) 55%, transparent);
background: var(--dialog-backdrop);
backdrop-filter: blur(2px);
}
/* 1106/08-03. `scrollbar-gutter: stable` (base.css) keeps a classic
scrollbar's strip on the right even when the page does not scroll.
The strip shows the root's background colour: `::backdrop`, like every
fixed box, ends at its left edge. While a modal is open the root
background colour is the scrim over the page surface, so the scrim
reaches the window edge. The page paints its own surface (`body`,
base.css), so this shows only in the strip. A page that scrolls has
its scrollbar there instead, as before.
The first attempt (a gradient layer over the surface, matched with
`:modal`) left the strip the surface colour in Chromium; this changes
the colour itself and matches on `[open]`, the attribute showModal()
sets. The Dialog primitive always opens with showModal(), so an open
`.ui-dialog` in a browser is modal. */
:root:has(.ui-dialog[open]) {
background-color: var(--dialog-backdrop-on-surface);
}
.ui-drawer {
width: var(--drawer-width);
max-width: none;