frog-website/src/lib/section.scss

68 lines
1.3 KiB
SCSS

.section {
margin-bottom: var(--space-xlarge);
display: flex;
flex-direction: column;
@media ($mobile-breakpoint) {
margin-bottom: var(--space-large);
}
&--anchor {
position: relative;
top: -90px;
visibility: hidden;
@media($mobile-breakpoint) {
top: -50px;
}
}
&--title {
z-index: -1;
background: transparent;
position: relative;
margin-top: 110px;
align-self: center;
&::before {
z-index: -1;
position: absolute;
top: -110px;
left: var(--picture-offset);
width: 150px;
height: 125px;
background: center / contain no-repeat var(--picture-url);
content: "";
}
&:hover::before {
background-image: var(--picture-hover-url);
}
@media ($mobile-breakpoint) {
margin-top: 70px;
&::before {
top: -70px;
left: calc(var(--picture-offset) * 0.8);
width: 90px;
height: 90px;
}
}
}
&--content {
display: flex;
flex-direction: column;
align-items: center;
@media ($mobile-breakpoint) {
grid-area: 2 / 1 / 3 / 4;
}
}
}