Skip to content

Commit 176624f

Browse files
committed
add kbd style tag to main.css in rustdoc
1 parent de38f49 commit 176624f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+14
Original file line numberDiff line numberDiff line change
@@ -1107,3 +1107,17 @@ h3.important {
11071107
left: -42px;
11081108
margin-top: 2px;
11091109
}
1110+
1111+
kbd {
1112+
display: inline-block;
1113+
padding: 3px 5px;
1114+
font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
1115+
line-height: 10px;
1116+
color: #444d56;
1117+
vertical-align: middle;
1118+
background-color: #fafbfc;
1119+
border: solid 1px #d1d5da;
1120+
border-bottom-color: #c6cbd1;
1121+
border-radius: 3px;
1122+
box-shadow: inset 0 -1px 0 #c6cbd1;
1123+
}

0 commit comments

Comments
 (0)