File: /var/www/quadcode-site/src/style/components/news/block-content.scss
.block-content {
.container {
padding-top: 32px;
display: flex;
@include breakpoint-down('deskL') {
padding-top: 24px;
}
@include breakpoint-down('deskS') {
flex-direction: column;
}
@include breakpoint-down('tabM') {
padding-top: 16px;
}
}
&__back {
margin-right: 102px;
width: max-content;
padding-top: 42px;
@include breakpoint-down('deskL') {
margin-right: 66px;
padding-top: 51px;
}
@include breakpoint-down('deskS') {
padding-top: 0;
margin-right: 0;
margin-bottom: 16px;
}
.btn-link__svg {
transform: scaleX(-1);
margin-right: 10px;
}
}
&__content {
width: 100%;
max-width: 780px;
@include breakpoint-down('deskS') {
padding-left: 89px;
padding-right: 89px;
}
@include breakpoint-down('tabM') {
padding: 0;
}
}
&__header {
padding-bottom: 24px;
border-bottom: 1px solid rgba(50, 50, 50, 0.05);
margin-bottom: 40px;
display: flex;
justify-content: space-between;
@include breakpoint-down('deskL') {
margin-bottom: 32px;
}
@include breakpoint-down('deskS') {
padding-top: 17px;
border-bottom: 0;
border-top: 1px solid rgba(50, 50, 50, 0.05);
margin-bottom: 32px;
padding-bottom: 0;
}
}
&__header-item {
.share {
padding-top: 2px;
@include breakpoint-down('deskS') {
padding-top: 0;
margin-top: -6px;
}
@include breakpoint-down('tabM') {
display: none;
}
&__title {
text-align: right;
}
}
}
&__date {
display: flex;
align-items: center;
margin-bottom: 16px;
@include breakpoint-down('deskS') {
margin-bottom: 8px;
}
svg {
display: flex;
margin-right: 4px;
}
span {
display: flex;
}
}
&__tags {
display: flex;
align-items: center;
}
&__tag {
padding: 6px 20px;
color: #323232;
border: 1px solid #323232;
border-radius: 40px;
margin-right: 16px;
@include breakpoint-down('deskS') {
font-size: 12px;
line-height: 16px;
}
@include breakpoint-down('tabM') {
margin-right: 8px;
}
&:last-of-type {
margin-right: 0;
}
}
&__links {
list-style: none;
counter-reset: li;
padding-left: 0 !important;
li {
> ol {
list-style: none;
counter-reset: li;
}
&:before {
counter-increment: li;
content: counters(li, ".") ". ";
}
}
}
&__linkItem {
cursor: pointer;
}
&__text {
margin-bottom: 64px;
@include breakpoint-down('deskL') {
max-width: 620px;
margin-bottom: 46px;
}
> * {
margin-bottom: 28px;
@include breakpoint-down('deskL') {
margin-bottom: 24px;
}
@include breakpoint-down('deskS') {
margin-bottom: 20px;
}
&:last-of-type {
margin-bottom: 0;
}
}
img {
width: 100%;
height: auto;
display: block;
}
ul {
padding-left: 17px;
}
ol {
padding-left: 30px;
}
a {
color: $link;
}
.comment {
background: #F8F9FA;
border-radius: 16px;
padding: 24px;
margin-top: 40px;
margin-bottom: 34px;
width: calc(100% + 48px);
@include breakpoint-down('tabM') {
width: 100%;
}
.comment__title {
margin-bottom: 18px;
}
.comment__author {
display: flex;
justify-content: flex-end;
color: $primary;
}
.comment__post {
display: flex;
justify-content: flex-end;
}
}
}
}