A web-based drawing app
git clone git://soophie.de/outline
blob: 4e1efd848abc05e1d49c98c279593cca12e64028 (9652 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
.badge {25
display: inline-block;26
margin-top: -1px;27
margin-left: 5px;28
padding: 2px 4px;29
border-radius: 2px;30
font-weight: 500;31
font-size: 12px;32
color: white !important;34
&.prime {35
background: #0372EF;36
}38
&.beta {39
background: #388E3C;40
}41
}43
.controls {44
pointer-events: none;46
.notification {47
top: 30px;48
position: fixed;49
display: flex;50
justify-content: center;51
width: 100%;52
opacity: 0;54
p {55
display: inline-block;56
padding: 10px 24px;57
border-radius: 999px;58
background: #24292E;59
color: white;60
opacity: 0.95;61
user-select: none;62
pointer-events: none;63
}64
}66
.ad {67
position: fixed;68
width: 400px;69
height: 150px;70
border-radius: 4px;71
background: #EEE;72
bottom: 40px;73
right: 40px;74
pointer-events: all;75
}77
.hotbar {78
display: flex;79
position: fixed;80
left: calc(50% - 216px);81
bottom: 30px;82
pointer-events: all;83
z-index: -1;85
.color {86
margin: 6px;87
width: 60px;88
height: 60px;89
border-radius: 30px;90
background: #EEE;91
cursor: pointer;92
transition: transform 0.2s;93
transform: scale(0.9);95
&:not(.active):hover {96
transform: scale(1);97
}99
&.focus {100
transform: scale(1);101
}103
&.active {104
transform: scale(1.1);105
}106
}107
}109
.scale-modal {110
top: 40px;111
left: calc(50% - 200px);112
width: 400px;113
height: 60px;115
input[type="range"] {116
-webkit-appearance: none;117
width: calc(400px - 54px);118
margin-top: 21px;119
margin-left: 27px;120
height: 6px;121
background: #EEEEEE;122
border: none;123
border-radius: 4px;125
&::-webkit-slider-runnable-track {126
-webkit-appearance: none;127
}129
&::-webkit-slider-thumb {130
-webkit-appearance: none;131
height: 20px;132
width: 20px;133
margin-top: -0px;134
background: #9E9E9E;135
border-radius: 10px;136
cursor: pointer;138
&:hover {139
background: #757575;140
}141
}142
}143
}145
.clear-modal {146
top: calc(50% - 75px);147
left: calc(50% - 200px);148
width: 400px;149
height: 150px;150
display: grid;151
padding: 30px 10px 10px 10px;153
.text-clear {154
font-size: 20px;155
width: 380px;156
height: px;157
text-align: center;158
align-items: center;159
}161
.align {162
display: flex;163
margin-top: auto;165
.btn-cancel {166
width: 185px;167
height: 50px;168
border: none;169
border-radius: 3px;170
background-color: #F5F5F5;171
font-size: 17px;173
&:hover {174
background-color: #E0E0E0;175
}176
}178
.btn-apply {179
width: 185px;180
height: 50px;181
border: none;182
border-radius: 3px;183
border-color: grey;184
background-color: #F5F5F5;185
margin-left: 10px;186
font-size: 17px;188
&:hover {189
background-color: #E0E0E0;190
}191
}192
}193
}195
.capture-modal {196
top: calc(50% - 250px);197
left: calc(50% - 200px);198
width: 400px;199
height: 500px;200
display: grid;202
.text-save {203
font-size: 20px;204
width: 380px;205
height: px;206
text-align: center;207
align-items: center;208
margin-top: 20px;209
}211
.preview {212
height: 250px;213
background: #F5F5F5;214
border: 1px solid #f1f1f1;215
border-radius: 3px;216
margin-top: 20px;217
margin-left: 20px;218
margin-right: 20px;219
}221
.action-file {222
border-radius: 3px;223
border: 2px solid #f1f1f1;224
height: 50px;225
margin-top: 10px;226
margin-left: 20px;227
margin-right: 20px;228
padding: 0px 0px 0px 10px;229
font-size: 15px;230
}232
.align {233
display: flex;234
margin-top: auto;235
margin-bottom: 20px;237
.btn-cancel {238
width: 170px;239
height: 50px;240
border: none;241
border-radius: 3px;242
background-color: #F5F5F5;243
font-size: 17px;244
margin-left: 20px;246
&:hover {247
background-color: #E0E0E0;248
}249
}251
.btn-apply {252
width: 170px;253
height: 50px;254
border: none;255
border-radius: 3px;256
border-color: grey;257
background-color: #F5F5F5;258
margin-left: 20px;259
font-size: 17px;261
&:hover {262
background-color: #E0E0E0;263
}264
}265
}266
}268
.toolbar {269
top: 20px;270
left: 20px;271
}273
.actionbar {274
top: 20px;275
right: 20px;276
}278
.actionbar,279
.toolbar {280
display: flex;281
position: fixed;282
pointer-events: all;284
.action,285
.tool {286
width: 44px;287
height: 44px;288
padding: 10px;289
margin-left: 8px;290
border-radius: 22px;291
cursor: pointer;293
&:hover {294
background: rgba(#FAFAFA, 0.95);296
&.ripple {298
&:not(.active).ripple-active {299
background: lighten(rgba(#FAFAFA, 0.95), -2%);300
}302
&.active.ripple-active {303
background: lighten(rgba(#EEEEEE, 0.95), -2%);304
}305
}306
}308
&.active {309
background: rgba(#EEEEEE, 0.95);310
}312
i.ico {313
color: #424242;314
}315
}316
}317
}319
.colors-modal {320
flex-wrap: wrap;321
min-width: 410px;322
width: 410px;323
max-width: 410px;324
padding: 30px !important;325
top: calc(50% - 421px);326
left: calc(50% - 205px);327
display: flex;328
gap: 12px;330
.color {331
width: 60px;332
height: 60px;333
border-radius: 30px;334
background: #EEE;335
cursor: pointer;336
transition: transform 0.2s;337
transform: scale(0.9);339
&:not(.active):hover {340
transform: scale(1);341
}343
&.active {344
transform: scale(1.1);345
}347
&.focus {348
transform: scale(1);349
}350
}351
}353
.multiplayer-modal {354
top: 75px;355
right: 120px;356
}358
.account-modal {359
top: 75px;360
right: 70px;361
}363
.settings-modal {364
top: 75px;365
right: 20px;366
}368
.device-modal {369
top: 100px;370
right: 320px;371
}373
.language-modal {374
top: 100px;375
right: 860px;376
}378
.settings-modal {379
top: 75px;380
right: 20px;381
}383
.modal {384
width: 250px;385
position: fixed;386
background: white;387
border: 1px solid #F1F1F1;388
border-radius: 4px;389
padding: 6px 0;390
pointer-events: all;391
overflow: hidden;392
z-index: -1;393
display: flex;395
.main {396
width: 248px;397
min-width: 248px;7398
max-width: 248px;399
}401
ul.tab-list {402
width: 248px;403
min-width: 248px;404
max-width: 248px;405
}407
.header {408
display: flex;409
margin-bottom: 3px;411
.back {412
margin: 10px;413
margin-top: 15px;414
margin-right: 3px;415
width: 36px;416
height: 36px;417
border-radius: 18px;418
padding: 6px;419
padding-left: 5px;420
cursor: pointer;422
i.ico {423
color: #424242;424
}426
&:hover {427
background: #FAFAFA;428
}430
&.ripple {432
&.ripple-active {433
background: lighten(#FAFAFA, -2%);434
}435
}436
}438
.info {439
display: flex;440
flex-direction: column;441
margin-top: 15px;443
p {444
display: flex;445
align-items: center;446
font-weight: 500;447
color: #616161;448
user-select: none;449
pointer-events: none;450
}452
span {453
display: block;454
margin-top: 3px;455
font-size: 12px;456
color: #9E9E9E;457
user-select: none;458
pointer-events: none;459
}460
}461
}463
ul.item-list {465
.separator {466
margin: 6px 0;467
width: 100%;468
height: 1px;469
background: #F1F1F1;470
}472
li.caption {473
padding: 2px 15px;474
padding-top: 12px;475
list-style: none;477
p {478
color: #9E9E9E;479
user-select: none;480
pointer-events: none;481
}482
}484
li.item {485
display: flex;486
align-items: center;487
padding: 15px;488
cursor: pointer;490
&.empty {492
p {493
display: block;494
width: 100%;495
color: #9E9E9E;496
text-align: center;497
user-select: none;498
pointer-events: none;499
}500
}502
&:not(.active):not(.inactive) {504
&:hover {505
background: #FAFAFA;506
}508
&.ripple {510
&.ripple-active {511
background: lighten(#FAFAFA, -2%);512
}513
}514
}516
i.ico {517
color: #424242;518
user-select: none;519
pointer-events: none;520
}522
i.lang {523
display: flex;524
justify-content: center;525
align-items: center;526
font-style: normal;527
font-weight: 600;528
width: 24px;529
height: 24px;530
color: #424242;531
user-select: none;532
pointer-events: none;533
}535
.info {536
display: flex;537
flex-direction: column;538
margin-left: 10px;539
max-width: calc(100% - 24px - 10px);541
p {542
display: flex;543
align-items: center;544
font-weight: 500;545
color: #616161;546
user-select: none;547
pointer-events: none;548
}550
span {551
display: block;552
margin-top: 3px;553
font-size: 12px;554
color: #9E9E9E;555
user-select: none;556
pointer-events: none;557
white-space: nowrap;558
overflow: hidden;559
text-overflow: ellipsis;560
}561
}563
&.active {564
background: #EEEEEE;566
&.ripple {568
&.ripple-active {569
background: lighten(#EEEEEE, -2%);570
}571
}572
}574
&.inactive {576
i.ico {577
color: #9E9E9E;578
}580
.info {582
p {583
color: #9E9E9E;584
}585
}586
}587
}588
}589
}591
.tooltip {592
position: relative;593
display: flex;594
justify-content: center;595
align-items: center;597
&:hover {599
&::before {600
opacity: 0.95;601
transition-delay: 0.6s;602
}604
&::after {605
opacity: 0.95;606
transition-delay: 0.6s;607
}608
}610
&::after {611
display: flex;612
opacity: 0;613
content: attr(data-title);614
justify-content: center;615
align-items: center;616
position: absolute;617
background: #24292E;618
color: white;619
min-height: 24px;620
padding: 0 12px;621
border-radius: 999px;622
font-size: 12px;623
top: auto;624
bottom: -70%;625
white-space: nowrap;626
z-index: 9999;627
pointer-events: none;628
}630
&.up {632
&::before {633
top: ~'calc(-90% + 26px)';634
bottom: auto;635
border-left: 6px solid transparent;636
border-right: 6px solid transparent;637
border-top: 6px solid #24292E;638
border-bottom: none;639
}641
&::after {642
top: -60%;643
bottom: auto;644
}645
}647
&.down {649
&::before {650
top: auto;651
bottom: ~'calc(-90% + 26px)';652
border-left: 6px solid transparent;653
border-right: 6px solid transparent;654
border-top: none;655
border-bottom: 6px solid #24292E;656
}658
&::after {659
top: auto;660
bottom: -60%;661
}662
}663
}