瀏覽代碼

apply color for code element

Yohei-Shiina 3 年之前
父節點
當前提交
f234b7c5e8
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      packages/app/src/styles/theme/_apply-colors.scss

+ 8 - 0
packages/app/src/styles/theme/_apply-colors.scss

@@ -49,6 +49,14 @@ $theme-colors: map-merge($theme-colors, ( primary: $primary ));
 // determine variables with bootstrap function (These variables can be used after importing bootstrap above)
 // determine variables with bootstrap function (These variables can be used after importing bootstrap above)
 $color-modal-header: color-yiq($primary) !default;
 $color-modal-header: color-yiq($primary) !default;
 
 
+:not(pre) {
+  > code {
+    color: $color-inline-code;
+    background-color: $bgcolor-inline-code;
+    border-color: $bordercolor-inline-code;
+  }
+}
+
 .code-inline {
 .code-inline {
   color: $color-inline-code;
   color: $color-inline-code;
   background-color: $bgcolor-inline-code;
   background-color: $bgcolor-inline-code;