kgroad-frontend2/src/Widgets/home/NewsSection/NewsSection.scss

60 lines
930 B
SCSS

@import "../../../Shared/variables.scss";
.news-section {
margin-top: 110px;
padding: 0 90px;
display: flex;
flex-direction: column;
gap: 30px;
&__list {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 30px;
}
&__read-more-btn {
width: fit-content;
display: flex;
align-items: center;
justify-content: center;
align-self: flex-end;
gap: 10px;
font-size: 20px;
font-weight: 600;
color: $light-blue;
}
}
@media screen and (max-width: 1024px) {
.news-section {
padding: 0px 30px;
}
}
@media screen and (max-width: 768px) {
.news-section {
margin-top: 80px;
&__list {
grid-template-columns: 1fr 1fr;
}
&__read-more-btn {
width: 100%;
}
}
}
@media screen and (max-width: 550px) {
.news-section {
padding: 0px 16px;
margin-top: 70px;
&__list {
grid-template-columns: 1fr;
}
}
}