forked from ulovliglogning/ulovliglogning.dk
ec4603cd11
with integrated Call to action, and a nicer language switcher
75 lines
1.3 KiB
SCSS
75 lines
1.3 KiB
SCSS
section {
|
|
position: relative;
|
|
padding-top: 3rem;
|
|
padding-bottom: 3rem;
|
|
box-sizing: border-box;
|
|
min-height: 100vh;
|
|
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
background-size: 100% 30px;
|
|
background-repeat: no-repeat;
|
|
background-position: bottom;
|
|
background-color: $background-primary;
|
|
background-image: linear-gradient(
|
|
to left bottom,
|
|
$background-primary 49%,
|
|
$background-alternative 50%
|
|
);
|
|
&:nth-of-type(even) {
|
|
background-color: $background-alternative;
|
|
background-image: linear-gradient(
|
|
to left bottom,
|
|
$background-alternative 49%,
|
|
$background-primary 50%
|
|
);
|
|
}
|
|
&:first-child {
|
|
padding-top: 5rem;
|
|
}
|
|
&:last-of-type {
|
|
background-image: none;
|
|
}
|
|
|
|
.content {
|
|
box-sizing: border-box;
|
|
padding-left: 2rem;
|
|
padding-right: 2rem;
|
|
}
|
|
|
|
h1 {
|
|
word-break: break-word;
|
|
hyphens: auto;
|
|
}
|
|
|
|
p {
|
|
max-width: 40rem;
|
|
}
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
padding: 4rem 0;
|
|
|
|
.content {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding: 0 2rem;
|
|
}
|
|
|
|
.paragraphs {
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
h1 {
|
|
width: 22rem;
|
|
text-align: right;
|
|
align-items: baseline;
|
|
flex-direction:column;
|
|
}
|
|
}
|
|
}
|
|
|
|
|