ese-website/_includes/page.css

126 lines
1.9 KiB
CSS

* {
box-sizing: border-box;
font-size: 17px;
}
body {
margin: 0;
font-family: Aileron, sans-serif;
line-height: 1.5;
color: var(--color-text);
background-color: var(--color-background-page);
}
main {
padding: 4rem 0 8rem;
}
.content {
width: 100%;
max-width: var(--page-width);
padding-left: 1.25rem;
padding-right: 1.25rem;
margin-left: auto;
margin-right: auto;
}
@media (width < 1024px) {
.content {
padding-left: 1.8rem;
padding-right: 1.8rem;
}
}
h1, h2, h3, h4 {
color: var(--color-primary);
}
h1 {
font-weight: 700;
font-size: 2.8em;
text-transform: uppercase;
}
h2 {
font-weight: 300;
font-size: 2.4em;
line-height: 2;
}
h3 {
font-weight: 300;
font-size: 1.8em;
line-height: 2;
}
h4 {
font-weight: 400;
font-size: 1.3em;
line-height: 2;
}
h5 {
font-weight: 700;
font-size: 1em;
margin-bottom: 1em;
}
p {
line-height: 1.8;
}
a.link {
color: var(--color-primary);
text-decoration: underline dotted var(--color-primary);
font-weight: 500;
transition: filter .1s ease-out;
}
a.link:hover {
filter: brightness(.8);
}
a.btn {
display: block;
width: fit-content;
margin: 1em 0;
border: 1px solid var(--color-primary);
border-radius: 25px;
padding: .75rem 1.6rem;
text-decoration: none;
color: var(--color-primary);
transition: .2s ease-out;
transition-property: color, background-color;
}
a.btn:hover {
background-color: var(--color-primary);
color: var(--color-button-active);
}
@media (width < 640px) {
h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.3em;
font-weight: 400;
}
h4 {
font-size: 1.15em;
}
}
:root {
font-size: 12px;
--page-width: 1280px;
--color-text: #495057;
--color-primary: {{ ese.color }};
--color-button-active: #fff;
--color-background-page: #fefefe;
--color-background-header: rgba(255,255,255,.92);
}