-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdarkmode.css
More file actions
65 lines (56 loc) · 1.23 KB
/
Copy pathdarkmode.css
File metadata and controls
65 lines (56 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
body.dark-mode {
background-color: #181820;
background-image: url("/images/bg-pattern-top-desktop.svg"),
url("/images/bg-pattern-bottom-desktop.svg");
/* keep purple theme, just darken background */
}
body.dark-mode .container {
background: none;
}
body.dark-mode .header-content,
body.dark-mode .rating-container,
body.dark-mode .reviews {
/* no change, keep purple theme */
}
body.dark-mode .rating-review,
body.dark-mode .rating-guru,
body.dark-mode .rating-tech {
background-color: #222;
color: #fff;
}
body.dark-mode .rating-text {
color: #fff;
}
body.dark-mode .title h1 {
color: #fff;
}
.dark-mode-toggle-container {
position: absolute;
top: 2rem;
right: 2rem;
z-index: 100;
}
#dark-mode-toggle {
background: #fff;
color: #222;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
font-size: 1.5rem;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: background 0.2s, color 0.2s;
}
body.dark-mode #dark-mode-toggle {
background: #222;
color: #fff;
}
@media (max-width: 768px) {
.dark-mode-toggle-container {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 100;
}
}