From 7c6f10b3c12b696828b13f18a5b84518e44f3294 Mon Sep 17 00:00:00 2001 From: DMZTdhruv Date: Fri, 9 Aug 2024 19:31:08 +0530 Subject: [PATCH] Fixed css values by using variables --- web/style.css | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/web/style.css b/web/style.css index 6184892..541a6f6 100644 --- a/web/style.css +++ b/web/style.css @@ -217,8 +217,8 @@ input[type="range"]::-ms-fill-upper { text-align: center; } + .button:hover { - background-color: var(--surface1); background-size: 10px 10px; background-image: repeating-linear-gradient( 45deg, @@ -231,19 +231,38 @@ input[type="range"]::-ms-fill-upper { @media (prefers-color-scheme: dark) { .button:hover { - background-color: #1e1e2e; opacity: 1; background-size: 10px 10px; background-image: repeating-linear-gradient( 45deg, - #585b70 0, - #585b70 1px, - #1e1e2e 0, - #1e1e2e 50% + var(--surface1) 0, + var(--surface1) 1px, + var(--base) 0, + var(--base) 50% ); } } +.theme-btn { + display: flex; + gap: 5px; + align-items: center; + font-family: monospace; + color: var(--text); + background-color: transparent; + margin-left: 20px ; + border: none; + opacity: 0.6; +} + +.theme-btn:hover { + opacity: 1; +} + +.theme-icon path { + fill: var(--text); +} + .button.button-active, .button:active { background: var(--text) !important;