Make menus and hover fills translucent over a background image
With a background image, menus use the surface transparency of Appearance (82% by default) instead of at least 92%, and they keep the blur. Hovered rows and controls in the work area, hovered menu rows, and the workspace button use the new --rs-hover-bg token. With an image, it is a 6% veil of the strong text color. The image stays visible, and the hover shows over light and dark image areas. Without an image, nothing changes. Silver Serpent dim text is now #c2c6cc. It keeps 4.5:1 contrast on a hovered row over a white image. UI-061 replaces the image rule of UI-043. Card 05b9bfa1.
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
.source-title > span:first-of-type { min-width: 0; overflow-wrap: anywhere; }
|
||||
.line { margin-left: auto; color: var(--rs-text-dim); font-variant-numeric: tabular-nums; }
|
||||
.excerpt { display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
|
||||
.toggle:hover, .source:hover { background: var(--rs-bg-active); }
|
||||
.toggle:hover, .source:hover { background: var(--rs-hover-bg); }
|
||||
.toggle:focus-visible, .source:focus-visible { outline: 2px solid var(--rs-focus); outline-offset: -2px; }
|
||||
.placeholder, .error { margin: 8px 12px; font-size: 12px; overflow-wrap: anywhere; }
|
||||
.placeholder { color: var(--rs-text-dim); }
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
}
|
||||
|
||||
li > button:hover {
|
||||
background: var(--rs-bg-active);
|
||||
background: var(--rs-hover-bg);
|
||||
color: var(--rs-text-strong);
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
.conflict > :global(svg) { width: 18px; height: 18px; flex-shrink: 0; color: var(--rs-warn); }
|
||||
.conflict span { flex: 1 1 220px; min-width: 0; }
|
||||
.conflict button { min-height: 28px; border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); background: var(--rs-bg); color: var(--rs-text); padding: 4px 10px; }
|
||||
.conflict button:hover { background: var(--rs-bg-active); }
|
||||
.conflict button:hover { background: var(--rs-hover-bg); }
|
||||
.conflict button.primary { border-color: var(--rs-accent); background: var(--rs-accent); color: var(--rs-on-accent); }
|
||||
.conflict button.danger { border-color: var(--rs-error); color: var(--rs-error); }
|
||||
.disk-review { padding: 8px 12px; max-height: 35vh; overflow: auto; flex: 0 0 auto; }
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
padding: 0 10px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--rs-control-radius);
|
||||
background: var(--rs-bg-active);
|
||||
background: var(--rs-hover-bg);
|
||||
color: var(--rs-text-strong);
|
||||
font: 600 13px var(--rs-font-ui);
|
||||
text-align: left;
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
}
|
||||
|
||||
li button:hover {
|
||||
background: var(--rs-bg-active);
|
||||
background: var(--rs-hover-bg);
|
||||
color: var(--rs-text-strong);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: var(--rs-bg-active);
|
||||
background: var(--rs-hover-bg);
|
||||
}
|
||||
|
||||
.line {
|
||||
|
||||
@@ -446,7 +446,7 @@
|
||||
}
|
||||
|
||||
.tab:focus-within { box-shadow: inset 0 0 0 var(--rs-item-selection-width) var(--rs-item-selection-border); }
|
||||
.tab:not(.active):hover { background: var(--rs-bg-active); }
|
||||
.tab:not(.active):hover { background: var(--rs-hover-bg); }
|
||||
.tab.dragging { opacity: 0.5; }
|
||||
.tabs:has(.dragging) .tab > button:first-child { cursor: grabbing; }
|
||||
.tab.drop-before::before, .tab.drop-after::after {
|
||||
@@ -521,6 +521,6 @@
|
||||
background: transparent;
|
||||
color: var(--rs-text-dim);
|
||||
}
|
||||
.all-tabs:hover { background: var(--rs-bg-active); border-color: var(--rs-border); color: var(--rs-text-strong); }
|
||||
.all-tabs:hover { background: var(--rs-hover-bg); border-color: var(--rs-border); color: var(--rs-text-strong); }
|
||||
.all-tabs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
|
||||
</style>
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
}
|
||||
|
||||
.row:hover {
|
||||
background: var(--rs-bg-active);
|
||||
background: var(--rs-hover-bg);
|
||||
}
|
||||
|
||||
.row.active {
|
||||
@@ -305,7 +305,7 @@
|
||||
|
||||
.row.drop-inside {
|
||||
outline: 1px solid var(--rs-accent);
|
||||
background: var(--rs-bg-active);
|
||||
background: var(--rs-hover-bg);
|
||||
}
|
||||
|
||||
.twist {
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
button :global(svg) { width: 16px; height: 16px; flex-shrink: 0; }
|
||||
|
||||
/* Hover gets only a fill. The current choice also gets the selection fill and an accent bar. */
|
||||
button:hover { background: var(--rs-bg-active); color: var(--rs-text-strong); }
|
||||
button:hover { background: var(--rs-hover-bg); color: var(--rs-text-strong); }
|
||||
button[aria-checked="true"], button[aria-pressed="true"] {
|
||||
background: var(--rs-item-selection-bg);
|
||||
color: var(--rs-text-strong);
|
||||
|
||||
Reference in New Issue
Block a user