Refactor styles

This commit is contained in:
2023-03-02 21:27:48 +02:00
parent 3078c2fb07
commit 30fecdb876
6 changed files with 698 additions and 92 deletions

88
assets/css/shared.css Normal file
View File

@@ -0,0 +1,88 @@
/* Heagings */
h1 {
font-size: 3.6rem;
line-height: 1.25;
}
h2 {
font-size: 2.8rem;
line-height: 1.3;
}
h3 {
font-size: 2.2rem;
letter-spacing: -0.08rem;
line-height: 1.35;
}
h4 {
font-size: 1.8rem;
letter-spacing: -0.05rem;
line-height: 1.5;
}
h5 {
font-size: 1.6rem;
letter-spacing: 0;
line-height: 1.4;
}
h6 {
font-size: 1.4rem;
letter-spacing: 0;
line-height: 1.2;
}
pre {
padding: 1em;
}
/* Headers */
header {
width: 100%;
background: #fdfdfd;
border-bottom: 1px solid #eaeaea;
margin-bottom: 2rem;
}
header section {
align-items: center;
display: flex;
flex-direction: column;
justify-content: space-between;
}
header section :first-child {
order: 2;
}
header section :last-child {
order: 1;
}
header nav ul,
header nav li {
margin: 0;
padding: 0;
display: block;
text-align: right;
white-space: nowrap;
}
header nav ul {
margin: 1rem;
margin-top: 0;
}
header nav a {
display: block;
}
@media (min-width: 40rem) {
/* Small devices (landscape phones, 576px and up) */
header section {
flex-direction: row;
}
header nav ul {
margin: 1rem;
}
.phx-logo {
flex-basis: 527px;
margin: 2rem 1rem;
}
}
/* Misc */
select {
width: auto;
}