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