hhm-client/src/styles/_news.scss

188 lines
2.6 KiB
SCSS

.news-wrapper {
display: grid;
grid-template-columns: 32rem 1fr;
grid-template-rows: 22rem;
gap: 1.6rem;
.loader {
margin: 4rem 0;
}
}
.news-info {
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
gap: 1.6rem;
}
.news-info-inner {
width: 100%;
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.news-title {
font-size: 2.4rem;
font-weight: 700;
@include raleway;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.news-status {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.8rem;
flex-wrap: wrap;
}
.news-status-left {
display: flex;
align-items: center;
gap: 1.6rem;
overflow: auto;
width: 100%;
p {
white-space: nowrap;
&:nth-child(n + 5) {
display: none;
}
}
}
.news-link {
color: $main;
display: flex;
align-items: center;
font-size: 1.4rem;
gap: 0.8rem;
}
.news-text {
font-size: 1.8rem;
line-height: 2.4rem;
font-weight: 400;
color: $body;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
p {
* {
display: block;
}
}
}
.news-date {
color: $gray-dark;
font-weight: 400;
@include roboto;
font-size: 1.4rem;
}
.news-category {
display: inline-block;
color: $main;
text-transform: uppercase;
font-weight: 400;
font-size: 1.4rem;
@include roboto;
}
.news-scroll {
display: flex;
flex-direction: column;
gap: 2.4rem;
}
.news-scroll-wrapper {
display: flex;
flex-direction: column;
gap: 3.2rem;
}
.news-scroll-inner {
display: flex;
flex-direction: column;
gap: 3.6rem;
}
.scroll-empty {
font-size: 1.4rem;
color: $black;
}
.news-image {
@include wh100;
min-height: 18rem;
img,
span {
@include wh100;
object-fit: cover;
}
}
@media (max-width: 1200px) {
.news-status-left {
p {
&:nth-child(n + 3) {
display: none;
}
}
}
}
@media (max-width: 1024px) {
.news-text {
font-size: 1.6rem;
}
.news-title {
font-size: 2rem;
}
}
@media (max-width: 900px) {
.news-wrapper {
grid-template-columns: 25rem 1fr;
}
}
@media (max-width: 750px) {
.news-text {
font-size: 1.4rem;
}
.news-title {
font-size: 1.8rem;
}
.news-wrapper {
display: flex;
flex-direction: column;
}
.news-image {
height: 35rem;
}
}
@media (max-width: 550px) {
.news-image {
height: 28rem;
}
}
@media (max-width: 400px) {
.news-status-left {
p {
&:nth-child(n + 2) {
display: none;
}
}
}
}