abkommen60jahre.de/styles.css

271 lines
4.3 KiB
CSS
Raw Normal View History

2021-09-24 18:15:21 +00:00
* {
box-sizing: border-box;
}
*:focus {
outline: 2px dotted blue;
}
2021-09-26 19:23:59 +00:00
.page {
2021-10-12 20:13:48 +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;
--primary: #B51111;
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;
--border-radius: 5px;
--mobile-side-margin: 2vw;
2021-09-24 20:20:24 +00:00
background-image: url(/img/bg-pattern.svg);
background-repeat: repeat-y;
background-position: right;
2021-10-12 22:14:08 +00:00
background-size: 33vw;
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
--side-padding: 10vw;
}
}
@media screen and (min-width: 1024px) {
.page {
font-size: 24px;
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto auto auto auto auto auto;
--side-padding: 10vw;
2021-10-05 14:50:10 +00:00
}
}
.skip-to-content {
position: fixed;
top: 0;
left: 0;
width: auto;
z-index: -1;
background: white;
font-size: 2rem;
opacity: 0;
padding: 1rem 2rem;
}
.skip-to-content:focus {
opacity: 1;
z-index: 100000;
}
2021-09-26 19:23:59 +00:00
.page-header {
2021-09-24 18:15:21 +00:00
justify-content: center;
2021-09-24 18:35:11 +00:00
position: relative;
2021-09-24 20:20:24 +00:00
border-bottom: 5px solid var(--primary);
margin-top: 20vh;
height: 70vh;
}
.page-header_hero {
margin-top: 0;
height: 100vh;
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;
}
}
.page-header-image::before {
2021-09-24 18:35:11 +00:00
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(181, 17, 17, 0.83);
2021-09-24 18:35:11 +00:00
mix-blend-mode: multiply;
}
.page-header > *:not(.page-header-image) {
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 {
2021-10-08 17:22:33 +00:00
color: var(--primary-font);
2021-09-26 22:53:08 +00:00
text-decoration: underline;
}
2021-10-08 17:22:33 +00:00
.page-header-cta:visited {
color: var(--primary-font);
}
2021-09-26 22:53:08 +00:00
.page-header-image {
z-index: -1;
margin: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: flex-start;
align-items: flex-end;
}
.page-header-image-tag {
z-index: -1;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: top;
}
.page-header-image-description {
padding: 0 var(--side-padding);
color: var(--primary-font);
font-size: 0.8rem;
z-index: 10;
}
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);
}
.page-header > *:not(.page-header-image),
2021-09-26 19:23:59 +00:00
.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;
}
.page-main a {
text-decoration: none;
color: rgb(0, 102, 204);
}
.page-main a:hover {
text-decoration: underline;
}
.page-main a:visited {
color: rgb(0, 102, 204);
}
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;
}
}
2021-10-05 12:39:12 +00:00