]> git.ipfire.org Git - ipfire.org.git/commitdiff
CSS: Make code elements dark
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 May 2019 11:48:25 +0000 (12:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 May 2019 11:48:25 +0000 (12:48 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scss/_variables.scss
src/scss/style.scss

index c4ed83fa2b2dbc4491b0833eff3d11f3e9083100..723612cb8eb9f81bf9c4bb4393aa42564f2e79c1 100644 (file)
@@ -27,6 +27,8 @@ $theme-colors: (
 
 $body-bg:                                      $dark;
 $body-color:                           $white;
+$code-color:                           $white;
+$pre-color:                                    $white;
 
 // Breakpoints
 $grid-breakpoints: (
index c0280318b807785ffdb44d090da4be0fefb813e6..e183595b5e1aa9d11fbb06a55a534b48f54c6046 100644 (file)
@@ -63,6 +63,23 @@ body {
        }
 }
 
+code {
+       background-color: $dark;
+       border-radius: $border-radius;
+       padding: 0.1rem 0.2rem;
+}
+
+pre {
+       background-color: $dark;
+       border-radius: $border-radius;
+       padding: 0.5rem;
+
+       code {
+               background-color: inherit;
+               padding: 0;
+       }
+}
+
 .card {
        @extend .inverse;