A web-based drawing app
git clone git://soophie.de/outline
blob: 0d7c9f5bf7f984115323d45908c8307ebd4b7517 (11024 bytes)[doc][blame][raw]
1
@brand-dark: #333C41;2
@brand-light: #E0E0E0;3
@brand-night: #2D353A;4
@brand-grey: #828282;6
@media(prefers-color-scheme: dark) {8
/* ### Home ### */10
body.home {11
background: @brand-dark;13
header {14
background-image: url('../asset/img/background-dark.png');16
.brand-logo {18
a {19
background-image: url('../asset/img/brand-logo-dark.png');20
}21
}23
.logo {24
background-image: url('../asset/img/logo-dark.png');25
background-position: center;26
}28
h1.headline {29
color: white;30
}32
p.description {33
color: @brand-light;35
b {36
color: @brand-blue;37
}38
}39
}41
main {42
background: @brand-dark;43
}45
footer {46
background: @brand-night;48
.footer-item {49
color: darken(@brand-light, 20%);50
}51
}53
button.button {55
&.button-prime {56
background: @brand-blue;57
color: white;59
&:hover {60
background: darken(@brand-blue, 2%);61
}62
}64
&.button-default {65
background: darken(@brand-night, 7%);66
color: @brand-light;68
&:hover {69
background: darken(@brand-night, 8%);70
color: lighten(@brand-light, 10%);71
}72
}74
&.button-prime-light {75
background: rgba(@brand-blue, 0.1);76
color: lighten(@brand-blue, 8%);78
&:hover {79
background: rgba(@brand-blue, 0.13);80
color: lighten(@brand-blue, 12%);81
}82
}83
}85
.badge-version {86
background: @brand-night;87
color: @brand-light;88
}90
.caption {92
h2.caption-headline {93
color: white;95
b {96
color: @brand-blue;97
}98
}100
.caption-info {102
p {103
color: @brand-light;104
}105
}106
}107
}109
/* ### App ### */111
.wrapper {112
background: white;113
}115
.header-list {116
background: @brand-dark;117
border-bottom: 1px solid @brand-dark;119
.mainbar,120
.sidebar {122
.tool,123
.action,124
.option {126
ul {128
li {130
&:not(.inactive):not(.active):hover {131
background: rgba(@brand-night, 0.95);133
&.ripple {135
&.ripple-active {136
background: lighten(rgba(@brand-night, 0.95), -2%);137
}138
}139
}141
&.active {142
background: rgba(@brand-night, 0.95);144
&.ripple {146
&.ripple-active {147
background: lighten(rgba(@brand-night, 0.95), -2%);148
}149
}150
}152
&.inactive {154
i.ico {155
color: @brand-grey;157
svg {159
path {160
fill: @brand-grey;161
}162
}163
}164
}166
i.ico {167
color: @brand-light;169
svg {171
path {172
fill: @brand-light;173
}174
}175
}176
}177
}178
}179
}180
}182
.badge {184
&.prime {185
background: @brand-blue;186
}188
&.beta {189
background: @brand-green;190
}191
}193
.key {194
color: @brand-grey-2;195
background: @brand-grey-7;196
border: 1px solid @brand-grey-4;197
}199
.button {200
background: darken(@brand-night, 4%);201
color: @brand-light;203
&:hover {205
&.ripple-active {206
background: darken(@brand-night, 5%);207
}208
}210
&.outline {211
border: 1px solid @brand-grey-5;213
&:hover {215
&.ripple-active {216
background: lighten(white, -2%);217
}218
}219
}221
&.prime {222
background: @brand-blue;223
color: white;225
&:hover {227
&.ripple-active {228
background: lighten(@brand-blue, -2%);229
}230
}231
}233
&.danger {234
background: @brand-red;235
color: white;237
&:hover {239
&.ripple-active {240
background: lighten(@brand-red, -2%);241
}242
}243
}244
}246
.notification {248
p {249
background: @brand-black;250
color: white;251
}252
}254
.controls {256
.hotbar {258
.color {259
background: @brand-bright;260
}261
}263
.scale-modal {265
input[type="range"] {266
background: @brand-grey-1;268
&::-webkit-slider-thumb {269
background: @brand-grey-3;271
&:hover {272
background: darken(@brand-grey-3, 2%);273
}274
}275
}276
}278
.clear-modal {280
.info {281
color: @brand-light;282
}284
.align {286
.btn-apply {287
border-color: grey;288
}289
}290
}292
.colors-modal {294
&::-webkit-scrollbar-thumb {295
background: @brand-night;297
&:hover,298
&:active {299
background: darken(@brand-night, 2%);300
}301
}303
.color {304
background: @brand-bright;305
}306
}307
}309
.modal {310
background: @brand-dark;311
border: 1px solid @brand-dark;313
.header {315
.back {317
i.ico {318
color: @brand-light;319
}321
&:hover {322
background: @brand-night;323
}325
&.ripple {327
&.ripple-active {328
background: lighten(@brand-night, -2%);329
}330
}331
}333
.info {335
p {336
color: @brand-light;337
}339
span {340
color: @brand-grey-3;341
}342
}343
}345
ul.item-list {347
.separator {348
background: lighten(@brand-dark, 5%);349
}351
li.caption {353
p {354
color: @brand-grey-3;355
}356
}358
li.item {360
&.empty {362
p {363
color: @brand-light;364
}365
}367
&:not(.active):not(.inactive) {369
&:hover {370
background: lighten(@brand-dark, -2%);371
}373
&.ripple {375
&.ripple-active {376
background: lighten(@brand-dark, -2%);377
}378
}379
}381
i.ico {382
color: @brand-light;384
svg {386
path {387
fill: @brand-light;388
}389
}390
}392
i.lang {393
color: @brand-light;394
}396
.info {398
p {399
color: @brand-light;400
}402
span {403
color: @brand-grey-3;404
}405
}407
&.active {408
background: @brand-night;410
&.ripple {412
&.ripple-active {413
background: lighten(@brand-night, -2%);414
}415
}416
}418
&.inactive {420
i.ico {421
color: @brand-grey-3;422
}424
.info {426
p {427
color: @brand-grey-3;428
}430
span {431
color: @brand-grey-3;432
}433
}434
}435
}436
}437
}438
}440
body.theme-dark {442
/* ### Home ### */444
&.home {445
background: @brand-dark;447
header {448
background-image: url('../asset/img/background-dark.png');450
.brand-logo {452
a {453
background-image: url('../asset/img/brand-logo-dark.png');454
}455
}457
.logo {458
background-image: url('../asset/img/logo-dark.png');459
background-position: center;460
}462
h1.headline {463
color: white;464
}466
p.description {467
color: @brand-light;469
b {470
color: @brand-blue;471
}472
}473
}475
main {476
background: @brand-dark;477
}479
footer {480
background: @brand-night;482
.footer-item {483
color: darken(@brand-light, 20%);484
}485
}487
button.button {489
&.button-prime {490
background: @brand-blue;491
color: white;493
&:hover {494
background: darken(@brand-blue, 2%);495
}496
}498
&.button-default {499
background: darken(@brand-night, 7%);500
color: @brand-light;502
&:hover {503
background: darken(@brand-night, 8%);504
color: lighten(@brand-light, 10%);505
}506
}508
&.button-prime-light {509
background: rgba(@brand-blue, 0.1);510
color: lighten(@brand-blue, 8%);512
&:hover {513
background: rgba(@brand-blue, 0.13);514
color: lighten(@brand-blue, 12%);515
}516
}517
}519
.badge-version {520
background: @brand-night;521
color: @brand-light;522
}524
.caption {526
h2.caption-headline {527
color: white;529
b {530
color: @brand-blue;531
}532
}534
.caption-info {536
p {537
color: @brand-light;538
}539
}540
}541
}543
/* ### App ### */545
.wrapper {546
background: white;547
}549
.header-list {550
background: @brand-dark;551
border-bottom: 1px solid @brand-dark;553
.mainbar,554
.sidebar {556
.tool,557
.action,558
.option {560
ul {562
li {564
&:not(.inactive):not(.active):hover {565
background: rgba(@brand-night, 0.95);567
&.ripple {569
&.ripple-active {570
background: lighten(rgba(@brand-night, 0.95), -2%);571
}572
}573
}575
&.active {576
background: rgba(@brand-night, 0.95);578
&.ripple {580
&.ripple-active {581
background: lighten(rgba(@brand-night, 0.95), -2%);582
}583
}584
}586
&.inactive {588
i.ico {589
color: @brand-grey;591
svg {593
path {594
fill: @brand-grey;595
}596
}597
}598
}600
i.ico {601
color: @brand-light;603
svg {605
path {606
fill: @brand-light;607
}608
}609
}610
}611
}612
}613
}614
}616
.badge {618
&.prime {619
background: @brand-blue;620
}622
&.beta {623
background: @brand-green;624
}625
}627
.key {628
color: @brand-grey-2;629
background: @brand-grey-7;630
border: 1px solid @brand-grey-4;631
}633
.button {634
background: darken(@brand-night, 4%);635
color: @brand-light;637
&:hover {639
&.ripple-active {640
background: darken(@brand-night, 5%);641
}642
}644
&.outline {645
border: 1px solid @brand-grey-5;647
&:hover {649
&.ripple-active {650
background: lighten(white, -2%);651
}652
}653
}655
&.prime {656
background: @brand-blue;657
color: white;659
&:hover {661
&.ripple-active {662
background: lighten(@brand-blue, -2%);663
}664
}665
}667
&.danger {668
background: @brand-red;669
color: white;671
&:hover {673
&.ripple-active {674
background: lighten(@brand-red, -2%);675
}676
}677
}678
}680
.notification {682
p {683
background: @brand-black;684
color: white;685
}686
}688
.controls {690
.hotbar {692
.color {693
background: @brand-bright;694
}695
}697
.scale-modal {699
input[type="range"] {700
background: @brand-grey-1;702
&::-webkit-slider-thumb {703
background: @brand-grey-3;705
&:hover {706
background: darken(@brand-grey-3, 2%);707
}708
}709
}710
}712
.clear-modal {714
.info {715
color: @brand-light;716
}718
.align {720
.btn-apply {721
border-color: grey;722
}723
}724
}726
.colors-modal {728
&::-webkit-scrollbar-thumb {729
background: @brand-night;731
&:hover,732
&:active {733
background: darken(@brand-night, 2%);734
}735
}737
.color {738
background: @brand-bright;739
}740
}741
}743
.modal {744
background: @brand-dark;745
border: 1px solid @brand-dark;747
.header {749
.back {751
i.ico {752
color: @brand-light;753
}755
&:hover {756
background: @brand-night;757
}759
&.ripple {761
&.ripple-active {762
background: lighten(@brand-night, -2%);763
}764
}765
}767
.info {769
p {770
color: @brand-light;771
}773
span {774
color: @brand-grey-3;775
}776
}777
}779
ul.item-list {781
.separator {782
background: lighten(@brand-dark, 5%);783
}785
li.caption {787
p {788
color: @brand-grey-3;789
}790
}792
li.item {794
&.empty {796
p {797
color: @brand-light;798
}799
}801
&:not(.active):not(.inactive) {803
&:hover {804
background: lighten(@brand-dark, -2%);805
}807
&.ripple {809
&.ripple-active {810
background: lighten(@brand-dark, -2%);811
}812
}813
}815
i.ico {816
color: @brand-light;818
svg {820
path {821
fill: @brand-light;822
}823
}824
}826
i.lang {827
color: @brand-light;828
}830
.info {832
p {833
color: @brand-light;834
}836
span {837
color: @brand-grey-3;838
}839
}841
&.active {842
background: @brand-night;844
&.ripple {846
&.ripple-active {847
background: lighten(@brand-night, -2%);848
}849
}850
}852
&.inactive {854
i.ico {855
color: @brand-grey-3;856
}858
.info {860
p {861
color: @brand-grey-3;862
}864
span {865
color: @brand-grey-3;866
}867
}868
}869
}870
}871
}872
}