A web-based drawing app
git clone git://soophie.de/outline
blob: 3daee7e623143288dd43d959962fcc3cd34814da (8751 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
flex-direction: column;27
pointer-events: all;29
.sidebar {30
justify-content: flex-end !important;31
}33
.mainbar,34
.sidebar {35
width: 100%;36
display: flex;37
justify-content: space-between;38
padding: 8px 14px;39
min-height: 60px;40
height: 60px;42
&.inactive {44
.action-item,45
.tool-item,46
.option-item {47
pointer-events: none !important;48
}49
}51
.tool,52
.action,53
.option {55
ul {56
list-style-type: none;57
display: flex;58
gap: 10px;60
li {61
width: 44px;62
height: 44px;63
padding: 10px;64
border-radius: 22px;65
cursor: pointer;66
pointer-events: all;68
&:not(.inactive):not(.active):hover {69
background: rgba(@brand-grey-7, 0.95);71
&.ripple {73
&.ripple-active {74
background: lighten(rgba(@brand-grey-7, 0.95), -2%);75
}76
}77
}79
&.active {80
background: rgba(#EEEEEE, 0.95);82
&.ripple {84
&.ripple-active {85
background: lighten(rgba(#EEEEEE, 0.95), -2%);86
}87
}88
}90
&.inactive {92
i.ico {93
color: @brand-grey-4;94
}95
}97
i.ico {98
color: @brand-grey-1;99
}100
}101
}102
}103
}104
}106
#canvas,107
#overlay,108
.controls {109
position: fixed;110
top: 0;111
left: 0;112
right: 0;113
bottom: 0;114
}116
#overlay {117
pointer-events: none;118
}120
.badge {121
display: inline-block;122
margin-top: -1px;123
margin-left: 5px;124
padding: 2px 4px;125
border-radius: 2px;126
font-weight: 500;127
font-size: 12px;128
color: white !important;130
&.prime {131
background: @brand-blue;132
}134
&.beta {135
background: @brand-green;136
}137
}139
.button {140
display: block;141
height: 44px;142
padding: 0 22px;143
border: none;144
border-radius: 4px;145
background: @brand-grey-6;146
color: @brand-black;147
font-size: 16px;149
&:hover {151
&.ripple-active {152
background: lighten(@brand-grey-6, -2%);153
}154
}156
&.outline {157
border: 1px solid @brand-grey-5;158
background: transparent;160
&:hover {162
&.ripple-active {163
background: lighten(white, -2%);164
}165
}166
}168
&.prime {169
background: @brand-blue;170
color: white;172
&:hover {174
&.ripple-active {175
background: lighten(@brand-blue, -2%);176
}177
}178
}180
&.danger {181
background: @brand-red;182
color: white;184
&:hover {186
&.ripple-active {187
background: lighten(@brand-red, -2%);188
}189
}190
}191
}193
.controls {194
pointer-events: none;196
.notification {197
top: 90px;198
position: fixed;199
display: flex;200
justify-content: center;201
width: 100%;202
opacity: 0;204
p {205
display: inline-block;206
padding: 10px 24px;207
border-radius: 999px;208
background: @brand-black;209
color: white;210
opacity: 0.95;211
user-select: none;212
pointer-events: none;213
}214
}216
.hotbar {217
display: flex;218
position: fixed;219
left: calc(50% - 216px);220
bottom: 30px;221
z-index: -1;223
&.inactive {225
.color {226
pointer-events: none !important;227
}228
}230
.color {231
margin: 6px;232
width: 60px;233
height: 60px;234
border-radius: 30px;235
background: #EEE;236
cursor: pointer;237
transition: transform 0.2s;238
transform: scale(0.9);239
pointer-events: all;241
&:not(.active):hover {242
transform: scale(1);243
}245
&.focus {246
transform: scale(1);247
}249
&.active {250
transform: scale(1.1);251
}252
}253
}255
.pencil-modal {256
top: 75px;257
left: 120px;258
}260
.scale-modal {261
top: 75px;262
left: 70px;263
width: 400px;264
height: 60px;266
input[type="range"] {267
-webkit-appearance: none;268
width: calc(400px - 54px);269
margin-top: 21px;270
margin-left: 27px;271
height: 6px;272
background: #EEEEEE;273
border: none;274
border-radius: 4px;276
&::-webkit-slider-runnable-track {277
-webkit-appearance: none;278
}280
&::-webkit-slider-thumb {281
-webkit-appearance: none;282
height: 20px;283
width: 20px;284
margin-top: -0px;285
background: @brand-grey-3;286
border-radius: 10px;287
cursor: pointer;289
&:hover {290
background: @brand-grey-2;291
}292
}293
}294
}296
.clear-modal {297
top: calc(50% - 75.5px - 30px);298
left: calc(50% - 175px);299
width: 350px;300
padding: 25px;301
display: flex;302
flex-direction: column;304
.info {305
width: 100%;306
font-size: 20px;307
text-align: center;308
margin-bottom: 25px;309
color: @brand-black;310
user-select: none;311
}313
.align {314
display: flex;315
gap: 15px;317
.btn-cancel {318
width: 50%;319
height: 48px;320
border: none;321
border-radius: 3px;322
font-size: 17px;323
}325
.btn-apply {326
width: 50%;327
height: 48px;328
border: none;329
border-radius: 3px;330
border-color: grey;331
font-size: 17px;332
}333
}334
}336
.colors-modal {337
flex-wrap: wrap;338
min-width: 418px;339
width: 418px;340
max-width: 418px;341
padding: 30px !important;342
top: 75px;343
left: 15px;344
display: flex;345
gap: 12px;346
max-height: calc(100vh - 90px);347
overflow-y: auto;349
&::-webkit-scrollbar {350
width: 8px;351
}353
&::-webkit-scrollbar-thumb {354
width: 8px;355
background: @brand-grey-5;357
&:hover {358
background: @brand-grey-4;359
}360
}362
.color {363
width: 60px;364
height: 60px;365
border-radius: 30px;366
background: #EEE;367
cursor: pointer;368
transition: transform 0.2s;369
transform: scale(0.9);371
&:not(.active):hover {372
transform: scale(1);373
}375
&.active {376
transform: scale(1.1);377
}379
&.focus {380
transform: scale(1);381
}382
}383
}385
.multiplayer-modal {386
top: 75px;387
right: 120px;388
}390
.account-modal {391
top: 75px;392
right: 70px;393
}395
.more-modal {396
top: 75px;397
right: 15px;398
}399
}401
.modal {402
width: 250px;403
position: fixed;404
background: white;405
border: 1px solid @brand-grey-5;406
border-radius: 4px;407
padding: 6px 0;408
pointer-events: all;409
overflow: hidden;410
z-index: -1;411
display: flex;413
.main {414
width: 248px;415
min-width: 248px;7416
max-width: 248px;417
}419
ul.tab-list {420
width: 248px;421
min-width: 248px;422
max-width: 248px;423
}425
.header {426
display: flex;427
margin-bottom: 3px;429
.back {430
margin: 10px;431
margin-top: 15px;432
margin-right: 3px;433
width: 36px;434
height: 36px;435
border-radius: 18px;436
padding: 6px;437
padding-left: 5px;438
cursor: pointer;440
i.ico {441
color: @brand-grey-0;442
}444
&:hover {445
background: @brand-grey-7;446
}448
&.ripple {450
&.ripple-active {451
background: lighten(@brand-grey-7, -2%);452
}453
}454
}456
.info {457
display: flex;458
flex-direction: column;459
margin-top: 15px;461
p {462
display: flex;463
align-items: center;464
font-weight: 500;465
color: @brand-grey-1;466
user-select: none;467
pointer-events: none;468
}470
span {471
display: block;472
margin-top: 3px;473
font-size: 12px;474
color: @brand-grey-3;475
user-select: none;476
pointer-events: none;477
}478
}479
}481
ul.item-list {483
.separator {484
margin: 6px 0;485
width: 100%;486
height: 1px;487
background: @brand-grey-5;488
}490
li.caption {491
padding: 2px 15px;492
padding-top: 12px;493
list-style: none;495
p {496
color: @brand-grey-3;497
user-select: none;498
pointer-events: none;499
}500
}502
li.item {503
display: flex;504
align-items: center;505
padding: 15px;506
cursor: pointer;508
&.empty {510
p {511
display: block;512
width: 100%;513
color: @brand-grey-3;514
text-align: center;515
user-select: none;516
pointer-events: none;517
}518
}520
&:not(.active):not(.inactive) {522
&:hover {523
background: @brand-grey-7;524
}526
&.ripple {528
&.ripple-active {529
background: lighten(@brand-grey-7, -2%);530
}531
}532
}534
i.ico {535
color: @brand-grey-1;536
user-select: none;537
pointer-events: none;538
}540
i.lang {541
display: flex;542
justify-content: center;543
align-items: center;544
font-style: normal;545
font-weight: 600;546
width: 24px;547
height: 24px;548
color: @brand-grey-1;549
user-select: none;550
pointer-events: none;551
}553
.info {554
display: flex;555
flex-direction: column;556
margin-left: 10px;557
max-width: calc(100% - 24px - 10px);559
p {560
display: flex;561
align-items: center;562
font-weight: 500;563
color: @brand-grey-1;564
user-select: none;565
pointer-events: none;566
}568
span {569
display: block;570
margin-top: 3px;571
font-size: 12px;572
color: @brand-grey-3;573
user-select: none;574
pointer-events: none;575
white-space: nowrap;576
overflow: hidden;577
text-overflow: ellipsis;578
}579
}581
&.active {582
background: #EEEEEE;584
&.ripple {586
&.ripple-active {587
background: lighten(#EEEEEE, -2%);588
}589
}590
}592
&.inactive {594
i.ico {595
color: @brand-grey-4;596
}598
.info {600
p {601
color: @brand-grey-3;602
}604
span {605
color: @brand-grey-3;606
}607
}608
}609
}610
}611
}