浏览代码

refactor(ui): clean up css nesting

Andelf 3 年之前
父节点
当前提交
ccc37e961d
共有 1 个文件被更改,包括 8 次插入15 次删除
  1. 8 15
      resources/css/common.css

+ 8 - 15
resources/css/common.css

@@ -1078,36 +1078,29 @@ mark {
 }
 
 /* inline code */
-:not(pre):not(mark) > code {
+:not(pre) > code {
   border-radius: 3px;
   font-size: 0.9em;
+  font-style: normal;
   font-family: MonoLisa, 'Fira Code', Monaco, Menlo, Consolas, 'COURIER NEW',
     monospace;
-  padding: 3px 5px !important;
+  letter-spacing: 0;
+  word-spacing: -0.15em;
+  text-rendering: optimizeSpeed;
 }
 
 :not(pre):not(mark) > code {
-  font-style: normal;
-  letter-spacing: 0;
-  word-spacing: -0.15em;
-  -webkit-border-radius: var(--ls-border-radius-low);
-  border-radius: var(--ls-border-radius-low);
   line-height: 1.45;
-  text-rendering: optimizeSpeed;
+  padding: 3px 5px !important;
+  border-radius: var(--ls-border-radius-low);
+  -webkit-border-radius: var(--ls-border-radius-low);
 }
 
 mark > code {
-  font-style: normal;
-  letter-spacing: 0;
   padding: 0;
-  word-spacing: -0.15em;
   line-height: inherit !important;
-  text-rendering: optimizeSpeed;
   background: #fef3ac !important;
   color: #262626 !important;
-  font-size: 0.9em;
-  font-family: MonoLisa, 'Fira Code', Monaco, Menlo, Consolas, 'COURIER NEW',
-    monospace;
 }
 
 b > code {