Skip to content

Commit cd226c0

Browse files
committed
doc: adopt MDN style for kbd elements
PR-URL: #35460 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6467d1d commit cd226c0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

doc/api_assets/style.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,18 @@ td > *:last-child {
573573
}
574574

575575
kbd {
576-
font-size: 1.2em;
577-
font-weight: 700;
576+
background-color: #eee;
578577
border-radius: 3px;
579-
padding: 1px 2px 0;
580-
border: 1px solid black;
581-
}
578+
border: 1px solid #b4b4b4;
579+
box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
580+
color: #333;
581+
display: inline-block;
582+
font-size: .85em;
583+
font-weight: 700;
584+
line-height: 1;
585+
padding: 2px 4px;
586+
white-space: nowrap;
587+
}
582588

583589
.changelog > summary {
584590
margin: .5rem 0;

0 commit comments

Comments
 (0)