Files
agroexpert/frontend/src/styles/pages/main.css

437 lines
7.1 KiB
CSS
Raw Normal View History

2024-03-01 17:47:03 +03:00
.content {
display: grid;
margin-top: 0.3rem;
grid-template-columns: 36.4rem 1fr 36.3rem;
grid-template-areas: 'left middle right';
}
.content-left {
grid-area: left;
}
.content-middle {
grid-area: middle;
}
.content-right {
2025-04-18 19:44:26 +03:00
grid-area: right;
2024-03-01 17:47:03 +03:00
}
.content-right__link-item {
font-weight: 500;
}
2024-12-28 12:20:36 +03:00
ul.wp-block-list li{
display: block;
padding: 4px 0;
}
2025-04-18 19:44:26 +03:00
.about p {
margin-bottom: 1em;
}
.content-middle picture,
.content-middle img,
.content-middle picture img {
max-width: 100%;
height: auto;
display: block;
}
2025-05-05 22:55:06 +03:00
.news-list-picture{
2025-06-21 15:37:29 +03:00
height: 21rem !important;
2025-05-05 22:55:06 +03:00
object-fit: cover;
width: 100%;
}
2025-04-18 19:44:26 +03:00
.article-single IMG{
max-width: 100%;
}
.image-caption{
margin: 12px 0;
text-align: center;
}
2025-05-12 11:08:30 +03:00
.allnews-container{
width: 100%;
max-width: 100%;
}
.allnews{
display: flex; /* включаем flex-контейнер */
justify-content: center; /* по горизонтали по центру */
align-items: center;
padding: 1rem;
background: var(--primary);
font-weight: 700;
font-size: 1.6rem;
line-height: 1.8rem;
color: #fff;
-webkit-transition: 0.3s;
transition: 0.3s;
border-radius: .5rem;
border-right: 2px solid var(--secondary);
border-bottom: 2px solid var(--secondary);
width: 250px;
}
.allnews:hover{
background: var(--secondary);
}
2025-05-26 19:33:14 +03:00
.partner-logo IMG{
height: auto;
display: block;
width: 150px;
max-width: 150px;
}
2025-05-12 11:08:30 +03:00
2025-06-21 15:37:29 +03:00
/** @media (max-width: 1439px) { */
@media (min-width: 768px) and (max-width: 1024px) {
2024-03-01 17:47:03 +03:00
.content {
grid-template-columns: 36.4rem 1fr;
grid-template-areas:
'left middle'
'right right';
}
.content.content__search {
grid-template-areas:
'middle middle'
'right right';
}
2025-06-21 15:37:29 +03:00
2024-03-01 17:47:03 +03:00
}
@media (max-width: 767px) {
.content {
grid-template-columns: 1fr;
grid-template-areas:
'middle'
'left'
'right';
}
.content-right {
margin: 0 -2rem;
padding-bottom: 3rem;
}
}
.content-sidebar {
background: white;
}
.content-sidebar-top {
padding: 2.5rem 3.3rem;
}
.content-sidebar-top.no-top {
padding-top: 0;
}
.content-sidebar__title {
text-align: center;
margin-bottom: 1.6rem;
}
.upcoming-events {
max-width: 28.8rem;
}
.upcoming-events__title {
margin-top: 1.6rem;
}
.articles-preview {
display: flex;
flex-wrap: wrap;
}
.articles-wrapper {
border-left: 0.1rem solid var(--gray);
border-right: 0.1rem solid var(--gray);
display: flex;
flex-direction: column;
}
2024-08-13 18:34:49 +03:00
.frontpage-next{
2024-03-01 17:47:03 +03:00
padding: 1.8rem 0 1.7rem;
grid-column: span 2;
width: 100%;
text-align: center;
border-top: 0.1rem solid var(--gray);
margin-top: -1px;
font-family: 'Raleway', sans-serif;
2024-08-13 18:34:49 +03:00
font-weight: bold;
transition: 0.3s;
font-size: 1.4em;
display: flex;
justify-content: center;
}
.frontpage-next a{
color: var(--secondary);
}
.frontpage-next a:hover{
color: var(--primary);
}
2024-06-11 12:54:22 +03:00
2024-08-13 18:34:49 +03:00
.articles-preview__show-next {
padding: 1.8rem 0 1.7rem;
grid-column: span 2;
width: 100%;
text-align: center;
border-top: 0.1rem solid var(--gray);
margin-top: -1px;
font-family: 'Raleway', sans-serif;
2024-03-01 17:47:03 +03:00
transition: 0.3s;
2024-08-13 18:34:49 +03:00
font-size: 1.4em;
2024-03-01 17:47:03 +03:00
display: flex;
justify-content: center;
}
2024-08-13 18:34:49 +03:00
2024-03-01 17:47:03 +03:00
.articles-preview__show-next:hover {
color: var(--primary);
}
.articles__spacer-container {
position: relative;
border-top: 1px solid var(--gray);
width: 100%;
height: 100%;
display: flex;
flex-grow: 1;
}
.articles__spacer {
height: 100%;
width: 50%;
}
.articles__spacer:first-of-type {
border-right: 1px solid var(--gray);
}
.item-video__name {
padding: 2.5rem 3.8rem;
display: block;
transition: 0.3s;
}
.item-video__name:hover {
color: var(--primary);
}
.item-video__video-wrapper {
position: relative;
height: 20.8rem;
}
.item-video__video-wrapper>img {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
.item-video__video-wrapper>img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
}
.item-video__button {
position: absolute;
display: flex;
align-items: center;
color: white;
gap: 1.5rem;
left: 3.9rem;
bottom: 1.8rem;
2024-06-11 12:54:22 +03:00
background: rgba(0, 0, 0, 0.5); /* Черный фон с 50% прозрачностью */
border-radius: 0.5rem; /* закруглим углы */
width: 200px;
padding-left: 4px;
2024-03-01 17:47:03 +03:00
}
.banner-left {
margin: 2.5rem auto 0;
2025-04-18 19:44:26 +03:00
/*height: 40rem;*/
2024-03-01 17:47:03 +03:00
width: 24rem;
}
.banner-left a {
display: flex;
2024-03-12 09:16:19 +03:00
width: 100%;
height: 100%;
2024-03-01 17:47:03 +03:00
}
.banner-middle {
height: 12rem;
max-height: 12rem;
width: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.banner-middle img {
width: 100%;
}
.content-right {
border-top: 0.1rem solid var(--gray);
}
.law {
padding: 2.5rem 3.8rem;
border-top: 0.1rem solid var(--gray);
background: #fff;
}
.content-right__most-read {
border-bottom: 1px solid var(--gray);
}
@media (max-width: 768px) {
.banner-middle {
height: 8rem;
}
.articles__spacer-container {
display: none;
}
.banner-left {
width: 24rem;
margin: 2.5rem auto 0;
}
.subscribe-form__input {
width: 100%;
box-sizing: border-box;
}
}
@media (max-width: 767px) {
2024-03-12 09:16:19 +03:00
.banner-middle {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
overflow: hidden;
position: relative;
}
.banner-middle img {
width: auto;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
max-height: 100%;
}
2024-03-01 17:47:03 +03:00
.content-right__most-read {
display: none;
}
.articles-wrapper {
border: 0;
}
.content-videos {
margin: 0 -2rem;
}
.item-video__video-wrapper {
2024-03-12 09:16:19 +03:00
height: auto;
2024-03-01 17:47:03 +03:00
}
.item-video__video-wrapper>img {
2024-03-12 09:16:19 +03:00
position: relative;
2024-03-01 17:47:03 +03:00
}
.articles-preview__show-next {
border-bottom: 1px solid var(--gray);
/* margin-bottom: 2.7rem; */
width: calc(100% + 4rem);
margin-left: -2rem;
}
.content-sidebar {
margin: 0 -2rem;
}
}
.event-calendar-mobile {
width: 100%;
display: flex;
flex-direction: column;
background-color: var(--white);
border-bottom: 1px solid var(--gray);
}
@media (max-width: 767px) {
.event-calendar-mobile {
margin: 0 -2rem;
width: calc(100% + 4rem);
}
}
.event-calendar__header {
display: flex;
padding: 15px 24px 13px;
align-items: flex-start;
justify-content: space-between;
}
.event-calendar__wrapper {
display: none;
}
.event-calendar__wrapper.is-active {
display: flex;
justify-content: center;
}
.event-calendar__header.is-active svg {
transform: rotate(180deg);
}
@media (max-width: 767px) {
.event-single {
margin: 0 -2rem;
}
}
.w-full {
width: 100%;
}
.article-single__content * {
font: revert;
}
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)~figure.wp-block-image:not(#individual-image) {
width: 100%;
}
@media (max-width: 767px) {
.no-mobile-border {
border: none;
}
}