ese-website/_includes/page.css

137 lines
2.1 KiB
CSS
Raw Normal View History

2024-09-20 17:10:24 +02:00
* {
box-sizing: border-box;
2024-09-23 14:37:40 +02:00
font-size: 17px;
2024-09-20 17:10:24 +02:00
}
body {
margin: 0;
font-family: Aileron, sans-serif;
line-height: 1.5;
color: var(--color-text);
2024-09-24 16:45:36 +02:00
background-color: var(--color-background-page);
2024-09-20 17:10:24 +02:00
}
2024-09-23 14:39:07 +02:00
main {
padding: 4rem 0 8rem;
}
2024-09-23 14:37:40 +02:00
.content {
width: 100%;
2024-09-20 17:10:24 +02:00
max-width: var(--page-width);
2024-09-23 14:39:07 +02:00
padding-left: 1.25rem;
padding-right: 1.25rem;
2024-09-20 17:10:24 +02:00
margin-left: auto;
margin-right: auto;
}
2024-09-25 18:41:14 +02:00
@media (width < 1024px) {
.content {
padding-left: 1.8rem;
padding-right: 1.8rem;
}
}
2024-09-20 17:10:24 +02:00
h1, h2, h3, h4 {
color: var(--color-primary);
}
h1 {
font-weight: 700;
2024-09-23 14:37:40 +02:00
font-size: 2.8em;
2024-09-20 17:10:24 +02:00
text-transform: uppercase;
}
h2 {
font-weight: 300;
2024-09-23 14:37:40 +02:00
font-size: 2.4em;
2024-09-20 17:10:24 +02:00
line-height: 2;
}
h3 {
font-weight: 300;
2024-09-23 14:37:40 +02:00
font-size: 1.8em;
2024-09-20 17:10:24 +02:00
line-height: 2;
}
h4 {
font-weight: 400;
2024-09-23 14:37:40 +02:00
font-size: 1.3em;
2024-09-20 17:10:24 +02:00
line-height: 2;
}
h5 {
font-weight: 700;
2024-09-23 14:37:40 +02:00
font-size: 1em;
margin-bottom: 1em;
2024-09-20 17:10:24 +02:00
}
p {
line-height: 1.8;
}
2024-10-02 12:16:01 +02:00
a:not([class]) {
2024-09-27 16:32:04 +02:00
color: var(--color-primary);
text-decoration: underline dotted var(--color-primary);
font-weight: 500;
transition: filter .1s ease-out;
}
2024-10-02 12:16:01 +02:00
a:not([class]):hover {
2024-09-27 16:32:04 +02:00
filter: brightness(.8);
}
2024-09-27 15:36:08 +02:00
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);
}
2024-09-25 18:41:14 +02:00
@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;
}
}
2024-09-20 17:10:24 +02:00
:root {
2024-10-04 13:54:40 +02:00
scroll-behavior: smooth;
2024-09-23 14:37:40 +02:00
font-size: 12px;
--page-width: 1280px;
2024-09-20 17:10:24 +02:00
--color-text: #495057;
--color-primary: {{ ese.color }};
2024-09-27 15:36:08 +02:00
--color-button-active: #fff;
2024-09-24 16:45:36 +02:00
--color-background-page: #fefefe;
--color-background-header: rgba(255,255,255,.92);
2024-10-04 17:16:16 +02:00
--color-permalink: #9e9e9ea6;
/* --color-permalink: #cdcdcda6; */
2024-09-20 17:10:24 +02:00
}
2024-10-09 09:58:19 +02:00
@media (prefers-reduced-motion) {
*, *::before, *::after {
transition: none !important;
}
:root {
scroll-behavior: auto;
}
}