-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
newtab.css
415 lines (382 loc) · 7.36 KB
/
newtab.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
.hide { display: none !important; }
body {
background-color: #343434;
padding: 0;
margin: 0;
overflow: hidden;
min-width: 800px;
min-height: 600px;
}
#annoucement {
background: #eee;
color: #000;
padding: 15px 60px;
position: fixed;
width: 100%;
font-family: sans-serif;
}
#annoucement > div {
border: 1px solid #fff;
background: #fff;
color: #000;
display: inline-block;
font-weight: 500;
cursor: pointer;
padding: 5px 5px;
border-radius: 3px;
transition-duration: .3s;
}
#annoucement > div:hover {
border: 1px solid #eee;
background: #eee;
color: #000;
}
#annoucement a { color: #000; }
body.dark #annoucement {
background: #000;
color: #fff;
}
body.dark #annoucement > div {
border: 1px solid #fff;
background: #000;
color: #fff;
}
body.dark #annoucement > div:hover {
background: #fff;
color: #000;
}
body.dark #annoucement a { color: #fff; }
/*this is note textarea*/
#note-content {
box-sizing: border-box;
border: 0;
font-size: 18px;
font-family: 'Roboto Mono', sans-serif;
line-height: 31.5px;
margin: 0;
height: 100vh;
padding: 4rem 20%;
resize: none;
width: 100%;
vertical-align: middle;
overflow: auto;
}
#note-content.dark {
background: #343434;
color: #fff;
}
strong {
font-weight: bold;
}
input.larger {
height: 18px;
width: 18px;
margin: 0;
}
#mode-switcher {
border: 1px solid #777;
border-radius: 50%;
cursor: pointer;
height: 20px;
position: fixed;
top: 12px;
right: 22px;
width: 20px;
z-index: 999;
}
#mode-switcher { background: #777; }
.dark + #mode-switcher { background: #fff; }
#status {
color: #343434;
bottom: 15px;
/*filter: invert(100%);*/
position: fixed;
left: 35px;
}
.dark #status {
color: #ffffff;
}
#addon-author {
background: #DD4A68;
bottom: 12px;
border: 1px solid #DD4A68;
color: #fff;
font-family: serif;
font-size: 10px;
font-weight: 600;
padding: 2px;
position: fixed;
text-decoration: none;
right: 22px;
}
#addon-author:hover { background: #E28699; border-color: #E28699; }
/* Multi-note */
#list-trigger {
position: fixed;
top: 12px;
left: 14px;
width: 16px;
cursor: pointer;
}
#list-trigger:before,
#list-trigger span,
#list-trigger:after {
width: 16px;
height: 5px;
float: left;
content: '';
display: inline-block;
box-shadow: 0 2px 0 #343434;
border-bottom: 2px solid #fff;
}
#list {
box-sizing: border-box;
width: 250px;
position: absolute;
top: 0;
left: -250px;
bottom: 0;
overflow: auto;
background: #eee;
color: #343434;
box-shadow: inset -7px 0 5px -6px rgba(0,0,0,0.5);
}
#list .list-inner {
position: relative;
padding: 4rem 20px;
}
#create_entry {
position: absolute;
top: 12px;
right: 12px;
box-sizing: border-box;
width: 22px;
height: 22px;
color: #aaa;
background: #fff;
text-align: center;
line-height: 20px;
cursor: pointer;
border: 1px solid #aaa;
border-radius: 50%;
}
.dark #create_entry {
background: #343434;
color: #777;
border: 1px solid #777;
}
#undo_deletion {
position: absolute;
bottom: 12px;
right: 12px;
box-sizing: border-box;
width: 100px;
height: 22px;
color: #000;
background: #fff;
text-align: center;
line-height: 20px;
cursor: pointer;
border: 1px solid #aaa;
border-radius: 5px;
}
.dark #undo_deletion {
background: #343434;
color: #aaa;
border: 1px solid #777;
}
#list ul {
padding: 0 0 calc(20px + 1rem);
margin: 0;
list-style-type: none;
}
#list li ::selection {
background-color: transparent;
}
#list li > span {
display: block;
padding: 10px;
text-decoration: none;
box-sizing: border-box;
border-bottom: 1px solid #ddd;
color: #999;
cursor: pointer;
position: relative;
}
#list li span > span {
font-size: 1.25rem;
margin-right: .25rem;
}
#list li span > span.empty-string {
font-size: 1rem;
opacity: 0.5;
margin-right: 0;
}
#list li span .del {
display: none;
position: absolute;
right: 0;
cursor: pointer;
opacity: 0.5;
font-family: sans-serif;
font-size: 1.5rem;
box-sizing: border-box;
width: 22px;
height: 22px;
text-align: center;
line-height: 20px;
transform: rotate(45deg);
}
#list li:hover span .del {
display: inline-block;
}
#list li:hover span .del:hover {
opacity: 1;
}
#list li span .dnld {
display: none;
position: absolute;
right: 20px;
cursor: pointer;
opacity: 0.5;
font-family: sans-serif;
font-size: 1.5rem;
box-sizing: border-box;
width: 22px;
height: 22px;
text-align: center;
line-height: 20px;
filter: invert(0);
}
#list.dark li span .dnld {
filter: invert(1);
}
#list li span .dnld img {
width: 65%;
}
#list li:hover span .dnld {
display: inline-block;
}
#list li:hover span .dnld:hover {
opacity: 1;
}
#list .current {
position: relative;
}
#list .current:before {
content: '';
display: inline-block;
border: 2px solid;
position: absolute;
top: calc(50% - 4px);
left: -3px;
border-color: #343434;
}
#list .current > span, #list .current a:hover {
cursor: default;
color: #343434;
}
#list li > span:hover {
color: #666;
}
#list.dark {
background: #292929;
color: #fff;
box-shadow: inset -7px 0 5px -6px rgba(0,0,0,0.5);
}
#list.dark li > span {
border-bottom: 1px solid #343434;
color: #aaa;
}
#list.dark li > span:hover {
color: #ddd;
}
#list.dark .current:before {
border-color: #ddd;
}
#list.dark .current > span, #list.dark .current a:hover {
color: #ddd;
}
#list-indicator:checked ~ #list {
left: 0;
}
#list-indicator:checked ~ #note-content {
margin-left: 250px;
padding: 4rem 10%;
width: calc(100vw - 250px);
}
.setting-icon-container {
position: fixed;
bottom: 12px;
left: 12px;
}
#setting-icon {
background: #fff;
border: 0.2857142857em solid #343434;
display: inline-block;
position: relative;
margin: 0.2em;
width: 1em;
height: 1em;
border-radius: 50%;
box-sizing: border-box;
transition-duration: .3s;
cursor: pointer;
}
.dark #setting-icon {
background: #343434;
border: 0.2857142857em solid #fff;
}
#setting-icon:before, #setting-icon:after {
color: #343434;
content: "×";
position: absolute;
z-index: -1;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: "times new roman";
font-weight: bold;
font-size: 2.5em;
}
#setting-icon:after {
transform: translate(-50%, -50%) rotate(45deg);
}
.dark #setting-icon:before {
color: #fff;
}
.dark #setting-icon:after {
color: #fff;
}
/* width */
#note-content::-webkit-scrollbar {
width: 10px;
}
/* Track */
#note-content::-webkit-scrollbar-track {
background: #9e9e9e17;
}
/* Handle */
#note-content::-webkit-scrollbar-thumb {
background: #8888885b;
}
/* Handle on hover */
#note-content::-webkit-scrollbar-thumb:hover {
background: #55555575;
}
/* width */
#list::-webkit-scrollbar {
width: 10px;
}
/* Track */
#list::-webkit-scrollbar-track {
background: #9e9e9e17;
}
/* Handle */
#list::-webkit-scrollbar-thumb {
background: #8888885b;
}
/* Handle on hover */
#list::-webkit-scrollbar-thumb:hover {
background: #55555575;
}