My pretty neat website
git clone git://soophie.de/soso
blob: 8bb4867d04430e9b8af4f60f76ba01224364f436 (7768 bytes)[raw]
1
@font-face {2
font-family: 'Inconsolata';3
src: url('/asset/font/Inconsolata-Variable.ttf') format('truetype');4
}6
:root {7
--ft-mono: 'Inconsolata', monospace;8
--ft-size: 14px;9
--ft-weight: 400;10
}12
* {13
font-family: var(--ft-mono);14
box-sizing: border-box;15
}17
html {19
body {20
max-width: 900px;21
margin: 4rem auto;22
margin-bottom: 6rem;23
padding: 0px 1rem;24
font-size: var(--ft-size);25
font-weight: var(--ft-weight);26
}27
}29
nav {30
border-bottom: 1px solid #bbbbbb;31
padding-bottom: 1rem;32
}34
pre {35
white-space: pre-wrap;36
}38
img {39
max-width: 100%;40
}42
ul.row-list {43
padding: 0px;44
width: 100%;46
li.row {47
display: flex;48
align-items: center;49
gap: 0px 1rem;50
margin: 0px;51
padding: 0px 2ch;52
height: 24px;53
list-style-type: none;55
&.row--head {56
margin-bottom: 0.5rem;57
border-bottom: 1px solid #bbbbbb;58
font-weight: 600;59
}61
&:not(.row--head):hover {62
background-color: #e1e1e1;63
}65
span.col {66
display: inline-block;68
&.col--oid {69
min-width: 7ch;70
max-width: 7ch;71
}73
&.col--time {74
min-width: 10ch;75
max-width: 10ch;76
}78
&.col--mode {79
min-width: 10ch;80
max-width: 10ch;81
}83
&.col--owner {84
min-width: 20ch;85
max-width: 20ch;86
text-overflow: ellipsis;87
white-space: nowrap;88
overflow: hidden;89
}91
&.col--author {92
min-width: 20ch;93
max-width: 20ch;94
text-overflow: ellipsis;95
white-space: nowrap;96
overflow: hidden;97
}99
&.col--size {100
min-width: 20ch;101
max-width: 20ch;102
}104
&.col--message {105
min-width: 50ch;106
flex: 1;107
text-overflow: ellipsis;108
white-space: nowrap;109
overflow: hidden;110
}112
&.col--description {113
min-width: 50ch;114
flex: 1;115
text-overflow: ellipsis;116
white-space: nowrap;117
overflow: hidden;118
}119
}120
}122
&.list--tree li.row span.col {124
&.col--name {125
min-width: 50ch;126
flex: 1;127
}128
}130
&.list--repo li.row span.col {132
&.col--name {133
min-width: 30ch;134
max-width: 30ch;135
}136
}138
&.list--refs li.row span.col {140
&.col--name {141
min-width: 30ch;142
max-width: 30ch;143
}144
}145
}147
.git--repo {148
margin-top: 2rem;150
.repo--description {152
}154
.repo--clone {155
display: inline-block;156
margin-top: 0.5rem;157
}159
hr {160
border: none;161
border-top: 1px solid #bbbbbb;162
}164
ul.link-list {165
display: flex;166
gap: 0px 0rem;167
padding: 0px;168
border-bottom: 1px solid #bbbbbb;169
margin-top: 2rem;170
margin-bottom: 0.5rem;172
li.link {173
margin: 0px;174
margin-bottom: -1px;175
list-style-type: none;176
min-width: 12ch;177
border: 1px solid #bbbbbb;179
&:not(:first-of-type) {180
margin-left: -1px;181
}183
&.link--active {184
border-bottom: 1px solid #ffffff;185
z-index: 1;186
}188
&:not(.link--active) {189
background-color: #eeeeee;190
}192
a {193
display: block;194
padding: 0.4rem 1rem;195
padding-bottom: 0.5rem;196
text-align: center;197
}198
}199
}201
select.repo--branch {202
margin: 0.5rem 0px;203
border: 1px solid #999999;204
padding: 0.25rem 0.5rem;205
cursor: pointer;206
min-width: 30ch;208
&:hover {209
border-color: #777777;210
}211
}213
.repo--tab {214
padding-top: 0.5rem;215
}216
}218
.commit--meta {220
.commit--body {221
white-space: pre-wrap;222
}224
hr {225
margin-top: 1rem;226
margin-bottom: 1rem;227
}229
.commit--info {230
line-height: 1.1rem;231
}232
}234
.commit--diff {235
margin-top: 2rem;237
pre {238
margin: 1rem 0px;240
&.diff--meta {241
padding-top: 0.25rem;242
padding-bottom: 0.25rem;243
padding-left: 1ch;244
border: 1px solid #bbbbbb;245
background-color: #eeeeee;247
&:has(+ pre.diff--code) {248
margin-bottom: -1rem;249
border-bottom: 0px;250
}252
p {253
margin: 0px;254
line-height: 1.1rem;256
&:not(:first-of-type) {257
display: none;258
}259
}260
}262
&.diff--code {263
padding-top: 0.5rem;264
padding-bottom: 0.5rem;265
border: 1px solid #bbbbbb;267
p {268
display: flex;269
margin: 0px;270
line-height: 1.1rem;272
&:last-of-type {273
display: none;274
}276
&.is-hunk {277
color: #5252ff;278
}280
&.is-add {282
span.ln {283
border-left: 3px solid #77d877;284
}285
}287
&.is-rem {289
span.ln {290
border-left: 3px solid #ff7f7f;291
}292
}294
&:not(:hover) {296
&.is-add {297
color: #2e862e;298
}300
&.is-rem {301
color: #932323;302
}304
&:target {305
background-color: #ffff9a !important;307
span.ln {309
a {310
color: #666666;311
}312
}313
}314
}316
&:hover {317
background-color: #e1e1e1;319
span.ln {321
a {322
color: #666666;323
}324
}325
}327
span.ln {328
min-width: max-content;329
user-select: none;330
padding-left: 1ch;331
margin-right: 2ch;332
border-left: 3px solid transparent;334
a {335
text-decoration: none;336
color: #888888;338
&:hover {339
text-decoration: underline;340
}341
}342
}344
span.line {346
}347
}348
}349
}350
}352
.blob {353
margin-top: 2rem;355
pre {356
margin: 1rem 0px;358
&.blob--meta {359
display: flex;360
gap: 0px 2ch;361
padding-top: 0.25rem;362
padding-bottom: 0.25rem;363
padding-left: 1ch;364
padding-right: 1ch;365
border: 1px solid #bbbbbb;366
background-color: #eeeeee;367
line-height: 1.1rem;369
&:has(+ pre.blob--code) {370
margin-bottom: -1rem;371
border-bottom: 0px;372
}374
span {375
flex: 1;376
}378
a {380
&.link--raw {381
margin-left: auto;382
}383
}384
}386
&.blob--code {387
padding-top: 0.5rem;388
padding-bottom: 0.5rem;389
border: 1px solid #bbbbbb;391
span.blob--binary {392
display: block;393
padding-top: 1rem;394
padding-bottom: 1rem;395
text-align: center;396
}398
p {399
display: flex;400
margin: 0px;401
line-height: 1.1rem;403
&:not(:hover) {405
&:target {406
background-color: #ffff9a !important;408
span.ln {410
a {411
color: #666666;412
}413
}414
}415
}417
&:hover {418
background-color: #e1e1e1;420
span.ln {422
a {423
color: #666666;424
}425
}426
}428
span.ln {429
min-width: max-content;430
user-select: none;431
padding-left: 1ch;432
margin-right: 2ch;433
border-left: 3px solid transparent;435
a {436
text-decoration: none;437
color: #888888;439
&:hover {440
text-decoration: underline;441
}442
}443
}445
span.line {447
}448
}449
}450
}451
}453
.blob--markdown {455
p {456
margin: 1.25rem 0px;457
line-height: 1.25rem;458
}460
pre:has(code) {461
padding: 1rem 2ch;463
&:not(:has(code.language-graph)) {464
border: 1px solid #bbbbbb;465
background-color: #eeeeee;466
}468
code {469
line-height: 1.1rem;471
&.language-graph {472
display: block;473
width: max-content;474
margin: 0 auto;475
}476
}477
}479
:not(pre) + code {480
padding: 1px 0.5ch;481
border: 1px solid #bbbbbb;482
}483
}