mirror of
https://github.com/nkoehring/250kb-club.git
synced 2025-04-19 13:49:04 +02:00
111 lines
1.7 KiB
CSS
111 lines
1.7 KiB
CSS
body {
|
|
font: 16px/1.4 sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: white;
|
|
color: #333;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.2em;
|
|
line-height: 1.2;
|
|
letter-spacing: 6px;
|
|
text-align: center;
|
|
margin-top: 1.2em;
|
|
}
|
|
|
|
p {
|
|
text-align: justify;
|
|
}
|
|
|
|
body>header,main,body>footer {
|
|
max-width: calc(720px - 2em);
|
|
width: calc(100% - 2em);
|
|
margin: 0 auto;
|
|
padding: 0 1em;
|
|
}
|
|
|
|
main {
|
|
margin: 3em auto;
|
|
}
|
|
|
|
a,a:visited {
|
|
color: currentColor;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
select, button {
|
|
padding: .25em .5em;
|
|
border: 2px solid gray;
|
|
background: none;
|
|
color: currentColor;
|
|
font: inherit;
|
|
}
|
|
|
|
footer {
|
|
border-top: 1px solid lightgrey;
|
|
margin: 3rem auto 0;
|
|
font-size: 85%;
|
|
}
|
|
|
|
ol {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 1em;
|
|
background-color: #0002;
|
|
}
|
|
|
|
.entry {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
padding: .5em .5em 0;
|
|
height: 2em;
|
|
line-height: 2em;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.entry > .url {
|
|
flex: 1 1 auto;
|
|
width: 60%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.entry > .size, .entry > .ratio {
|
|
flex: 0 0 auto;
|
|
width: 20%;
|
|
text-align: right;
|
|
}
|
|
|
|
.entry-size-bar, .entry-ratio-bar {
|
|
height: 0;
|
|
margin-bottom: 2px;
|
|
border-bottom: 2px solid;
|
|
}
|
|
.entry-size-bar.highlighted, .entry-ratio-bar.highlighted {
|
|
border-bottom-width: 4px;
|
|
}
|
|
.entry-size-bar {
|
|
border-bottom-color: #966;
|
|
width: calc(var(--size)/250 * 100%);
|
|
}
|
|
.entry-ratio-bar {
|
|
border-bottom-color: #669;
|
|
width: var(--ratio);
|
|
}
|
|
|
|
aside {
|
|
display: flex;
|
|
flex-flow: row break;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
body { background: #222; color: white; }
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
}
|