Skip to content

Commit 3e6dd06

Browse files
fixed kbd tag in dark mode
1 parent a1603a6 commit 3e6dd06

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Diff for: themes/hugoplate/assets/css/module-overrides.css

+31
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,34 @@ code {
6363
color: #f8f8f2 !important;
6464
}
6565
}
66+
67+
kbd {
68+
/* Basic styling */
69+
display: inline-block;
70+
padding: 3px 5px;
71+
font:
72+
11px "SFMono-Regular",
73+
Consolas,
74+
"Liberation Mono",
75+
Menlo,
76+
monospace;
77+
line-height: 10px;
78+
vertical-align: middle;
79+
border-radius: 3px;
80+
81+
/* Light mode */
82+
color: #444d56;
83+
background-color: #fafbfc;
84+
border: 1px solid #d1d5da;
85+
box-shadow: inset 0 -1px 0 #d1d5da;
86+
}
87+
88+
/* Dark mode */
89+
@media (prefers-color-scheme: dark) {
90+
kbd {
91+
color: #c9d1d9;
92+
background-color: #2f3439;
93+
border: 1px solid #6e7681;
94+
box-shadow: inset 0 -1px 0 #6e7681;
95+
}
96+
}

0 commit comments

Comments
 (0)