A web-based drawing app
git clone git://soophie.de/outline
blob: 614a838c6e106c42eb37dfedea2dd5af274bc7eb (8738 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
.pencil-modal {170
top: 75px;171
left: 130px;172
}174
.scale-modal {175
top: 40px;176
left: calc(50% - 200px);177
width: 400px;178
height: 60px;180
input[type="range"] {181
-webkit-appearance: none;182
width: calc(400px - 54px);183
margin-top: 21px;184
margin-left: 27px;185
height: 6px;186
background: #EEEEEE;187
border: none;188
border-radius: 4px;190
&::-webkit-slider-runnable-track {191
-webkit-appearance: none;192
}194
&::-webkit-slider-thumb {195
-webkit-appearance: none;196
height: 20px;197
width: 20px;198
margin-top: -0px;199
background: @brand-grey-3;200
border-radius: 10px;201
cursor: pointer;203
&:hover {204
background: @brand-grey-2;205
}206
}207
}208
}210
.clear-modal {211
top: calc(50% - 75.5px);212
left: calc(50% - 200px);213
width: 400px;214
padding: 25px;215
display: flex;216
flex-direction: column;218
.info {219
width: 100%;220
font-size: 20px;221
text-align: center;222
margin-bottom: 25px;223
color: @brand-black;224
user-select: none;225
}227
.align {228
display: flex;229
gap: 25px;231
.btn-cancel {232
width: 185px;233
height: 50px;234
border: none;235
border-radius: 3px;236
font-size: 17px;237
}239
.btn-apply {240
width: 185px;241
height: 50px;242
border: none;243
border-radius: 3px;244
border-color: grey;245
font-size: 17px;246
}247
}248
}250
.capture-modal {251
top: calc(50% - 213px);252
left: calc(50% - 200px);253
width: 400px;254
display: flex;255
flex-direction: column;256
padding: 25px;258
.info {259
font-size: 20px;260
width: 100%;261
text-align: center;262
margin-bottom: 25px;263
color: @brand-black;264
user-select: none;265
}267
.preview {268
height: 250px;269
background: @brand-grey-6;270
border: 1px solid #f1f1f1;271
border-radius: 3px;272
margin-bottom: 25px;273
}275
.align {276
display: flex;277
gap: 25px;279
.btn-cancel {280
width: 185px;281
height: 50px;282
border: none;283
border-radius: 3px;284
font-size: 17px;285
}287
.btn-apply {288
width: 185px;289
height: 50px;290
border: none;291
border-radius: 3px;292
border-color: grey;293
font-size: 17px;294
}295
}296
}298
.toolbar {299
top: 20px;300
left: 20px;301
}303
.actionbar {304
top: 20px;305
right: 20px;306
}308
.actionbar,309
.toolbar {310
display: flex;311
position: fixed;313
&.inactive {315
.action,316
.tool {317
pointer-events: none !important;318
}319
}321
.action,322
.tool {323
width: 44px;324
height: 44px;325
padding: 10px;326
margin-left: 8px;327
border-radius: 22px;328
cursor: pointer;329
pointer-events: all;331
&:hover {332
background: rgba(@brand-grey-7, 0.95);334
&.ripple {336
&:not(.active).ripple-active {337
background: lighten(rgba(@brand-grey-7, 0.95), -2%);338
}340
&.active.ripple-active {341
background: lighten(rgba(#EEEEEE, 0.95), -2%);342
}343
}344
}346
&.active {347
background: rgba(#EEEEEE, 0.95);348
}350
i.ico {351
color: @brand-grey-0;352
}353
}354
}355
}357
.colors-modal {358
flex-wrap: wrap;359
min-width: 410px;360
width: 410px;361
max-width: 410px;362
padding: 30px !important;363
top: calc(50% - 421px);364
left: calc(50% - 205px);365
display: flex;366
gap: 12px;368
.color {369
width: 60px;370
height: 60px;371
border-radius: 30px;372
background: #EEE;373
cursor: pointer;374
transition: transform 0.2s;375
transform: scale(0.9);377
&:not(.active):hover {378
transform: scale(1);379
}381
&.active {382
transform: scale(1.1);383
}385
&.focus {386
transform: scale(1);387
}388
}389
}391
.multiplayer-modal {392
top: 75px;393
right: 120px;394
}396
.account-modal {397
top: 75px;398
right: 70px;399
}401
.settings-modal {402
top: 75px;403
right: 20px;404
}406
.modal {407
width: 250px;408
position: fixed;409
background: white;410
border: 1px solid @brand-grey-5;411
border-radius: 4px;412
padding: 6px 0;413
pointer-events: all;414
overflow: hidden;415
z-index: -1;416
display: flex;418
.main {419
width: 248px;420
min-width: 248px;7421
max-width: 248px;422
}424
ul.tab-list {425
width: 248px;426
min-width: 248px;427
max-width: 248px;428
}430
.header {431
display: flex;432
margin-bottom: 3px;434
.back {435
margin: 10px;436
margin-top: 15px;437
margin-right: 3px;438
width: 36px;439
height: 36px;440
border-radius: 18px;441
padding: 6px;442
padding-left: 5px;443
cursor: pointer;445
i.ico {446
color: @brand-grey-0;447
}449
&:hover {450
background: @brand-grey-7;451
}453
&.ripple {455
&.ripple-active {456
background: lighten(@brand-grey-7, -2%);457
}458
}459
}461
.info {462
display: flex;463
flex-direction: column;464
margin-top: 15px;466
p {467
display: flex;468
align-items: center;469
font-weight: 500;470
color: @brand-grey-1;471
user-select: none;472
pointer-events: none;473
}475
span {476
display: block;477
margin-top: 3px;478
font-size: 12px;479
color: @brand-grey-3;480
user-select: none;481
pointer-events: none;482
}483
}484
}486
ul.item-list {488
.separator {489
margin: 6px 0;490
width: 100%;491
height: 1px;492
background: @brand-grey-5;493
}495
li.caption {496
padding: 2px 15px;497
padding-top: 12px;498
list-style: none;500
p {501
color: @brand-grey-3;502
user-select: none;503
pointer-events: none;504
}505
}507
li.item {508
display: flex;509
align-items: center;510
padding: 15px;511
cursor: pointer;513
&.empty {515
p {516
display: block;517
width: 100%;518
color: @brand-grey-3;519
text-align: center;520
user-select: none;521
pointer-events: none;522
}523
}525
&:not(.active):not(.inactive) {527
&:hover {528
background: @brand-grey-7;529
}531
&.ripple {533
&.ripple-active {534
background: lighten(@brand-grey-7, -2%);535
}536
}537
}539
i.ico {540
color: @brand-grey-0;541
user-select: none;542
pointer-events: none;543
}545
i.lang {546
display: flex;547
justify-content: center;548
align-items: center;549
font-style: normal;550
font-weight: 600;551
width: 24px;552
height: 24px;553
color: @brand-grey-0;554
user-select: none;555
pointer-events: none;556
}558
.info {559
display: flex;560
flex-direction: column;561
margin-left: 10px;562
max-width: calc(100% - 24px - 10px);564
p {565
display: flex;566
align-items: center;567
font-weight: 500;568
color: @brand-grey-1;569
user-select: none;570
pointer-events: none;571
}573
span {574
display: block;575
margin-top: 3px;576
font-size: 12px;577
color: @brand-grey-3;578
user-select: none;579
pointer-events: none;580
white-space: nowrap;581
overflow: hidden;582
text-overflow: ellipsis;583
}584
}586
&.active {587
background: #EEEEEE;589
&.ripple {591
&.ripple-active {592
background: lighten(#EEEEEE, -2%);593
}594
}595
}597
&.inactive {599
i.ico {600
color: @brand-grey-3;601
}603
.info {605
p {606
color: @brand-grey-3;607
}608
}609
}610
}611
}612
}