summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/styles/custom.css
diff options
context:
space:
mode:
authorHaris Gušić <[email protected]>2025-10-16 22:30:28 +0200
committerGitHub <[email protected]>2025-10-16 15:30:28 -0500
commitfb4105a46cc4147c6d55c66002482a761aa42caf (patch)
treeace22fc6bd0d17fdfebf48527f798d3543f72174 /packages/web/src/styles/custom.css
parent7abc3e9794754d4dd026d859b119d32892247a8f (diff)
downloadopencode-fb4105a46cc4147c6d55c66002482a761aa42caf.tar.gz
opencode-fb4105a46cc4147c6d55c66002482a761aa42caf.zip
docs: fix Ctrl+K styling in documentation (#3021)
Diffstat (limited to 'packages/web/src/styles/custom.css')
-rw-r--r--packages/web/src/styles/custom.css24
1 files changed, 15 insertions, 9 deletions
diff --git a/packages/web/src/styles/custom.css b/packages/web/src/styles/custom.css
index 8a0999032..e947f1f18 100644
--- a/packages/web/src/styles/custom.css
+++ b/packages/web/src/styles/custom.css
@@ -85,14 +85,20 @@ nav.sidebar summary svg.caret {
color: var(--color-icon) !important;
}
-body > .page > header button[data-open-modal] > kbd kbd {
- color: var(--color-icon) !important;
- font-size: 16px !important;
+/* Search button style overrides */
+body > .page > header button[data-open-modal] > kbd {
+ position: relative;
display: flex;
+ gap: 4px;
}
-
-body > .page > header button[data-open-modal] > kbd kbd:first-child {
- font-size: 20px !important;
+body > .page > header button[data-open-modal] > kbd > kbd {
+ color: var(--color-icon) !important;
+ font-size: 15px;
+}
+/* Make the Cmd (⌘) keystroke bigger */
+body > .page > header button[data-open-modal][aria-keyshortcuts="Meta+K"] > kbd > kbd:first-child {
+ font-size: 20px;
+ line-height: 0.73;
}
.starlight-aside__title {
@@ -101,7 +107,7 @@ body > .page > header button[data-open-modal] > kbd kbd:first-child {
}
body > .page > .main-frame .main-pane > main > .content-panel + .content-panel {
- border-top: none !important;
+ border-top: none !important;
}
body > .page > header a.site-title img {
@@ -186,10 +192,10 @@ site-search > button {
}
body > .page > header button[data-open-modal] {
- gap: 24px !important;
+ gap: 12px !important;
background: var(--color-background-weak);
border: 1px solid var(--color-border-weak) !important;
- padding: 6px 16px !important;
+ padding: 6px 12px !important;
border-radius: 4px;
@media (prefers-color-scheme: dark) {