kgroad-frontend2/src/Widgets/home/NewsSection/NewsSection.scss
2024-01-19 19:46:01 +06:00

106 lines
1.7 KiB
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;
}
.news-card {
display: flex;
flex-direction: column;
gap: 24px;
img {
width: 100%;
height: 160px;
object-fit: cover;
}
&__date {
width: fit-content;
padding: 8px 12px;
background-color: $light-blue;
font-size: 14px;
font-weight: 500;
color: white;
border-radius: 3px;
}
&__text {
display: flex;
flex-direction: column;
gap: 20px;
h4 {
font-size: 24px;
font-weight: 500;
}
p {
font-size: 16px;
font-weight: 400;
line-height: 150%;
}
}
&__more-btn {
width: fit-content;
padding: 8px 12px;
border: 2px solid #3b3b3b;
border-radius: 3px;
color: #3b3b3b;
font-weight: 600;
}
}
&__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;
}
}
}