-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.css
85 lines (74 loc) · 1.66 KB
/
popup.css
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* Define global variables for light and dark themes */
:root {
--bg-light: white;
--text-light: black;
--button-light: #007bff;
--button-hover-light: #0056b3;
--bg-dark: #2a2a2a;
--text-dark: white;
--button-dark: #485fc7;
--button-hover-dark: #1565c0;
}
/* Base Styles */
body#popupBody {
font-family: Arial, sans-serif;
padding: 10px;
align-items: center;
text-align: center;
justify-items: center;
width: 200px;
/* Default light mode */
background-color: var(--bg-light);
color: var(--text-light);
}
#customizationsForm {
color: var(--text-light);
text-align: left;
display: flex;
font-size: 1rem;
flex-direction: column;
/* align-items: left; */
align-items: center;
}
#customizationsForm label{
width: 100%;
}
h4 {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}
button {
padding: 5px 10px;
margin: 5px 0;
width: 10rem;
border-radius: 20px;
background-color: var(--button-light);
/* Default light mode button */
color: var(--text-light);
/* Button text matches theme */
border: none;
cursor: pointer;
font-size: 0.90rem;
}
button:hover {
background-color: var(--button-hover-light);
}
/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
body#popupBody {
background-color: var(--bg-dark);
color: var(--text-dark);
}
button {
background-color: var(--button-dark);
color: var(--text-dark);
}
button:hover {
background-color: var(--button-hover-dark);
}
#customizationsForm {
color: var(--text-dark);
}
}