Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit e321ee2

Browse files
Code Navigation: adjust global styling for kbd element (#60320)
* adjust global styling for kbd element * design tweaks from Taiyab
1 parent 060b8a5 commit e321ee2

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

client/branded/src/search-ui/results/filters/NewSearchFilters.module.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@
9494
}
9595
}
9696

97-
// @TODO: Jason Harris: <kbd> element is unuseable unless the following CSS selectors are present.
98-
// We should use these as a base for adjusting the default styling of <kbd> elements.
9997
.keybind {
100-
font-family: var(--font-family-base);
101-
color: var(--text-muted);
102-
background: var(--color-bg-1);
103-
border: 1px solid var(--border-color-2);
10498
margin-left: 0.5rem;
105-
padding: 0 0.25rem;
10699
}

client/wildcard/src/global-styles/code.scss

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,19 @@ code,
3434
}
3535

3636
kbd {
37-
font-family: var(--code-font-family);
38-
font-size: var(--code-font-size);
37+
background-color: var(--color-bg-1);
38+
border-radius: 4px;
39+
border: 1px solid var(--border-color-2);
40+
box-shadow: inset 0 -2px 0 var(--color-bg-2);
41+
color: var(--text-muted);
3942
display: inline-block;
40-
line-height: (16/12);
43+
font-family: var(--monospace-font-family);
44+
font-size: var(--code-font-size);
4145
height: 1.125rem;
42-
padding: 0 0.25rem;
46+
line-height: (16/12);
4347
margin: 0 0.125rem;
48+
padding: 0 0.25rem;
4449
vertical-align: middle;
45-
border-radius: 3px;
46-
color: var(--body-color);
47-
background-color: var(--color-bg-2);
48-
box-shadow: inset 0 -2px 0 var(--color-bg-3);
4950
}
5051

5152
// Search examples that link to the results page should use this class.

0 commit comments

Comments
 (0)