legit/static/style.css

163 lines
2.4 KiB
CSS
Raw Normal View History

2022-12-17 07:16:09 +00:00
:root {
--light: #f4f4f4;
--cyan: #509c93;
--light-gray: #eee;
--medium-gray: #ddd;
--gray: #6a6a6a;
--dark: #444;
--darker: #222;
2022-12-17 16:03:04 +00:00
--sans-font: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
--display-font: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
--mono-font: monospace;
2022-12-17 07:16:09 +00:00
}
html {
background: var(--light);
-webkit-text-size-adjust: none;
2022-12-17 16:03:04 +00:00
font-family: var(--sans-font);
2022-12-17 07:16:09 +00:00
}
::selection {
background: var(--medium-gray);
opacity: 0.3;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
max-width: 750px;
padding: 0 13px;
margin: 40px auto;
}
main, footer {
font-size: 1rem;
padding: 0;
line-height: 160%;
}
main h1, h2, h3, .small-heading {
2022-12-17 16:03:04 +00:00
font-family: var(--display-font);
2022-12-17 07:16:09 +00:00
font-weight: 500;
}
strong {
font-weight: 500;
}
main h1 {
font-size: 20px;
padding: 10px 0 10px 0;
}
main h2 {
font-size: 18px;
}
main h2, h3 {
padding: 20px 0 15px 0;
}
nav {
padding-top: 1rem;
}
nav ul {
padding: 0;
margin: 0;
list-style: none;
padding-bottom: 20px;
}
nav ul li {
padding-right: 10px;
display: inline-block;
}
a {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
word-wrap: break-word;
}
a {
color: var(--darker);
border-bottom: 1.5px solid var(--medium-gray);
}
a:hover {
border-bottom: 1.5px solid var(--gray);
}
2022-12-17 07:17:54 +00:00
.index {
2022-12-17 07:16:09 +00:00
display: grid;
2022-12-17 16:03:04 +00:00
grid-template-columns: 6em 1fr minmax(0, 7em);
2022-12-17 07:16:09 +00:00
grid-row-gap: 0.5em;
2022-12-17 16:03:04 +00:00
min-width: 0;
2022-12-17 07:16:09 +00:00
}
2022-12-17 07:17:54 +00:00
.index-headings {
2022-12-17 07:16:09 +00:00
display: grid;
2022-12-17 16:03:04 +00:00
grid-template-columns: 6em 1fr minmax(0, 7em);
2022-12-17 07:16:09 +00:00
padding-bottom: 1.2em;
padding-top: 1.2em;
2022-12-17 16:03:04 +00:00
min-width: 0;
}
.desc {
color: var(--gray);
font-style: italic;
}
.tree {
display: grid;
grid-template-columns: 8em minmax(0, 1fr);
grid-row-gap: 0.5em;
grid-column-gap: 1em;
min-width: 0;
}
.log {
display: grid;
grid-template-columns: 20rem minmax(0, 1fr);
grid-row-gap: 0.8em;
grid-column-gap: 8rem;
margin-bottom: 2em;
padding-bottom: 1em;
border-bottom: 1.5px solid var(--medium-gray);
2022-12-17 07:16:09 +00:00
}
2022-12-17 16:03:04 +00:00
.log pre {
white-space: pre-wrap;
}
.mode {
font-family: var(--mono-font);
}
.readme pre {
white-space: pre-wrap;
}
@media (max-width: 600px) {
2022-12-17 07:17:54 +00:00
.index {
2022-12-17 07:16:09 +00:00
grid-row-gap: 0.8em;
}
2022-12-17 16:03:04 +00:00
.log {
grid-template-columns: 1fr;
grid-row-gap: 0em;
}
.commit-info:not(:last-child) {
padding-bottom: 1.5rem;
}
2022-12-17 07:16:09 +00:00
}