summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-material/htdocs/luci-static/material/custom.css
diff options
context:
space:
mode:
authorDaniel Nilsson <daniel.nilsson94@outlook.com>2024-03-21 18:37:15 +0100
committerDaniel Nilsson <daniel.nilsson94@outlook.com>2024-03-22 12:28:29 +0100
commiteeddf40ac97fd7e6d1e4a82ef42ea2bbbc5fca86 (patch)
tree1dce6513a7054913139b96c8cf3349e035b09082 /themes/luci-theme-material/htdocs/luci-static/material/custom.css
parent79436167ea6ad00374d3bfe77b265ee723445495 (diff)
luci-theme-material: add back removed color variables
Partially reverts 2bdabf14c30320ef0433828b1a080f6b8fe9c430 by adding back the deleted color variables as the custom.css was used by users to override the theme with their own colors. To maintain backwards compatibility with users we should not remove/rename these as it will result in colors being applied incorrectly. Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
Diffstat (limited to 'themes/luci-theme-material/htdocs/luci-static/material/custom.css')
-rw-r--r--themes/luci-theme-material/htdocs/luci-static/material/custom.css19
1 files changed, 18 insertions, 1 deletions
diff --git a/themes/luci-theme-material/htdocs/luci-static/material/custom.css b/themes/luci-theme-material/htdocs/luci-static/material/custom.css
index b9ad8bbeb8..704df80d8d 100644
--- a/themes/luci-theme-material/htdocs/luci-static/material/custom.css
+++ b/themes/luci-theme-material/htdocs/luci-static/material/custom.css
@@ -1,3 +1,10 @@
+/**
+ The CSS variables in this file should be treated as a public API. The
+ colors have been put in a separate file to allow end users to
+ override the color variables with their own values by creating their
+ own custom.css file, which mean we can't delete/rename defined
+ variables which is already used in cascade.css.
+*/
:root {
/** General colors */
--white-color: #ffffff;
@@ -22,9 +29,19 @@
--light-blue-color-high: #46b8da;
--on-light-blue-color: var(--white-color);
- --primary-color: #00B5E2;
+ --main-color: #00B5E2;
--secondary-color: #0099cc;
+ --header-bg: #00B5E2;
+ --header-color: #fff;
+ --bar-bg: #5bc0de;
+ --menu-bg-color: #fff;
+ --menu-color: #5f6368;
+ --menu-color-hover: #202124;
+ --main-menu-color: #202124;
+ --submenu-bg-hover: #d4d4d4;
+ --submenu-bg-hover-active: #00B5E2;
+
--notice-color: #002B49;
--on-notice-color: var(--white-color);