浏览代码

Add styles for inline code tags

Louis Hoebregts 6 年之前
父节点
当前提交
e78e43f96f
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      docs/page.css

+ 8 - 1
docs/page.css

@@ -92,7 +92,7 @@ body {
 
 
 table,
 table,
 pre,
 pre,
-code {
+code:not(.inline) {
 	margin-left: -24px;
 	margin-left: -24px;
 	margin-right: -24px;
 	margin-right: -24px;
 	margin-top: 20px;
 	margin-top: 20px;
@@ -133,6 +133,13 @@ code {
 	box-sizing: border-box;
 	box-sizing: border-box;
 }
 }
 
 
+code.inline {
+	display: inline-block;
+	vertical-align: middle;
+	border-radius: 4px;
+	padding: 2px 5px;
+}
+
 iframe {
 iframe {
 	width: 100%;
 	width: 100%;
 	height: 420px;
 	height: 420px;