Files
2026-09-15 10:35:56 +08:00

314 lines
6.1 KiB
CSS

.esun-news-room {
--news-green: #12ad5c;
box-sizing: border-box;
margin: 88px auto 0;
max-width: 1360px;
padding: 0 20px 80px;
}
/*.esun-news-room *,*/
/*.esun-news-room *::before,*/
/*.esun-news-room *::after {*/
/* box-sizing: border-box;*/
/*}*/
.esun-news-room__heading {
align-items: flex-start;
display: flex;
justify-content: space-between;
margin-bottom: 68px;
}
.esun-news-room__heading h2 {
color: #303030;
font-size: 38px;
font-weight: 700;
letter-spacing: 6px;
line-height: 1.1;
margin: 0;
position: relative;
text-transform: uppercase;
}
.esun-news-room__heading h2::after {
background: var(--news-green);
bottom: -24px;
content: "";
height: 2px;
left: 0;
position: absolute;
width: 70px;
}
.esun-news-room__navigation {
display: flex;
gap: 16px;
}
.esun-news-room__previous {
padding-right: 9px;
}
.esun-news-room__next {
padding-left: 9px;
}
.esun-news-room__previous,
.esun-news-room__next {
align-items: center;
background: #fff;
border: 1px solid rgba(18, 173, 92, 0.55);
border-radius: 50%;
box-shadow: none;
color: var(--news-green);
display: flex;
font-size: 34px;
height: 52px;
justify-content: center;
line-height: 1;
transition:
background 0.25s ease,
color 0.25s ease,
border-color 0.25s ease;
width: 52px;
}
.esun-news-room__previous:hover .arrow-left {
border-color: #fff;
}
.esun-news-room__next,
.esun-news-room__previous:hover,
.esun-news-room__next:hover {
background: var(--news-green);
border-color: var(--news-green);
color: #fff;
}
.esun-news-room__slider {
overflow: hidden;
padding-bottom: 54px;
}
.esun-news-room__page {
height: auto;
}
.esun-news-room__grid {
display: grid;
gap: 36px;
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.esun-news-room__card {
color: #1f1f1f;
display: block;
text-decoration: none;
}
.esun-news-room__card:visited,
.esun-news-room__card:hover,
.esun-news-room__card:focus,
.esun-news-room__card:active,
.esun-news-room__card:hover *,
.esun-news-room__card:focus *,
.esun-news-room__card:active * {
color: inherit;
text-decoration: none;
}
.esun-news-room__image-wrap {
border-radius: 22px;
display: block;
overflow: hidden;
position: relative;
}
.esun-news-room__image-wrap::before {
content: "";
display: block;
padding-top: 56.5%;
}
.esun-news-room__image {
height: 100%;
inset: 0;
object-fit: cover;
position: absolute;
transition: transform 0.35s ease;
width: 100%;
}
.esun-news-room__card:hover .esun-news-room__image {
transform: scale(1.04);
}
.esun-news-room__meta {
align-items: center;
display: grid;
gap: 14px;
grid-template-columns: auto minmax(0, 1fr);
margin: 20px 0 7px;
}
.esun-news-room__meta time {
color: var(--news-green);
font-size: 16px;
font-weight: 500;
letter-spacing: 0.5px;
}
.esun-news-room__category {
border: 1px solid #dfe7ef;
border-radius: 999px;
color: #738095;
display: inline-block;
font-size: 15px;
font-weight: 700;
justify-self: end;
letter-spacing: 2px;
line-height: 1.2;
max-width: 100%;
overflow: hidden;
padding: 3px 16px 4px;
text-overflow: ellipsis;
white-space: nowrap;
}
.esun-news-room__title {
color: #1f1f1f;
display: block;
font-size: 18px;
font-weight: 500;
line-height: 1.2;
}
.esun-news-room__pagination {
align-items: center;
bottom: 0;
display: flex;
gap: 18px;
justify-content: center;
position: absolute;
width: 100%;
}
.esun-news-room__pagination .swiper-pagination-bullet {
background: rgba(18, 173, 92, 0.25);
border-radius: 999px;
height: 8px;
margin: 0;
opacity: 1;
transition:
width 0.25s ease,
background 0.25s ease;
width: 8px;
}
.esun-news-room__pagination .swiper-pagination-bullet-active {
background: var(--news-green);
width: 32px;
}
@media (max-width: 1023px) {
.esun-news-room {
margin-top: 64px;
}
.esun-news-room__heading {
margin-bottom: 54px;
}
.esun-news-room__grid {
gap: 28px 22px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 639px) {
.cms-home .esun-news-room {
margin-top: 56px;
padding: 0 0 56px;
}
.esun-news-room__heading {
align-items: center;
margin-bottom: 48px;
}
.esun-news-room__heading h2 {
font-size: 28px;
letter-spacing: 4px;
}
.esun-news-room__heading h2::after {
bottom: -16px;
width: 56px;
}
.esun-news-room__navigation {
display: flex;
gap: 12px;
}
.esun-news-room__previous,
.esun-news-room__next {
font-size: 28px;
height: 42px;
width: 42px;
}
.esun-news-room__slider {
padding-bottom: 46px;
}
.esun-news-room__grid {
gap: 28px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.esun-news-room__image-wrap {
border-radius: 24px;
}
.esun-news-room__meta {
align-items: flex-start;
display: flex;
flex-direction: column;
gap: 9px;
margin: 14px 7px 12px;
}
.esun-news-room__meta time {
font-size: 14px;
}
.esun-news-room__category {
font-size: 13px;
font-weight: 400;
justify-self: auto;
letter-spacing: 0;
padding: 3px 10px;
}
.esun-news-room__title {
display: -webkit-box;
font-size: 16px;
font-weight: 600;
line-height: 1.45;
margin: 0 7px;
min-height: 46px;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.esun-news-room__pagination {
gap: 14px;
}
.esun-news-room__pagination .swiper-pagination-bullet {
height: 7px;
width: 7px;
}
.esun-news-room__pagination .swiper-pagination-bullet-active {
width: 27px;
}
}