Initial commit
This commit is contained in:
316
frontend/src/styles/pages/main.css
Normal file
316
frontend/src/styles/pages/main.css
Normal file
@@ -0,0 +1,316 @@
|
||||
.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 {
|
||||
grid-area: right;
|
||||
}
|
||||
|
||||
.content-right__link-item {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.content {
|
||||
grid-template-columns: 36.4rem 1fr;
|
||||
grid-template-areas:
|
||||
'left middle'
|
||||
'right right';
|
||||
}
|
||||
|
||||
.content.content__search {
|
||||
grid-template-areas:
|
||||
'middle middle'
|
||||
'right right';
|
||||
}
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
||||
transition: 0.3s;
|
||||
font-size: 1.3rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.banner-left {
|
||||
margin: 2.5rem auto 0;
|
||||
height: 40rem;
|
||||
width: 24rem;
|
||||
}
|
||||
|
||||
.banner-left a {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.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) {
|
||||
.content-right__most-read {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.articles-wrapper {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.content-videos {
|
||||
margin: 0 -2rem;
|
||||
}
|
||||
|
||||
.item-video__video-wrapper {
|
||||
height: 208px;
|
||||
}
|
||||
|
||||
.item-video__video-wrapper>img {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user