-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcalendario.css
More file actions
322 lines (281 loc) · 7.01 KB
/
calendario.css
File metadata and controls
322 lines (281 loc) · 7.01 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #121212;
overflow: hidden;
position: relative; /* Adicionado: Essencial para posicionar o botão de voltar */
}
.background-glow {
position: absolute;
left: -150px;
top: -150px;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(0, 201, 0, 0.5) 0%, rgba(168, 85, 247, 0) 70%);
filter: blur(50px);
z-index: 1;
}
.app-container {
display: flex;
gap: 40px;
z-index: 2;
/* Se o back-button estiver dentro de .app-container,
este também precisaria de position: relative; */
}
.calendar-container {
width: 450px;
background: rgba(40, 40, 40, 0.4);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #fff;
padding: 25px 30px;
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 20px;
}
.calendar-header .current-date {
font-size: 1.4rem;
font-weight: 500;
}
.calendar-header .nav-arrow {
width: 38px;
height: 38px;
line-height: 38px;
text-align: center;
font-size: 1.2rem;
color: #aeaeae;
cursor: pointer;
border-radius: 50%;
transition: background 0.2s ease;
}
.nav-arrow:hover {
background: rgba(255, 255, 255, 0.1);
}
.calendar-header .icons {
display: flex;
gap: 10px;
}
.calendar-body {
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.calendar-body ul {
list-style: none;
display: flex;
flex-wrap: wrap;
text-align: center;
}
.calendar-body .weeks li {
width: calc(100% / 7);
font-weight: 500;
color: #999;
font-size: 0.9rem;
}
.calendar-body .days {
margin-top: 20px;
}
.calendar-body .days li {
width: calc(100% / 7);
margin-bottom: 15px;
font-weight: 300;
position: relative;
cursor: pointer;
z-index: 1;
}
.days li.inactive {
color: #555;
cursor: default;
}
.days li.active {
font-weight: 600;
}
.days li::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
border-radius: 50%;
z-index: -1;
transition: background-color 0.3s;
}
.days li:hover::before {
background-color: rgba(255, 255, 255, 0.1);
}
.days li.active::before {
background-color: #4CAF50;
}
/* Círculo de aviso para dias com lembrete */
.days li.has-reminder::after {
content: '';
position: absolute;
bottom: 5px;
left: 50%;
transform: translateX(-50%);
width: 6px;
height: 6px;
background-color: #53a3e8;
border-radius: 50%;
}
/* Área de notas */
.note-area {
width: 300px;
padding: 25px;
background: rgba(40, 40, 40, 0.4);
border-radius: 16px;
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.1);
}
#note-title {
font-size: 1.4rem;
font-weight: 500;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#note-body {
margin-top: 15px;
font-size: 1rem;
font-weight: 300;
color: #ccc;
white-space: pre-wrap; /* Mantém as quebras de linha do texto */
}
/* Estilos do Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show {
opacity: 1;
visibility: visible;
}
.modal-content {
background: #2a2a2a;
padding: 30px;
border-radius: 16px;
width: 400px;
color: #fff;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content h3 {
font-size: 1.5rem;
}
.modal-content p {
font-size: 1rem;
color: #ccc;
margin-bottom: 20px;
}
#reminder-text {
width: 100%;
height: 120px;
background: #1e1e1e;
border: 1px solid #444;
border-radius: 8px;
padding: 10px;
color: #fff;
font-family: 'Poppins', sans-serif;
resize: none;
margin-bottom: 20px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
}
.modal-actions button {
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
transition: background-color 0.2s;
}
#save-reminder {
background-color: #53a3e8;
color: #fff;
}
#save-reminder:hover { background-color: #4a92d0; }
#delete-reminder {
background-color: #e85353;
color: #fff;
}
#delete-reminder:hover { background-color: #d04a4a; }
#close-modal {
background-color: #555;
color: #fff;
}
#close-modal:hover { background-color: #444; }
/* Estilo para o botão de voltar */
#back-button {
background-color: #d8d8d8;
color: var(--button-text-color, #333); /* Usar uma fallback caso a variável não exista */
border: none;
padding: 0.75rem 1.25rem;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
display: flex; /* Para alinhar o ícone e o texto */
align-items: center;
gap: 8px; /* Espaçamento entre o ícone e o texto */
transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Adicionado box-shadow na transição */
/* Posicionamento absoluto no canto superior esquerdo */
position: absolute;
left: 1.5rem; /* Distância da borda esquerda */
top: 1.5rem; /* Distância da borda superior */
z-index: 10; /* Garante que fique acima de outros elementos */
}
#back-button:hover {
background-color: white;
box-shadow: 0 2px 5px rgba(18, 18, 18, 0.2); /* Corrigido: Adiciona uma sombra funcional */
}
#back-button .icon {
width: 20px; /* Tamanho do ícone */
height: 20px;
color: var(--button-icon-color, var(--button-text-color, #333)); /* Cor do ícone com fallbacks */
}
/* Certifique-se que o grupo de botões está bem alinhado */
/* Nota: Este seletor pode não ser relevante se o back-button não estiver neste grupo */
.header-buttons-group {
display: flex;
align-items: center;
gap: 15px; /* Espaçamento entre os botões */
}
/* Estilos para o Modal de Mensagem */
.modal-message-text {
text-align: center;
margin-bottom: 20px;
font-size: 1.1em;
color: var(--text-color);
}
/* Ajustes para o botão OK do modal de mensagem */
#message-modal-ok-button {
margin: 0 auto; /* Centraliza o botão OK */
display: block; /* Garante que o margin auto funcione */
}