]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix the chroma fix and use Sass more.
authorXhmikosR <xhmikosr@gmail.com>
Wed, 27 Feb 2019 11:37:08 +0000 (13:37 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 13 Mar 2019 17:22:59 +0000 (19:22 +0200)
site/static/docs/4.3/assets/scss/_syntax.scss

index 7024b6941bccaf2f17955e966dd80bb04dd7a211..c6e7e60462379416f2794c6db6725a751e982e4d 100644 (file)
 /* LiteralStringOther */ .chroma .sx { color: #c30; }
 /* TextWhitespace */ .chroma .w { color: #bbb; }
 
-.chroma .language-bash::before,
-.chroma .language-sh::before {
-  color: #009;
-  content: "$ ";
-  user-select: none;
-}
+.chroma {
+  .language-bash,
+  .language-sh {
+    &::before {
+      color: #009;
+      content: "$ ";
+      user-select: none;
+    }
 
-.chroma .language-bash .m,
-.chroma .language-sh .m {
-  color: initial;
-}
+    // This is just to work around a Chroma bug;
+    // should be removed when fixed upstream
+    .m {
+      color: inherit;
+    }
+  }
 
-.chroma .language-powershell::before {
-  color: #009;
-  content: "PM> ";
-  user-select: none;
+  .language-powershell::before {
+    color: #009;
+    content: "PM> ";
+    user-select: none;
+  }
 }