A web-based drawing app
git clone git://soophie.de/outline
blob: ed86188a7170c9c612ce85bebd98af009d4baaf1 (8599 bytes)[doc][blame][raw]
1
* {2
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);3
}5
html,6
body {7
overflow: hidden;8
}10
#canvas,11
#overlay,12
.controls {13
position: fixed;14
top: 0;15
left: 0;16
right: 0;17
bottom: 0;18
}20
#overlay {21
pointer-events: none;22
}24
.prime-badge {25
display: inline-block;26
margin-top: -1px;27
margin-left: 5px;28
padding: 2px 4px;29
background: #0372EF;30
border-radius: 2px;31
font-weight: 500;32
font-size: 12px;33
color: white !important;34
}36
.beta-badge {37
display: inline-block;38
margin-top: -1px;39
margin-left: 5px;40
padding: 2px 4px;41
background: #388E3C;42
border-radius: 2px;43
font-weight: 500;44
font-size: 12px;45
color: white !important;46
}48
.controls {49
pointer-events: none;51
.notification {52
top: 30px;53
position: fixed;54
display: flex;55
justify-content: center;56
width: 100%;57
opacity: 0;59
p {60
display: inline-block;61
padding: 10px 24px;62
border-radius: 999px;63
background: #24292E;64
color: white;65
opacity: 0.95;66
user-select: none;67
pointer-events: none;68
}69
}71
.ad {72
position: fixed;73
width: 400px;74
height: 150px;75
border-radius: 4px;76
background: #EEE;77
bottom: 40px;78
right: 40px;79
pointer-events: all;80
}82
.hotbar {83
display: flex;84
position: fixed;85
left: calc(50% - 216px);86
bottom: 30px;87
pointer-events: all;88
z-index: -1;90
.color {91
margin: 6px;92
width: 60px;93
height: 60px;94
border-radius: 30px;95
background: #EEE;96
cursor: pointer;97
transition: transform 0.2s;98
transform: scale(0.9);100
&:not(.active):hover {101
transform: scale(1);102
}104
&.focus {105
transform: scale(1);106
}108
&.active {109
transform: scale(1.1);110
}111
}112
}114
.scale-modal {115
top: 40px;116
left: calc(50% - 200px);117
width: 400px;118
height: 60px;120
input[type="range"] {121
-webkit-appearance: none;122
width: calc(400px - 54px);123
margin-top: 21px;124
margin-left: 27px;125
height: 6px;126
background: #EEEEEE;127
border: none;128
border-radius: 4px;130
&::-webkit-slider-runnable-track {131
-webkit-appearance: none;132
}134
&::-webkit-slider-thumb {135
-webkit-appearance: none;136
height: 20px;137
width: 20px;138
margin-top: -0px;139
background: #9E9E9E;140
border-radius: 10px;141
cursor: pointer;143
&:hover {144
background: #757575;145
}146
}147
}148
}150
.clear-modal {151
top: calc(50% - 75px);152
left: calc(50% - 200px);153
width: 400px;154
height: 150px;155
display: grid;156
padding: 30px 10px 10px 10px;158
.text-clear {159
font-size: 20px;160
width: 380px;161
height: px;162
text-align: center;163
align-items: center;164
}166
.align {167
display: flex;168
margin-top: auto;170
.btn-cancel {171
width: 185px;172
height: 50px;173
border: none;174
border-radius: 3px;175
background-color: #F5F5F5;176
font-size: 17px;178
&:hover {179
background-color: #E0E0E0;180
}181
}183
.btn-apply {184
width: 185px;185
height: 50px;186
border: none;187
border-radius: 3px;188
border-color: grey;189
background-color: #F5F5F5;190
margin-left: 10px;191
font-size: 17px;193
&:hover {194
background-color: #E0E0E0;195
}196
}197
}198
}200
.toolbar {201
top: 20px;202
left: 20px;203
}205
.actionbar {206
top: 20px;207
right: 20px;208
}210
.actionbar,211
.toolbar {212
display: flex;213
position: fixed;214
pointer-events: all;216
.action,217
.tool {218
width: 44px;219
height: 44px;220
padding: 10px;221
margin-left: 8px;222
border-radius: 22px;223
cursor: pointer;225
&:hover {226
background: rgba(#FAFAFA, 0.95);228
&.ripple {230
&:not(.active).ripple-active {231
background: lighten(rgba(#FAFAFA, 0.95), -2%);232
}234
&.active.ripple-active {235
background: lighten(rgba(#EEEEEE, 0.95), -2%);236
}237
}238
}240
&.active {241
background: rgba(#EEEEEE, 0.95);242
}244
i.ico {245
color: #424242;246
}247
}248
}249
}251
.multiplayer-modal {252
top: 75px;253
right: 120px;254
}256
.account-modal {257
top: 75px;258
right: 70px;259
}261
.settings-modal {262
top: 75px;263
right: 20px;264
}266
.device-modal {267
top: 100px;268
right: 320px;269
}271
.language-modal {272
top: 100px;273
right: 860px;274
}276
.settings-modal {277
top: 75px;278
right: 20px;279
}281
.colors-modal {282
flex-wrap: wrap;283
width: 425px;284
max-width: 425px;285
min-width: 425px;286
height: 860px;287
padding: 30px !important;288
top: calc(50% - 430px);289
left: calc(50% - 212.5px);291
.color {292
margin: 6px;293
width: 60px;294
height: 60px;295
border-radius: 30px;296
background: #EEE;297
cursor: pointer;298
transition: transform 0.2s;299
transform: scale(0.9);301
&:not(.active):hover {302
transform: scale(1);303
}305
&.active {306
transform: scale(1.1);307
}309
&.focus {310
transform: scale(1);311
}312
}313
}316
.modal {317
width: 250px;318
position: fixed;319
background: white;320
border: 1px solid #F1F1F1;321
border-radius: 4px;322
padding: 6px 0;323
pointer-events: all;324
overflow: hidden;325
z-index: -1;326
display: flex;328
.main {329
width: 248px;330
min-width: 248px;7331
max-width: 248px;332
}334
ul.tab-list {335
width: 248px;336
min-width: 248px;337
max-width: 248px;338
}340
.header {341
display: flex;342
margin-bottom: 3px;344
.back {345
margin: 10px;346
margin-top: 15px;347
margin-right: 3px;348
width: 36px;349
height: 36px;350
border-radius: 18px;351
padding: 6px;352
padding-left: 5px;353
cursor: pointer;355
i.ico {356
color: #424242;357
}359
&:hover {360
background: #FAFAFA;361
}363
&.ripple {365
&.ripple-active {366
background: lighten(#FAFAFA, -2%);367
}368
}369
}371
.info {372
display: flex;373
flex-direction: column;374
margin-top: 15px;376
p {377
display: flex;378
align-items: center;379
font-weight: 500;380
color: #616161;381
user-select: none;382
pointer-events: none;383
}385
span {386
display: block;387
margin-top: 3px;388
font-size: 12px;389
color: #9E9E9E;390
user-select: none;391
pointer-events: none;392
}393
}394
}396
ul.item-list {398
.separator {399
margin: 6px 0;400
width: 100%;401
height: 1px;402
background: #F1F1F1;403
}405
li.caption {406
padding: 2px 15px;407
padding-top: 12px;408
list-style: none;410
p {411
color: #9E9E9E;412
user-select: none;413
pointer-events: none;414
}415
}417
li.item {418
display: flex;419
align-items: center;420
padding: 15px;421
cursor: pointer;423
&.empty {425
p {426
display: block;427
width: 100%;428
color: #9E9E9E;429
text-align: center;430
user-select: none;431
pointer-events: none;432
}433
}435
&:not(.active):not(.inactive) {437
&:hover {438
background: #FAFAFA;439
}441
&.ripple {443
&.ripple-active {444
background: lighten(#FAFAFA, -2%);445
}446
}447
}449
i.ico {450
color: #424242;451
user-select: none;452
pointer-events: none;453
}455
i.lang {456
display: flex;457
justify-content: center;458
align-items: center;459
font-style: normal;460
font-weight: 600;461
width: 24px;462
height: 24px;463
color: #424242;464
user-select: none;465
pointer-events: none;466
}468
.info {469
display: flex;470
flex-direction: column;471
margin-left: 10px;472
max-width: calc(100% - 24px - 10px);474
p {475
display: flex;476
align-items: center;477
font-weight: 500;478
color: #616161;479
user-select: none;480
pointer-events: none;481
}483
span {484
display: block;485
margin-top: 3px;486
font-size: 12px;487
color: #9E9E9E;488
user-select: none;489
pointer-events: none;490
white-space: nowrap;491
overflow: hidden;492
text-overflow: ellipsis;493
}494
}496
&.active {497
background: #EEEEEE;499
&.ripple {501
&.ripple-active {502
background: lighten(#EEEEEE, -2%);503
}504
}505
}507
&.inactive {509
i.ico {510
color: #9E9E9E;511
}513
.info {515
p {516
color: #9E9E9E;517
}518
}519
}520
}521
}522
}524
.tooltip {525
position: relative;526
display: flex;527
justify-content: center;528
align-items: center;530
&:hover {532
&::before {533
opacity: 0.95;534
transition-delay: 0.6s;535
}537
&::after {538
opacity: 0.95;539
transition-delay: 0.6s;540
}541
}543
&::after {544
display: flex;545
opacity: 0;546
content: attr(data-title);547
justify-content: center;548
align-items: center;549
position: absolute;550
background: #24292E;551
color: white;552
min-height: 24px;553
padding: 0 12px;554
border-radius: 999px;555
font-size: 12px;556
top: auto;557
bottom: -70%;558
white-space: nowrap;559
z-index: 9999;560
pointer-events: none;561
}563
&.up {565
&::before {566
top: ~'calc(-90% + 26px)';567
bottom: auto;568
border-left: 6px solid transparent;569
border-right: 6px solid transparent;570
border-top: 6px solid #24292E;571
border-bottom: none;572
}574
&::after {575
top: -60%;576
bottom: auto;577
}578
}580
&.down {582
&::before {583
top: auto;584
bottom: ~'calc(-90% + 26px)';585
border-left: 6px solid transparent;586
border-right: 6px solid transparent;587
border-top: none;588
border-bottom: 6px solid #24292E;589
}591
&::after {592
top: auto;593
bottom: -60%;594
}595
}596
}