Skip to content

Commit 7c6f10b

Browse files
author
DMZTdhruv
committed
Fixed css values by using variables
1 parent 7ea7765 commit 7c6f10b

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

web/style.css

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ input[type="range"]::-ms-fill-upper {
217217
text-align: center;
218218
}
219219

220+
220221
.button:hover {
221-
background-color: var(--surface1);
222222
background-size: 10px 10px;
223223
background-image: repeating-linear-gradient(
224224
45deg,
@@ -231,19 +231,38 @@ input[type="range"]::-ms-fill-upper {
231231

232232
@media (prefers-color-scheme: dark) {
233233
.button:hover {
234-
background-color: #1e1e2e;
235234
opacity: 1;
236235
background-size: 10px 10px;
237236
background-image: repeating-linear-gradient(
238237
45deg,
239-
#585b70 0,
240-
#585b70 1px,
241-
#1e1e2e 0,
242-
#1e1e2e 50%
238+
var(--surface1) 0,
239+
var(--surface1) 1px,
240+
var(--base) 0,
241+
var(--base) 50%
243242
);
244243
}
245244
}
246245

246+
.theme-btn {
247+
display: flex;
248+
gap: 5px;
249+
align-items: center;
250+
font-family: monospace;
251+
color: var(--text);
252+
background-color: transparent;
253+
margin-left: 20px ;
254+
border: none;
255+
opacity: 0.6;
256+
}
257+
258+
.theme-btn:hover {
259+
opacity: 1;
260+
}
261+
262+
.theme-icon path {
263+
fill: var(--text);
264+
}
265+
247266
.button.button-active,
248267
.button:active {
249268
background: var(--text) !important;

0 commit comments

Comments
 (0)