forked from seekseek/ui
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
2.1 KiB
CSS
131 lines
2.1 KiB
CSS
:root {
|
|
--color-background: #f9f9f9;
|
|
--color-text: #000000;
|
|
--color-text-subdued: #4f4e4e;
|
|
--color-text-attention: teal;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--color-background: #111111;
|
|
--color-text: #f9f9f9;
|
|
--color-text-subdued: #cccccc;
|
|
--color-text-attention: teal;
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
color: var(--color-text);
|
|
background: var(--color-background);
|
|
font-family: sans-serif;
|
|
padding: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
html {
|
|
margin: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
display: grid;
|
|
grid-template:
|
|
"header" 7rem
|
|
"content" 1fr
|
|
"footer" 50px;
|
|
}
|
|
|
|
header {
|
|
grid-area: header;
|
|
border-bottom: 2px solid black;
|
|
align-self: center;
|
|
}
|
|
|
|
header .logoContainer {
|
|
display: inline-block;
|
|
position: relative;
|
|
}
|
|
|
|
header .logoContainer .logo {
|
|
height: 5rem;
|
|
}
|
|
|
|
header .logoContainer .siteTag {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
|
|
color: var(--color-text-attention);
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
header .logoContainer .betaTag {
|
|
width: 1px; /* Out-of-box alignment hack */
|
|
position: absolute;
|
|
right: -.3em;
|
|
bottom: 0;
|
|
font-style: italic;
|
|
|
|
color: rgb(218, 13, 13);
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
main {
|
|
grid-area: content;
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
main div.search input { width: 100%; }
|
|
|
|
footer {
|
|
grid-area: footer;
|
|
border-top: 1px solid black;
|
|
height: 2em;
|
|
}
|
|
|
|
main a, footer a {
|
|
color: var(--color-text-attention);
|
|
}
|
|
|
|
.counter {
|
|
margin-bottom: .5em;
|
|
font-style: italic;
|
|
font-size: .9em;
|
|
text-align: right;
|
|
}
|
|
|
|
.staticContent {
|
|
margin: 0 2em;
|
|
max-width: 900px;
|
|
}
|
|
|
|
.linkSpacer {
|
|
margin: 0 .5em;
|
|
}
|
|
|
|
@media only screen and (max-width: 1000px) {
|
|
body {
|
|
width: 100%;
|
|
padding: 0 1rem;
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: 1000px) {
|
|
body {
|
|
width: 80%;
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: 1400px) {
|
|
body {
|
|
width: 60rem;
|
|
}
|
|
}
|
|
|