abkommen60jahre.de/styles.css

199 lines
3.4 KiB
CSS
Raw Normal View History

2021-09-24 18:15:21 +00:00
* {
box-sizing: border-box;
}
2021-09-26 19:23:59 +00:00
.page {
2021-09-26 23:44:24 +00:00
font-family: 'Overlock', sans-serif;
2021-09-26 23:37:59 +00:00
font-size: 18px;
2021-09-24 18:15:21 +00:00
line-height: 2em;
display: flex;
flex-direction: column;
2021-09-24 20:20:24 +00:00
padding: 0;
margin: 0;
2021-09-24 18:15:21 +00:00
--primary: #D02424;
2021-09-26 19:23:59 +00:00
--primary-font: #ffffff;
2021-09-26 23:37:59 +00:00
--side-padding: 8vw;
2021-09-24 18:15:21 +00:00
--max-content-width: 925px;
2021-09-24 20:20:24 +00:00
--border: #707070;
background-image: url(/img/bg-pattern.svg);
background-repeat: repeat-y;
background-position: right;
background-size: 50vw;
2021-09-24 18:15:21 +00:00
}
2021-09-26 19:23:59 +00:00
@media screen and (min-width: 768px) {
.page {
2021-09-26 23:37:59 +00:00
font-size: 24px;
2021-09-26 19:23:59 +00:00
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto auto auto auto;
--side-padding: 10vw;
}
}
.page-header {
2021-09-24 18:35:11 +00:00
height: 100vh;
2021-09-24 18:15:21 +00:00
justify-content: center;
2021-09-26 22:53:08 +00:00
background-image: url(/img/header-1024.jpg);
2021-09-24 18:35:11 +00:00
background-size: cover;
2021-09-26 22:53:08 +00:00
background-position: bottom right;
2021-09-24 18:35:11 +00:00
background-repeat: no-repeat;
position: relative;
2021-09-24 20:20:24 +00:00
border-bottom: 5px solid var(--primary);
2021-09-24 18:35:11 +00:00
}
2021-09-26 19:23:59 +00:00
@media screen and (min-width: 768px) {
.page-header {
grid-column-start: 1;
2021-09-26 22:53:08 +00:00
grid-column-end: 3;
2021-09-26 19:23:59 +00:00
grid-row-start: 1;
grid-row-end: 2;
}
}
2021-09-26 22:53:08 +00:00
@media screen and (min-width: 1025px) {
.page-header {
background-image: url(/img/header-1920.jpg);
background-position: center;
}
}
@media screen and (min-width: 1921px) {
.page-header {
background-image: url(/img/header-full.jpg);
}
}
2021-09-26 19:23:59 +00:00
.page-header::before {
2021-09-24 18:35:11 +00:00
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(208,36, 36, 0.83);
mix-blend-mode: multiply;
}
2021-09-26 19:23:59 +00:00
.page-header > * {
2021-09-24 18:35:11 +00:00
z-index: 1;
2021-09-26 19:23:59 +00:00
color: var(--primary-font);
2021-09-24 18:35:11 +00:00
margin: 0;
margin-bottom: 1rem;
}
2021-09-26 19:23:59 +00:00
.page-header-headline {
2021-09-26 23:37:59 +00:00
font-size: 2rem;
line-height: 3rem;
}
@media screen and (min-width: 768px) {
.page-header-headline {
font-size: 3.5rem;
line-height: 4.5rem;
}
}
@media screen and (min-width: 1024) {
.page-header-headline {
font-size: 5rem;
line-height: 6rem;
}
2021-09-24 18:35:11 +00:00
}
2021-09-26 19:23:59 +00:00
.page-header-subheadline {
2021-09-26 23:37:59 +00:00
font-size: 1.5rem;
line-height: 2rem;
}
@media screen and (min-width: 768px) {
.page-header-subheadline {
font-size: 2.5rem;
line-height: 3.5rem;
}
}
@media screen and (min-width: 1024) {
.page-header-subheadline {
font-size: 3rem;
line-height: 4rem;
}
2021-09-24 18:35:11 +00:00
}
2021-09-26 19:23:59 +00:00
.page-header-cta {
color: var(--primary-font);
2021-09-24 18:35:11 +00:00
text-decoration: none;
2021-09-24 18:15:21 +00:00
}
2021-09-26 22:53:08 +00:00
.page-header-cta:hover {
text-decoration: underline;
}
2021-09-26 19:23:59 +00:00
.page-header,
.page-main {
2021-09-24 18:15:21 +00:00
width: 100%;
display: flex;
flex-direction: column;
padding-left: var(--side-padding);
padding-right: var(--side-padding);
}
2021-09-26 19:23:59 +00:00
.page-header > *,
.page-main > * {
2021-09-24 18:15:21 +00:00
max-width: var(--max-content-width);
}
2021-09-26 19:23:59 +00:00
.page-main {
2021-09-24 18:35:11 +00:00
padding-bottom: 10vh;
2021-09-24 18:15:21 +00:00
}
2021-09-24 20:20:24 +00:00
2021-09-26 23:47:54 +00:00
.page-main > *:first-child {
margin-top: 0;
}
2021-09-26 19:23:59 +00:00
@media screen and (min-width: 768px) {
.page-main {
grid-column-start: 1;
grid-column-end: 2;
grid-row-start: 3;
grid-row-end: 4;
}
}
.page-title {
2021-09-26 23:37:59 +00:00
font-size: 2rem;
line-height: 3rem;
2021-09-26 19:23:59 +00:00
padding-left: var(--side-padding);
padding-right: var(--side-padding);
}
2021-09-26 23:37:59 +00:00
@media screen and (min-width: 768px) {
.page-title {
padding-top: 10vh;
font-size: 3.5rem;
line-height: 4.5rem;
}
}
@media screen and (min-width: 1024) {
.page-title {
font-size: 5rem;
line-height: 6rem;
}
}
2021-09-26 22:53:08 +00:00
.navigation + .page-title,
.page-header + .page-main {
2021-09-24 20:20:24 +00:00
margin-top: 20vh;
}
2021-09-26 19:23:59 +00:00
@media screen and (min-width: 768px) {
.page-title {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 2;
grid-row-end: 3;
}
}