-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.css
More file actions
415 lines (362 loc) · 10.5 KB
/
settings.css
File metadata and controls
415 lines (362 loc) · 10.5 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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
html {
height: 100%; /* Or min-height: 100% for flexibility */
box-sizing: border-box;
}
body {
font-family: 'Outfit', sans-serif;
margin: 0;
padding: 20px; /* This is the buffer around the .container */
background-color: #f4f4f4;
box-sizing: border-box; /* Crucial for height calculations with padding */
/* --- Layout Overrides for settings.html --- */
/* Using !important to fight potential overrides from style.css */
width: 100% !important;
min-width: 0 !important; /* Reset any problematic min-width */
min-height: 100vh !important; /* Make body at least full viewport height */
display: flex !important;
flex-direction: column !important; /* Stack .container and other body children vertically */
align-items: center !important; /* Center .container horizontally */
justify-content: flex-start !important; /* Align .container to the top */
overflow-y: auto !important; /* Allow body to scroll if .container's content is too tall */
}
.container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
max-width: 550px;
width: 100%; /* Occupy available width given by flex parent, up to max-width */
box-sizing: border-box;
flex-shrink: 0; /* Prevent .container from shrinking if body had other flex items */
/* height: auto; /* Default, ensure no fixed height is set */
/* overflow: visible; /* Default, ensure content isn't clipped by container itself unless intended */
}
.settings-header {
text-align: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.settings-header h1 {
font-size: 1.8em;
color: #333;
margin: 0; /* This is key for controlling top space */
}
section {
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
/* Default overflow is visible. If any section had overflow:hidden or a fixed height, that could be an issue. */
}
section:last-of-type {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.section-header-with-button {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px; /* Same margin as h2 used to have */
}
.section-header-with-button h2 {
margin: 0; /* Remove margin from h2 as the container handles it */
}
.section-header-with-button .settings-button {
margin: 0; /* Remove default button margin for precise alignment */
}
section h2 {
font-size: 1.3em;
color: #555;
margin-top: 0;
margin-bottom: 15px;
}
.prisma-reminder-options {
margin-bottom: 15px;
padding: 10px;
background-color: #f9f9f9;
border-radius: 4px;
border: 1px solid #eee;
}
.setting-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.setting-row:last-child {
margin-bottom: 0;
}
.setting-row label {
font-size: 1em;
color: #333;
}
.setting-row .select-container {
width: 150px; /* Adjust width as needed */
margin-bottom: 0;
}
/* General styling for input elements, buttons, etc. within settings */
input[type="text"],
input[type="url"],
textarea { /* General textarea, will be overridden by more specific selectors if needed */
width: calc(100% - 20px); /* Account for padding of 10px on each side */
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1em;
box-sizing: border-box;
font-family: 'Outfit', sans-serif; /* Consistent font */
}
textarea { /* General textarea styling */
min-height: 80px;
resize: vertical;
line-height: 1.4; /* Improved readability */
}
button, .settings-button { /* Added .settings-button for consistency */
padding: 10px 15px;
font-size: 1em;
cursor: pointer;
background-color: #07009a; /* New primary button color */
color: white;
border: none;
border-radius: 4px;
transition: background-color 0.2s;
margin: 5px; /* Added margin */
}
button:hover, .settings-button:hover {
background-color: #05006a; /* Darker shade for hover */
}
#triggerMetaReminder, #triggerIasReminder, .settings-button-test {
background-color: #76abaf;
}
#triggerMetaReminder:hover, #triggerIasReminder:hover, .settings-button-test:hover {
background-color: #639599;
}
.settings-button-secondary {
background-color: #6c757d; /* A common secondary button color (grey) */
}
.settings-button-secondary:hover {
background-color: #5a6268;
}
.settings-button-edit {
background-color: #b2f66d; /* New edit color */
color: #333; /* Dark text for light green background */
}
.settings-button-edit:hover {
background-color: #99d45b; /* Darker shade for hover */
}
.toggle-container {
display: flex;
align-items: center;
justify-content: space-between; /* This will push the label and the group apart */
margin-bottom: 10px;
padding: 8px;
background-color: #f9f9f9;
border-radius: 4px;
}
.toggle-container .toggle-label {
font-size: 1em;
color: #333;
}
.button-and-toggle-group {
display: flex;
align-items: center;
gap: 10px; /* Add some space between the button and the toggle */
}
.toggle {
position: relative;
display: inline-block;
width: 50px; /* Width of the toggle */
height: 24px; /* Height of the toggle */
/* margin-left: auto; /* No longer needed here */
}
.toggle input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px; /* Rounded slider */
}
.slider:before {
position: absolute;
content: "";
height: 16px; /* Size of the sliding circle */
width: 16px; /* Size of the sliding circle */
left: 4px; /* Position from left */
bottom: 4px; /* Position from bottom */
background-color: white;
transition: .4s;
border-radius: 50%; /* Make it a circle */
}
input:checked + .slider {
background-color: #ff4087; /* Active color from your style.css */
}
input:checked + .slider:before {
transform: translateX(26px); /* How far the circle moves */
}
.button-group {
display: flex;
gap: 10px; /* Space between buttons */
align-items: center; /* Vertically align items if they have different heights */
}
.select-container {
margin-bottom: 10px;
}
.select-container select {
width: 100%;
padding: 10px;
border-radius: 4px;
border: 1px solid #ccc;
background-color: #fff;
font-size: 1em;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
background-repeat: no-repeat;
background-position: right 10px top 50%;
background-size: 16px;
}
.select-container select:focus {
outline: none;
border-color: #ff4087; /* Highlight color from your style.css */
}
.hidden-initially {
display: none;
}
.reminder-update-message { /* For success/status messages */
font-size: 0.9em;
color: green; /* Consider a less aggressive green, e.g., #28a745 */
margin-top: 10px;
}
/* Styles for elements previously with inline styles */
#aura-reminders .reminder-text { /* More specific selector */
font-size: 0.9em;
margin-top: 10px;
}
#exportDataTextarea {
width: 100%; /* Overrides general textarea width if different */
min-height: 150px;
margin-top: 10px; /* Space above the textarea */
margin-bottom: 0; /* Reset default margin if any from general textarea */
font-family: monospace;
white-space: pre; /* Ensures spaces and newlines are preserved like <pre> */
box-sizing: border-box; /* Includes padding and border in the element's total width and height */
line-height: 1.5; /* Improves readability for monospace fonts */
}
/* Reminder Modal Editor Styles */
.reminder-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
z-index: 100; /* Below modal, above page content */
display: none; /* Initially hidden */
}
.reminder-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 500px; /* Max width of the modal */
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
z-index: 101; /* Above overlay */
display: none; /* Initially hidden */
overflow: hidden; /* Prevent content from spilling unstylishly */
}
.reminder-modal-content {
display: flex;
flex-direction: column;
max-height: 80vh; /* Max height relative to viewport */
}
.reminder-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background-color: #f7f7f7; /* Light grey header */
border-bottom: 1px solid #e0e0e0;
}
.reminder-modal-header h2 {
margin: 0;
font-size: 1.2em;
color: #333;
}
.modal-close-button {
background: none;
border: none;
font-size: 1.8em;
line-height: 1;
color: #888;
cursor: pointer;
padding: 0 5px;
}
.modal-close-button:hover {
color: #333;
}
.reminder-modal-body {
padding: 20px;
overflow-y: auto; /* Scrollable body if content exceeds max-height */
}
.reminder-modal-body p {
margin-top: 0;
margin-bottom: 10px;
font-size: 0.9em;
}
.reminder-modal-body p strong {
color: #333;
}
.reminder-modal-body span {
color: #555;
}
.reminder-modal-body hr {
margin-top: 15px;
margin-bottom: 15px;
border: 0;
border-top: 1px solid #eee;
}
.reminder-modal-body label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #333;
font-size: 0.95em;
}
.reminder-modal-body input[type="text"],
.reminder-modal-body textarea {
width: calc(100% - 22px); /* Full width minus padding & border */
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1em;
box-sizing: border-box;
font-family: 'Outfit', sans-serif;
}
.reminder-modal-body textarea {
min-height: 80px; /* Default height for intro and bullets */
line-height: 1.4;
}
.reminder-modal-footer {
padding: 15px 20px;
border-top: 1px solid #e0e0e0;
display: flex;
justify-content: flex-end; /* Align buttons to the right */
gap: 10px;
background-color: #f7f7f7;
}