-
Notifications
You must be signed in to change notification settings - Fork 29
/
style.styl
396 lines (327 loc) · 7.1 KB
/
style.styl
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
html, body
height: 100%
body
color: #222
font-family: helvetica
line-height: initial // todo: remove when sys lib updates ui css
margin: 0
.panel
display: none
.panelOpen > &
display: inline-block
.opacity
> h2
font-size: 12px
margin-bottom: 2px
> input[type=number]
box-sizing: border-box
font-size: 13px
width: 100%
> .panel
background-color: #ccc
border-left: 1px solid rgba(255, 255, 255, 0.5)
border-top: 1px solid rgba(255, 255, 255, 0.5)
border-right: 1px solid #ccc
border-bottom: 1px solid rgba(0, 0, 0, 0.5)
border-bottom-left-radius: 4px
border-top-left-radius: 2px
position: relative
top: -23px
left: -107px
width: 101px
height: 20px
padding: 2px
> input[type=range]
height: 100%
margin: 0
width: 100%
.editor
background-color: #AAA
box-sizing: border-box
height: 100%
padding: 0px 50px 64px 35px
position: relative
user-select: none
-moz-user-select: none
-ms-user-select: none
-webkit-user-select: none
overflow: hidden
.main
font-size: 0
height: 100%
position: relative
overflow: auto
.thumbnail
background-color: white
border: 1px solid rgba(0, 0, 0, 0.5)
position: fixed
top: 4px
left: 40px
z-index: 2
> canvas
max-width: 256px
max-height: 256px
width: auto
height: auto
&.right
right: 54px
left: auto
.position
position: absolute
pointer-events: none
bottom:0
right: 0.25em
z-index: 2
.notifications
background-color: rgba(0, 0, 0, 0.5)
border: 1px solid black
border-bottom-left-radius: 2px
border-bottom-right-radius: 2px
color: white
left: 40px
padding: 4px
position: absolute
top: 0
z-index: 9000
&:empty
padding: 0
border: none
p
margin: 0
margin-bottom: 0.25em
&:last-child
margin-bottom: 0
.toolbar
box-sizing: border-box
width: 40px
position: absolute
top: 0
left: 0
h2
font-size: 12px
.tool
background-color: #CCC
background-position: center
background-repeat: no-repeat
width: 36px
height: 36px
box-sizing: border-box
border: 1px solid rgba(0, 0, 0, 0.5)
border-top: 1px solid rgba(255, 255, 255, 0.5)
border-left: 1px solid rgba(255, 255, 255, 0.5)
cursor: pointer
> .panel
background-color: #eee
border-bottom: 1px solid rgba(0, 0, 0, 0.5)
border-right: 1px solid rgba(0, 0, 0, 0.5)
border-top: 1px solid rgba(255, 255, 255, 0.5)
border-bottom-right-radius: 2px
border-top-right-radius: 2px
margin-top: -1px
margin-left: 35px
padding: 3px
padding-bottom: 4px
position: absolute
z-index: 10
&.panelOpen
border-right: 1px solid #eee
&:empty
border-right: 1px solid rgba(0, 0, 0, 0.5)
&:last-child
border-bottom-right-radius: 2px
&.active
background-color: #EEE
.tools:not(:first-child)
.tool
&:first-child
border-top-right-radius: 2px
.palette
background-color: #CCC
box-sizing: border-box
border-left: 1px solid rgba(255, 255, 255, 0.5)
height: 100%
width: 50px
position: absolute
top: 0
right: -1px
font-size: 0
> .color
box-sizing: border-box
border: 1px solid rgba(255, 255, 255, 0.5)
border-top: 1px solid rgba(0, 0, 0, 0.5)
border-left: 1px solid rgba(0, 0, 0, 0.5)
border-radius: 2px
display: inline-block
width: 24px
height: 24px
overflow: hidden
padding: 0
&.primary.color
width: 48px
height: 48px
> input
width: 64px
height: 64px
margin: -8px 0 0 -8px
padding: 0
&.active
border: 1px solid rgba(255, 255, 255, 0.875)
&:nth-child(1)
border-top-right-radius: 0
border-top-left-radius: 0
border-top: 0
&:nth-child(even)
border-top-right-radius: 0
border-bottom-right-radius: 0
.vertical-center
position: absolute
top: 0
bottom: 0
left: 0
right: 0
margin: auto
.checkered
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAKUlEQVQ4T2NkIADOnDnzH58SxlEDGIZDGBCKZxMTE7zeZBw1gGEYhAEAJQ47KemVQJ8AAAAASUVORK5CYII=")
.viewport
background-color: white
border: 1px solid gray
margin: auto
position: relative
&.vertical-center
position: absolute
> canvas
image-rendering: optimizeSpeed
image-rendering: -moz-crisp-edges
image-rendering: -webkit-optimize-contrast
image-rendering: optimize-contrast
image-rendering: pixelated
-ms-interpolation-mode: nearest-neighbor
background-color: transparent
position: absolute
width: 100%
height: 100%
.overlay
pointer-events: none
position: absolute
z-index: 1
width: 100%
height: 100%
.debug
background-color: white
box-sizing: border-box
position: absolute
width: 100%
height: 100px
bottom: 0
margin: 0
padding: 1em
.actions
box-sizing: border-box
height: 64px
position: absolute
bottom: 0
left: 0
.action
cursor: pointer
width: 64px
height: 64px
background-color: #CCC
background-position: 50% 25%
background-repeat: no-repeat
box-sizing: border-box
border: 1px solid rgba(0, 0, 0, 0.5)
border-left: none
border: 1px solid rgba(0, 0, 0, 0.5)
border-left: 1px solid rgba(255, 255, 255, 0.5)
border-top: 1px solid rgba(255, 255, 255, 0.5)
display: inline-block
font-size: 12px
position: relative
vertical-align: top
&:last-child
border-top-right-radius: 2px
.text
text-align: center
overflow: hidden
position: absolute
width: 100%
top: 50%
@media (max-width: 720px)
.editor
padding-bottom: 32px
.actions
height: 32px
.action
width: 32px
height: 32px
> .text
display: none
@media (max-height: 500px)
.opacity
display: none
@media (max-height: 450px)
.position
display: none
#options, #tips
width: 50%
height: 50%
padding: 1em
button.close
position: absolute
bottom: 1em
right: 1em
> h2:first-child
margin-top: 0
> label
display: block
padding-bottom: 0.5em
#modal
background-color: rgba(0, 0, 0, 0.25)
display: none
position: absolute
z-index: 9000
top: 0
input[type=file]
box-sizing: border-box
padding: 5em 2em
width: 320px
height: 180px
> *
background-color: white
border: 1px solid black
margin: auto
position: absolute
top: 0
bottom: 0
left: 0
right: 0
&.active
display: block
width: 100%
height: 100%
#loader
background-color: rgba(0, 0, 0, 0.5)
display: none
width: 100%
height: 100%
position: absolute
top: 0
left: 0
z-index: 100
.editor.loading > #loader
display: block
@media print
.actions, .palette, .position, .thumbnail, .toolbar
display: none
.viewport
border: none
height: 100% !important
width: 100% !important
> canvas
height: auto
width: 100%
@media (orientation: landscape)
.viewport
> canvas
width: auto
height: 100%