Explorar el Código

apply color for code element

Yohei-Shiina hace 3 años
padre
commit
f234b7c5e8
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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)
 $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 {
   color: $color-inline-code;
   background-color: $bgcolor-inline-code;