web2.0/src/static/css/main.css

120 lines
2 KiB
CSS
Raw Normal View History

2022-05-06 18:58:00 +02:00
@import "../fonts/inter/inter.css";
*, *::before, *::after {
2022-05-06 19:16:15 +02:00
box-sizing: border-box;
2022-05-06 19:58:09 +02:00
font-style: inherit;
2022-05-06 18:58:00 +02:00
}
:root {
--brand: #66cc00;
--text: #000000de;
2022-05-06 19:16:15 +02:00
--text-00: #ffffffde;
--bg-00: #000000;
2022-05-06 21:06:15 +02:00
--bg-01: #dedede;
2022-05-06 19:16:15 +02:00
--link: #0066ffde;
2022-05-06 18:58:00 +02:00
}
body {
2022-05-06 19:58:09 +02:00
font-family: "Inter var experimental", "Inter var", "Inter", sans-serif;
2022-05-06 18:58:00 +02:00
color: var(--text);
2022-05-06 20:10:29 +02:00
margin: auto;
2022-05-06 19:38:10 +02:00
margin-top: 4rem;
padding: 1rem;
font-weight: 350;
font-feature-settings: "ss01", "ss02", "ss03", "cv05", "cv08";
2022-05-07 18:31:47 +02:00
max-width: 90rem;
2022-05-08 09:29:36 +02:00
display: grid;
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
grid-gap: 1rem;
}
body > div {
column-width: 20rem;
column-gap: 1rem;
}
body > div.info {grid-column: 1}
body > div.cv {grid-column: 2 / -1}
@media (max-width: 40rem) {
body {grid-template-columns: 1fr}
body > div.cv {grid-column: 1}
2022-05-06 18:58:00 +02:00
}
h1, h2, h3 {font-weight: 250}
h1 {
font-size: 3rem;
letter-spacing: -.1rem;
}
h2 {font-size: 2.3rem}
h3 {font-size: 1.7rem}
h4, h5, h6 {font-weight: 700}
h4 {font-size: 1.2rem}
h5 {font-size: 1rem}
h6 {font-size: .8rem}
2022-05-06 19:58:09 +02:00
p {line-height: 1.3rem}
em {font-variation-settings: 'slnt' -5}
strong {font-weight: 550}
2022-05-06 19:38:10 +02:00
2022-05-06 19:16:15 +02:00
a {
color: var(--link);
text-decoration: none;
}
a:hover {text-decoration: underline;}
nav {
2022-05-06 19:38:10 +02:00
position: fixed;
2022-05-06 19:16:15 +02:00
top: 0;
2022-05-06 19:38:10 +02:00
left: 0;
right: 0;
2022-05-06 19:16:15 +02:00
height: 4rem;
line-height: 2rem;
background: var(--bg-00);
color: var(--text-00);
2022-05-06 19:38:10 +02:00
font-variant: small-caps;
2022-05-06 20:04:56 +02:00
white-space: nowrap;
overflow-x: auto;
2022-05-06 19:16:15 +02:00
}
nav > * {
2022-05-06 20:04:56 +02:00
height: 4rem;
padding: 1rem;
padding-right: 0;
2022-05-06 19:16:15 +02:00
display: inline-block;
vertical-align: middle;
}
nav a {
color: inherit;
}
nav a.active {
font-weight: 550;
}
2022-05-06 20:14:20 +02:00
nav img {
2022-05-06 19:16:15 +02:00
height: 2rem;
}
2022-05-06 19:38:10 +02:00
ul {list-style-type: ""}
ol {list-style-type: decimal-leading-zero}
li {padding-left: .5rem}
2022-05-06 21:06:15 +02:00
2022-05-07 18:31:47 +02:00
.img-block {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: .2rem;
grid-auto-rows: auto;
}
.img-block > img {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
}
2022-05-06 21:06:15 +02:00
footer {
background: var(--bg-01);
2022-05-08 09:29:36 +02:00
grid-column: 1 / -1;
2022-05-06 21:06:15 +02:00
text-align: center;
padding: 1rem;
line-height: 2rem;
2022-05-08 09:32:11 +02:00
margin: 0 -1rem -1rem -1rem;
2022-05-06 21:06:15 +02:00
}