benjaminbaedorf.eu/styles.css

127 lines
1.7 KiB
CSS

html {
--col-accent: #ff0083;
--col-background: #fff;
--col-foreground: #111;
font-family: 'Urbanist', sans-serif;
font-size: 18px;
line-height: 1.75;
color: var(--col-foreground);
font-weight: normal;
}
@media screen and (min-width: 700px) {
html {
font-size: 24px;
}
}
body {
margin: 0;
padding: 0.5rem;
background-color: var(--col-background);
display: flex;
flex-direction: column;
}
@media screen and (min-width: 700px) {
body {
padding: 1rem;
}
}
body > * {
width: 100%;
max-width: 760px;
}
header {
display: flex;
align-items: center;
}
img {
border-radius: 50%;
width: 3rem;
margin-right: 1rem;
}
h1 {
font-size: 2rem;
font-weight: black;
line-height: 1.5;
}
h2 {
font-size: 1.25rem;
font-weight: black;
line-height: 1.5;
margin-bottom: 0;
}
p {
font-weight: normal;
margin: 0px;
padding: 0px;
}
p,
details {
font-size: 1rem;
margin-top: 1rem;
}
a,
a:visited,
summary::marker {
color: var(--col-accent);
}
summary,
a {
cursor: pointer;
text-decoration: none;
transition-property: box-shadow;
transition-duration: 0.2s;
transition-timing-function: ease;
box-shadow: 0 0 0 var(--col-accent);
}
summary:hover,
a:hover {
box-shadow: 0 4px 0 var(--col-accent);
}
.keywords {
margin: 0;
padding: 0;
padding-top: 8px;
display: flex;
flex-wrap: wrap;
line-height: 1.5;
font-size: 18px;
list-style: none;
}
@media screen and (min-width: 700px) {
.keywords {
font-size: 20px;
}
}
.keywords > * {
background: var(--col-accent);
color: var(--col-background);
padding: 0px 12px;
border-radius: 16px;
margin-bottom: 2px;
margin-right: 2px;
}
.hidden {
display: none;
}