]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_mixins.scss
Updated attachment links to have dropdown for open type
[bookstack] / resources / sass / _mixins.scss
index 8a6becf6b70746131a0e54b05545b4bc288721f9..0a419c08abdeb1372e331277fcd157394d100918 100644 (file)
   html[dir=rtl] & {
     @content;
   }
+}
+
+// Define a property for both light and dark mode
+@mixin lightDark($prop, $light, $dark, $important: false) {
+  #{$prop}: if($important, $light !important, $light);
+  html.dark-mode & {
+    #{$prop}: if($important, $dark !important, $dark);
+  }
+}
+
+@mixin whenDark {
+    html.dark-mode & {
+      @content;
+    }
 }
\ No newline at end of file