Skip to content

Commit 4ec1252

Browse files
usernamehwmjbvz
authored andcommitted
Add default styles for <kbd> tags (microsoft#83300)
1 parent 3c0709e commit 4ec1252

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

  • src/vs/workbench/contrib/webview/browser/pre

src/vs/workbench/contrib/webview/browser/pre/main.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@
9191
border-color: var(--vscode-textBlockQuote-border);
9292
}
9393
94+
kbd {
95+
color: var(--vscode-editor-foreground);
96+
border-radius: 3px;
97+
vertical-align: middle;
98+
padding: 1px 3px;
99+
100+
background-color: hsla(0,0%,50%,.17);
101+
border: 1px solid rgba(71,71,71,.4);
102+
border-bottom-color: rgba(88,88,88,.4);
103+
box-shadow: inset 0 -1px 0 rgba(88,88,88,.4);
104+
}
105+
.vscode-light kbd {
106+
background-color: hsla(0,0%,87%,.5);
107+
border: 1px solid hsla(0,0%,80%,.7);
108+
border-bottom-color: hsla(0,0%,73%,.7);
109+
box-shadow: inset 0 -1px 0 hsla(0,0%,73%,.7);
110+
}
111+
94112
::-webkit-scrollbar {
95113
width: 10px;
96114
height: 10px;

0 commit comments

Comments
 (0)