A web-based drawing app
git clone git://soophie.de/outline
blob: d2cf05983a30379df5f37fa5941ad070505bb6c2 (10620 bytes)[doc][blame][raw]
1
* {2
-webkit-tap-highlight-color: transparent;3
}5
html,6
body {7
overflow: hidden;8
}10
.wrapper {11
position: fixed;12
top: 0;13
left: 0;14
right: 0;15
bottom: 0;16
background: white;17
z-index: 999;18
}20
.header-list {21
width: 100%;22
height: 60px;23
background: white;24
border-bottom: 1px solid @brand-grey-5;25
display: flex;26
flex-direction: column;27
pointer-events: all;29
.sidebar {30
justify-content: flex-end !important;31
}33
.mainbar,34
.sidebar {35
width: 100%;36
display: flex;37
justify-content: space-between;38
padding: 8px 14px;39
min-height: 60px;40
height: 60px;42
&.inactive {44
.action-item,45
.tool-item,46
.option-item {47
pointer-events: none !important;48
}49
}51
.tool,52
.action,53
.option {55
ul {56
list-style-type: none;57
display: flex;58
gap: 10px;60
li {61
width: 44px;62
height: 44px;63
padding: 10px;64
border-radius: 22px;65
cursor: pointer;66
pointer-events: all;68
&:not(.inactive):not(.active):hover {69
background: rgba(@brand-grey-7, 0.95);71
&.ripple {73
&.ripple-active {74
background: lighten(rgba(@brand-grey-7, 0.95), -2%);75
}76
}77
}79
&.active {80
background: rgba(#EEEEEE, 0.95);82
&.ripple {84
&.ripple-active {85
background: lighten(rgba(#EEEEEE, 0.95), -2%);86
}87
}88
}90
&.inactive {92
i.ico {93
color: @brand-grey-4;94
}95
}97
i.ico {98
color: @brand-grey-1;99
}100
}101
}102
}103
}104
}106
#canvas,107
#overlay,108
.controls {109
position: fixed;110
top: 0;111
left: 0;112
right: 0;113
bottom: 0;114
}116
#overlay {117
pointer-events: none;118
}120
.badge {121
display: inline-block;122
margin-top: -1px;123
margin-left: 5px;124
padding: 2px 4px;125
border-radius: 2px;126
font-weight: 500;127
font-size: 12px;128
color: white !important;130
&.prime {131
background: @brand-blue;132
}134
&.beta {135
background: @brand-green;136
}137
}139
.key {140
display: inline-block;141
padding: 3px 8px;142
border-radius: 3px;143
color: @brand-grey-2;144
font-weight: 500;145
background: @brand-grey-7;146
border: 1px solid @brand-grey-4;148
&.round {149
border-radius: 999px;150
}152
&.ico {153
padding: 2px;154
max-width: 28px;155
max-height: 27px;156
display: flex;157
justify-content: center;158
align-items: center;160
i.ico {161
padding: 2px;162
max-width: 28px;163
}164
}165
}167
.button {168
display: block;169
height: 44px;170
padding: 0 22px;171
border: none;172
border-radius: 4px;173
background: @brand-grey-6;174
color: @brand-black;175
font-size: 16px;177
&:hover {179
&.ripple-active {180
background: lighten(@brand-grey-6, -2%);181
}182
}184
&.outline {185
border: 1px solid @brand-grey-5;186
background: transparent;188
&:hover {190
&.ripple-active {191
background: lighten(white, -2%);192
}193
}194
}196
&.prime {197
background: @brand-blue;198
color: white;200
&:hover {202
&.ripple-active {203
background: lighten(@brand-blue, -2%);204
}205
}206
}208
&.danger {209
background: @brand-red;210
color: white;212
&:hover {214
&.ripple-active {215
background: lighten(@brand-red, -2%);216
}217
}218
}219
}221
.controls {222
pointer-events: none;224
.notification {225
top: 90px;226
position: fixed;227
display: flex;228
justify-content: center;229
width: 100%;230
opacity: 0;232
p {233
display: inline-block;234
padding: 10px 24px;235
border-radius: 999px;236
background: @brand-black;237
color: white;238
opacity: 0.95;239
user-select: none;240
pointer-events: none;241
}242
}244
.hotbar {245
display: flex;246
position: fixed;247
left: calc(50% - 216px);248
bottom: 30px;249
z-index: -1;251
&.inactive {253
.color {254
pointer-events: none !important;255
}256
}258
.color {259
margin: 6px;260
width: 60px;261
height: 60px;262
border-radius: 30px;263
background: #EEE;264
cursor: pointer;265
transition: transform 0.2s;266
transform: scale(0.9);267
pointer-events: all;269
&:not(.active):hover {270
transform: scale(1);271
}273
&.focus {274
transform: scale(1);275
}277
&.active {278
transform: scale(1.1);279
}280
}281
}283
.pencil-modal {284
top: 75px;285
left: 120px;286
}288
.scale-modal {289
top: 75px;290
left: 70px;291
width: 400px;292
height: 60px;294
input[type="range"] {295
-webkit-appearance: none;296
width: calc(400px - 54px);297
margin-top: 21px;298
margin-left: 27px;299
height: 6px;300
background: #EEEEEE;301
border: none;302
border-radius: 4px;304
&::-webkit-slider-runnable-track {305
-webkit-appearance: none;306
}308
&::-webkit-slider-thumb {309
-webkit-appearance: none;310
height: 20px;311
width: 20px;312
margin-top: -0px;313
background: @brand-grey-3;314
border-radius: 10px;315
cursor: pointer;317
&:hover {318
background: @brand-grey-2;319
}320
}321
}322
}324
.clear-modal {325
top: calc(50% - 75.5px);326
left: calc(50% - 175px);327
width: 350px;328
padding: 25px;329
display: flex;330
flex-direction: column;332
.info {333
width: 100%;334
font-size: 20px;335
text-align: center;336
margin-bottom: 25px;337
color: @brand-black;338
user-select: none;339
}341
.align {342
display: flex;343
gap: 15px;345
.btn-cancel {346
width: 50%;347
height: 48px;348
border: none;349
border-radius: 3px;350
font-size: 17px;351
}353
.btn-apply {354
width: 50%;355
height: 48px;356
border: none;357
border-radius: 3px;358
border-color: grey;359
font-size: 17px;360
}361
}362
}364
.colors-modal {365
flex-wrap: wrap;366
min-width: 418px;367
width: 418px;368
max-width: 418px;369
padding: 30px !important;370
top: 75px;371
left: 15px;372
display: flex;373
gap: 12px;374
max-height: calc(100vh - 90px);375
overflow-y: auto;377
&::-webkit-scrollbar {378
width: 8px;379
}381
&::-webkit-scrollbar-thumb {382
width: 8px;383
background: @brand-grey-5;385
&:hover,386
&:active {387
background: @brand-grey-4;388
}389
}391
.color {392
width: 60px;393
height: 60px;394
border-radius: 30px;395
background: #EEE;396
cursor: pointer;397
transition: transform 0.2s;398
transform: scale(0.9);400
&:not(.active):hover {401
transform: scale(1);402
}404
&.active {405
transform: scale(1.1);406
}408
&.focus {409
transform: scale(1);410
}411
}412
}414
.multiplayer-modal {415
top: 75px;416
right: 120px;417
}419
.account-modal {420
top: 75px;421
right: 70px;422
}424
.more-modal {425
top: 75px;426
right: 15px;427
}429
.help-modal {430
top: calc(50% - 250px);431
left: calc(50% - 400px);432
width: 800px;433
height: 500px;434
display: flex;435
padding: 0;437
.side {438
border-right: 1px solid @brand-grey-5;439
width: 230px;440
min-width: 230px;441
overflow: hidden;443
ul.item-list {444
width: 100%;445
padding: 6px 0;447
li.item {448
display: flex;449
flex-direction: column;451
.info {452
font-size: 16px;453
width: 100%;454
max-width: 100%;455
margin-left: 0;456
}457
}458
}459
}461
.content {462
padding: 6px 0;463
overflow-y: auto;465
&::-webkit-scrollbar {466
width: 8px;467
}469
&::-webkit-scrollbar-thumb {470
width: 8px;471
background: @brand-grey-5;473
&:hover,474
&:active {475
background: @brand-grey-4;476
}477
}479
ul.content-list {480
list-style-type: none;481
pointer-events: none;483
li.content-item {484
pointer-events: none;485
padding: 15px 20px;486
padding-top: 25px;488
p {489
font-size: 16px;490
color: @brand-grey-2;491
line-height: 20px;492
user-select: none;493
pointer-events: none;494
margin-bottom: 40px;495
}497
h2 {498
font-size: 24px;499
font-weight: 500;500
margin-bottom: 20px;501
user-select: none;502
pointer-events: none;503
color: @brand-grey-1;504
}506
h3 {507
font-size: 22px;508
font-weight: 500;509
margin-bottom: 20px;510
user-select: none;511
pointer-events: none;512
color: @brand-grey-1;513
}514
}515
}516
}517
}518
}520
.modal {521
width: 250px;522
position: fixed;523
background: white;524
border: 1px solid @brand-grey-5;525
border-radius: 4px;526
padding: 6px 0;527
pointer-events: all;528
overflow: hidden;529
z-index: -1;530
display: flex;532
.main {533
width: 248px;534
min-width: 248px;7535
max-width: 248px;536
}538
ul.tab-list {539
width: 248px;540
min-width: 248px;541
max-width: 248px;542
}544
.header {545
display: flex;546
margin-bottom: 3px;548
.back {549
margin: 10px;550
margin-top: 15px;551
margin-right: 3px;552
width: 36px;553
height: 36px;554
border-radius: 18px;555
padding: 6px;556
padding-left: 5px;557
cursor: pointer;559
i.ico {560
color: @brand-grey-0;561
}563
&:hover {564
background: @brand-grey-7;565
}567
&.ripple {569
&.ripple-active {570
background: lighten(@brand-grey-7, -2%);571
}572
}573
}575
.info {576
display: flex;577
flex-direction: column;578
margin-top: 15px;580
p {581
display: flex;582
align-items: center;583
font-weight: 500;584
color: @brand-grey-1;585
user-select: none;586
pointer-events: none;587
}589
span {590
display: block;591
margin-top: 3px;592
font-size: 12px;593
color: @brand-grey-3;594
user-select: none;595
pointer-events: none;596
}597
}598
}600
ul.item-list {602
.separator {603
margin: 6px 0;604
width: 100%;605
height: 1px;606
background: @brand-grey-5;607
}609
li.caption {610
padding: 2px 15px;611
padding-top: 12px;612
list-style: none;614
p {615
color: @brand-grey-3;616
user-select: none;617
pointer-events: none;618
}619
}621
li.item {622
display: flex;623
align-items: center;624
padding: 15px;625
cursor: pointer;627
&.empty {629
p {630
display: block;631
width: 100%;632
color: @brand-grey-3;633
text-align: center;634
user-select: none;635
pointer-events: none;636
}637
}639
&:not(.active):not(.inactive) {641
&:hover {642
background: @brand-grey-7;643
}645
&.ripple {647
&.ripple-active {648
background: lighten(@brand-grey-7, -2%);649
}650
}651
}653
i.ico {654
color: @brand-grey-1;655
user-select: none;656
pointer-events: none;657
}659
i.lang {660
display: flex;661
justify-content: center;662
align-items: center;663
font-style: normal;664
font-weight: 600;665
width: 24px;666
height: 24px;667
color: @brand-grey-1;668
user-select: none;669
pointer-events: none;670
}672
.info {673
display: flex;674
flex-direction: column;675
margin-left: 10px;676
max-width: calc(100% - 24px - 10px);678
p {679
display: flex;680
align-items: center;681
font-weight: 500;682
color: @brand-grey-1;683
user-select: none;684
pointer-events: none;685
}687
span {688
display: block;689
margin-top: 3px;690
font-size: 12px;691
color: @brand-grey-3;692
user-select: none;693
pointer-events: none;694
white-space: nowrap;695
overflow: hidden;696
text-overflow: ellipsis;697
}698
}700
&.active {701
background: #EEEEEE;703
&.ripple {705
&.ripple-active {706
background: lighten(#EEEEEE, -2%);707
}708
}709
}711
&.inactive {713
i.ico {714
color: @brand-grey-4;715
}717
.info {719
p {720
color: @brand-grey-3;721
}723
span {724
color: @brand-grey-3;725
}726
}727
}728
}729
}730
}