about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarcel Hellwig <921462+hellow554@users.noreply.github.com>2017-12-21 17:10:45 +0100
committerMarcel Hellwig <git@cookiesoft.de>2017-12-22 06:42:11 +0100
commit176624fb4bcc7702a2a0cd859fccc3dec8e2f1ae (patch)
tree9111c4420ca3c2dc12bd0e951ae01991de901e8e
parentde38f49528b537414385d42a66dda711c8c8a309 (diff)
downloadrust-176624fb4bcc7702a2a0cd859fccc3dec8e2f1ae.tar.gz
rust-176624fb4bcc7702a2a0cd859fccc3dec8e2f1ae.zip
add kbd style tag to main.css in rustdoc
-rw-r--r--src/librustdoc/html/static/rustdoc.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index e620abea277..c5d1ced0db9 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1107,3 +1107,17 @@ h3.important {
 	left: -42px;
 	margin-top: 2px;
 }
+
+kbd {
+	display: inline-block;
+	padding: 3px 5px;
+	font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+	line-height: 10px;
+	color: #444d56;
+	vertical-align: middle;
+	background-color: #fafbfc;
+	border: solid 1px #d1d5da;
+	border-bottom-color: #c6cbd1;
+	border-radius: 3px;
+	box-shadow: inset 0 -1px 0 #c6cbd1;
+}