json-theme-even-fork/style.css

216 lines
2.9 KiB
CSS
Raw Normal View History

:root {
/* Colors */
--primaryColor: #212529;
--secondaryColor: #95a5a6;
--accentColor: #f1c40f;
--linkColor: #2ecc71;
--mutedColor: #f4f6f6;
/* Typography */
--ratio: 1.25;
--scale0: 1rem;
--scale1: calc(var(--scale0) * var(--ratio));
--scale2: calc(var(--scale1) * var(--ratio));
--scale3: calc(var(--scale2) * var(--ratio));
--scale4: calc(var(--scale3) * var(--ratio));
--scale5: calc(var(--scale4) * var(--ratio));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
2020-03-08 14:28:50 +01:00
html {
font-size: 14px;
}
2018-09-23 20:28:05 +02:00
body {
color: var(--primaryColor);
display: grid;
font: 1em/1.5 Lato, sans-serif;
gap: 2em;
grid-template-columns:
[full-start]
1fr
[main-start side-start]
minmax(min-content, 12em)
[side-end content-start]
minmax(min-content, 36em)
[main-end content-end]
1fr
[full-end];
grid-template-rows: auto [content] 0;
margin-bottom: 4em;
2018-09-23 20:28:05 +02:00
}
body::before {
content: '';
grid-column: full;
grid-row: content;
2018-09-23 20:28:05 +02:00
}
ol,
ul {
padding-left: 1em;
2018-09-23 20:28:05 +02:00
}
li + li {
margin-top: 0.2em;
2018-09-23 20:28:05 +02:00
}
li::marker {
color: var(--mutedColor);
2018-09-23 20:28:05 +02:00
}
a {
color: var(--linkColor);
text-decoration: none;
transition: color 0.2s;
2018-09-23 20:28:05 +02:00
}
a:focus,
a:hover {
color: var(--accentColor);
2018-09-23 20:28:05 +02:00
}
h1,
h2,
h3,
h5 {
2018-09-23 20:28:05 +02:00
font-weight: normal;
}
h1,
h2,
h3 {
line-height: 1.2;
2018-09-23 20:28:05 +02:00
}
h1 {
font-size: var(--scale5);
2018-09-23 20:28:05 +02:00
}
h2 {
color: var(--secondaryColor);
font-size: var(--scale4);
2018-09-23 20:28:05 +02:00
}
h3 {
color: var(--accentColor);
font-size: var(--scale3);
grid-column: side;
margin-bottom: 1rem;
2020-02-10 20:31:21 +01:00
}
h4 {
font-size: var(--scale2);
2020-02-10 20:31:21 +01:00
}
h5 {
font-size: var(--scale1);
2020-02-10 20:31:21 +01:00
}
h6 {
font-size: var(--scale0);
2018-09-23 20:28:05 +02:00
}
p:not(:first-child) {
margin-top: 1em;
2018-09-23 20:28:05 +02:00
}
p:not(:last-child) {
margin-bottom: 1em;
2018-09-23 20:28:05 +02:00
}
blockquote {
border-left: 0.2em solid var(--mutedColor);
padding-left: 1em;
2018-09-23 20:28:05 +02:00
}
cite {
color: var(--secondaryColor);
font-style: inherit;
2018-09-23 20:28:05 +02:00
}
cite::before {
content: '— ';
2018-09-23 20:28:05 +02:00
}
header {
background: var(--mutedColor);
display: inherit;
gap: inherit;
grid-column: full;
grid-template-columns: inherit;
padding: 4em 0;
row-gap: 0;
2018-09-23 20:28:05 +02:00
}
header > *,
section {
grid-column: main;
2018-09-23 20:28:05 +02:00
}
.stack {
display: grid;
gap: 1.5em;
}
.grid-list {
display: grid;
gap: 1em;
2018-09-23 20:28:05 +02:00
}
.spaced-list {
display: flex;
align-items: center;
justify-content: space-between;
2018-09-23 20:28:05 +02:00
}
.spaced-list:first-child::before {
border-bottom: 1px solid var(--mutedColor);
content: '';
flex-grow: 1;
margin: 0 1em;
order: 1;
2020-03-08 14:28:50 +01:00
}
.spaced-list > :nth-child(2) {
order: 2;
2020-03-08 14:28:50 +01:00
}
2018-09-23 20:28:05 +02:00
.tag-list {
display: flex;
2020-07-26 00:05:15 +02:00
flex-wrap: wrap;
list-style: none;
padding: 0;
2018-09-23 20:28:05 +02:00
}
.tag-list > li {
background: var(--mutedColor);
margin: 0 0.2em 0.2em 0;
padding: 0.2em 0.6em;
2018-09-23 20:28:05 +02:00
}
@media (min-width: 48em) {
h3 {
text-align: right;
margin-bottom: inherit;
2018-09-23 20:28:05 +02:00
}
header > *,
section {
grid-column: content;
2018-09-23 20:28:05 +02:00
}
section {
display: contents;
2018-09-23 20:28:05 +02:00
}
.grid-list {
grid-template-columns: 1fr 1fr;
2018-09-23 20:28:05 +02:00
}
}