A web-based drawing app
git clone git://soophie.de/outline
blob: 1813483c126388553bcd8b7e79c084512b35dd3f (12519 bytes)[doc][blame][raw]
1
/* ### App ### */2
html,3
body {4
overflow: hidden;5
}7
.wrapper {8
position: fixed;9
top: 0;10
left: 0;11
right: 0;12
bottom: 0;13
background: white;14
z-index: 999;15
}17
.header-list {18
width: 100%;19
height: 60px;20
background: white;21
border-bottom: 1px solid @brand-grey-5;22
display: flex;23
flex-direction: column;24
pointer-events: all;26
.sidebar {27
justify-content: flex-end !important;28
}30
.mainbar,31
.sidebar {32
width: 100%;33
display: flex;34
justify-content: space-between;35
padding: 8px 14px;36
min-height: 60px;37
height: 60px;39
&.inactive {41
.action-item,42
.tool-item,43
.option-item {44
pointer-events: none !important;45
}46
}48
.tool,49
.action,50
.option {52
ul {53
list-style-type: none;54
display: flex;55
gap: 10px;57
li {58
width: 44px;59
height: 44px;60
padding: 10px;61
border-radius: 22px;62
cursor: pointer;63
pointer-events: all;65
&.placeholder {66
pointer-events: none;67
}69
&:not(.inactive):not(.active):hover {70
background: rgba(@brand-grey-7, 0.95);72
&.ripple {74
&.ripple-active {75
background: lighten(rgba(@brand-grey-7, 0.95), -2%);76
}77
}78
}80
&.active {81
background: rgba(#EEEEEE, 0.95);83
&.ripple {85
&.ripple-active {86
background: lighten(rgba(#EEEEEE, 0.95), -2%);87
}88
}89
}91
&.inactive {93
i.ico {94
color: @brand-grey-4;95
}96
}98
i.ico {99
color: @brand-grey-1;100
}101
}102
}103
}104
}105
}107
#canvas,108
#overlay,109
.controls {110
position: fixed;111
top: 0;112
left: 0;113
right: 0;114
bottom: 0;115
}117
#overlay {118
pointer-events: none;119
}121
.badge {122
display: inline-block;123
margin-top: -1px;124
margin-left: 5px;125
padding: 2px 4px;126
border-radius: 2px;127
font-weight: 500;128
font-size: 12px;129
color: white !important;131
&.prime {132
background: @brand-blue;133
}135
&.beta {136
background: @brand-green;137
}138
}140
.key {141
display: inline-block;142
padding: 3px 8px;143
border-radius: 3px;144
color: @brand-grey-2;145
font-weight: 500;146
background: @brand-grey-7;147
border: 1px solid @brand-grey-4;149
&.round {150
border-radius: 999px;151
}153
&.ico {154
padding: 2px;155
max-width: 28px;156
max-height: 27px;157
display: flex;158
justify-content: center;159
align-items: center;161
i.ico {162
padding: 2px;163
max-width: 28px;164
}165
}166
}168
.button {169
display: block;170
height: 44px;171
padding: 0 22px;172
border: none;173
border-radius: 4px;174
background: @brand-grey-6;175
color: @brand-black;176
font-size: 16px;178
&:hover {180
&.ripple-active {181
background: lighten(@brand-grey-6, -2%);182
}183
}185
&.outline {186
border: 1px solid @brand-grey-5;187
background: transparent;189
&:hover {191
&.ripple-active {192
background: lighten(white, -2%);193
}194
}195
}197
&.prime {198
background: @brand-blue;199
color: white;201
&:hover {203
&.ripple-active {204
background: lighten(@brand-blue, -2%);205
}206
}207
}209
&.danger {210
background: @brand-red;211
color: white;213
&:hover {215
&.ripple-active {216
background: lighten(@brand-red, -2%);217
}218
}219
}220
}222
.notification {223
top: 90px;224
position: fixed;225
display: flex;226
justify-content: center;227
width: 100%;228
opacity: 0;229
text-align: center;231
p {232
display: inline-block;233
padding: 10px 24px;234
border-radius: 24px;235
background: @brand-black;236
color: white;237
opacity: 0.95;238
user-select: none;239
pointer-events: none;240
}241
}243
.controls {244
pointer-events: none;246
.hotbar {247
display: flex;248
position: fixed;249
left: calc(50% - 216px);250
bottom: 30px;251
z-index: -1;253
&.inactive {255
.color {256
pointer-events: none !important;257
}258
}260
.color {261
margin: 6px;262
width: 60px;263
height: 60px;264
border-radius: 30px;265
background: #EEE;266
cursor: pointer;267
transition: transform 0.2s;268
transform: scale(0.9);269
pointer-events: all;271
&:not(.active):hover {272
transform: scale(1);273
}275
&.focus {276
transform: scale(1);277
}279
&.active {280
transform: scale(1.1);281
}282
}283
}285
.pencil-modal {286
top: 75px;287
left: 120px;288
}290
.scale-modal {291
top: 75px;292
left: 70px;293
width: 400px;294
height: 60px;296
input[type="range"] {297
-webkit-appearance: none;298
width: calc(400px - 54px);299
margin-top: 21px;300
margin-left: 27px;301
height: 6px;302
background: #EEEEEE;303
border: none;304
border-radius: 4px;306
&::-webkit-slider-runnable-track {307
-webkit-appearance: none;308
}310
&::-webkit-slider-thumb {311
-webkit-appearance: none;312
height: 20px;313
width: 20px;314
margin-top: -0px;315
background: @brand-grey-3;316
border-radius: 10px;317
cursor: pointer;319
&:hover {320
background: @brand-grey-2;321
}322
}323
}324
}326
.clear-modal {327
top: calc(50% - 75.5px);328
left: calc(50% - 175px);329
width: 350px;330
padding: 25px;331
display: flex;332
flex-direction: column;334
.info {335
width: 100%;336
font-size: 20px;337
text-align: center;338
margin-bottom: 25px;339
color: @brand-black;340
user-select: none;341
}343
.align {344
display: flex;345
gap: 15px;347
.btn-cancel {348
width: 50%;349
height: 48px;350
border: none;351
border-radius: 3px;352
font-size: 16px;353
padding-top: 1px;354
}356
.btn-apply {357
width: 50%;358
height: 48px;359
border: none;360
border-radius: 3px;361
border-color: grey;362
font-size: 16px;363
padding-top: 1px;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
}740
/* ### Home ### */741
body.home-body {743
.notification {744
top: 50px;745
z-index: 2;746
}748
.row {749
display: flex;750
justify-content: center;751
gap: 60px;752
}754
.container {755
max-width: 1200px;756
margin: 0 auto;757
}759
header {760
display: flex;761
justify-content: center;762
align-items: center;763
background-size: cover;764
height: calc(100vh - 54px);765
min-height: 750px;766
padding: 0 50px;768
.container {769
// margin-top: -10vh;771
.header-info {772
display: flex;773
flex-direction: column;774
align-items: center;775
}776
}777
}779
main {780
padding: 0 50px;782
.container {783
display: flex;784
flex-direction: column;785
gap: 100px;786
padding: 200px 0;787
}788
}790
footer {791
display: flex;792
align-items: center;793
justify-content: space-between;794
height: 54px;795
padding: 0 30px;797
.footer-item {798
font-size: 16px;799
}801
a.footer-item {802
text-decoration: none;804
&:hover {805
text-decoration: underline;806
}807
}809
.footer-group {810
display: flex;811
gap: 25px;812
}813
}815
.brand-logo {816
display: none;817
position: fixed;818
top: 50px;819
left: 50px;821
a {822
display: inline-block;823
width: 44px;824
height: 44px;825
}826
}828
.logo {829
width: 200px;830
height: 200px;831
min-width: 200px;832
min-height: 200px;833
max-width: 200px;834
max-height: 200px;835
border-radius: 100px;836
box-shadow: 0 0 15px 0px rgba(#000000, 0.1);837
margin: 0 auto;838
margin-bottom: 35px;839
}841
h1.headline {842
font-size: 70px;843
font-weight: 600;844
text-align: center;845
margin-bottom: 15px;846
}848
p.description {849
font-size: 20px;850
font-weight: 400;851
text-align: center;852
max-width: 550px;853
margin-bottom: 20px;854
line-height: 28px;856
b {857
font-weight: inherit;858
}859
}861
.badge-version {862
margin-bottom: 60px;863
}864
}