Document focus contrast and set row highlight opacity explicitly (#82)
This commit was merged in pull request #92.
This commit is contained in:
1 parent
eb21db17ad
commit
3de8fd527c
3 files changed
+23
-14
No files matched your search
@@ -37,7 +37,8 @@
|
||||
html, body { min-height: 100%; }
|
||||
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--body); transition: background-color .3s; }
|
||||
button, input, select { font: inherit; color: inherit; }
|
||||
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
|
||||
/* Sur les fonds clairs, le doré foncé garde les contours de focus et de survol lisibles. */
|
||||
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
|
||||
[hidden] { display: none !important; }
|
||||
|
||||
.frame { max-width: 1264px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 150px; }
|
||||
@@ -116,7 +117,7 @@ button, input, select { font: inherit; color: inherit; }
|
||||
.sort select { border: 0; background: transparent; color: var(--fg); font-size: 12px; padding: 7px 4px; }
|
||||
.sort select option { background: var(--surface); }
|
||||
.search { width: min(100%, 240px); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
|
||||
.search:focus { border-color: var(--gold); outline: none; }
|
||||
.search:focus { border-color: var(--gold-ink); outline: none; }
|
||||
.empty { grid-column: 1 / -1; color: var(--muted); padding: 30px 0; }
|
||||
|
||||
/* ---- La carte : la même partout, avec le même survol. ---- */
|
||||
@@ -151,11 +152,11 @@ button, input, select { font: inherit; color: inherit; }
|
||||
.sheet span { display: flex; justify-content: space-between; gap: 6px; color: var(--art-soft); }
|
||||
.sheet b { color: var(--art-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
|
||||
/* Survol ou focus : la carte monte (sans grossir), l'illustration zoome à l'intérieur, la fiche glisse du bas. */
|
||||
.card:hover, .card:focus-visible { z-index: 2; transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 18px 34px -14px rgba(0,0,0,.65), 0 0 28px -8px var(--gold-glow); outline: none; }
|
||||
.card:hover, .card:focus-visible { z-index: 2; transform: translateY(-10px); border-color: var(--gold-ink); box-shadow: 0 18px 34px -14px rgba(0,0,0,.65), 0 0 28px -8px var(--gold-glow); outline: none; }
|
||||
.card:hover img, .card:focus-visible img { transform: scale(1.07); }
|
||||
.card:hover .sheet, .card:focus-visible .sheet { opacity: 1; visibility: visible; transform: none; }
|
||||
.card:hover .cap, .card:focus-visible .cap { opacity: 0; transform: translateY(6px); }
|
||||
.card.dim:hover, .card.dim:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); border-color: var(--line); }
|
||||
.card.dim:hover, .card.dim:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); }
|
||||
/* Dans la main seulement, un voile sur les voisines (GPUI n'a pas de filtre de luminosité). */
|
||||
.card::after { content: ""; position: absolute; inset: 0; background: rgba(9, 11, 24, .42); opacity: 0; transition: opacity .3s; pointer-events: none; }
|
||||
.hand:has(.card:hover) .card:not(:hover)::after { opacity: 1; }
|
||||
|
||||
Reference in new issue
Block a user