A web-based drawing app
git clone git://soophie.de/outline
blob: ea336eb05fb95b64bf77c6f1b44355b8e3dae00d (9756 bytes)[doc][blame][raw]
1
* {2
-webkit-tap-highlight-color: transparent;3
}5
html,6
body {7
overflow: hidden;8
}10
.wrapper {11
position: fixed;12
top: 0;13
left: 0;14
right: 0;15
bottom: 0;16
background: white;17
z-index: 999;18
}20
.header-list {21
width: 100%;22
height: 60px;23
background: white;24
border-bottom: 1px solid @brand-grey-5;25
display: flex;26
justify-content: space-between;27
padding: 8px 14px;28
pointer-events: all;30
.tool,31
.action,32
.option {34
ul {35
list-style-type: none;36
display: flex;37
gap: 10px;39
li {40
width: 44px;41
height: 44px;42
padding: 10px;43
border-radius: 22px;44
cursor: pointer;45
pointer-events: all;47
&:not(.inactive):not(.active):hover {48
background: rgba(@brand-grey-7, 0.95);50
&.ripple {52
&.ripple-active {53
background: lighten(rgba(@brand-grey-7, 0.95), -2%);54
}55
}56
}58
&.active {59
background: rgba(#EEEEEE, 0.95);61
&.ripple {63
&.ripple-active {64
background: lighten(rgba(#EEEEEE, 0.95), -2%);65
}66
}67
}69
&.inactive {71
i.ico {72
color: @brand-grey-4;73
}74
}76
i.ico {77
color: @brand-grey-1;78
}80
&.upgrade {82
i.ico {83
transform: rotate(-90deg);84
}85
}86
}87
}88
}89
}91
#canvas,92
#overlay,93
.controls {94
position: fixed;95
top: 0;96
left: 0;97
right: 0;98
bottom: 0;99
}101
#overlay {102
pointer-events: none;103
}105
.badge {106
display: inline-block;107
margin-top: -1px;108
margin-left: 5px;109
padding: 2px 4px;110
border-radius: 2px;111
font-weight: 500;112
font-size: 12px;113
color: white !important;115
&.prime {116
background: @brand-blue;117
}119
&.beta {120
background: @brand-green;121
}122
}124
.button {125
display: block;126
height: 44px;127
padding: 0 22px;128
border: none;129
border-radius: 4px;130
background: @brand-grey-6;131
color: @brand-black;132
font-size: 16px;134
&:hover {136
&.ripple-active {137
background: lighten(@brand-grey-6, -2%);138
}139
}141
&.outline {142
border: 1px solid @brand-grey-5;143
background: transparent;145
&:hover {147
&.ripple-active {148
background: lighten(white, -2%);149
}150
}151
}153
&.prime {154
background: @brand-blue;155
color: white;157
&:hover {159
&.ripple-active {160
background: lighten(@brand-blue, -2%);161
}162
}163
}165
&.danger {166
background: @brand-red;167
color: white;169
&:hover {171
&.ripple-active {172
background: lighten(@brand-red, -2%);173
}174
}175
}176
}178
.controls {179
pointer-events: none;181
.notification {182
top: 30px;183
position: fixed;184
display: flex;185
justify-content: center;186
width: 100%;187
opacity: 0;189
p {190
display: inline-block;191
padding: 10px 24px;192
border-radius: 999px;193
background: @brand-black;194
color: white;195
opacity: 0.95;196
user-select: none;197
pointer-events: none;198
}199
}201
.hotbar {202
display: flex;203
position: fixed;204
left: calc(50% - 216px);205
bottom: 30px;206
z-index: -1;208
&.inactive {210
.color {211
pointer-events: none !important;212
}213
}215
.color {216
margin: 6px;217
width: 60px;218
height: 60px;219
border-radius: 30px;220
background: #EEE;221
cursor: pointer;222
transition: transform 0.2s;223
transform: scale(0.9);224
pointer-events: all;226
&:not(.active):hover {227
transform: scale(1);228
}230
&.focus {231
transform: scale(1);232
}234
&.active {235
transform: scale(1.1);236
}237
}238
}240
.pencil-modal {241
top: 75px;242
left: 120px;243
}245
.scale-modal {246
top: 40px;247
left: calc(50% - 200px);248
width: 400px;249
height: 60px;251
input[type="range"] {252
-webkit-appearance: none;253
width: calc(400px - 54px);254
margin-top: 21px;255
margin-left: 27px;256
height: 6px;257
background: #EEEEEE;258
border: none;259
border-radius: 4px;261
&::-webkit-slider-runnable-track {262
-webkit-appearance: none;263
}265
&::-webkit-slider-thumb {266
-webkit-appearance: none;267
height: 20px;268
width: 20px;269
margin-top: -0px;270
background: @brand-grey-3;271
border-radius: 10px;272
cursor: pointer;274
&:hover {275
background: @brand-grey-2;276
}277
}278
}279
}281
.clear-modal {282
top: calc(50% - 75.5px);283
left: calc(50% - 200px);284
width: 400px;285
padding: 25px;286
display: flex;287
flex-direction: column;289
.info {290
width: 100%;291
font-size: 20px;292
text-align: center;293
margin-bottom: 25px;294
color: @brand-black;295
user-select: none;296
}298
.align {299
display: flex;300
gap: 25px;302
.btn-cancel {303
width: 185px;304
height: 50px;305
border: none;306
border-radius: 3px;307
font-size: 17px;308
}310
.btn-apply {311
width: 185px;312
height: 50px;313
border: none;314
border-radius: 3px;315
border-color: grey;316
font-size: 17px;317
}318
}319
}321
.capture-modal {322
top: calc(50% - 213px);323
left: calc(50% - 200px);324
width: 400px;325
display: flex;326
flex-direction: column;327
padding: 25px;329
.info {330
font-size: 20px;331
width: 100%;332
text-align: center;333
margin-bottom: 25px;334
color: @brand-black;335
user-select: none;336
}338
.preview {339
height: 250px;340
background: @brand-grey-6;341
border: 1px solid #f1f1f1;342
border-radius: 3px;343
margin-bottom: 25px;344
}346
.align {347
display: flex;348
gap: 25px;350
.btn-cancel {351
width: 185px;352
height: 50px;353
border: none;354
border-radius: 3px;355
font-size: 17px;356
}358
.btn-apply {359
width: 185px;360
height: 50px;361
border: none;362
border-radius: 3px;363
border-color: grey;364
font-size: 17px;365
}366
}367
}369
.toolbar {370
top: 20px;371
left: 20px;372
}374
.actionbar {375
top: 20px;376
right: 20px;377
}379
.actionbar,380
.toolbar {381
display: flex;382
position: fixed;384
&.inactive {386
.action,387
.tool {388
pointer-events: none !important;389
}390
}392
.action,393
.tool {394
width: 44px;395
height: 44px;396
padding: 10px;397
margin-left: 8px;398
border-radius: 22px;399
cursor: pointer;400
pointer-events: all;402
&:hover {403
background: rgba(@brand-grey-7, 0.95);405
&.ripple {407
&:not(.active).ripple-active {408
background: lighten(rgba(@brand-grey-7, 0.95), -2%);409
}411
&.active.ripple-active {412
background: lighten(rgba(#EEEEEE, 0.95), -2%);413
}414
}415
}417
&.active {418
background: rgba(#EEEEEE, 0.95);419
}421
i.ico {422
color: @brand-grey-0;423
}424
}425
}426
}428
.colors-modal {429
flex-wrap: wrap;430
min-width: 410px;431
width: 410px;432
max-width: 410px;433
padding: 30px !important;434
top: calc(50% - 421px);435
left: calc(50% - 205px);436
display: flex;437
gap: 12px;439
.color {440
width: 60px;441
height: 60px;442
border-radius: 30px;443
background: #EEE;444
cursor: pointer;445
transition: transform 0.2s;446
transform: scale(0.9);448
&:not(.active):hover {449
transform: scale(1);450
}452
&.active {453
transform: scale(1.1);454
}456
&.focus {457
transform: scale(1);458
}459
}460
}462
.multiplayer-modal {463
top: 75px;464
right: 120px;465
}467
.account-modal {468
top: 75px;469
right: 70px;470
}472
.settings-modal {473
top: 75px;474
right: 20px;475
}477
.modal {478
width: 250px;479
position: fixed;480
background: white;481
border: 1px solid @brand-grey-5;482
border-radius: 4px;483
padding: 6px 0;484
pointer-events: all;485
overflow: hidden;486
z-index: -1;487
display: flex;489
.main {490
width: 248px;491
min-width: 248px;7492
max-width: 248px;493
}495
ul.tab-list {496
width: 248px;497
min-width: 248px;498
max-width: 248px;499
}501
.header {502
display: flex;503
margin-bottom: 3px;505
.back {506
margin: 10px;507
margin-top: 15px;508
margin-right: 3px;509
width: 36px;510
height: 36px;511
border-radius: 18px;512
padding: 6px;513
padding-left: 5px;514
cursor: pointer;516
i.ico {517
color: @brand-grey-0;518
}520
&:hover {521
background: @brand-grey-7;522
}524
&.ripple {526
&.ripple-active {527
background: lighten(@brand-grey-7, -2%);528
}529
}530
}532
.info {533
display: flex;534
flex-direction: column;535
margin-top: 15px;537
p {538
display: flex;539
align-items: center;540
font-weight: 500;541
color: @brand-grey-1;542
user-select: none;543
pointer-events: none;544
}546
span {547
display: block;548
margin-top: 3px;549
font-size: 12px;550
color: @brand-grey-3;551
user-select: none;552
pointer-events: none;553
}554
}555
}557
ul.item-list {559
.separator {560
margin: 6px 0;561
width: 100%;562
height: 1px;563
background: @brand-grey-5;564
}566
li.caption {567
padding: 2px 15px;568
padding-top: 12px;569
list-style: none;571
p {572
color: @brand-grey-3;573
user-select: none;574
pointer-events: none;575
}576
}578
li.item {579
display: flex;580
align-items: center;581
padding: 15px;582
cursor: pointer;584
&.empty {586
p {587
display: block;588
width: 100%;589
color: @brand-grey-3;590
text-align: center;591
user-select: none;592
pointer-events: none;593
}594
}596
&:not(.active):not(.inactive) {598
&:hover {599
background: @brand-grey-7;600
}602
&.ripple {604
&.ripple-active {605
background: lighten(@brand-grey-7, -2%);606
}607
}608
}610
i.ico {611
color: @brand-grey-0;612
user-select: none;613
pointer-events: none;614
}616
i.lang {617
display: flex;618
justify-content: center;619
align-items: center;620
font-style: normal;621
font-weight: 600;622
width: 24px;623
height: 24px;624
color: @brand-grey-0;625
user-select: none;626
pointer-events: none;627
}629
.info {630
display: flex;631
flex-direction: column;632
margin-left: 10px;633
max-width: calc(100% - 24px - 10px);635
p {636
display: flex;637
align-items: center;638
font-weight: 500;639
color: @brand-grey-1;640
user-select: none;641
pointer-events: none;642
}644
span {645
display: block;646
margin-top: 3px;647
font-size: 12px;648
color: @brand-grey-3;649
user-select: none;650
pointer-events: none;651
white-space: nowrap;652
overflow: hidden;653
text-overflow: ellipsis;654
}655
}657
&.active {658
background: #EEEEEE;660
&.ripple {662
&.ripple-active {663
background: lighten(#EEEEEE, -2%);664
}665
}666
}668
&.inactive {670
i.ico {671
color: @brand-grey-3;672
}674
.info {676
p {677
color: @brand-grey-3;678
}679
}680
}681
}682
}683
}