A web-based drawing app
git clone git://soophie.de/outline
blob: ddf1ebb7c46d86b725d1550fb5f849360ab99c3a (9047 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
&.inactive {32
.action-item,33
.tool-item,34
.option-item {35
pointer-events: none !important;36
}37
}39
.tool,40
.action,41
.option {43
ul {44
list-style-type: none;45
display: flex;46
gap: 10px;48
li {49
width: 44px;50
height: 44px;51
padding: 10px;52
border-radius: 22px;53
cursor: pointer;54
pointer-events: all;56
&:not(.inactive):not(.active):hover {57
background: rgba(@brand-grey-7, 0.95);59
&.ripple {61
&.ripple-active {62
background: lighten(rgba(@brand-grey-7, 0.95), -2%);63
}64
}65
}67
&.active {68
background: rgba(#EEEEEE, 0.95);70
&.ripple {72
&.ripple-active {73
background: lighten(rgba(#EEEEEE, 0.95), -2%);74
}75
}76
}78
&.inactive {80
i.ico {81
color: @brand-grey-4;82
}83
}85
i.ico {86
color: @brand-grey-1;87
}88
}89
}90
}91
}93
#canvas,94
#overlay,95
.controls {96
position: fixed;97
top: 0;98
left: 0;99
right: 0;100
bottom: 0;101
}103
#overlay {104
pointer-events: none;105
}107
.badge {108
display: inline-block;109
margin-top: -1px;110
margin-left: 5px;111
padding: 2px 4px;112
border-radius: 2px;113
font-weight: 500;114
font-size: 12px;115
color: white !important;117
&.prime {118
background: @brand-blue;119
}121
&.beta {122
background: @brand-green;123
}124
}126
.button {127
display: block;128
height: 44px;129
padding: 0 22px;130
border: none;131
border-radius: 4px;132
background: @brand-grey-6;133
color: @brand-black;134
font-size: 16px;136
&:hover {138
&.ripple-active {139
background: lighten(@brand-grey-6, -2%);140
}141
}143
&.outline {144
border: 1px solid @brand-grey-5;145
background: transparent;147
&:hover {149
&.ripple-active {150
background: lighten(white, -2%);151
}152
}153
}155
&.prime {156
background: @brand-blue;157
color: white;159
&:hover {161
&.ripple-active {162
background: lighten(@brand-blue, -2%);163
}164
}165
}167
&.danger {168
background: @brand-red;169
color: white;171
&:hover {173
&.ripple-active {174
background: lighten(@brand-red, -2%);175
}176
}177
}178
}180
.controls {181
pointer-events: none;183
.notification {184
top: 90px;185
position: fixed;186
display: flex;187
justify-content: center;188
width: 100%;189
opacity: 0;191
p {192
display: inline-block;193
padding: 10px 24px;194
border-radius: 999px;195
background: @brand-black;196
color: white;197
opacity: 0.95;198
user-select: none;199
pointer-events: none;200
}201
}203
.hotbar {204
display: flex;205
position: fixed;206
left: calc(50% - 216px);207
bottom: 30px;208
z-index: -1;210
&.inactive {212
.color {213
pointer-events: none !important;214
}215
}217
.color {218
margin: 6px;219
width: 60px;220
height: 60px;221
border-radius: 30px;222
background: #EEE;223
cursor: pointer;224
transition: transform 0.2s;225
transform: scale(0.9);226
pointer-events: all;228
&:not(.active):hover {229
transform: scale(1);230
}232
&.focus {233
transform: scale(1);234
}236
&.active {237
transform: scale(1.1);238
}239
}240
}242
.pencil-modal {243
top: 75px;244
left: 120px;245
}247
.scale-modal {248
top: 75px;249
left: 70px;250
width: 400px;251
height: 60px;253
input[type="range"] {254
-webkit-appearance: none;255
width: calc(400px - 54px);256
margin-top: 21px;257
margin-left: 27px;258
height: 6px;259
background: #EEEEEE;260
border: none;261
border-radius: 4px;263
&::-webkit-slider-runnable-track {264
-webkit-appearance: none;265
}267
&::-webkit-slider-thumb {268
-webkit-appearance: none;269
height: 20px;270
width: 20px;271
margin-top: -0px;272
background: @brand-grey-3;273
border-radius: 10px;274
cursor: pointer;276
&:hover {277
background: @brand-grey-2;278
}279
}280
}281
}283
.clear-modal {284
top: calc(50% - 75.5px);285
left: calc(50% - 200px);286
width: 400px;287
padding: 25px;288
display: flex;289
flex-direction: column;291
.info {292
width: 100%;293
font-size: 20px;294
text-align: center;295
margin-bottom: 25px;296
color: @brand-black;297
user-select: none;298
}300
.align {301
display: flex;302
gap: 25px;304
.btn-cancel {305
width: 185px;306
height: 50px;307
border: none;308
border-radius: 3px;309
font-size: 17px;310
}312
.btn-apply {313
width: 185px;314
height: 50px;315
border: none;316
border-radius: 3px;317
border-color: grey;318
font-size: 17px;319
}320
}321
}323
.capture-modal {324
top: calc(50% - 213px);325
left: calc(50% - 200px);326
width: 400px;327
display: flex;328
flex-direction: column;329
padding: 25px;331
.info {332
font-size: 20px;333
width: 100%;334
text-align: center;335
margin-bottom: 25px;336
color: @brand-black;337
user-select: none;338
}340
.preview {341
height: 250px;342
background: @brand-grey-6;343
border: 1px solid #f1f1f1;344
border-radius: 3px;345
margin-bottom: 25px;346
}348
.align {349
display: flex;350
gap: 25px;352
.btn-cancel {353
width: 185px;354
height: 50px;355
border: none;356
border-radius: 3px;357
font-size: 17px;358
}360
.btn-apply {361
width: 185px;362
height: 50px;363
border: none;364
border-radius: 3px;365
border-color: grey;366
font-size: 17px;367
}368
}369
}371
.colors-modal {372
flex-wrap: wrap;373
min-width: 410px;374
width: 410px;375
max-width: 410px;376
padding: 30px !important;377
top: 75px;378
left: 15px;379
display: flex;380
gap: 12px;382
.color {383
width: 60px;384
height: 60px;385
border-radius: 30px;386
background: #EEE;387
cursor: pointer;388
transition: transform 0.2s;389
transform: scale(0.9);391
&:not(.active):hover {392
transform: scale(1);393
}395
&.active {396
transform: scale(1.1);397
}399
&.focus {400
transform: scale(1);401
}402
}403
}405
.multiplayer-modal {406
top: 75px;407
right: 130px;408
}410
.account-modal {411
top: 75px;412
right: 80px;413
}415
.more-modal {416
top: 75px;417
right: 20px;418
}419
}421
.modal {422
width: 250px;423
position: fixed;424
background: white;425
border: 1px solid @brand-grey-5;426
border-radius: 4px;427
padding: 6px 0;428
pointer-events: all;429
overflow: hidden;430
z-index: -1;431
display: flex;433
.main {434
width: 248px;435
min-width: 248px;7436
max-width: 248px;437
}439
ul.tab-list {440
width: 248px;441
min-width: 248px;442
max-width: 248px;443
}445
.header {446
display: flex;447
margin-bottom: 3px;449
.back {450
margin: 10px;451
margin-top: 15px;452
margin-right: 3px;453
width: 36px;454
height: 36px;455
border-radius: 18px;456
padding: 6px;457
padding-left: 5px;458
cursor: pointer;460
i.ico {461
color: @brand-grey-0;462
}464
&:hover {465
background: @brand-grey-7;466
}468
&.ripple {470
&.ripple-active {471
background: lighten(@brand-grey-7, -2%);472
}473
}474
}476
.info {477
display: flex;478
flex-direction: column;479
margin-top: 15px;481
p {482
display: flex;483
align-items: center;484
font-weight: 500;485
color: @brand-grey-1;486
user-select: none;487
pointer-events: none;488
}490
span {491
display: block;492
margin-top: 3px;493
font-size: 12px;494
color: @brand-grey-3;495
user-select: none;496
pointer-events: none;497
}498
}499
}501
ul.item-list {503
.separator {504
margin: 6px 0;505
width: 100%;506
height: 1px;507
background: @brand-grey-5;508
}510
li.caption {511
padding: 2px 15px;512
padding-top: 12px;513
list-style: none;515
p {516
color: @brand-grey-3;517
user-select: none;518
pointer-events: none;519
}520
}522
li.item {523
display: flex;524
align-items: center;525
padding: 15px;526
cursor: pointer;528
&.empty {530
p {531
display: block;532
width: 100%;533
color: @brand-grey-3;534
text-align: center;535
user-select: none;536
pointer-events: none;537
}538
}540
&:not(.active):not(.inactive) {542
&:hover {543
background: @brand-grey-7;544
}546
&.ripple {548
&.ripple-active {549
background: lighten(@brand-grey-7, -2%);550
}551
}552
}554
i.ico {555
color: @brand-grey-1;556
user-select: none;557
pointer-events: none;558
}560
i.lang {561
display: flex;562
justify-content: center;563
align-items: center;564
font-style: normal;565
font-weight: 600;566
width: 24px;567
height: 24px;568
color: @brand-grey-1;569
user-select: none;570
pointer-events: none;571
}573
.info {574
display: flex;575
flex-direction: column;576
margin-left: 10px;577
max-width: calc(100% - 24px - 10px);579
p {580
display: flex;581
align-items: center;582
font-weight: 500;583
color: @brand-grey-1;584
user-select: none;585
pointer-events: none;586
}588
span {589
display: block;590
margin-top: 3px;591
font-size: 12px;592
color: @brand-grey-3;593
user-select: none;594
pointer-events: none;595
white-space: nowrap;596
overflow: hidden;597
text-overflow: ellipsis;598
}599
}601
&.active {602
background: #EEEEEE;604
&.ripple {606
&.ripple-active {607
background: lighten(#EEEEEE, -2%);608
}609
}610
}612
&.inactive {614
i.ico {615
color: @brand-grey-4;616
}618
.info {620
p {621
color: @brand-grey-3;622
}624
span {625
color: @brand-grey-3;626
}627
}628
}629
}630
}631
}