A web-based drawing app
git clone git://soophie.de/outline
blob: 5c4f43ae8003328e5c576efcf332cee40e0be9a4 (10852 bytes)[doc][blame][raw]
1
@brand-dark: #333C41;2
@brand-light: #F5F5F5;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
}89
}91
/* ### App ### */93
.wrapper {94
background: @brand-dark;95
}97
.header-list {98
background: @brand-dark;99
border-bottom: 1px solid @brand-dark;101
.mainbar,102
.sidebar {104
.tool,105
.action,106
.option {108
ul {110
li {112
&:not(.inactive):not(.active):hover {113
background: rgba(@brand-night, 0.95);115
&.ripple {117
&.ripple-active {118
background: lighten(rgba(@brand-night, 0.95), -2%);119
}120
}121
}123
&.active {124
background: rgba(@brand-night, 0.95);126
&.ripple {128
&.ripple-active {129
background: lighten(rgba(@brand-night, 0.95), -2%);130
}131
}132
}134
&.inactive {136
i.ico {137
color: @brand-grey;139
svg {141
path {142
fill: @brand-grey;143
}144
}145
}146
}148
i.ico {149
color: @brand-light;151
svg {153
path {154
fill: @brand-light;155
}156
}157
}159
&.caption {161
label {162
color: @brand-light;163
}164
}165
}166
}167
}168
}169
}171
.badge {173
&.prime {174
background: @brand-blue;175
}177
&.beta {178
background: @brand-green;179
}180
}182
.key {183
color: @brand-grey-2;184
background: @brand-grey-7;185
border: 1px solid @brand-grey-4;186
}188
.button {189
background: darken(@brand-night, 4%);190
color: @brand-light;192
&:hover {194
&.ripple-active {195
background: darken(@brand-night, 5%);196
}197
}199
&.outline {200
border: 1px solid @brand-grey-5;202
&:hover {204
&.ripple-active {205
background: lighten(white, -2%);206
}207
}208
}210
&.prime {211
background: @brand-blue;212
color: white;214
&:hover {216
&.ripple-active {217
background: lighten(@brand-blue, -2%);218
}219
}220
}222
&.danger {223
background: @brand-red;224
color: white;226
&:hover {228
&.ripple-active {229
background: lighten(@brand-red, -2%);230
}231
}232
}233
}235
.notification {237
p {238
background: @brand-black;239
color: white;240
}241
}243
.controls {245
.hotbar {247
.color {248
background: @brand-bright;249
}250
}252
.scale-modal {254
input[type="range"] {255
background: @brand-grey-1;257
&::-webkit-slider-thumb {258
background: @brand-grey-3;260
&:hover {261
background: darken(@brand-grey-3, 2%);262
}263
}264
}265
}267
.clear-modal {269
.info {270
color: @brand-light;271
}273
.align {275
.btn-apply {276
border-color: grey;277
}278
}279
}281
.colors-modal {283
&::-webkit-scrollbar-thumb {284
background: @brand-night;286
&:hover,287
&:active {288
background: darken(@brand-night, 2%);289
}290
}292
.color {293
background: @brand-bright;294
}295
}296
}298
.modal {299
background: @brand-dark;300
border: 1px solid @brand-dark;302
.header {304
.back {306
i.ico {307
color: @brand-light;308
}310
&:hover {311
background: @brand-night;312
}314
&.ripple {316
&.ripple-active {317
background: lighten(@brand-night, -2%);318
}319
}320
}322
.info {324
p {325
color: @brand-light;326
}328
span {329
color: @brand-grey-3;330
}331
}332
}334
ul.item-list {336
.separator {337
background: lighten(@brand-dark, 5%);338
}340
li.caption {342
p {343
color: @brand-grey-3;344
}345
}347
li.item {349
&.empty {351
p {352
color: @brand-light;353
}354
}356
&:not(.active):not(.inactive) {358
&:hover {359
background: lighten(@brand-dark, -2%);360
}362
&.ripple {364
&.ripple-active {365
background: lighten(@brand-dark, -2%);366
}367
}368
}370
i.ico {371
color: @brand-light;373
svg {375
path {376
fill: @brand-light;377
}378
}379
}381
i.lang {382
color: @brand-light;383
}385
.info {387
p {388
color: @brand-light;389
}391
span {392
color: @brand-grey-3;393
}394
}396
&.active {397
background: @brand-night;399
&.ripple {401
&.ripple-active {402
background: lighten(@brand-night, -2%);403
}404
}405
}407
&.inactive {409
i.ico {410
color: @brand-grey-3;411
}413
.info {415
p {416
color: @brand-grey-3;417
}419
span {420
color: @brand-grey-3;421
}422
}423
}424
}425
}426
}427
}429
body.theme-dark {431
/* ### Home ### */433
&.home {434
background: @brand-dark;436
header {437
background-image: url('../asset/img/background-dark.png');439
.brand-logo {441
a {442
background-image: url('../asset/img/brand-logo-dark.png');443
}444
}446
.logo {447
background-image: url('../asset/img/logo-dark.png');448
background-position: center;449
}451
h1.headline {452
color: white;453
}455
p.description {456
color: @brand-light;458
b {459
color: @brand-blue;460
}461
}462
}464
main {465
background: @brand-dark;466
}468
footer {469
background: @brand-night;471
.footer-item {472
color: darken(@brand-light, 20%);473
}474
}476
button.button {478
&.button-prime {479
background: @brand-blue;480
color: white;482
&:hover {483
background: darken(@brand-blue, 2%);484
}485
}487
&.button-default {488
background: darken(@brand-night, 7%);489
color: @brand-light;491
&:hover {492
background: darken(@brand-night, 8%);493
color: lighten(@brand-light, 10%);494
}495
}497
&.button-prime-light {498
background: rgba(@brand-blue, 0.1);499
color: lighten(@brand-blue, 8%);501
&:hover {502
background: rgba(@brand-blue, 0.13);503
color: lighten(@brand-blue, 12%);504
}505
}506
}508
.badge-version {509
background: @brand-night;510
color: @brand-light;511
}512
}514
/* ### App ### */516
.wrapper {517
background: @brand-dark;518
}520
.header-list {521
background: @brand-dark;522
border-bottom: 1px solid @brand-dark;524
.mainbar,525
.sidebar {527
.tool,528
.action,529
.option {531
ul {533
li {535
&:not(.inactive):not(.active):hover {536
background: rgba(@brand-night, 0.95);538
&.ripple {540
&.ripple-active {541
background: lighten(rgba(@brand-night, 0.95), -2%);542
}543
}544
}546
&.active {547
background: rgba(@brand-night, 0.95);549
&.ripple {551
&.ripple-active {552
background: lighten(rgba(@brand-night, 0.95), -2%);553
}554
}555
}557
&.inactive {559
i.ico {560
color: @brand-grey;562
svg {564
path {565
fill: @brand-grey;566
}567
}568
}569
}571
i.ico {572
color: @brand-light;574
svg {576
path {577
fill: @brand-light;578
}579
}580
}582
&.caption {584
label {585
color: @brand-light;586
}587
}588
}589
}590
}591
}592
}594
.badge {596
&.prime {597
background: @brand-blue;598
}600
&.beta {601
background: @brand-green;602
}603
}605
.key {606
color: @brand-grey-2;607
background: @brand-grey-7;608
border: 1px solid @brand-grey-4;609
}611
.button {612
background: darken(@brand-night, 4%);613
color: @brand-light;615
&:hover {617
&.ripple-active {618
background: darken(@brand-night, 5%);619
}620
}622
&.outline {623
border: 1px solid @brand-grey-5;625
&:hover {627
&.ripple-active {628
background: lighten(white, -2%);629
}630
}631
}633
&.prime {634
background: @brand-blue;635
color: white;637
&:hover {639
&.ripple-active {640
background: lighten(@brand-blue, -2%);641
}642
}643
}645
&.danger {646
background: @brand-red;647
color: white;649
&:hover {651
&.ripple-active {652
background: lighten(@brand-red, -2%);653
}654
}655
}656
}658
.notification {660
p {661
background: @brand-black;662
color: white;663
}664
}666
.controls {668
.hotbar {670
.color {671
background: @brand-bright;672
}673
}675
.scale-modal {677
input[type="range"] {678
background: @brand-grey-1;680
&::-webkit-slider-thumb {681
background: @brand-grey-3;683
&:hover {684
background: darken(@brand-grey-3, 2%);685
}686
}687
}688
}690
.clear-modal {692
.info {693
color: @brand-light;694
}696
.align {698
.btn-apply {699
border-color: grey;700
}701
}702
}704
.colors-modal {706
&::-webkit-scrollbar-thumb {707
background: @brand-night;709
&:hover,710
&:active {711
background: darken(@brand-night, 2%);712
}713
}715
.color {716
background: @brand-bright;717
}718
}719
}721
.modal {722
background: @brand-dark;723
border: 1px solid @brand-dark;725
.header {727
.back {729
i.ico {730
color: @brand-light;731
}733
&:hover {734
background: @brand-night;735
}737
&.ripple {739
&.ripple-active {740
background: lighten(@brand-night, -2%);741
}742
}743
}745
.info {747
p {748
color: @brand-light;749
}751
span {752
color: @brand-grey-3;753
}754
}755
}757
ul.item-list {759
.separator {760
background: lighten(@brand-dark, 5%);761
}763
li.caption {765
p {766
color: @brand-grey-3;767
}768
}770
li.item {772
&.empty {774
p {775
color: @brand-light;776
}777
}779
&:not(.active):not(.inactive) {781
&:hover {782
background: lighten(@brand-dark, -2%);783
}785
&.ripple {787
&.ripple-active {788
background: lighten(@brand-dark, -2%);789
}790
}791
}793
i.ico {794
color: @brand-light;796
svg {798
path {799
fill: @brand-light;800
}801
}802
}804
i.lang {805
color: @brand-light;806
}808
.info {810
p {811
color: @brand-light;812
}814
span {815
color: @brand-grey-3;816
}817
}819
&.active {820
background: @brand-night;822
&.ripple {824
&.ripple-active {825
background: lighten(@brand-night, -2%);826
}827
}828
}830
&.inactive {832
i.ico {833
color: @brand-grey-3;834
}836
.info {838
p {839
color: @brand-grey-3;840
}842
span {843
color: @brand-grey-3;844
}845
}846
}847
}848
}849
}850
}