]> BookStack Code Mirror - bookstack/blobdiff - resources/views/partials/custom-styles.blade.php
Fixes #354, Adds the spellchecker option
[bookstack] / resources / views / partials / custom-styles.blade.php
index 4d3d0a6ef7cdcafb8c3783346228f80a8584beae..62bcc881fc3206f005f3bdad614cdf87e4235aa1 100644 (file)
@@ -1,22 +1,20 @@
-@if(Setting::get('app-color'))
-    <style>
-        header, #back-to-top, .primary-background {
-            background-color: {{ Setting::get('app-color') }};
-        }
-        .faded-small, .primary-background-light {
-            background-color: {{ Setting::get('app-color-light') }};
-        }
-        .button-base, .button, input[type="button"], input[type="submit"] {
-            background-color: {{ Setting::get('app-color') }};
-        }
-        .button-base:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover, .button:focus {
-            background-color: {{ Setting::get('app-color') }};
-        }
-        .nav-tabs a.selected, .nav-tabs .tab-item.selected {
-            border-bottom-color: {{ Setting::get('app-color') }};
-        }
-        p.primary:hover, p .primary:hover, span.primary:hover, .text-primary:hover, a, a:hover, a:focus, .text-button, .text-button:hover, .text-button:focus {
-            color: {{ Setting::get('app-color') }};
-        }
-    </style>
-@endif
\ No newline at end of file
+<style id="custom-styles" data-color="{{ setting('app-color') }}" data-color-light="{{ setting('app-color-light') }}">
+    header, #back-to-top, .primary-background {
+        background-color: {{ setting('app-color') }} !important;
+    }
+    .faded-small, .primary-background-light {
+        background-color: {{ setting('app-color-light') }};
+    }
+    .button-base, .button, input[type="button"], input[type="submit"] {
+        background-color: {{ setting('app-color') }};
+    }
+    .button-base:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover, .button:focus {
+        background-color: {{ setting('app-color') }};
+    }
+    .nav-tabs a.selected, .nav-tabs .tab-item.selected {
+        border-bottom-color: {{ setting('app-color') }};
+    }
+    .text-primary, p.primary, p .primary, span.primary:hover, .text-primary:hover, a, a:hover, a:focus, .text-button, .text-button:hover, .text-button:focus {
+        color: {{ setting('app-color') }};
+    }
+</style>
\ No newline at end of file