Skip to content

Commit

Permalink
doc: adopt MDN style for kbd elements
Browse files Browse the repository at this point in the history
PR-URL: #35460
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and danielleadams committed Oct 6, 2020
1 parent f499302 commit 885840b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -573,12 +573,18 @@ td > *:last-child {
}

kbd {
font-size: 1.2em;
font-weight: 700;
background-color: #eee;
border-radius: 3px;
padding: 1px 2px 0;
border: 1px solid black;
}
border: 1px solid #b4b4b4;
box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
color: #333;
display: inline-block;
font-size: .85em;
font-weight: 700;
line-height: 1;
padding: 2px 4px;
white-space: nowrap;
}

.changelog > summary {
margin: .5rem 0;
Expand Down

0 comments on commit 885840b

Please sign in to comment.