A web-based drawing app
git clone git://soophie.de/outline
blob: 7b491ac1cb6518c44277215548d8def67f087d4c (6721 bytes)[doc][blame][raw]
1
canvas.canvas {2
position: relative;3
z-index: 1;4
cursor: none;5
touch-action: none;6
}8
canvas.overlay {9
pointer-events: none;10
user-select: none;11
position: absolute;12
top: 0;13
left: 0;14
right: 0;15
bottom: 0;16
z-index: 99;17
}19
.wrapper {20
width: 100vw;21
height: 100vh;22
position: fixed;23
top: 0;24
left: 0;25
right: 0;26
bottom: 0;27
display: flex;28
justify-content: center;29
align-items: center;30
background: rgba(0, 0, 0, 0.1);31
z-index: 99999;32
user-select: none;33
}35
.modal {36
background: white;37
width: 400px;38
border-radius: 6px;39
margin-top: -100px;40
padding: 20px;41
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.03);43
&.theme-dark {44
background: @color-dark;45
color: white;47
button.action-cancel {48
background: @color-dark-grey;49
color: white;51
&:hover {52
background: lighten(@color-dark-grey, -2%);53
}54
}56
input[type="text"] {57
background: @color-black;58
color: white;60
&:hover {61
background: lighten(@color-black, -2%);62
}64
&:focus {65
background: lighten(@color-black, -2%);66
}67
}69
.separator {70
border-color: @color-dark-grey;71
}73
input[type="range"] {74
background: lighten(@color-black, 2%);75
}77
.preview {78
background: lighten(@color-black, 2%);79
}81
ul.avatar-list {83
li.avatar {84
border-color: @color-dark;85
background: lighten(@color-black, 1%);87
&:hover {88
border-color: lighten(@color-black, 3.5%);89
}90
}91
}92
}94
input.action-uuid,95
input.action-file {96
padding: 12px 14px;97
width: 100%;98
border: none;99
background: #FAFAFA;100
border-radius: 3px;101
font-size: 16px;102
user-select: none;104
&:hover {105
background: #F8F8F8;106
}108
&:focus {109
background: #F5F5F5;110
}111
}113
.separator {114
border-top: 1px solid #F5F5F5;115
margin: 20px 0;116
}118
.align {119
display: flex;120
justify-content: space-between;121
align-items: center;122
}124
p {125
font-size: 18px;126
letter-spacing: 0.2px;127
padding-top: 5px;128
margin-bottom: 25px;129
}131
button {132
padding: 12px 14px;133
border: none;134
background: #F8F9FA;135
border-radius: 3px;136
font-size: 16px;137
cursor: pointer;138
user-select: none;139
transition: background 0.1s;140
color: #212121;142
&:hover {143
background: lighten(#F8F9FA, -5%);144
}146
&.success {147
background: #28A745;148
color: white;150
&:hover {151
background: lighten(#28A745, -5%);152
}153
}155
&.danger {156
background: #DC3545;157
color: white;159
&:hover {160
background: lighten(#DC3545, -5%);161
}162
}164
&.info {165
background: #007BFF;166
color: white;168
&:hover {169
background: lighten(#007BFF, -5%);170
}171
}172
}174
button.action-join {175
width: 100%;176
}178
button.action-cancel {179
width: calc(50% - 10px);180
}182
button.action-save,183
button.action-clear,184
button.action-background,185
button.action-scaling,186
button.action-color,187
button.action-default {188
width: calc(50% - 10px);189
}191
ul.avatar-list {192
display: flex;193
flex-wrap: wrap;194
width: 100%;195
list-style-type: none;197
li.avatar {198
background: #EEE;199
border-radius: 9999px;200
border: 5px solid white;201
margin: 10px;202
width: 70px;203
height: 70px;204
cursor: pointer;205
transition: border-color 0.1s;207
&:hover {208
border: 5px solid #F8F8F8;209
}210
}211
}213
input.action-range {214
width: calc(100% - 80px);215
-webkit-appearance: none;216
background: #F8F8F8;217
height: 6px;219
&:hover {220
background: #F5F5F5;222
&::-webkit-slider-thumb {223
background: lighten(#888888, -20%);224
}225
}227
&::-webkit-slider-thumb {228
-webkit-appearance: none;229
background: #888888;230
width: 20px;231
height: 20px;232
border-radius: 9999px;233
border: none;234
cursor: pointer;235
transition: background 0.1s;236
}238
&::-webkit-slider-runnable-track {239
-webkit-appearance: none;240
}241
}243
.preview {244
width: 60px;245
height: 60px;246
background: #F5F5F5;247
border-radius: 9999px;248
display: flex;249
justify-content: center;250
align-items: center;252
.circle {253
width: 12px;254
height: 12px;255
background: #212121;256
border-radius: 9999px;257
}258
}260
&.modal-color {261
width: 580px;263
.align {264
width: calc(100% - 200px);265
margin-left: 200px;266
justify-content: flex-end;267
}268
}270
ul.bucket-list {271
display: flex;272
flex-wrap: wrap;273
width: 100%;274
list-style-type: none;276
li.bucket {277
background: #EEE;278
border-radius: 9999px;279
margin: 10px;280
width: 70px;281
height: 70px;282
cursor: pointer;283
transition: transform 0.2s;284
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);286
transform: scale(0.9);287
user-select: none;289
&:hover {290
transition: transform 0.2s;291
transform: scale(1);292
}294
&.active {295
transform: scale(1);296
border: 3px solid #212121;297
}299
&::after {300
position: absolute;301
bottom: -20%;302
}303
}304
}305
}307
.toolbar {308
position: fixed;309
left: calc(50% - 252px);310
bottom: 30px;311
z-index: 2;312
display: flex;313
z-index: 999;315
.bucket {316
width: 56px;317
height: 56px;318
border-radius: 9999px;319
background: #CCC;320
margin: 8px;321
transition: transform 0.2s;322
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);323
cursor: pointer;324
transform: scale(0.9);325
user-select: none;327
&:hover {328
transition: transform 0.2s;329
transform: scale(1);330
}332
&.active {333
transform: scale(1.1);334
}335
}336
}338
.actions {339
position: fixed;340
top: 30px;341
left: 30px;342
display: flex;343
}345
.action {346
user-select: none;347
position: relative;348
width: 46px;349
height: 46px;350
border: none;351
border-radius: 9999px;352
background: transparent;353
cursor: pointer;354
outline: none;355
position: fixed;356
margin-right: 8px;358
i {359
color: #212121;360
user-select: none;361
pointer-events: none;362
}364
&:hover {365
background: #ECECEC;366
}368
&::after {369
bottom: -60%;370
}371
}373
.tooltip {374
position: relative;375
display: flex;376
justify-content: center;377
align-items: center;379
&:hover {381
&::before {382
opacity: 1;383
transition-delay: 0.6s;384
}386
&::after {387
opacity: 1;388
transition-delay: 0.6s;389
}390
}392
&::after {393
display: flex;394
opacity: 0;395
content: attr(data-title);396
justify-content: center;397
align-items: center;398
position: absolute;399
background: #212121;400
color: white;401
min-height: 24px;402
padding: 0 10px;403
border-radius: 4px;404
font-size: 12px;405
top: auto;406
bottom: -70%;407
white-space: nowrap;408
z-index: 9999;409
pointer-events: none;410
}412
&.up {414
&::before {415
top: ~'calc(-90% + 26px)';416
bottom: auto;417
border-left: 6px solid transparent;418
border-right: 6px solid transparent;419
border-top: 6px solid #212121;420
border-bottom: none;421
}423
&::after {424
top: -60%;425
bottom: auto;426
}427
}429
&.down {431
&::before {432
top: auto;433
bottom: ~'calc(-90% + 26px)';434
border-left: 6px solid transparent;435
border-right: 6px solid transparent;436
border-top: none;437
border-bottom: 6px solid #212121;438
}440
&::after {441
top: auto;442
bottom: -60%;443
}444
}445
}