A web-based drawing app
git clone git://soophie.de/outline
blob: 4fe0ec04c28f05e8cf2798bf9fd9e77cc40ab456 (8542 bytes)[doc][blame][raw]
1
* {2
-webkit-tap-highlight-color: transparent;3
}5
html,6
body {7
overflow: hidden;8
}10
#canvas,11
#overlay,12
.controls {13
position: fixed;14
top: 0;15
left: 0;16
right: 0;17
bottom: 0;18
}20
#overlay {21
pointer-events: none;22
}24
.badge {25
display: inline-block;26
margin-top: -1px;27
margin-left: 5px;28
padding: 2px 4px;29
border-radius: 2px;30
font-weight: 500;31
font-size: 12px;32
color: white !important;34
&.prime {35
background: @brand-blue;36
}38
&.beta {39
background: @brand-green;40
}41
}43
.controls {44
pointer-events: none;46
.notification {47
top: 30px;48
position: fixed;49
display: flex;50
justify-content: center;51
width: 100%;52
opacity: 0;54
p {55
display: inline-block;56
padding: 10px 24px;57
border-radius: 999px;58
background: @brand-black;59
color: white;60
opacity: 0.95;61
user-select: none;62
pointer-events: none;63
}64
}66
.hotbar {67
display: flex;68
position: fixed;69
left: calc(50% - 216px);70
bottom: 30px;71
z-index: -1;73
.color {74
margin: 6px;75
width: 60px;76
height: 60px;77
border-radius: 30px;78
background: #EEE;79
cursor: pointer;80
transition: transform 0.2s;81
transform: scale(0.9);82
pointer-events: all;84
&:not(.active):hover {85
transform: scale(1);86
}88
&.focus {89
transform: scale(1);90
}92
&.active {93
transform: scale(1.1);94
}95
}96
}98
.scale-modal {99
top: 40px;100
left: calc(50% - 200px);101
width: 400px;102
height: 60px;104
input[type="range"] {105
-webkit-appearance: none;106
width: calc(400px - 54px);107
margin-top: 21px;108
margin-left: 27px;109
height: 6px;110
background: #EEEEEE;111
border: none;112
border-radius: 4px;114
&::-webkit-slider-runnable-track {115
-webkit-appearance: none;116
}118
&::-webkit-slider-thumb {119
-webkit-appearance: none;120
height: 20px;121
width: 20px;122
margin-top: -0px;123
background: @brand-grey-3;124
border-radius: 10px;125
cursor: pointer;127
&:hover {128
background: @brand-grey-2;129
}130
}131
}132
}134
.clear-modal {135
top: calc(50% - 75px);136
left: calc(50% - 200px);137
width: 400px;138
height: 150px;139
display: grid;140
padding: 30px 10px 10px 10px;142
.text-clear {143
font-size: 20px;144
width: 380px;145
text-align: center;146
align-items: center;147
}149
.align {150
display: flex;151
margin-top: auto;153
.btn-cancel {154
width: 185px;155
height: 50px;156
border: none;157
border-radius: 3px;158
background-color: @brand-grey-6;159
font-size: 17px;161
&:hover {162
background-color: @brand-grey-4;163
}164
}166
.btn-apply {167
width: 185px;168
height: 50px;169
border: none;170
border-radius: 3px;171
border-color: grey;172
background-color: @brand-grey-6;173
margin-left: 10px;174
font-size: 17px;176
&:hover {177
background-color: @brand-grey-4;178
}179
}180
}181
}183
.capture-modal {184
top: calc(50% - 250px);185
left: calc(50% - 200px);186
width: 400px;187
height: 500px;188
display: grid;190
.text-save {191
font-size: 20px;192
width: 380px;193
height: px;194
text-align: center;195
align-items: center;196
margin-top: 20px;197
}199
.preview {200
height: 250px;201
background: @brand-grey-6;202
border: 1px solid #f1f1f1;203
border-radius: 3px;204
margin-top: 20px;205
margin-left: 20px;206
margin-right: 20px;207
}209
.action-file {210
border-radius: 3px;211
border: 2px solid #f1f1f1;212
height: 50px;213
margin-top: 10px;214
margin-left: 20px;215
margin-right: 20px;216
padding: 0px 0px 0px 10px;217
font-size: 15px;218
}220
.align {221
display: flex;222
margin-top: auto;223
margin-bottom: 20px;225
.btn-cancel {226
width: 170px;227
height: 50px;228
border: none;229
border-radius: 3px;230
background-color: @brand-grey-6;231
font-size: 17px;232
margin-left: 20px;234
&:hover {235
background-color: @brand-grey-4;236
}237
}239
.btn-apply {240
width: 170px;241
height: 50px;242
border: none;243
border-radius: 3px;244
border-color: grey;245
background-color: @brand-grey-6;246
margin-left: 20px;247
font-size: 17px;249
&:hover {250
background-color: @brand-grey-4;251
}252
}253
}254
}256
.toolbar {257
top: 20px;258
left: 20px;259
}261
.actionbar {262
top: 20px;263
right: 20px;264
}266
.actionbar,267
.toolbar {268
display: flex;269
position: fixed;271
.action,272
.tool {273
width: 44px;274
height: 44px;275
padding: 10px;276
margin-left: 8px;277
border-radius: 22px;278
cursor: pointer;279
pointer-events: all;281
&:hover {282
background: rgba(@brand-grey-7, 0.95);284
&.ripple {286
&:not(.active).ripple-active {287
background: lighten(rgba(@brand-grey-7, 0.95), -2%);288
}290
&.active.ripple-active {291
background: lighten(rgba(#EEEEEE, 0.95), -2%);292
}293
}294
}296
&.active {297
background: rgba(#EEEEEE, 0.95);298
}300
i.ico {301
color: @brand-grey-0;302
}303
}304
}305
}307
.colors-modal {308
flex-wrap: wrap;309
min-width: 410px;310
width: 410px;311
max-width: 410px;312
padding: 30px !important;313
top: calc(50% - 421px);314
left: calc(50% - 205px);315
display: flex;316
gap: 12px;318
.color {319
width: 60px;320
height: 60px;321
border-radius: 30px;322
background: #EEE;323
cursor: pointer;324
transition: transform 0.2s;325
transform: scale(0.9);327
&:not(.active):hover {328
transform: scale(1);329
}331
&.active {332
transform: scale(1.1);333
}335
&.focus {336
transform: scale(1);337
}338
}339
}341
.multiplayer-modal {342
top: 75px;343
right: 120px;344
}346
.account-modal {347
top: 75px;348
right: 70px;349
}351
.settings-modal {352
top: 75px;353
right: 20px;354
}356
.device-modal {357
top: 100px;358
right: 320px;359
}361
.language-modal {362
top: 100px;363
right: 860px;364
}366
.settings-modal {367
top: 75px;368
right: 20px;369
}371
.modal {372
width: 250px;373
position: fixed;374
background: white;375
border: 1px solid @brand-grey-5;376
border-radius: 4px;377
padding: 6px 0;378
pointer-events: all;379
overflow: hidden;380
z-index: -1;381
display: flex;383
.main {384
width: 248px;385
min-width: 248px;7386
max-width: 248px;387
}389
ul.tab-list {390
width: 248px;391
min-width: 248px;392
max-width: 248px;393
}395
.header {396
display: flex;397
margin-bottom: 3px;399
.back {400
margin: 10px;401
margin-top: 15px;402
margin-right: 3px;403
width: 36px;404
height: 36px;405
border-radius: 18px;406
padding: 6px;407
padding-left: 5px;408
cursor: pointer;410
i.ico {411
color: @brand-grey-0;412
}414
&:hover {415
background: @brand-grey-7;416
}418
&.ripple {420
&.ripple-active {421
background: lighten(@brand-grey-7, -2%);422
}423
}424
}426
.info {427
display: flex;428
flex-direction: column;429
margin-top: 15px;431
p {432
display: flex;433
align-items: center;434
font-weight: 500;435
color: @brand-grey-1;436
user-select: none;437
pointer-events: none;438
}440
span {441
display: block;442
margin-top: 3px;443
font-size: 12px;444
color: @brand-grey-3;445
user-select: none;446
pointer-events: none;447
}448
}449
}451
ul.item-list {453
.separator {454
margin: 6px 0;455
width: 100%;456
height: 1px;457
background: @brand-grey-5;458
}460
li.caption {461
padding: 2px 15px;462
padding-top: 12px;463
list-style: none;465
p {466
color: @brand-grey-3;467
user-select: none;468
pointer-events: none;469
}470
}472
li.item {473
display: flex;474
align-items: center;475
padding: 15px;476
cursor: pointer;478
&.empty {480
p {481
display: block;482
width: 100%;483
color: @brand-grey-3;484
text-align: center;485
user-select: none;486
pointer-events: none;487
}488
}490
&:not(.active):not(.inactive) {492
&:hover {493
background: @brand-grey-7;494
}496
&.ripple {498
&.ripple-active {499
background: lighten(@brand-grey-7, -2%);500
}501
}502
}504
i.ico {505
color: @brand-grey-0;506
user-select: none;507
pointer-events: none;508
}510
i.lang {511
display: flex;512
justify-content: center;513
align-items: center;514
font-style: normal;515
font-weight: 600;516
width: 24px;517
height: 24px;518
color: @brand-grey-0;519
user-select: none;520
pointer-events: none;521
}523
.info {524
display: flex;525
flex-direction: column;526
margin-left: 10px;527
max-width: calc(100% - 24px - 10px);529
p {530
display: flex;531
align-items: center;532
font-weight: 500;533
color: @brand-grey-1;534
user-select: none;535
pointer-events: none;536
}538
span {539
display: block;540
margin-top: 3px;541
font-size: 12px;542
color: @brand-grey-3;543
user-select: none;544
pointer-events: none;545
white-space: nowrap;546
overflow: hidden;547
text-overflow: ellipsis;548
}549
}551
&.active {552
background: #EEEEEE;554
&.ripple {556
&.ripple-active {557
background: lighten(#EEEEEE, -2%);558
}559
}560
}562
&.inactive {564
i.ico {565
color: @brand-grey-3;566
}568
.info {570
p {571
color: @brand-grey-3;572
}573
}574
}575
}576
}577
}