Skip to content

Commit fb4105a

Browse files
authored
docs: fix Ctrl+K styling in documentation (#3021)
1 parent 7abc3e9 commit fb4105a

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

packages/web/src/styles/custom.css

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,20 @@ nav.sidebar summary svg.caret {
8585
color: var(--color-icon) !important;
8686
}
8787

88-
body > .page > header button[data-open-modal] > kbd kbd {
89-
color: var(--color-icon) !important;
90-
font-size: 16px !important;
88+
/* Search button style overrides */
89+
body > .page > header button[data-open-modal] > kbd {
90+
position: relative;
9191
display: flex;
92+
gap: 4px;
9293
}
93-
94-
body > .page > header button[data-open-modal] > kbd kbd:first-child {
95-
font-size: 20px !important;
94+
body > .page > header button[data-open-modal] > kbd > kbd {
95+
color: var(--color-icon) !important;
96+
font-size: 15px;
97+
}
98+
/* Make the Cmd (⌘) keystroke bigger */
99+
body > .page > header button[data-open-modal][aria-keyshortcuts="Meta+K"] > kbd > kbd:first-child {
100+
font-size: 20px;
101+
line-height: 0.73;
96102
}
97103

98104
.starlight-aside__title {
@@ -101,7 +107,7 @@ body > .page > header button[data-open-modal] > kbd kbd:first-child {
101107
}
102108

103109
body > .page > .main-frame .main-pane > main > .content-panel + .content-panel {
104-
border-top: none !important;
110+
border-top: none !important;
105111
}
106112

107113
body > .page > header a.site-title img {
@@ -186,10 +192,10 @@ site-search > button {
186192
}
187193

188194
body > .page > header button[data-open-modal] {
189-
gap: 24px !important;
195+
gap: 12px !important;
190196
background: var(--color-background-weak);
191197
border: 1px solid var(--color-border-weak) !important;
192-
padding: 6px 16px !important;
198+
padding: 6px 12px !important;
193199
border-radius: 4px;
194200

195201
@media (prefers-color-scheme: dark) {

0 commit comments

Comments
 (0)