A web-based drawing app
git clone git://soophie.de/outline
blob: 6b83a184a8806c8171cd207650ebad083c610c32 (12710 bytes)[doc][blame][raw]
1
/* ### App ### */2
html,3
body {5
&.body-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
background: white;25
z-index: 999;26
}28
.header-list {29
width: 100%;30
height: 60px;31
background: white;32
border-bottom: 1px solid @brand-grey-5;33
display: flex;34
flex-direction: column;35
pointer-events: all;37
.mainbar,38
.sidebar {39
width: 100%;40
display: flex;41
justify-content: space-between;42
padding: 8px 14px;43
min-height: 60px;44
height: 60px;46
&.inactive {48
.action-item,49
.tool-item,50
.option-item {51
pointer-events: none !important;52
}53
}55
.tool,56
.action,57
.option {59
ul {60
list-style-type: none;61
display: flex;62
gap: 10px;64
li {65
width: 44px;66
height: 44px;67
padding: 10px;68
border-radius: 22px;69
cursor: pointer;70
pointer-events: all;72
&.placeholder {73
pointer-events: none;74
}76
&:not(.inactive):not(.active):hover {77
background: rgba(@brand-grey-7, 0.95);79
&.ripple {81
&.ripple-active {82
background: lighten(rgba(@brand-grey-7, 0.95), -2%);83
}84
}85
}87
&.active {88
background: rgba(#EEEEEE, 0.95);90
&.ripple {92
&.ripple-active {93
background: lighten(rgba(#EEEEEE, 0.95), -2%);94
}95
}96
}98
&.inactive {100
i.ico {101
color: @brand-grey-4;102
}103
}105
i.ico {106
color: @brand-grey-1;107
}108
}109
}110
}111
}112
}114
#canvas,115
#overlay,116
.controls {117
position: fixed;118
top: 0;119
left: 0;120
right: 0;121
bottom: 0;122
}124
#overlay {125
pointer-events: none;126
}128
.badge {129
display: inline-block;130
margin-top: -1px;131
margin-left: 5px;132
padding: 2px 4px;133
border-radius: 2px;134
font-weight: 500;135
font-size: 12px;136
color: white !important;138
&.prime {139
background: @brand-blue;140
}142
&.beta {143
background: @brand-green;144
}145
}147
.key {148
display: inline-block;149
padding: 3px 8px;150
border-radius: 3px;151
color: @brand-grey-2;152
font-weight: 500;153
background: @brand-grey-7;154
border: 1px solid @brand-grey-4;156
&.round {157
border-radius: 999px;158
}160
&.ico {161
padding: 2px;162
max-width: 28px;163
max-height: 27px;164
display: flex;165
justify-content: center;166
align-items: center;168
i.ico {169
padding: 2px;170
max-width: 28px;171
}172
}173
}175
.button {176
display: block;177
height: 44px;178
padding: 0 22px;179
border: none;180
border-radius: 4px;181
background: @brand-grey-6;182
color: @brand-black;183
font-size: 16px;185
&:hover {187
&.ripple-active {188
background: lighten(@brand-grey-6, -2%);189
}190
}192
&.outline {193
border: 1px solid @brand-grey-5;194
background: transparent;196
&:hover {198
&.ripple-active {199
background: lighten(white, -2%);200
}201
}202
}204
&.prime {205
background: @brand-blue;206
color: white;208
&:hover {210
&.ripple-active {211
background: lighten(@brand-blue, -2%);212
}213
}214
}216
&.danger {217
background: @brand-red;218
color: white;220
&:hover {222
&.ripple-active {223
background: lighten(@brand-red, -2%);224
}225
}226
}227
}229
.notification {230
top: 90px;231
position: fixed;232
display: flex;233
justify-content: center;234
width: 100%;235
opacity: 0;236
text-align: center;237
padding: 0 30px;239
p {240
display: inline-block;241
padding: 10px 24px;242
border-radius: 24px;243
background: @brand-black;244
color: white;245
opacity: 0.95;246
user-select: none;247
pointer-events: none;248
}249
}251
.controls {252
pointer-events: none;254
.hotbar {255
display: flex;256
position: fixed;257
left: calc(50% - 216px);258
bottom: 30px;259
z-index: -1;261
&.inactive {263
.color {264
pointer-events: none !important;265
}266
}268
.color {269
margin: 6px;270
width: 60px;271
height: 60px;272
border-radius: 30px;273
background: #EEE;274
cursor: pointer;275
transition: transform 0.2s;276
transform: scale(0.9);277
pointer-events: all;279
&:not(.active):hover {280
transform: scale(1);281
}283
&.focus {284
transform: scale(1);285
}287
&.active {288
transform: scale(1.1);289
}290
}291
}293
.pencil-modal {294
top: 75px;295
left: 120px;296
}298
.scale-modal {299
top: 75px;300
left: 70px;301
width: 400px;302
height: 60px;304
input[type="range"] {305
-webkit-appearance: none;306
width: calc(400px - 54px);307
margin-top: 21px;308
margin-left: 27px;309
height: 6px;310
background: #EEEEEE;311
border: none;312
border-radius: 4px;314
&::-webkit-slider-runnable-track {315
-webkit-appearance: none;316
}318
&::-webkit-slider-thumb {319
-webkit-appearance: none;320
height: 20px;321
width: 20px;322
margin-top: -0px;323
background: @brand-grey-3;324
border-radius: 10px;325
cursor: pointer;327
&:hover {328
background: @brand-grey-2;329
}330
}331
}332
}334
.clear-modal {335
top: calc(50% - 75.5px);336
left: calc(50% - 175px);337
width: 350px;338
padding: 25px;339
display: flex;340
flex-direction: column;342
.info {343
width: 100%;344
font-size: 20px;345
text-align: center;346
margin-bottom: 25px;347
color: @brand-black;348
user-select: none;349
}351
.align {352
display: flex;353
gap: 15px;355
.btn-cancel {356
width: 50%;357
height: 48px;358
border: none;359
border-radius: 3px;360
font-size: 16px;361
padding-top: 1px;362
}364
.btn-apply {365
width: 50%;366
height: 48px;367
border: none;368
border-radius: 3px;369
border-color: grey;370
font-size: 16px;371
padding-top: 1px;372
}373
}374
}376
.capture-modal {377
top: 75px;378
left: 15px;379
}381
.colors-modal {382
flex-wrap: wrap;383
min-width: 418px;384
width: 418px;385
max-width: 418px;386
padding: 30px !important;387
top: 75px;388
left: 15px;389
display: flex;390
gap: 12px;391
max-height: calc(100vh - 90px);392
overflow-y: auto;394
&::-webkit-scrollbar {395
width: 8px;396
}398
&::-webkit-scrollbar-thumb {399
width: 8px;400
background: @brand-grey-5;402
&:hover,403
&:active {404
background: @brand-grey-4;405
}406
}408
.color {409
width: 60px;410
height: 60px;411
border-radius: 30px;412
background: #EEE;413
cursor: pointer;414
transition: transform 0.2s;415
transform: scale(0.9);417
&:not(.active):hover {418
transform: scale(1);419
}421
&.active {422
transform: scale(1.1);423
}425
&.focus {426
transform: scale(1);427
}428
}429
}431
.multiplayer-modal {432
top: 75px;433
right: 120px;434
}436
.account-modal {437
top: 75px;438
right: 70px;439
}441
.more-modal {442
top: 75px;443
right: 15px;444
}446
.help-modal {447
top: calc(50% - 250px);448
left: calc(50% - 400px);449
width: 800px;450
height: 500px;451
display: flex;452
padding: 0;454
.side {455
border-right: 1px solid @brand-grey-5;456
width: 230px;457
min-width: 230px;458
overflow: hidden;460
ul.item-list {461
width: 100%;462
padding: 6px 0;464
li.item {465
display: flex;466
flex-direction: column;468
.info {469
font-size: 16px;470
width: 100%;471
max-width: 100%;472
margin-left: 0;473
}474
}475
}476
}478
.content {479
padding: 6px 0;480
overflow-y: auto;482
&::-webkit-scrollbar {483
width: 8px;484
}486
&::-webkit-scrollbar-thumb {487
width: 8px;488
background: @brand-grey-5;490
&:hover,491
&:active {492
background: @brand-grey-4;493
}494
}496
ul.content-list {497
list-style-type: none;498
pointer-events: none;500
li.content-item {501
pointer-events: none;502
padding: 15px 20px;503
padding-top: 25px;505
p {506
font-size: 16px;507
color: @brand-grey-2;508
line-height: 20px;509
user-select: none;510
pointer-events: none;511
margin-bottom: 40px;512
}514
h2 {515
font-size: 24px;516
font-weight: 500;517
margin-bottom: 20px;518
user-select: none;519
pointer-events: none;520
color: @brand-grey-1;521
}523
h3 {524
font-size: 22px;525
font-weight: 500;526
margin-bottom: 20px;527
user-select: none;528
pointer-events: none;529
color: @brand-grey-1;530
}531
}532
}533
}534
}535
}537
.modal {538
width: 250px;539
position: fixed;540
background: white;541
border: 1px solid @brand-grey-5;542
border-radius: 4px;543
padding: 6px 0;544
pointer-events: all;545
overflow: hidden;546
z-index: -1;547
display: flex;549
.main {550
width: 248px;551
min-width: 248px;7552
max-width: 248px;553
}555
ul.tab-list {556
width: 248px;557
min-width: 248px;558
max-width: 248px;559
}561
.header {562
display: flex;563
margin-bottom: 3px;565
.back {566
margin: 10px;567
margin-top: 15px;568
margin-right: 3px;569
width: 36px;570
height: 36px;571
border-radius: 18px;572
padding: 6px;573
padding-left: 5px;574
cursor: pointer;576
i.ico {577
color: @brand-grey-0;578
}580
&:hover {581
background: @brand-grey-7;582
}584
&.ripple {586
&.ripple-active {587
background: lighten(@brand-grey-7, -2%);588
}589
}590
}592
.info {593
display: flex;594
flex-direction: column;595
margin-top: 15px;596
max-width: calc(100% - 24px - 10px - 35px);598
p {599
display: flex;600
align-items: center;601
font-weight: 500;602
color: @brand-grey-1;603
user-select: none;604
pointer-events: none;605
}607
span {608
display: block;609
margin-top: 3px;610
font-size: 12px;611
color: @brand-grey-3;612
user-select: none;613
pointer-events: none;614
white-space: nowrap;615
overflow: hidden;616
text-overflow: ellipsis;617
}618
}619
}621
ul.item-list {623
.separator {624
margin: 6px 0;625
width: 100%;626
height: 1px;627
background: @brand-grey-5;628
}630
li.caption {631
padding: 2px 15px;632
padding-top: 12px;633
list-style: none;635
p {636
color: @brand-grey-3;637
user-select: none;638
pointer-events: none;639
}640
}642
li.item {643
display: flex;644
align-items: center;645
padding: 15px;646
cursor: pointer;648
&.empty {650
p {651
display: block;652
width: 100%;653
color: @brand-grey-3;654
text-align: center;655
user-select: none;656
pointer-events: none;657
}658
}660
&:not(.active):not(.inactive) {662
&:hover {663
background: @brand-grey-7;664
}666
&.ripple {668
&.ripple-active {669
background: lighten(@brand-grey-7, -2%);670
}671
}672
}674
i.ico {675
color: @brand-grey-1;676
user-select: none;677
pointer-events: none;678
}680
i.lang {681
display: flex;682
justify-content: center;683
align-items: center;684
font-style: normal;685
font-weight: 600;686
width: 24px;687
height: 24px;688
color: @brand-grey-1;689
user-select: none;690
pointer-events: none;691
}693
.info {694
display: flex;695
flex-direction: column;696
margin-left: 10px;697
max-width: calc(100% - 24px - 10px);699
p {700
display: flex;701
align-items: center;702
font-weight: 500;703
color: @brand-grey-1;704
user-select: none;705
pointer-events: none;706
}708
span {709
display: block;710
margin-top: 3px;711
font-size: 12px;712
color: @brand-grey-3;713
user-select: none;714
pointer-events: none;715
white-space: nowrap;716
overflow: hidden;717
text-overflow: ellipsis;718
}719
}721
&.active {722
background: #EEEEEE;724
&.ripple {726
&.ripple-active {727
background: lighten(#EEEEEE, -2%);728
}729
}730
}732
&.inactive {734
i.ico {735
color: @brand-grey-4;736
}738
.info {740
p {741
color: @brand-grey-3;742
}744
span {745
color: @brand-grey-3;746
}747
}748
}749
}750
}751
}753
/* ### Home ### */754
body.home-body {756
.notification {757
top: 50px;758
z-index: 2;760
p.content {761
padding: 10px 16px;762
border-radius: 10px;763
}764
}766
.row {767
display: flex;768
justify-content: center;769
gap: 60px;770
}772
.container {773
max-width: 1200px;774
margin: 0 auto;775
}777
header {778
display: flex;779
justify-content: center;780
align-items: center;781
background-size: cover;782
height: calc(100vh - 54px);783
min-height: 750px;784
padding: 0 50px;786
.container {787
// margin-top: -10vh;789
.header-info {790
display: flex;791
flex-direction: column;792
align-items: center;793
}794
}795
}797
main {798
padding: 0 50px;800
.container {801
display: flex;802
flex-direction: column;803
gap: 100px;804
padding: 200px 0;805
}806
}808
footer {809
display: flex;810
align-items: center;811
justify-content: space-between;812
height: 54px;813
padding: 0 30px;815
.footer-item {816
font-size: 16px;817
}819
a.footer-item {820
text-decoration: none;822
&:hover {823
text-decoration: underline;824
}825
}827
.footer-group {828
display: flex;829
gap: 25px;830
}831
}833
.brand-logo {834
display: none;835
position: fixed;836
top: 50px;837
left: 50px;839
a {840
display: inline-block;841
width: 44px;842
height: 44px;843
}844
}846
.logo {847
width: 200px;848
height: 200px;849
min-width: 200px;850
min-height: 200px;851
max-width: 200px;852
max-height: 200px;853
border-radius: 100px;854
box-shadow: 0 0 15px 0px rgba(#000000, 0.1);855
margin: 0 auto;856
margin-bottom: 35px;857
}859
h1.headline {860
font-size: 70px;861
font-weight: 600;862
text-align: center;863
margin-bottom: 15px;864
}866
p.description {867
font-size: 20px;868
font-weight: 400;869
text-align: center;870
max-width: 550px;871
margin-bottom: 20px;872
line-height: 28px;874
b {875
font-weight: inherit;876
}877
}879
.badge-version {880
margin-bottom: 60px;881
}882
}