mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-30 23:59:20 -08:00
Add text size buttons to the console's top bar (v3.2.1)
AI Assisted
This commit is contained in:
1 parent
8277c8b548
commit
634e4df10e
25 files changed
+188
-40
No files matched your search
@@ -28,6 +28,28 @@
|
||||
.icon-btn:hover svg .ab-dot, .icon-btn:hover svg .dc-pip { fill: var(--accent); stroke: none; }
|
||||
|
||||
a.icon-btn { box-sizing: border-box; text-decoration: none; }
|
||||
|
||||
/* The text size control: [-] size [+], one group in the tools. The label is the
|
||||
reset, so it reads as text and gets the same hover as an icon. */
|
||||
.text-size { display: flex; align-items: center; gap: 0; }
|
||||
.text-size-label {
|
||||
appearance: none;
|
||||
min-width: 44px;
|
||||
height: 36px;
|
||||
padding: 0 4px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
color: var(--ink-2);
|
||||
font: 600 var(--fs-xs)/1 var(--sans);
|
||||
font-variant-numeric: tabular-nums;
|
||||
cursor: pointer;
|
||||
}
|
||||
.text-size-label:hover { background: var(--panel-2); border-color: var(--rule); color: var(--accent); }
|
||||
/* An end of the range: dimmed, not disabled, so Playwright and keyboards still reach it. */
|
||||
.text-size .icon-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
|
||||
.text-size .icon-btn[aria-disabled="true"]:hover { background: transparent; border-color: transparent; }
|
||||
.text-size .icon-btn[aria-disabled="true"]:hover svg * { stroke: var(--ink-2); }
|
||||
/* 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); }
|
||||
|
||||
Reference in new issue
Block a user