|
|
@@ -1,21 +1,28 @@
|
|
|
@import '../variables';
|
|
|
|
|
|
-/*===
|
|
|
- * Define colors
|
|
|
- */
|
|
|
+// == Define colors
|
|
|
+//
|
|
|
+
|
|
|
+// colors for overriding bootstrap $theme-colors
|
|
|
+$grw-primary: #112744;
|
|
|
+// $grw-info: #;
|
|
|
+// $grw-success: #;
|
|
|
+// $grw-warning: #;
|
|
|
+// $grw-danger: #;
|
|
|
+// $grw-light: #;
|
|
|
+// $grw-dark: #;
|
|
|
|
|
|
// Background colors
|
|
|
$bgcolor-global: white;
|
|
|
-$bgcolor-theme: #112744;
|
|
|
$bgcolor-navbar: #334455;
|
|
|
$bgcolor-inline-code: #f9f2f4;
|
|
|
|
|
|
// Font colors
|
|
|
$color-global: #333333;
|
|
|
$color-header: #2b2b2b;
|
|
|
-$color-link: lighten($bgcolor-theme, 20%);
|
|
|
+$color-link: lighten($grw-primary, 20%);
|
|
|
$color-link-hover: lighten($color-link, 20%);
|
|
|
-$color-link-wiki: lighten($bgcolor-theme, 20%);
|
|
|
+$color-link-wiki: lighten($grw-primary, 20%);
|
|
|
$color-link-wiki-hover: lighten($color-link-wiki, 20%);
|
|
|
$color-inline-code: #c7254e;
|
|
|
|
|
|
@@ -27,18 +34,22 @@ $border: #f0f0f0;
|
|
|
$navbar-border: #ccc;
|
|
|
$active-navbar-border: lighten($navbar-border, 10%);
|
|
|
|
|
|
-// override Bootstrap 4 theme colors
|
|
|
-$theme-colors: (
|
|
|
- 'primary': $bgcolor-theme,
|
|
|
-);
|
|
|
+// light mode colors
|
|
|
+@media (prefers-color-scheme: no-preference), (prefers-color-scheme: light) {
|
|
|
+ $grw-secondary: #ccc;
|
|
|
+}
|
|
|
+
|
|
|
+// dark mode colors
|
|
|
+@media (prefers-color-scheme: dark) {
|
|
|
+}
|
|
|
+
|
|
|
+//== Apply
|
|
|
+//
|
|
|
|
|
|
-// apply
|
|
|
@import 'apply-colors';
|
|
|
+
|
|
|
// apply for no-preference or light mode
|
|
|
@media (prefers-color-scheme: no-preference), (prefers-color-scheme: light) {
|
|
|
- $theme-colors: (
|
|
|
- 'secondary': #ddd,
|
|
|
- );
|
|
|
@import 'apply-colors-light';
|
|
|
}
|
|
|
// apply for dark mode
|