Skip to content

Commit

Permalink
doc: improve kbd element rendering
Browse files Browse the repository at this point in the history
* better vertical alignment with text
* slightly larger "key" size
* remove top light area (from box-shadow)

PR-URL: #35497
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Trott committed Oct 8, 2020
1 parent 0f41bca commit ce84bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -576,14 +576,14 @@ kbd {
background-color: #eee;
border-radius: 3px;
border: 1px solid #b4b4b4;
box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
color: #333;
display: inline-block;
font-size: .85em;
font-weight: 700;
line-height: 1;
padding: 2px 4px;
white-space: nowrap;
vertical-align: middle;
}

.changelog > summary {
Expand Down

0 comments on commit ce84bac

Please sign in to comment.