Repository navigation
Expand file tree
/
Copy paththeme.css
More file actions
173 lines (158 loc) · 4.25 KB
/
Copy paththeme.css
File metadata and controls
173 lines (158 loc) · 4.25 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/* SimpleCookie, a minimalist yet efficient cookie manager for Firefox */
/* Made with ❤ by micka from Paris */
/* Shared theme for create.html and settings.html — these two pages used to */
/* each keep their own copy of these rules, which is exactly the kind of */
/* drift common.js's own header comment warns about for JS: change a color */
/* in one file and forget the other. Centralizing them here removes that */
/* risk. Page-specific styles (form inputs, settings toggles, etc.) stay in */
/* each page's own <style> block. */
/* CSS Variables for theming */
:root {
/* Light theme (default) */
--primary-color: #05A55D;
--text-color: #333;
--light-gray: #f5f5f5;
--border-color: #e0e0e0;
--success-color: #34A853;
--error-color: #EA4335;
--background-color: #FFFFFF;
--input-background: #FFFFFF;
--input-border: #e0e0e0;
--section-background: #FFFFFF;
--message-success-bg: #E8F5E9;
--message-success-color: #1B5E20;
--message-error-bg: #FFEBEE;
--message-error-color: #B71C1C;
--button-hover: #EE2E91;
--icon-opacity: 0.15;
--close-button-color: #666;
--close-button-hover: rgba(0,0,0,0.05);
}
/* Dark theme */
[data-theme="dark"] {
--primary-color: #05A55D;
--text-color: #FCFCFF;
--light-gray: #2A2A35;
--border-color: #4D4D57;
--success-color: #34A853;
--error-color: #F28B82;
--background-color: #23222B;
--input-background: #33323D;
--input-border: #4D4D57;
--section-background: #33323D;
--message-success-bg: #143A24;
--message-success-color: #7AE28C;
--message-error-bg: #4C1B1A;
--message-error-color: #F5AEA6;
--button-hover: #FF5DB1;
--icon-opacity: 0.25;
--close-button-color: #aaa;
--close-button-hover: rgba(255,255,255,0.1);
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
margin: 0;
padding: 0;
color: var(--text-color);
background-color: var(--background-color);
line-height: 1.6;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 30px 20px;
}
h1 {
font-family: 'Poppins', sans-serif;
font-size: 25px;
font-weight: 400;
margin-bottom: 25px;
color: var(--primary-color);
padding-bottom: 10px;
position: relative;
letter-spacing: -0.5px;
}
.header-container {
position: relative;
margin-bottom: 30px;
}
.background-icon {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 45px;
height: 45px;
opacity: var(--icon-opacity);
background-image: url('resources/96.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.section {
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 15px 20px;
margin-bottom: 35px;
margin-top: 15px;
position: relative;
background-color: var(--section-background);
}
.section-title {
font-size: 15px;
font-weight: 500;
color: var(--primary-color);
position: absolute;
top: -22px;
left: 15px;
background-color: var(--background-color);
padding: 3px 12px;
border-radius: 4px;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
border: 1px solid var(--border-color);
}
#messageBox {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 15px 25px;
border-radius: 4px;
display: none;
font-size: 14px;
z-index: 1000;
max-width: 80%;
text-align: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.success-message {
background-color: var(--message-success-bg);
border-left: 4px solid var(--success-color);
color: var(--message-success-color);
}
.error-message {
background-color: var(--message-error-bg);
border-left: 4px solid var(--error-color);
color: var(--message-error-color);
}
#closeMessage {
position: absolute;
top: 5px;
right: 5px;
background: none;
border: none;
color: var(--close-button-color);
font-size: 18px;
cursor: pointer;
padding: 0;
margin: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
#closeMessage:hover {
background-color: var(--close-button-hover);
}