A web-based drawing app
git clone git://soophie.de/outline
blob: 1dfb3f790b25dfe1508f9cfdad96087be21c7f1c (10800 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: 17px;355
}357
.btn-apply {358
width: 50%;359
height: 48px;360
border: none;361
border-radius: 3px;362
border-color: grey;363
font-size: 17px;364
}365
}366
}368
.colors-modal {369
flex-wrap: wrap;370
min-width: 418px;371
width: 418px;372
max-width: 418px;373
padding: 30px !important;374
top: 75px;375
left: 15px;376
display: flex;377
gap: 12px;378
max-height: calc(100vh - 90px);379
overflow-y: auto;381
&::-webkit-scrollbar {382
width: 8px;383
}385
&::-webkit-scrollbar-thumb {386
width: 8px;387
background: @brand-grey-5;389
&:hover,390
&:active {391
background: @brand-grey-4;392
}393
}395
.color {396
width: 60px;397
height: 60px;398
border-radius: 30px;399
background: #EEE;400
cursor: pointer;401
transition: transform 0.2s;402
transform: scale(0.9);404
&:not(.active):hover {405
transform: scale(1);406
}408
&.active {409
transform: scale(1.1);410
}412
&.focus {413
transform: scale(1);414
}415
}416
}418
.multiplayer-modal {419
top: 75px;420
right: 120px;421
}423
.account-modal {424
top: 75px;425
right: 70px;426
}428
.more-modal {429
top: 75px;430
right: 15px;431
}433
.help-modal {434
top: calc(50% - 250px);435
left: calc(50% - 400px);436
width: 800px;437
height: 500px;438
display: flex;439
padding: 0;441
.side {442
border-right: 1px solid @brand-grey-5;443
width: 230px;444
min-width: 230px;445
overflow: hidden;447
ul.item-list {448
width: 100%;449
padding: 6px 0;451
li.item {452
display: flex;453
flex-direction: column;455
.info {456
font-size: 16px;457
width: 100%;458
max-width: 100%;459
margin-left: 0;460
}461
}462
}463
}465
.content {466
padding: 6px 0;467
overflow-y: auto;469
&::-webkit-scrollbar {470
width: 8px;471
}473
&::-webkit-scrollbar-thumb {474
width: 8px;475
background: @brand-grey-5;477
&:hover,478
&:active {479
background: @brand-grey-4;480
}481
}483
ul.content-list {484
list-style-type: none;485
pointer-events: none;487
li.content-item {488
pointer-events: none;489
padding: 15px 20px;490
padding-top: 25px;492
p {493
font-size: 16px;494
color: @brand-grey-2;495
line-height: 20px;496
user-select: none;497
pointer-events: none;498
margin-bottom: 40px;499
}501
h2 {502
font-size: 24px;503
font-weight: 500;504
margin-bottom: 20px;505
user-select: none;506
pointer-events: none;507
color: @brand-grey-1;508
}510
h3 {511
font-size: 22px;512
font-weight: 500;513
margin-bottom: 20px;514
user-select: none;515
pointer-events: none;516
color: @brand-grey-1;517
}518
}519
}520
}521
}522
}524
.modal {525
width: 250px;526
position: fixed;527
background: white;528
border: 1px solid @brand-grey-5;529
border-radius: 4px;530
padding: 6px 0;531
pointer-events: all;532
overflow: hidden;533
z-index: -1;534
display: flex;536
.main {537
width: 248px;538
min-width: 248px;7539
max-width: 248px;540
}542
ul.tab-list {543
width: 248px;544
min-width: 248px;545
max-width: 248px;546
}548
.header {549
display: flex;550
margin-bottom: 3px;552
.back {553
margin: 10px;554
margin-top: 15px;555
margin-right: 3px;556
width: 36px;557
height: 36px;558
border-radius: 18px;559
padding: 6px;560
padding-left: 5px;561
cursor: pointer;563
i.ico {564
color: @brand-grey-0;565
}567
&:hover {568
background: @brand-grey-7;569
}571
&.ripple {573
&.ripple-active {574
background: lighten(@brand-grey-7, -2%);575
}576
}577
}579
.info {580
display: flex;581
flex-direction: column;582
margin-top: 15px;583
max-width: calc(100% - 24px - 10px - 35px);585
p {586
display: flex;587
align-items: center;588
font-weight: 500;589
color: @brand-grey-1;590
user-select: none;591
pointer-events: none;592
}594
span {595
display: block;596
margin-top: 3px;597
font-size: 12px;598
color: @brand-grey-3;599
user-select: none;600
pointer-events: none;601
white-space: nowrap;602
overflow: hidden;603
text-overflow: ellipsis;604
}605
}606
}608
ul.item-list {610
.separator {611
margin: 6px 0;612
width: 100%;613
height: 1px;614
background: @brand-grey-5;615
}617
li.caption {618
padding: 2px 15px;619
padding-top: 12px;620
list-style: none;622
p {623
color: @brand-grey-3;624
user-select: none;625
pointer-events: none;626
}627
}629
li.item {630
display: flex;631
align-items: center;632
padding: 15px;633
cursor: pointer;635
&.empty {637
p {638
display: block;639
width: 100%;640
color: @brand-grey-3;641
text-align: center;642
user-select: none;643
pointer-events: none;644
}645
}647
&:not(.active):not(.inactive) {649
&:hover {650
background: @brand-grey-7;651
}653
&.ripple {655
&.ripple-active {656
background: lighten(@brand-grey-7, -2%);657
}658
}659
}661
i.ico {662
color: @brand-grey-1;663
user-select: none;664
pointer-events: none;665
}667
i.lang {668
display: flex;669
justify-content: center;670
align-items: center;671
font-style: normal;672
font-weight: 600;673
width: 24px;674
height: 24px;675
color: @brand-grey-1;676
user-select: none;677
pointer-events: none;678
}680
.info {681
display: flex;682
flex-direction: column;683
margin-left: 10px;684
max-width: calc(100% - 24px - 10px);686
p {687
display: flex;688
align-items: center;689
font-weight: 500;690
color: @brand-grey-1;691
user-select: none;692
pointer-events: none;693
}695
span {696
display: block;697
margin-top: 3px;698
font-size: 12px;699
color: @brand-grey-3;700
user-select: none;701
pointer-events: none;702
white-space: nowrap;703
overflow: hidden;704
text-overflow: ellipsis;705
}706
}708
&.active {709
background: #EEEEEE;711
&.ripple {713
&.ripple-active {714
background: lighten(#EEEEEE, -2%);715
}716
}717
}719
&.inactive {721
i.ico {722
color: @brand-grey-4;723
}725
.info {727
p {728
color: @brand-grey-3;729
}731
span {732
color: @brand-grey-3;733
}734
}735
}736
}737
}738
}