47 lines
774 B
CSS
47 lines
774 B
CSS
.section {
|
|
margin-bottom: var(--space-xlarge);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.section--title {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.section--title::before {
|
|
width: 150px;
|
|
height: 150px;
|
|
background: center / contain no-repeat var(--image);
|
|
content: "";
|
|
}
|
|
|
|
.section--title:hover::before {
|
|
background-image: var(--hover-image);
|
|
}
|
|
|
|
.section--content {
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.section {
|
|
margin-bottom: var(--space-large);
|
|
}
|
|
|
|
.section--title {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.section--title::before {
|
|
width: 50px;
|
|
height: 50px;
|
|
margin-right: var(--space-small);
|
|
}
|
|
|
|
.section--content {
|
|
grid-area: 2 / 1 / 3 / 4;
|
|
}
|
|
|
|
}
|