A web-based drawing app
git clone git://soophie.de/outline
blob: 9690e02d6d98e5a17cf94ee0d2a287251c30813f (5939 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
input.action-uuid,44
input.action-file {45
padding: 12px 14px;46
width: 100%;47
border: none;48
background: #FAFAFA;49
border-radius: 3px;50
font-size: 16px;51
user-select: none;53
&:hover {54
background: #F8F8F8;55
}57
&:focus {58
background: #F5F5F5;59
}60
}62
.seperator {63
border-top: 1px solid #F5F5F5;64
margin: 20px 0;65
}67
.align {68
display: flex;69
justify-content: space-between;70
align-items: center;71
}73
p {74
font-size: 18px;75
letter-spacing: 0.2px;76
padding-top: 5px;77
margin-bottom: 25px;78
}80
button {81
padding: 12px 14px;82
border: none;83
background: #F8F9FA;84
border-radius: 3px;85
font-size: 16px;86
cursor: pointer;87
user-select: none;88
transition: background 0.1s;89
color: #212121;91
&:hover {92
background: lighten(#F8F9FA, -5%);93
}95
&.success {96
background: #28A745;97
color: white;99
&:hover {100
background: lighten(#28A745, -5%);101
}102
}104
&.danger {105
background: #DC3545;106
color: white;108
&:hover {109
background: lighten(#DC3545, -5%);110
}111
}113
&.info {114
background: #007BFF;115
color: white;117
&:hover {118
background: lighten(#007BFF, -5%);119
}120
}121
}123
button.action-join {124
width: 100%;125
}127
button.action-cancel {128
width: calc(50% - 10px);129
}131
button.action-save,132
button.action-clear,133
button.action-background,134
button.action-scaling,135
button.action-color,136
button.action-default {137
width: calc(50% - 10px);138
}140
ul.avatar-list {141
display: flex;142
flex-wrap: wrap;143
width: 100%;144
list-style-type: none;146
li.avatar {147
background: #EEE;148
border-radius: 9999px;149
border: 5px solid white;150
margin: 10px;151
width: 70px;152
height: 70px;153
cursor: pointer;154
transition: border-color 0.1s;156
&:hover {157
border: 5px solid #F8F8F8;158
}159
}160
}162
input.action-range {163
width: calc(100% - 80px);164
-webkit-appearance: none;165
background: #F8F8F8;166
height: 6px;168
&:hover {169
background: #F5F5F5;171
&::-webkit-slider-thumb {172
background: lighten(#888888, -20%);173
}174
}176
&::-webkit-slider-thumb {177
-webkit-appearance: none;178
background: #888888;179
width: 20px;180
height: 20px;181
border-radius: 9999px;182
border: none;183
cursor: pointer;184
transition: background 0.1s;185
}187
&::-webkit-slider-runnable-track {188
-webkit-appearance: none;189
}190
}192
.preview {193
width: 60px;194
height: 60px;195
background: #F5F5F5;196
border-radius: 9999px;197
display: flex;198
justify-content: center;199
align-items: center;201
.circle {202
width: 12px;203
height: 12px;204
background: #212121;205
border-radius: 9999px;206
}207
}209
&.modal-color {210
width: 580px;212
.align {213
width: calc(100% - 200px);214
margin-left: 200px;215
justify-content: flex-end;216
}217
}219
ul.bucket-list {220
display: flex;221
flex-wrap: wrap;222
width: 100%;223
list-style-type: none;225
li.bucket {226
background: #EEE;227
border-radius: 9999px;228
margin: 10px;229
width: 70px;230
height: 70px;231
cursor: pointer;232
transition: transform 0.2s;233
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);235
transform: scale(0.9);236
user-select: none;238
&:hover {239
transition: transform 0.2s;240
transform: scale(1);241
}243
&.focused {244
transform: scale(1);245
border: 3px solid #212121;246
}248
&::after {249
position: absolute;250
bottom: -20%;251
}252
}253
}254
}256
.toolbar {257
position: fixed;258
left: calc(50% - 252px);259
bottom: 30px;260
z-index: 2;261
display: flex;262
z-index: 999;264
.bucket {265
width: 56px;266
height: 56px;267
border-radius: 9999px;268
background: #CCC;269
margin: 8px;270
transition: transform 0.2s;271
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);272
cursor: pointer;273
transform: scale(0.9);274
user-select: none;276
&:hover {277
transition: transform 0.2s;278
transform: scale(1);279
}281
&.focused {282
transform: scale(1.1);283
}284
}285
}287
.actions {288
position: fixed;289
top: 30px;290
left: 30px;291
display: flex;292
}294
.action {295
user-select: none;296
position: relative;297
width: 46px;298
height: 46px;299
border: none;300
border-radius: 9999px;301
background: transparent;302
cursor: pointer;303
outline: none;304
position: fixed;305
margin-right: 8px;307
i {308
color: #212121;309
user-select: none;310
pointer-events: none;311
}313
&:hover {314
background: #ECECEC;315
}317
&::after {318
bottom: -60%;319
}320
}322
.tooltip {323
position: relative;324
display: flex;325
justify-content: center;326
align-items: center;328
&:hover {330
&::before {331
opacity: 1;332
transition-delay: 0.6s;333
}335
&::after {336
opacity: 1;337
transition-delay: 0.6s;338
}339
}341
&::after {342
display: flex;343
opacity: 0;344
content: attr(data-title);345
justify-content: center;346
align-items: center;347
position: absolute;348
background: #212121;349
color: white;350
min-height: 24px;351
padding: 0 10px;352
border-radius: 4px;353
font-size: 12px;354
top: auto;355
bottom: -70%;356
white-space: nowrap;357
z-index: 9999;358
pointer-events: none;359
}361
&.up {363
&::before {364
top: ~'calc(-90% + 26px)';365
bottom: auto;366
border-left: 6px solid transparent;367
border-right: 6px solid transparent;368
border-top: 6px solid #212121;369
border-bottom: none;370
}372
&::after {373
top: -60%;374
bottom: auto;375
}376
}378
&.down {380
&::before {381
top: auto;382
bottom: ~'calc(-90% + 26px)';383
border-left: 6px solid transparent;384
border-right: 6px solid transparent;385
border-top: none;386
border-bottom: 6px solid #212121;387
}389
&::after {390
top: auto;391
bottom: -60%;392
}393
}394
}