A web-based drawing app
git clone git://soophie.de/outline
blob: ecaee84ab2978ad298ac1d863aa6768e401d51a2 (11897 bytes)[doc][blame][raw]
1
/* ### App ### */2
html,3
body {5
&.app {6
overflow: hidden;7
}8
}10
a#download {11
opacity: 0;12
width: 0;13
height: 0;14
user-select: none;15
pointer-events: none;16
}18
.wrapper {19
position: fixed;20
top: 0;21
left: 0;22
right: 0;23
bottom: 0;24
z-index: 999;25
}27
.header-list {28
width: 100%;29
height: 60px;30
display: flex;31
flex-direction: column;32
pointer-events: all;34
.mainbar,35
.sidebar {36
width: 100%;37
display: flex;38
justify-content: space-between;39
padding: 8px 14px;40
min-height: 60px;41
height: 60px;43
&.inactive {45
.action-item,46
.tool-item,47
.option-item {48
pointer-events: none !important;49
}50
}52
.tool,53
.action,54
.option {56
ul {57
list-style-type: none;58
display: flex;59
gap: 10px;61
li {62
width: 44px;63
height: 44px;64
padding: 10px;65
border-radius: 22px;66
cursor: pointer;67
pointer-events: all;69
&.placeholder {70
pointer-events: none;71
}72
}73
}74
}75
}76
}78
#canvas,79
#overlay,80
.controls {81
position: fixed;82
top: 0;83
left: 0;84
right: 0;85
bottom: 0;86
}88
#overlay {89
pointer-events: none;90
}92
.badge {93
display: inline-block;94
margin-top: -1px;95
margin-left: 5px;96
padding: 2px 4px;97
border-radius: 2px;98
font-weight: 500;99
font-size: 12px;100
}102
.key {103
display: inline-block;104
padding: 3px 8px;105
border-radius: 3px;106
font-weight: 500;108
&.round {109
border-radius: 999px;110
}112
&.ico {113
padding: 2px;114
max-width: 28px;115
max-height: 27px;116
display: flex;117
justify-content: center;118
align-items: center;120
i.ico {121
padding: 2px;122
max-width: 28px;123
}124
}125
}127
.button {128
display: block;129
height: 44px;130
padding: 0 22px;131
border: none;132
border-radius: 4px;133
font-size: 16px;134
}136
.notification {137
top: 90px;138
position: fixed;139
display: flex;140
justify-content: center;141
width: 100%;142
opacity: 0;143
text-align: center;144
padding: 0 30px;146
p {147
display: inline-block;148
padding: 10px 24px;149
border-radius: 24px;150
background: @brand-black;151
color: white;152
opacity: 0.95;153
user-select: none;154
pointer-events: none;155
}156
}158
.controls {159
pointer-events: none;161
.hotbar {162
display: flex;163
position: fixed;164
left: calc(50% - 216px);165
bottom: 30px;166
z-index: -1;168
&.inactive {170
.color {171
pointer-events: none !important;172
}173
}175
.color {176
margin: 6px;177
width: 60px;178
height: 60px;179
border-radius: 30px;180
cursor: pointer;181
transition: transform 0.2s;182
transform: scale(0.9);183
pointer-events: all;185
&:not(.active):hover {186
transform: scale(1);187
}189
&.focus {190
transform: scale(1);191
}193
&.active {194
transform: scale(1.1);195
}196
}197
}199
.pencil-modal {200
top: 75px;201
left: 120px;202
}204
.scale-modal {205
top: 75px;206
left: 70px;207
width: 400px;208
height: 60px;210
input[type="range"] {211
-webkit-appearance: none;212
width: calc(400px - 54px);213
margin-top: 21px;214
margin-left: 27px;215
height: 6px;216
border: none;217
border-radius: 4px;219
&::-webkit-slider-runnable-track {220
-webkit-appearance: none;221
}223
&::-webkit-slider-thumb {224
-webkit-appearance: none;225
height: 20px;226
width: 20px;227
margin-top: -0px;228
border-radius: 10px;229
cursor: pointer;230
}231
}232
}234
.clear-modal {235
top: calc(50% - 75.5px);236
left: calc(50% - 175px);237
width: 350px;238
padding: 25px;239
display: flex;240
flex-direction: column;242
.info {243
width: 100%;244
font-size: 20px;245
text-align: center;246
margin-bottom: 25px;247
user-select: none;248
}250
.align {251
display: flex;252
gap: 15px;254
.btn-cancel {255
width: 50%;256
height: 48px;257
border: none;258
border-radius: 3px;259
font-size: 16px;260
padding-top: 1px;261
}263
.btn-apply {264
width: 50%;265
height: 48px;266
border: none;267
border-radius: 3px;268
font-size: 16px;269
padding-top: 1px;270
}271
}272
}274
.capture-modal {275
top: 75px;276
left: 15px;277
}279
.colors-modal {280
flex-wrap: wrap;281
min-width: 418px;282
width: 418px;283
max-width: 418px;284
padding: 30px !important;285
top: 75px;286
left: 15px;287
display: flex;288
gap: 12px;289
max-height: calc(100vh - 90px);290
overflow-y: auto;292
&::-webkit-scrollbar {293
width: 8px;294
}296
&::-webkit-scrollbar-thumb {297
width: 8px;298
}300
.color {301
width: 60px;302
height: 60px;303
border-radius: 30px;304
cursor: pointer;305
transition: transform 0.2s;306
transform: scale(0.9);308
&:not(.active):hover {309
transform: scale(1);310
}312
&.active {313
transform: scale(1.1);314
}316
&.focus {317
transform: scale(1);318
}319
}320
}322
.multiplayer-modal {323
top: 75px;324
right: 120px;325
}327
.account-modal {328
top: 75px;329
right: 70px;330
}332
.more-modal {333
top: 75px;334
right: 15px;335
}336
}338
.modal {339
width: 250px;340
position: fixed;341
border-radius: 4px;342
padding: 6px 0;343
pointer-events: all;344
overflow: hidden;345
z-index: -1;346
display: flex;348
.main {349
width: 248px;350
min-width: 248px;7351
max-width: 248px;352
}354
ul.tab-list {355
width: 248px;356
min-width: 248px;357
max-width: 248px;358
}360
.header {361
display: flex;362
margin-bottom: 3px;364
.back {365
margin: 10px;366
margin-top: 15px;367
margin-right: 3px;368
width: 36px;369
height: 36px;370
border-radius: 18px;371
padding: 6px;372
padding-left: 5px;373
cursor: pointer;374
}376
.info {377
display: flex;378
flex-direction: column;379
margin-top: 15px;380
max-width: calc(100% - 24px - 10px - 35px);382
p {383
display: flex;384
align-items: center;385
font-weight: 500;386
user-select: none;387
pointer-events: none;388
}390
span {391
display: block;392
margin-top: 3px;393
font-size: 12px;394
user-select: none;395
pointer-events: none;396
white-space: nowrap;397
overflow: hidden;398
text-overflow: ellipsis;399
}400
}401
}403
ul.item-list {405
.separator {406
margin: 6px 0;407
width: 100%;408
height: 1px;409
}411
li.caption {412
padding: 2px 15px;413
padding-top: 12px;414
list-style: none;416
p {417
user-select: none;418
pointer-events: none;419
}420
}422
li.item {423
display: flex;424
align-items: center;425
padding: 15px;426
cursor: pointer;428
&.empty {430
p {431
display: block;432
width: 100%;433
text-align: center;434
user-select: none;435
pointer-events: none;436
}437
}439
i.ico {440
user-select: none;441
pointer-events: none;442
}444
i.lang {445
display: flex;446
justify-content: center;447
align-items: center;448
font-style: normal;449
font-weight: 600;450
width: 24px;451
height: 24px;452
user-select: none;453
pointer-events: none;454
}456
.info {457
display: flex;458
flex-direction: column;459
margin-left: 10px;460
max-width: calc(100% - 24px - 10px);462
p {463
display: flex;464
align-items: center;465
font-weight: 500;466
user-select: none;467
pointer-events: none;468
}470
span {471
display: block;472
margin-top: 3px;473
font-size: 12px;474
user-select: none;475
pointer-events: none;476
white-space: nowrap;477
overflow: hidden;478
text-overflow: ellipsis;479
}480
}481
}482
}483
}485
/* ### Home ### */486
body.home {488
button.button:not(.accept) {489
display: inline-flex;490
justify-content: center;491
align-items: center;492
box-shadow: 0 0 20px 0 rgba(black, 0.05);493
border: none;494
border-radius: 5px;495
height: 48px;496
max-height: 48px;497
min-width: 180px;498
font-size: 16px;500
&:hover {501
box-shadow: 0 0 20px 0 rgba(black, 0.08);502
}504
&.button-prime-light {505
height: 40px;506
max-height: 40px;507
min-width: 110px;508
}509
}511
.caption {512
display: flex;513
flex-wrap: nowrap;514
gap: 40px;516
h2.caption-headline {517
flex: 35%;518
font-weight: 500;519
font-size: 30px;520
white-space: nowrap;522
b {523
font-weight: inherit;524
}525
}527
.caption-info {528
flex: 65%;529
display: flex;530
flex-direction: column;531
align-items: flex-start;532
gap: 30px;534
p {535
font-size: 18px;536
font-weight: 400;537
line-height: 28px;538
}539
}540
}542
.badge-version {543
padding: 3px 6px;544
text-decoration: none;545
border-radius: 3px;546
font-weight: 500;547
font-size: 16px;548
user-select: none;549
}551
@media(max-width: @screen-lg) {553
header {555
.logo {556
width: 140px;557
height: 140px;558
min-width: 140px;559
min-height: 140px;560
max-width: 140px;561
max-height: 140px;562
background-size: 160px 160px;563
margin-bottom: 25px;564
}566
h1.headline {567
font-size: 50px;568
}570
p.description {571
font-size: 18px;572
line-height: 26px;573
margin-bottom: 20px;574
}576
.badge.badge-version {577
margin-bottom: 40px;578
}579
}581
.caption {582
flex-wrap: wrap;583
}584
}586
@media(max-width: @screen-sm) {588
header {590
p.description {591
padding: 0 !important;592
}593
}594
}596
@media(max-width: @screen-xx) {598
header {599
padding: 0 30px !important;601
h1.headline {602
font-size: 40px;603
}605
.row {606
flex-direction: column;607
justify-content: flex-start;608
align-items: center;609
gap: 20px;611
button {612
min-width: 240px;613
}614
}615
}617
main {618
padding: 0 30px !important;620
.container {621
padding: 100px 0 !important;622
padding-top: 60px !important;623
gap: 80px !important;624
}626
.caption {627
gap: 30px;629
h2.caption-headline {630
font-size: 28px;631
}633
.caption-info {635
p {636
font-size: 16px;637
line-height: 26px;638
}639
}640
}641
}643
footer {644
padding: 0 30px !important;646
.footer-item {647
font-size: 14px !important;648
}650
.footer-group {651
gap: 15px !important;652
}653
}654
}656
.notification {657
top: 50px;658
z-index: 2;660
p.content {661
padding: 10px 16px;662
border-radius: 10px;663
}664
}666
.row {667
display: flex;668
justify-content: center;669
gap: 60px;670
}672
.container {673
max-width: 1200px;674
margin: 0 auto;675
}677
header {678
display: flex;679
justify-content: center;680
align-items: center;681
background-size: cover;682
height: calc(100vh - 54px);683
min-height: 750px;684
padding: 0 50px;686
.container {688
.header-info {689
display: flex;690
flex-direction: column;691
align-items: center;692
}693
}694
}696
main {697
padding: 0 50px;699
.container {700
display: flex;701
flex-direction: column;702
gap: 100px;703
padding: 200px 0;704
}705
}707
footer {708
display: flex;709
align-items: center;710
justify-content: space-between;711
height: 54px;712
padding: 0 30px;714
.footer-item {715
font-size: 16px;716
}718
a.footer-item {719
text-decoration: none;721
&:hover {722
text-decoration: underline;723
}724
}726
.footer-group {727
display: flex;728
gap: 25px;729
}730
}732
.brand-logo {733
display: none;734
position: fixed;735
top: 50px;736
left: 50px;738
a {739
display: inline-block;740
width: 44px;741
height: 44px;742
}743
}745
.logo {746
width: 200px;747
height: 200px;748
min-width: 200px;749
min-height: 200px;750
max-width: 200px;751
max-height: 200px;752
border-radius: 100px;753
box-shadow: 0 0 15px 0px rgba(black, 0.1);754
margin: 0 auto;755
margin-bottom: 35px;756
}758
h1.headline {759
font-size: 70px;760
font-weight: 600;761
text-align: center;762
margin-bottom: 15px;763
}765
p.description {766
font-size: 20px;767
font-weight: 400;768
text-align: center;769
max-width: 550px;770
margin-bottom: 20px;771
line-height: 28px;773
b {774
font-weight: inherit;775
}776
}778
.badge-version {779
margin-bottom: 60px;780
}781
}783
.cookie {784
display: flex;785
position: fixed;786
bottom: 43px;787
align-items: center;788
justify-content: space-between;789
padding: 14px 24px;790
background: @brand-blue;791
border-radius: 4px;792
width: 800px;793
border: 1px solid @brand-blue;794
z-index: 999;795
left: calc(50vw - 400px);796
gap: 20px;798
p {799
font-size: 16px;800
color: white;801
user-select: none;802
pointer-events: none;803
align-content: flex-start;804
line-height: 24px;805
}807
button.button.accept {808
font-size: 16px;809
font-weight: 500;810
color: white;811
white-space: nowrap;812
user-select: none;813
background: inherit;815
&:hover {816
background: rgba(black, 0.05);817
}818
}820
.group {821
display: inline-flex;822
align-items: center;823
gap: 15px;824
}826
a {827
font-size: 16px;828
color: white;829
white-space: nowrap;830
user-select: none;831
text-decoration: none;833
&:hover {834
text-decoration: underline;835
}836
}837
}