A web-based drawing app
git clone git://soophie.de/outline
blob: 9f34e06f1e05b63e6dc14293bc9cb3559d4e488d (6804 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
&.modal-error {44
width: 300px;46
.align {47
justify-content: flex-end;48
}49
}51
&.theme-dark {52
background: @color-dark;53
color: white;55
button.action-cancel {56
background: @color-dark-grey;57
color: white;59
&:hover {60
background: lighten(@color-dark-grey, -2%);61
}62
}64
input[type="text"] {65
background: @color-black;66
color: white;68
&:hover {69
background: lighten(@color-black, -2%);70
}72
&:focus {73
background: lighten(@color-black, -2%);74
}75
}77
.separator {78
border-color: @color-dark-grey;79
}81
input[type="range"] {82
background: lighten(@color-black, 2%);83
}85
.preview {86
background: lighten(@color-black, 2%);87
}89
ul.avatar-list {91
li.avatar {92
border-color: @color-dark;93
background: lighten(@color-black, 1%);95
&:hover {96
border-color: lighten(@color-black, 3.5%);97
}98
}99
}100
}102
input.action-uuid,103
input.action-file {104
padding: 12px 14px;105
width: 100%;106
border: none;107
background: #FAFAFA;108
border-radius: 3px;109
font-size: 16px;110
user-select: none;112
&:hover {113
background: #F8F8F8;114
}116
&:focus {117
background: #F5F5F5;118
}119
}121
.separator {122
border-top: 1px solid #F5F5F5;123
margin: 20px 0;124
}126
.align {127
display: flex;128
justify-content: space-between;129
align-items: center;130
}132
p {133
font-size: 18px;134
letter-spacing: 0.2px;135
padding-top: 5px;136
margin-bottom: 25px;137
}139
button {140
padding: 12px 14px;141
border: none;142
background: #F8F9FA;143
border-radius: 3px;144
font-size: 16px;145
cursor: pointer;146
user-select: none;147
transition: background 0.1s;148
color: #212121;150
&:hover {151
background: lighten(#F8F9FA, -5%);152
}154
&.success {155
background: #28A745;156
color: white;158
&:hover {159
background: lighten(#28A745, -5%);160
}161
}163
&.danger {164
background: #DC3545;165
color: white;167
&:hover {168
background: lighten(#DC3545, -5%);169
}170
}172
&.info {173
background: #007BFF;174
color: white;176
&:hover {177
background: lighten(#007BFF, -5%);178
}179
}180
}182
button.action-join {183
width: 100%;184
}186
button.action-cancel {187
width: calc(50% - 10px);188
}190
button.action-save,191
button.action-clear,192
button.action-background,193
button.action-scaling,194
button.action-color,195
button.action-default {196
width: calc(50% - 10px);197
}199
ul.avatar-list {200
display: flex;201
flex-wrap: wrap;202
width: 100%;203
list-style-type: none;205
li.avatar {206
background: #EEE;207
border-radius: 9999px;208
border: 5px solid white;209
margin: 10px;210
width: 70px;211
height: 70px;212
cursor: pointer;213
transition: border-color 0.1s;215
&:hover {216
border: 5px solid #F8F8F8;217
}218
}219
}221
input.action-range {222
width: calc(100% - 80px);223
-webkit-appearance: none;224
background: #F8F8F8;225
height: 6px;227
&:hover {228
background: #F5F5F5;230
&::-webkit-slider-thumb {231
background: lighten(#888888, -20%);232
}233
}235
&::-webkit-slider-thumb {236
-webkit-appearance: none;237
background: #888888;238
width: 20px;239
height: 20px;240
border-radius: 9999px;241
border: none;242
cursor: pointer;243
transition: background 0.1s;244
}246
&::-webkit-slider-runnable-track {247
-webkit-appearance: none;248
}249
}251
.preview {252
width: 60px;253
height: 60px;254
background: #F5F5F5;255
border-radius: 9999px;256
display: flex;257
justify-content: center;258
align-items: center;260
.circle {261
width: 12px;262
height: 12px;263
background: #212121;264
border-radius: 9999px;265
}266
}268
&.modal-color {269
width: 580px;271
.align {272
width: calc(100% - 200px);273
margin-left: 200px;274
justify-content: flex-end;275
}276
}278
ul.bucket-list {279
display: flex;280
flex-wrap: wrap;281
width: 100%;282
list-style-type: none;284
li.bucket {285
background: #EEE;286
border-radius: 9999px;287
margin: 10px;288
width: 70px;289
height: 70px;290
cursor: pointer;291
transition: transform 0.2s;292
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);294
transform: scale(0.9);295
user-select: none;297
&:hover {298
transition: transform 0.2s;299
transform: scale(1);300
}302
&.active {303
transform: scale(1);304
border: 3px solid #212121;305
}307
&::after {308
position: absolute;309
bottom: -20%;310
}311
}312
}313
}315
.toolbar {316
position: fixed;317
left: calc(50% - 252px);318
bottom: 30px;319
z-index: 2;320
display: flex;321
z-index: 999;323
.bucket {324
width: 56px;325
height: 56px;326
border-radius: 9999px;327
background: #CCC;328
margin: 8px;329
transition: transform 0.2s;330
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);331
cursor: pointer;332
transform: scale(0.9);333
user-select: none;335
&:hover {336
transition: transform 0.2s;337
transform: scale(1);338
}340
&.active {341
transform: scale(1.1);342
}343
}344
}346
.actions {347
position: fixed;348
top: 30px;349
left: 30px;350
display: flex;351
}353
.action {354
user-select: none;355
position: relative;356
width: 46px;357
height: 46px;358
border: none;359
border-radius: 9999px;360
background: transparent;361
cursor: pointer;362
outline: none;363
position: fixed;364
margin-right: 8px;366
i {367
color: #212121;368
user-select: none;369
pointer-events: none;370
}372
&:hover {373
background: #ECECEC;374
}376
&::after {377
bottom: -60%;378
}379
}381
.tooltip {382
position: relative;383
display: flex;384
justify-content: center;385
align-items: center;387
&:hover {389
&::before {390
opacity: 1;391
transition-delay: 0.6s;392
}394
&::after {395
opacity: 1;396
transition-delay: 0.6s;397
}398
}400
&::after {401
display: flex;402
opacity: 0;403
content: attr(data-title);404
justify-content: center;405
align-items: center;406
position: absolute;407
background: #212121;408
color: white;409
min-height: 24px;410
padding: 0 10px;411
border-radius: 4px;412
font-size: 12px;413
top: auto;414
bottom: -70%;415
white-space: nowrap;416
z-index: 9999;417
pointer-events: none;418
}420
&.up {422
&::before {423
top: ~'calc(-90% + 26px)';424
bottom: auto;425
border-left: 6px solid transparent;426
border-right: 6px solid transparent;427
border-top: 6px solid #212121;428
border-bottom: none;429
}431
&::after {432
top: -60%;433
bottom: auto;434
}435
}437
&.down {439
&::before {440
top: auto;441
bottom: ~'calc(-90% + 26px)';442
border-left: 6px solid transparent;443
border-right: 6px solid transparent;444
border-top: none;445
border-bottom: 6px solid #212121;446
}448
&::after {449
top: auto;450
bottom: -60%;451
}452
}453
}