Skip to content

Commit

Permalink
feat: add styles for kbd (#34)
Browse files Browse the repository at this point in the history
* feat: add styles for kbd

* feat: add kbd styling

Co-authored-by: Yangshun Tay <[email protected]>
  • Loading branch information
lex111 and yangshun authored May 17, 2020
1 parent 79ec029 commit bfad521
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/core/styles/content/code.css
Original file line number Diff line number Diff line change
@@ -23,6 +23,10 @@ code {
padding: var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal);
}

a code {
color: inherit;
}

pre {
background-color: var(--ifm-pre-background);
border-radius: var(--ifm-pre-border-radius);
@@ -52,6 +56,12 @@ pre {
}
}

a code {
color: inherit;
kbd {
background-color: var(--ifm-color-emphasis-0);
border: 1px solid var(--ifm-color-emphasis-400);
border-radius: 0.2rem;
box-shadow: inset 0 -1px 0 var(--ifm-color-emphasis-400);
color: var(--ifm-color-emphasis-800);
font: 80% var(--ifm-font-family-monospace);
padding: 0.15rem 0.3rem;
}

0 comments on commit bfad521

Please sign in to comment.