A web-based drawing app
git clone git://soophie.de/outline
blob: b4ec3a893f2d1868b3beed34df29d355fcc2932f (8832 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
#canvas,21
#overlay,22
.controls {23
position: fixed;24
top: 0;25
left: 0;26
right: 0;27
bottom: 0;28
}30
#overlay {31
pointer-events: none;32
}34
.badge {35
display: inline-block;36
margin-top: -1px;37
margin-left: 5px;38
padding: 2px 4px;39
border-radius: 2px;40
font-weight: 500;41
font-size: 12px;42
color: white !important;44
&.prime {45
background: @brand-blue;46
}48
&.beta {49
background: @brand-green;50
}51
}53
.button {54
display: block;55
height: 44px;56
padding: 0 22px;57
border: none;58
border-radius: 4px;59
background: @brand-grey-6;60
color: @brand-black;61
font-size: 16px;63
&:hover {65
&.ripple-active {66
background: lighten(@brand-grey-6, -2%);67
}68
}70
&.outline {71
border: 1px solid @brand-grey-5;72
background: transparent;74
&:hover {76
&.ripple-active {77
background: lighten(white, -2%);78
}79
}80
}82
&.prime {83
background: @brand-blue;84
color: white;86
&:hover {88
&.ripple-active {89
background: lighten(@brand-blue, -2%);90
}91
}92
}94
&.danger {95
background: @brand-red;96
color: white;98
&:hover {100
&.ripple-active {101
background: lighten(@brand-red, -2%);102
}103
}104
}105
}107
.controls {108
pointer-events: none;110
.notification {111
top: 30px;112
position: fixed;113
display: flex;114
justify-content: center;115
width: 100%;116
opacity: 0;118
p {119
display: inline-block;120
padding: 10px 24px;121
border-radius: 999px;122
background: @brand-black;123
color: white;124
opacity: 0.95;125
user-select: none;126
pointer-events: none;127
}128
}130
.hotbar {131
display: flex;132
position: fixed;133
left: calc(50% - 216px);134
bottom: 30px;135
z-index: -1;137
&.inactive {139
.color {140
pointer-events: none !important;141
}142
}144
.color {145
margin: 6px;146
width: 60px;147
height: 60px;148
border-radius: 30px;149
background: #EEE;150
cursor: pointer;151
transition: transform 0.2s;152
transform: scale(0.9);153
pointer-events: all;155
&:not(.active):hover {156
transform: scale(1);157
}159
&.focus {160
transform: scale(1);161
}163
&.active {164
transform: scale(1.1);165
}166
}167
}169
.scale-modal {170
top: 40px;171
left: calc(50% - 200px);172
width: 400px;173
height: 60px;175
input[type="range"] {176
-webkit-appearance: none;177
width: calc(400px - 54px);178
margin-top: 21px;179
margin-left: 27px;180
height: 6px;181
background: #EEEEEE;182
border: none;183
border-radius: 4px;185
&::-webkit-slider-runnable-track {186
-webkit-appearance: none;187
}189
&::-webkit-slider-thumb {190
-webkit-appearance: none;191
height: 20px;192
width: 20px;193
margin-top: -0px;194
background: @brand-grey-3;195
border-radius: 10px;196
cursor: pointer;198
&:hover {199
background: @brand-grey-2;200
}201
}202
}203
}205
.clear-modal {206
top: calc(50% - 75.5px);207
left: calc(50% - 200px);208
width: 400px;209
padding: 25px;210
display: flex;211
flex-direction: column;213
.info {214
width: 100%;215
font-size: 20px;216
text-align: center;217
margin-bottom: 25px;218
color: @brand-black;219
user-select: none;220
}222
.align {223
display: flex;224
gap: 25px;226
.btn-cancel {227
width: 185px;228
height: 50px;229
border: none;230
border-radius: 3px;231
font-size: 17px;232
}234
.btn-apply {235
width: 185px;236
height: 50px;237
border: none;238
border-radius: 3px;239
border-color: grey;240
font-size: 17px;241
}242
}243
}245
.capture-modal {246
top: calc(50% - 213px);247
left: calc(50% - 200px);248
width: 400px;249
display: flex;250
flex-direction: column;251
padding: 25px;253
.info {254
font-size: 20px;255
width: 100%;256
text-align: center;257
margin-bottom: 25px;258
color: @brand-black;259
user-select: none;260
}262
.preview {263
height: 250px;264
background: @brand-grey-6;265
border: 1px solid #f1f1f1;266
border-radius: 3px;267
margin-bottom: 25px;268
}270
.align {271
display: flex;272
gap: 25px;274
.btn-cancel {275
width: 185px;276
height: 50px;277
border: none;278
border-radius: 3px;279
font-size: 17px;280
}282
.btn-apply {283
width: 185px;284
height: 50px;285
border: none;286
border-radius: 3px;287
border-color: grey;288
font-size: 17px;289
}290
}291
}293
.toolbar {294
top: 20px;295
left: 20px;296
}298
.actionbar {299
top: 20px;300
right: 20px;301
}303
.actionbar,304
.toolbar {305
display: flex;306
position: fixed;308
&.inactive {310
.action,311
.tool {312
pointer-events: none !important;313
}314
}316
.action,317
.tool {318
width: 44px;319
height: 44px;320
padding: 10px;321
margin-left: 8px;322
border-radius: 22px;323
cursor: pointer;324
pointer-events: all;326
&:hover {327
background: rgba(@brand-grey-7, 0.95);329
&.ripple {331
&:not(.active).ripple-active {332
background: lighten(rgba(@brand-grey-7, 0.95), -2%);333
}335
&.active.ripple-active {336
background: lighten(rgba(#EEEEEE, 0.95), -2%);337
}338
}339
}341
&.active {342
background: rgba(#EEEEEE, 0.95);343
}345
i.ico {346
color: @brand-grey-0;347
}348
}349
}350
}352
.colors-modal {353
flex-wrap: wrap;354
min-width: 410px;355
width: 410px;356
max-width: 410px;357
padding: 30px !important;358
top: calc(50% - 421px);359
left: calc(50% - 205px);360
display: flex;361
gap: 12px;363
.color {364
width: 60px;365
height: 60px;366
border-radius: 30px;367
background: #EEE;368
cursor: pointer;369
transition: transform 0.2s;370
transform: scale(0.9);372
&:not(.active):hover {373
transform: scale(1);374
}376
&.active {377
transform: scale(1.1);378
}380
&.focus {381
transform: scale(1);382
}383
}384
}386
.multiplayer-modal {387
top: 75px;388
right: 120px;389
}391
.account-modal {392
top: 75px;393
right: 70px;394
}396
.settings-modal {397
top: 75px;398
right: 20px;399
}401
.device-modal {402
top: 100px;403
right: 320px;404
}406
.language-modal {407
top: 100px;408
right: 860px;409
}411
.settings-modal {412
top: 75px;413
right: 20px;414
}416
.modal {417
width: 250px;418
position: fixed;419
background: white;420
border: 1px solid @brand-grey-5;421
border-radius: 4px;422
padding: 6px 0;423
pointer-events: all;424
overflow: hidden;425
z-index: -1;426
display: flex;428
.main {429
width: 248px;430
min-width: 248px;7431
max-width: 248px;432
}434
ul.tab-list {435
width: 248px;436
min-width: 248px;437
max-width: 248px;438
}440
.header {441
display: flex;442
margin-bottom: 3px;444
.back {445
margin: 10px;446
margin-top: 15px;447
margin-right: 3px;448
width: 36px;449
height: 36px;450
border-radius: 18px;451
padding: 6px;452
padding-left: 5px;453
cursor: pointer;455
i.ico {456
color: @brand-grey-0;457
}459
&:hover {460
background: @brand-grey-7;461
}463
&.ripple {465
&.ripple-active {466
background: lighten(@brand-grey-7, -2%);467
}468
}469
}471
.info {472
display: flex;473
flex-direction: column;474
margin-top: 15px;476
p {477
display: flex;478
align-items: center;479
font-weight: 500;480
color: @brand-grey-1;481
user-select: none;482
pointer-events: none;483
}485
span {486
display: block;487
margin-top: 3px;488
font-size: 12px;489
color: @brand-grey-3;490
user-select: none;491
pointer-events: none;492
}493
}494
}496
ul.item-list {498
.separator {499
margin: 6px 0;500
width: 100%;501
height: 1px;502
background: @brand-grey-5;503
}505
li.caption {506
padding: 2px 15px;507
padding-top: 12px;508
list-style: none;510
p {511
color: @brand-grey-3;512
user-select: none;513
pointer-events: none;514
}515
}517
li.item {518
display: flex;519
align-items: center;520
padding: 15px;521
cursor: pointer;523
&.empty {525
p {526
display: block;527
width: 100%;528
color: @brand-grey-3;529
text-align: center;530
user-select: none;531
pointer-events: none;532
}533
}535
&:not(.active):not(.inactive) {537
&:hover {538
background: @brand-grey-7;539
}541
&.ripple {543
&.ripple-active {544
background: lighten(@brand-grey-7, -2%);545
}546
}547
}549
i.ico {550
color: @brand-grey-0;551
user-select: none;552
pointer-events: none;553
}555
i.lang {556
display: flex;557
justify-content: center;558
align-items: center;559
font-style: normal;560
font-weight: 600;561
width: 24px;562
height: 24px;563
color: @brand-grey-0;564
user-select: none;565
pointer-events: none;566
}568
.info {569
display: flex;570
flex-direction: column;571
margin-left: 10px;572
max-width: calc(100% - 24px - 10px);574
p {575
display: flex;576
align-items: center;577
font-weight: 500;578
color: @brand-grey-1;579
user-select: none;580
pointer-events: none;581
}583
span {584
display: block;585
margin-top: 3px;586
font-size: 12px;587
color: @brand-grey-3;588
user-select: none;589
pointer-events: none;590
white-space: nowrap;591
overflow: hidden;592
text-overflow: ellipsis;593
}594
}596
&.active {597
background: #EEEEEE;599
&.ripple {601
&.ripple-active {602
background: lighten(#EEEEEE, -2%);603
}604
}605
}607
&.inactive {609
i.ico {610
color: @brand-grey-3;611
}613
.info {615
p {616
color: @brand-grey-3;617
}618
}619
}620
}621
}622
}