A web-based drawing app
git clone git://soophie.de/outline
blob: 0d4948f1f10b26d4c331e0226513bbdbf214b715 (7090 bytes)[doc][blame][raw]
1
* {2
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);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
.prime-badge {25
display: inline-block;26
margin-top: -1px;27
margin-left: 5px;28
padding: 2px 4px;29
background: #0372EF;30
border-radius: 2px;31
font-weight: 500;32
font-size: 12px;33
color: white !important;34
}36
.beta-badge {37
display: inline-block;38
margin-top: -1px;39
margin-left: 5px;40
padding: 2px 4px;41
background: #388E3C;42
border-radius: 2px;43
font-weight: 500;44
font-size: 12px;45
color: white !important;46
}48
.controls {49
pointer-events: none;51
.notification {52
top: 30px;53
position: fixed;54
display: flex;55
justify-content: center;56
width: 100%;57
opacity: 0;59
p {60
display: inline-block;61
padding: 10px 24px;62
border-radius: 999px;63
background: #24292E;64
color: white;65
opacity: 0.95;66
user-select: none;67
pointer-events: none;68
}69
}71
.ad {72
position: fixed;73
width: 400px;74
height: 150px;75
border-radius: 4px;76
background: #EEE;77
bottom: 40px;78
right: 40px;79
pointer-events: all;80
}82
.hotbar {83
display: flex;84
position: fixed;85
left: calc(50% - 216px);86
bottom: 30px;87
pointer-events: all;88
z-index: -1;90
.color {91
margin: 6px;92
width: 60px;93
height: 60px;94
border-radius: 30px;95
background: #EEE;96
cursor: pointer;97
transition: transform 0.2s;98
transform: scale(0.9);100
&:not(.active):hover {101
transform: scale(1);102
}104
&.focus {105
transform: scale(1);106
}108
&.active {109
transform: scale(1.1);110
}111
}112
}114
.toolbar {115
top: 20px;116
left: 20px;117
}119
.actionbar {120
top: 20px;121
right: 20px;122
}124
.actionbar,125
.toolbar {126
display: flex;127
position: fixed;128
pointer-events: all;130
.action,131
.tool {132
width: 44px;133
height: 44px;134
padding: 10px;135
margin-left: 8px;136
border-radius: 22px;137
cursor: pointer;139
&:hover {140
background: rgba(#FAFAFA, 0.95);142
&.ripple {144
&:not(.active).ripple-active {145
background: lighten(rgba(#FAFAFA, 0.95), -2%);146
}148
&.active.ripple-active {149
background: lighten(rgba(#EEEEEE, 0.95), -2%);150
}151
}152
}154
&.active {155
background: rgba(#EEEEEE, 0.95);156
}158
i.ico {159
color: #424242;160
}161
}162
}163
}165
.multiplayer-modal {166
top: 75px;167
right: 120px;168
}170
.account-modal {171
top: 75px;172
right: 70px;173
}175
.settings-modal {176
top: 75px;177
right: 20px;178
}180
.device-modal {181
top: 100px;182
right: 320px;183
}185
.language-modal {186
top: 100px;187
right: 860px;188
}190
.settings-modal {191
top: 75px;192
right: 20px;193
}195
.colors-modal {196
flex-wrap: wrap;197
width: 425px;198
max-width: 425px;199
min-width: 425px;200
height: 860px;201
padding: 30px !important;202
top: calc(50% - 430px);203
left: calc(50% - 212.5px);205
.color {206
margin: 6px;207
width: 60px;208
height: 60px;209
border-radius: 30px;210
background: #EEE;211
cursor: pointer;212
transition: transform 0.2s;213
transform: scale(0.9);215
&:not(.active):hover {216
transform: scale(1);217
}219
&.active {220
transform: scale(1.1);221
}223
&.focus {224
transform: scale(1);225
}226
}227
}230
.modal {231
width: 250px;232
position: fixed;233
background: white;234
border: 1px solid #F1F1F1;235
border-radius: 4px;236
padding: 6px 0;237
pointer-events: all;238
overflow: hidden;239
z-index: -1;240
display: flex;242
.main {243
width: 248px;244
min-width: 248px;7245
max-width: 248px;246
}248
ul.tab-list {249
width: 248px;250
min-width: 248px;251
max-width: 248px;252
}254
.header {255
display: flex;256
margin-bottom: 3px;258
.back {259
margin: 10px;260
margin-top: 15px;261
margin-right: 3px;262
width: 36px;263
height: 36px;264
border-radius: 18px;265
padding: 6px;266
padding-left: 5px;267
cursor: pointer;269
i.ico {270
color: #424242;271
}273
&:hover {274
background: #FAFAFA;275
}277
&.ripple {279
&.ripple-active {280
background: lighten(#FAFAFA, -2%);281
}282
}283
}285
.info {286
display: flex;287
flex-direction: column;288
margin-top: 15px;290
p {291
display: flex;292
align-items: center;293
font-weight: 500;294
color: #616161;295
user-select: none;296
pointer-events: none;297
}299
span {300
display: block;301
margin-top: 3px;302
font-size: 12px;303
color: #9E9E9E;304
user-select: none;305
pointer-events: none;306
}307
}308
}310
ul.item-list {312
li.caption {313
padding: 2px 15px;314
padding-top: 12px;315
list-style: none;317
p {318
color: #9E9E9E;319
user-select: none;320
pointer-events: none;321
}322
}324
li.item {325
display: flex;326
align-items: center;327
padding: 15px;328
cursor: pointer;330
&.empty {332
p {333
display: block;334
width: 100%;335
color: #9E9E9E;336
text-align: center;337
user-select: none;338
pointer-events: none;339
}340
}342
&:not(.active):not(.inactive) {344
&:hover {345
background: #FAFAFA;346
}348
&.ripple {350
&.ripple-active {351
background: lighten(#FAFAFA, -2%);352
}353
}354
}356
i.ico {357
color: #424242;358
user-select: none;359
pointer-events: none;360
}362
i.lang {363
display: flex;364
justify-content: center;365
align-items: center;366
font-style: normal;367
font-weight: 600;368
width: 24px;369
height: 24px;370
color: #424242;371
user-select: none;372
pointer-events: none;373
}375
.info {376
display: flex;377
flex-direction: column;378
margin-left: 10px;379
max-width: calc(100% - 24px - 10px);381
p {382
display: flex;383
align-items: center;384
font-weight: 500;385
color: #616161;386
user-select: none;387
pointer-events: none;388
}390
span {391
display: block;392
margin-top: 3px;393
font-size: 12px;394
color: #9E9E9E;395
user-select: none;396
pointer-events: none;397
white-space: nowrap;398
overflow: hidden;399
text-overflow: ellipsis;400
}401
}403
&.active {404
background: #EEEEEE;406
&.ripple {408
&.ripple-active {409
background: lighten(#EEEEEE, -2%);410
}411
}412
}414
&.inactive {416
i.ico {417
color: #9E9E9E;418
}420
.info {422
p {423
color: #9E9E9E;424
}425
}426
}427
}428
}429
}431
.tooltip {432
position: relative;433
display: flex;434
justify-content: center;435
align-items: center;437
&:hover {439
&::before {440
opacity: 0.95;441
transition-delay: 0.6s;442
}444
&::after {445
opacity: 0.95;446
transition-delay: 0.6s;447
}448
}450
&::after {451
display: flex;452
opacity: 0;453
content: attr(data-title);454
justify-content: center;455
align-items: center;456
position: absolute;457
background: #24292E;458
color: white;459
min-height: 24px;460
padding: 0 12px;461
border-radius: 999px;462
font-size: 12px;463
top: auto;464
bottom: -70%;465
white-space: nowrap;466
z-index: 9999;467
pointer-events: none;468
}470
&.up {472
&::before {473
top: ~'calc(-90% + 26px)';474
bottom: auto;475
border-left: 6px solid transparent;476
border-right: 6px solid transparent;477
border-top: 6px solid #24292E;478
border-bottom: none;479
}481
&::after {482
top: -60%;483
bottom: auto;484
}485
}487
&.down {489
&::before {490
top: auto;491
bottom: ~'calc(-90% + 26px)';492
border-left: 6px solid transparent;493
border-right: 6px solid transparent;494
border-top: none;495
border-bottom: 6px solid #24292E;496
}498
&::after {499
top: auto;500
bottom: -60%;501
}502
}503
}