2026-10-18 15:39:24 -07:00
|
|
|
/* looks.css: The looks button and the highlight swatches. */
|
|
|
|
|
|
|
|
|
|
/* ------------------------------------------------------- looks button */
|
|
|
|
|
|
2026-11-17 18:08:01 -08:00
|
|
|
/* The top bar's tools: one group at the right edge. */
|
|
|
|
|
.topbar-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
|
2026-10-18 15:39:24 -07:00
|
|
|
.icon-btn {
|
|
|
|
|
appearance: none;
|
|
|
|
|
flex: none;
|
2026-11-02 12:00:12 -08:00
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
2026-10-18 15:39:24 -07:00
|
|
|
padding: 0;
|
|
|
|
|
display: grid;
|
|
|
|
|
place-items: center;
|
|
|
|
|
border: 1px solid transparent;
|
2026-11-17 18:08:01 -08:00
|
|
|
border-radius: var(--radius-md);
|
2026-10-18 15:39:24 -07:00
|
|
|
background: transparent;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.icon-btn:hover { background: var(--panel-2); border-color: var(--rule); }
|
2026-11-17 18:08:01 -08:00
|
|
|
/* One icon set: 24-unit drawings, a 1.8 stroke, round caps and joins, one ink
|
|
|
|
|
color at rest and the highlight on hover. The top bar buttons (here) and
|
|
|
|
|
the second row's buttons (below) share it. */
|
2026-11-02 12:00:12 -08:00
|
|
|
.icon-btn svg { width: 22px; height: 22px; }
|
2026-11-17 18:08:01 -08:00
|
|
|
.icon-btn svg * { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
|
|
|
.icon-btn svg .ab-dot, .icon-btn svg .dc-pip { fill: var(--ink-2); stroke: none; }
|
|
|
|
|
.icon-btn:hover svg * { stroke: var(--accent); }
|
|
|
|
|
.icon-btn:hover svg .ab-dot, .icon-btn:hover svg .dc-pip { fill: var(--accent); stroke: none; }
|
2026-10-18 15:39:24 -07:00
|
|
|
|
|
|
|
|
a.icon-btn { box-sizing: border-box; text-decoration: none; }
|
|
|
|
|
/* A link in a dialog (the update modal's release, Help's version) keeps the
|
|
|
|
|
accent once visited: the browser's purple is unreadable on the dark theme. */
|
|
|
|
|
.modal a:not(.btn), .modal a:not(.btn):visited { color: var(--accent); }
|
|
|
|
|
|
|
|
|
|
/* ------------------------------------------------------------ swatches */
|
|
|
|
|
|
2026-10-26 06:36:45 -07:00
|
|
|
/* Thirty-eight of them: a fixed nineteen-column grid so they sit in two even
|
|
|
|
|
rows in the wide dialog (19 x 34px plus gaps fits its 828px body), and rows
|
|
|
|
|
of ten on a narrow window. Thirty-eight is the cap: one more would leave a
|
|
|
|
|
straggler on a third row in the wide dialog. */
|
|
|
|
|
.swatches { display: grid; grid-template-columns: repeat(19, minmax(0, 34px)); gap: 8px; }
|
2026-10-18 15:39:24 -07:00
|
|
|
@media (max-width: 720px) {
|
2026-10-26 06:36:45 -07:00
|
|
|
.swatches { grid-template-columns: repeat(10, minmax(0, 34px)); }
|
2026-10-18 15:39:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.swatch {
|
|
|
|
|
appearance: none;
|
|
|
|
|
width: 100%;
|
|
|
|
|
aspect-ratio: 1;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
border: 2px solid var(--rule-2);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.swatch:hover { border-color: var(--ink-3); }
|
|
|
|
|
.swatch[aria-pressed="true"] {
|
|
|
|
|
border-color: var(--ink);
|
|
|
|
|
box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink);
|
|
|
|
|
}
|
|
|
|
|
|