ORIENT/themes/modern2/template/css/components/3-page/news.scss

113 lines
2.5 KiB
SCSS

.news {
&__inner {
display: flex;
align-items: stretch;
padding: 80px 0;
}
&__sidebar {
margin-left: 25px;
width: calc(30% - 25px);
&-title {
font-size: $h4-size;
line-height: $h4-height;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 20px;
color: $text-light-black;
}
.card {
padding: 30px 0;
border-bottom: 1px solid #dcdcdc;
&__link {
height: unset;
text-overflow: unset;
}
}
}
&__content {
width: calc(70% - 25px);
margin-right: 25px;
&-header {
display: flex;
align-items: center;
justify-content: space-between;
}
}
&__title {
color: $text-black;
font-weight: 700;
font-size: $h2-size;
line-height: $h2-height;
}
&__date {
display: flex;
align-items: center;
font-size: $h3-size;
line-height: $h3-height;
color: $text-color-grey;
font-weight: 400;
margin-bottom: 20px;
svg {
margin: 0 5px;
}
}
&__image {
width: 100%;
margin: 25px 0;
display: block;
img {
width: 100%;
height: auto;
}
}
&__body {
p {
font-size: $p-size;
line-height: $p-height;
margin-bottom: 20px;
img {
width: 90%;
margin: 30px auto;
display: block;
height: auto;
}
strong {
a {
color: #4285f4;
}
}
}
img {
width: 90%;
margin: 30px auto;
display: block;
height: auto;
}
}
&__footer {
display: flex;
align-items: center;
justify-content: space-between;
&-social {
display: flex;
align-items: center;
&-link {
margin-right: 20px;
fill: $main-color;
svg {
color: $main-color;
}
}
.footer__social-link {
fill: $main-color;
}
}
&-name {
font-size: $h2-size;
line-height: $h2-height;
font-weight: 700;
color: $text-light-black;
}
}
}