-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
463 lines (380 loc) · 8.6 KB
/
style.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
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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
@font-face {
font-family: 'Inter';
src: url('Inter/static/Inter-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
pre{
background-color: #f0f0f0 !important;
color:black !important;
}
#editor-container a{
color:#0093ee;
}
#editor-container {
height: 90vh; /* Set a fixed height of 80% of the viewport height */
overflow-y: auto;
margin-top: 3em;
border-color: white;
}
#editor {
height: 90vh; /* Set a fixed height of 80% of the viewport height */
overflow-y: auto;
border-color: white;
}
.ql-code-block-container{
background-color: #f0f0f0 !important;
color:black !important;
}
#wordCountPopup {
background: #E6E6E6;
color: #333;
font-family: 'Inter', sans-serif;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-radius: 5px;
z-index: 100;
display: none;
}
.ql-container {
font-size: 18px !important;
}
.ql-toolbar .ql-picker-label::before,
.ql-toolbar .ql-picker-item::before {
content: none;
}
.ql-toolbar button svg,
.ql-toolbar button i {
vertical-align: middle;
}
.ql-toolbar button {
line-height: normal;
}
.ql-toolbar button::before {
display: none;
}
.dark-mode .ql-snow {
background-color: #1E1E1E !important;
}
.dark-mode .ql-snow .ql-toolbar {
background-color: #333 !important;
border-color: #444 !important;
}
.dark-mode .ql-snow .ql-stroke {
stroke: #fff;
}
.dark-mode .ql-snow .ql-fill {
fill: #fff;
}
.dark-mode .ql-snow .ql-picker {
color: #fff;
}
/* Editor styles */
.dark-mode .ql-snow .ql-editor {
background-color: #1E1E1E;
color: #fff;
}
.dark-mode .ql-snow .ql-editor.ql-blank::before {
color: #666;
}
/* Selection styles */
.dark-mode .ql-snow .ql-editor .ql-selection {
background-color: #3e51b5;
color: #fff;
}
/* Syntax highlighting styles */
.dark-mode .ql-snow .ql-syntax {
background-color: #1e1e1e;
color: #dcdcdc;
}
/* Drop-down menu styles */
.dark-mode .ql-snow .ql-picker-options {
background-color: #333;
border-color: #444;
}
.dark-mode .ql-snow .ql-picker-item {
color: #fff;
}
.dark-mode .ql-snow .ql-picker-item:hover {
background-color: #444;
}
.dark-mode .ql-snow .ql-picker-item.ql-selected {
background-color: #555;
}
/* Tooltip styles */
.dark-mode .ql-snow .ql-tooltip {
background-color: #333;
border-color: #444;
color: #fff;
}
.dark-mode .ql-snow .ql-tooltip input {
background-color: #212121;
color: #fff;
border-color: #444;
}
/* Modal styles */
.dark-mode .ql-snow .ql-modal {
background-color: #212121;
color: #fff;
}
.dark-mode .ql-snow .ql-modal .ql-modal-content {
border-color: #444;
}
.dark-mode .ql-snow .ql-modal .ql-modal-backdrop {
background-color: rgba(0, 0, 0, 0.7);
}
.dark-mode .menu {
display: flex;
justify-content: space-between;
flex-wrap: nowrap;
align-items: stretch;
padding: .8em .8em;
height: 1.5em;
background-color: #1E1E1E;
color: #D4D4D4;
font-family: 'Inter', sans-serif;
position: fixed; /* Add this line */
top: 0; /* Add this line */
left: 0; /* Add this line */
right: 0; /* Add this line */
z-index: 1; /* Add this line */
}
.dark-mode button {
padding: 0.5em 1em;
margin: 0 5px;
cursor: pointer;
border: none;
border-radius: 5px;
outline: none;
background-color: #4A4F55;
color: #D4D4D4;
font-family: 'Inter', sans-serif;
}
.dark-mode button:hover {
opacity: 0.8;
}
.dark-mode .menu a {
text-decoration: none;
color: #007BFF;
margin-right: 15px;
transition: color 0.3s ease-in-out;
}
.dark-mode .menu a:hover {
color: #0056b3;
}
.dark-mode select {
padding: 0.5em;
border: 1px solid #4A4F55;
border-radius: 5px;
background-color: #4A4F55;
color: #D4D4D4;
cursor: pointer;
font-family: 'Inter', sans-serif;
}
.dark-mode code{
background-color: #2f3236 !important;
}
.dark-mode pre{
background-color: #2f3236 !important;
color:white !important;
}
.dark-mode .ql-code-block-container{
background-color: #2f3236 !important;
color:white !important;
}
body.dark-mode {
background-color: #1E1E1E;
margin:8px;
}
.dark-mode #wordCountPopup {
background: #4A4F55;
color: #D4D4D4;
font-family: 'Inter', sans-serif;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-radius: 5px;
z-index: 100;
display: none;
}
select:hover {
opacity: 0.8;
}
.menu {
display: flex;
justify-content: space-between;
flex-wrap: nowrap;
align-items: stretch;
padding: .8em .8em;
height: 1.5em;
background-color: white;
color: #D4D4D4;
font-family: 'Inter', sans-serif;
position: fixed; /* Add this line */
top: 0; /* Add this line */
left: 0; /* Add this line */
right: 0; /* Add this line */
z-index: 1; /* Add this line */
}
button {
padding: 0.5em 1em;
margin: 0 5px;
cursor: pointer;
border: none;
border-radius: 5px;
outline: none;
background-color: #E6E6E6;
color: #333;
font-family: 'Inter', sans-serif;
}
.githubLogo{
width: 1.5em;
height: 1.5em;
vertical-align: middle; /* Align with other elements */
margin: 0 5px; /* Similar margin to buttons for consistency */
}
.dark-mode .githubLogo{
width: 1.5em;
height: 1.5em;
vertical-align: middle; /* Align with other elements */
margin: 0 5px; /* Similar margin to buttons for consistency */
}
/* Light mode styles */
#docManagerPopup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #FFF;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
z-index: 101;
display: none;
font-family: 'Inter', sans-serif;
color: #333;
border-radius: 5px;
/* Add these lines */
max-width: 80vw; /* Set the maximum width to 80% of the viewport width */
max-height: 80vh; /* Set the maximum height to 80% of the viewport height */
overflow: auto; /* Make the content scrollable if it exceeds the specified dimensions */
}
#docManagerPopup button {
padding: 0.3em 1em;
margin: .5em;
cursor: pointer;
border: none;
border-radius: 5px;
outline: none;
background-color: #E6E6E6;
color: #333;
font-family: 'Inter', sans-serif;
}
#docManagerPopup button:hover {
opacity: 0.8;
}
#docManagerPopup ul {
list-style-type: none;
padding: 0;
margin: 0;
}
#docManagerPopup li {
display: flex;
align-items: center;
margin-bottom: 5px;
}
#docManagerPopup li span {
flex-grow: 1;
}
/* Dark mode styles */
.dark-mode #docManagerPopup {
background: #4A4F55;
color: #D4D4D4;
}
.dark-mode #docManagerPopup button {
background-color: #333;
color: #D4D4D4;
}
.dark-mode #docManagerPopup button:hover {
opacity: 0.8;
}
.dark-mode #editor-container {
height: 90vh; /* Set a fixed height of 80% of the viewport height */
overflow-y: auto;
margin-top: 3em;
border-color: #1E1E1E !important;
}
.dark-mode #editor {
height: 90vh; /* Set a fixed height of 80% of the viewport height */
overflow-y: auto;
border-color: #1E1E1E !important;
}
/* Add a media query for small screens */
@media only screen and (max-width: 600px) {
button {
padding: 0.4em 0.6em;
font-size: 0.8rem;
}
.toggle-mode {
padding: 0.4em 0.6em;
font-size: 0.8rem;
}
.githubLogoContainer{
display: none;
}
.dark-mode button {
padding: 0.4em 0.6em;
font-size: 0.8rem;
}
.dark-mode .toggle-mode {
padding: 0.4em 0.6em;
font-size: 0.8rem;
}
}
@media (min-width: 1200px) { /* For screens wider than 1200px */
#editor-container {
margin-left: 10em;
margin-right: 10em
}
.dark-mode #editor-container {
margin-left: 10em;
margin-right: 10em
}
.dark-mode .menu{
margin-left: 10em;
margin-right: 10em
}
.menu{
margin-left: 10em;
margin-right: 10em
}
}
/* Customize the width and background of the scrollbar */
::-webkit-scrollbar {
width: 8px; /* or any desired size */
}
/* Customize the scrollbar thumb */
::-webkit-scrollbar-thumb {
background-color: #cccccc; /* thumb color */
border-radius: 10px; /* rounded corners */
}
/* Optional: Customize the scrollbar track */
::-webkit-scrollbar-track {
background-color: white; /* track color */
border-radius: 10px; /* rounded corners for the track as well */
}
.dark-mode ::-webkit-scrollbar-thumb {
background-color: #4A4F55; /* thumb color */
border-radius: 10px; /* rounded corners */
}
/* Optional: Customize the scrollbar track */
.dark-mode ::-webkit-scrollbar-track {
background-color: #1E1E1E; /* track color */
border-radius: 10px; /* rounded corners for the track as well */
}