A web-based drawing app
git clone git://soophie.de/outline
blob: b5734ea09c4de94716f6173c8abcec9f09c38c8e (10844 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
&.placeholder {69
pointer-events: none;70
}72
&:not(.inactive):not(.active):hover {73
background: rgba(@brand-grey-7, 0.95);75
&.ripple {77
&.ripple-active {78
background: lighten(rgba(@brand-grey-7, 0.95), -2%);79
}80
}81
}83
&.active {84
background: rgba(#EEEEEE, 0.95);86
&.ripple {88
&.ripple-active {89
background: lighten(rgba(#EEEEEE, 0.95), -2%);90
}91
}92
}94
&.inactive {96
i.ico {97
color: @brand-grey-4;98
}99
}101
i.ico {102
color: @brand-grey-1;103
}104
}105
}106
}107
}108
}110
#canvas,111
#overlay,112
.controls {113
position: fixed;114
top: 0;115
left: 0;116
right: 0;117
bottom: 0;118
}120
#overlay {121
pointer-events: none;122
}124
.badge {125
display: inline-block;126
margin-top: -1px;127
margin-left: 5px;128
padding: 2px 4px;129
border-radius: 2px;130
font-weight: 500;131
font-size: 12px;132
color: white !important;134
&.prime {135
background: @brand-blue;136
}138
&.beta {139
background: @brand-green;140
}141
}143
.key {144
display: inline-block;145
padding: 3px 8px;146
border-radius: 3px;147
color: @brand-grey-2;148
font-weight: 500;149
background: @brand-grey-7;150
border: 1px solid @brand-grey-4;152
&.round {153
border-radius: 999px;154
}156
&.ico {157
padding: 2px;158
max-width: 28px;159
max-height: 27px;160
display: flex;161
justify-content: center;162
align-items: center;164
i.ico {165
padding: 2px;166
max-width: 28px;167
}168
}169
}171
.button {172
display: block;173
height: 44px;174
padding: 0 22px;175
border: none;176
border-radius: 4px;177
background: @brand-grey-6;178
color: @brand-black;179
font-size: 16px;181
&:hover {183
&.ripple-active {184
background: lighten(@brand-grey-6, -2%);185
}186
}188
&.outline {189
border: 1px solid @brand-grey-5;190
background: transparent;192
&:hover {194
&.ripple-active {195
background: lighten(white, -2%);196
}197
}198
}200
&.prime {201
background: @brand-blue;202
color: white;204
&:hover {206
&.ripple-active {207
background: lighten(@brand-blue, -2%);208
}209
}210
}212
&.danger {213
background: @brand-red;214
color: white;216
&:hover {218
&.ripple-active {219
background: lighten(@brand-red, -2%);220
}221
}222
}223
}225
.controls {226
pointer-events: none;228
.notification {229
top: 90px;230
position: fixed;231
display: flex;232
justify-content: center;233
width: 100%;234
opacity: 0;236
p {237
display: inline-block;238
padding: 10px 24px;239
border-radius: 999px;240
background: @brand-black;241
color: white;242
opacity: 0.95;243
user-select: none;244
pointer-events: none;245
}246
}248
.hotbar {249
display: flex;250
position: fixed;251
left: calc(50% - 216px);252
bottom: 30px;253
z-index: -1;255
&.inactive {257
.color {258
pointer-events: none !important;259
}260
}262
.color {263
margin: 6px;264
width: 60px;265
height: 60px;266
border-radius: 30px;267
background: #EEE;268
cursor: pointer;269
transition: transform 0.2s;270
transform: scale(0.9);271
pointer-events: all;273
&:not(.active):hover {274
transform: scale(1);275
}277
&.focus {278
transform: scale(1);279
}281
&.active {282
transform: scale(1.1);283
}284
}285
}287
.pencil-modal {288
top: 75px;289
left: 120px;290
}292
.scale-modal {293
top: 75px;294
left: 70px;295
width: 400px;296
height: 60px;298
input[type="range"] {299
-webkit-appearance: none;300
width: calc(400px - 54px);301
margin-top: 21px;302
margin-left: 27px;303
height: 6px;304
background: #EEEEEE;305
border: none;306
border-radius: 4px;308
&::-webkit-slider-runnable-track {309
-webkit-appearance: none;310
}312
&::-webkit-slider-thumb {313
-webkit-appearance: none;314
height: 20px;315
width: 20px;316
margin-top: -0px;317
background: @brand-grey-3;318
border-radius: 10px;319
cursor: pointer;321
&:hover {322
background: @brand-grey-2;323
}324
}325
}326
}328
.clear-modal {329
top: calc(50% - 75.5px);330
left: calc(50% - 175px);331
width: 350px;332
padding: 25px;333
display: flex;334
flex-direction: column;336
.info {337
width: 100%;338
font-size: 20px;339
text-align: center;340
margin-bottom: 25px;341
color: @brand-black;342
user-select: none;343
}345
.align {346
display: flex;347
gap: 15px;349
.btn-cancel {350
width: 50%;351
height: 48px;352
border: none;353
border-radius: 3px;354
font-size: 16px;355
padding-top: 1px;356
}358
.btn-apply {359
width: 50%;360
height: 48px;361
border: none;362
border-radius: 3px;363
border-color: grey;364
font-size: 16px;365
padding-top: 1px;366
}367
}368
}370
.colors-modal {371
flex-wrap: wrap;372
min-width: 418px;373
width: 418px;374
max-width: 418px;375
padding: 30px !important;376
top: 75px;377
left: 15px;378
display: flex;379
gap: 12px;380
max-height: calc(100vh - 90px);381
overflow-y: auto;383
&::-webkit-scrollbar {384
width: 8px;385
}387
&::-webkit-scrollbar-thumb {388
width: 8px;389
background: @brand-grey-5;391
&:hover,392
&:active {393
background: @brand-grey-4;394
}395
}397
.color {398
width: 60px;399
height: 60px;400
border-radius: 30px;401
background: #EEE;402
cursor: pointer;403
transition: transform 0.2s;404
transform: scale(0.9);406
&:not(.active):hover {407
transform: scale(1);408
}410
&.active {411
transform: scale(1.1);412
}414
&.focus {415
transform: scale(1);416
}417
}418
}420
.multiplayer-modal {421
top: 75px;422
right: 120px;423
}425
.account-modal {426
top: 75px;427
right: 70px;428
}430
.more-modal {431
top: 75px;432
right: 15px;433
}435
.help-modal {436
top: calc(50% - 250px);437
left: calc(50% - 400px);438
width: 800px;439
height: 500px;440
display: flex;441
padding: 0;443
.side {444
border-right: 1px solid @brand-grey-5;445
width: 230px;446
min-width: 230px;447
overflow: hidden;449
ul.item-list {450
width: 100%;451
padding: 6px 0;453
li.item {454
display: flex;455
flex-direction: column;457
.info {458
font-size: 16px;459
width: 100%;460
max-width: 100%;461
margin-left: 0;462
}463
}464
}465
}467
.content {468
padding: 6px 0;469
overflow-y: auto;471
&::-webkit-scrollbar {472
width: 8px;473
}475
&::-webkit-scrollbar-thumb {476
width: 8px;477
background: @brand-grey-5;479
&:hover,480
&:active {481
background: @brand-grey-4;482
}483
}485
ul.content-list {486
list-style-type: none;487
pointer-events: none;489
li.content-item {490
pointer-events: none;491
padding: 15px 20px;492
padding-top: 25px;494
p {495
font-size: 16px;496
color: @brand-grey-2;497
line-height: 20px;498
user-select: none;499
pointer-events: none;500
margin-bottom: 40px;501
}503
h2 {504
font-size: 24px;505
font-weight: 500;506
margin-bottom: 20px;507
user-select: none;508
pointer-events: none;509
color: @brand-grey-1;510
}512
h3 {513
font-size: 22px;514
font-weight: 500;515
margin-bottom: 20px;516
user-select: none;517
pointer-events: none;518
color: @brand-grey-1;519
}520
}521
}522
}523
}524
}526
.modal {527
width: 250px;528
position: fixed;529
background: white;530
border: 1px solid @brand-grey-5;531
border-radius: 4px;532
padding: 6px 0;533
pointer-events: all;534
overflow: hidden;535
z-index: -1;536
display: flex;538
.main {539
width: 248px;540
min-width: 248px;7541
max-width: 248px;542
}544
ul.tab-list {545
width: 248px;546
min-width: 248px;547
max-width: 248px;548
}550
.header {551
display: flex;552
margin-bottom: 3px;554
.back {555
margin: 10px;556
margin-top: 15px;557
margin-right: 3px;558
width: 36px;559
height: 36px;560
border-radius: 18px;561
padding: 6px;562
padding-left: 5px;563
cursor: pointer;565
i.ico {566
color: @brand-grey-0;567
}569
&:hover {570
background: @brand-grey-7;571
}573
&.ripple {575
&.ripple-active {576
background: lighten(@brand-grey-7, -2%);577
}578
}579
}581
.info {582
display: flex;583
flex-direction: column;584
margin-top: 15px;585
max-width: calc(100% - 24px - 10px - 35px);587
p {588
display: flex;589
align-items: center;590
font-weight: 500;591
color: @brand-grey-1;592
user-select: none;593
pointer-events: none;594
}596
span {597
display: block;598
margin-top: 3px;599
font-size: 12px;600
color: @brand-grey-3;601
user-select: none;602
pointer-events: none;603
white-space: nowrap;604
overflow: hidden;605
text-overflow: ellipsis;606
}607
}608
}610
ul.item-list {612
.separator {613
margin: 6px 0;614
width: 100%;615
height: 1px;616
background: @brand-grey-5;617
}619
li.caption {620
padding: 2px 15px;621
padding-top: 12px;622
list-style: none;624
p {625
color: @brand-grey-3;626
user-select: none;627
pointer-events: none;628
}629
}631
li.item {632
display: flex;633
align-items: center;634
padding: 15px;635
cursor: pointer;637
&.empty {639
p {640
display: block;641
width: 100%;642
color: @brand-grey-3;643
text-align: center;644
user-select: none;645
pointer-events: none;646
}647
}649
&:not(.active):not(.inactive) {651
&:hover {652
background: @brand-grey-7;653
}655
&.ripple {657
&.ripple-active {658
background: lighten(@brand-grey-7, -2%);659
}660
}661
}663
i.ico {664
color: @brand-grey-1;665
user-select: none;666
pointer-events: none;667
}669
i.lang {670
display: flex;671
justify-content: center;672
align-items: center;673
font-style: normal;674
font-weight: 600;675
width: 24px;676
height: 24px;677
color: @brand-grey-1;678
user-select: none;679
pointer-events: none;680
}682
.info {683
display: flex;684
flex-direction: column;685
margin-left: 10px;686
max-width: calc(100% - 24px - 10px);688
p {689
display: flex;690
align-items: center;691
font-weight: 500;692
color: @brand-grey-1;693
user-select: none;694
pointer-events: none;695
}697
span {698
display: block;699
margin-top: 3px;700
font-size: 12px;701
color: @brand-grey-3;702
user-select: none;703
pointer-events: none;704
white-space: nowrap;705
overflow: hidden;706
text-overflow: ellipsis;707
}708
}710
&.active {711
background: #EEEEEE;713
&.ripple {715
&.ripple-active {716
background: lighten(#EEEEEE, -2%);717
}718
}719
}721
&.inactive {723
i.ico {724
color: @brand-grey-4;725
}727
.info {729
p {730
color: @brand-grey-3;731
}733
span {734
color: @brand-grey-3;735
}736
}737
}738
}739
}740
}