Skip to content

Commit b0463d3

Browse files
committed
fix(docs-ui): keep header logo link dark, chip only under img
Move light backdrop to ::before so .adt-header-logo has no filter/styling beyond stacking; the hit target matches the dark navbar. Made-with: Cursor
1 parent 93448d8 commit b0463d3

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

site/supplemental-ui/css/site-doc-layout.css

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,36 @@ pre,
207207
object-fit: contain;
208208
}
209209

210-
/* FTN header mark is a fixed-palette SVG (not currentColor). Do not use CSS invert — use a light tile
211-
on the dark top bar until a dedicated light/dark asset exists. */
210+
/* FTN mark: fixed-palette SVG — do not set filters on .adt-header-logo. Optional light chip
211+
sits behind the graphic only; .adt-header-logo-item keeps the same dark top bar. */
212212
html.dark-theme .adt-header-logo-item {
213+
position: relative;
214+
}
215+
216+
html.dark-theme .adt-header-logo-item::before {
217+
content: "";
218+
position: absolute;
219+
left: 50%;
220+
top: 50%;
221+
width: 2rem;
222+
height: 2rem;
223+
margin: 0;
224+
padding: 0;
225+
transform: translate(-50%, -50%);
213226
background: #eef0f3;
227+
border-radius: 0.2rem;
214228
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
229+
z-index: 0;
230+
pointer-events: none;
231+
}
232+
233+
html.dark-theme .adt-header-logo {
234+
position: relative;
235+
z-index: 1;
215236
}
216237

217-
html.dark-theme .adt-header-logo-item:hover,
218-
html.dark-theme .adt-header-logo-item:focus {
238+
html.dark-theme .adt-header-logo-item:hover::before,
239+
html.dark-theme .adt-header-logo-item:focus::before {
219240
background: #e2e5ea;
220241
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
221242
}

0 commit comments

Comments
 (0)