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

603 lines
12 KiB
SCSS
Raw Normal View History

2021-11-24 12:26:36 +00:00
.news {
&__inner {
display: flex;
align-items: stretch;
padding: 80px 0;
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__sidebar {
margin-left: 25px;
width: calc(30% - 25px);
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&-title {
font-size: $h4-size;
line-height: $h4-height;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 20px;
color: $text-light-black;
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
.card {
padding: 30px 0;
border-bottom: 1px solid #dcdcdc;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__link {
height: unset;
text-overflow: unset;
}
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__content {
width: calc(70% - 25px);
margin-right: 25px;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&-header {
display: flex;
align-items: center;
justify-content: space-between;
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__title {
color: $text-black;
font-weight: 700;
font-size: $h2-size;
line-height: $h2-height;
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__date {
display: flex;
align-items: center;
font-size: $h3-size;
line-height: $h3-height;
color: $text-color-grey;
font-weight: 400;
margin-bottom: 20px;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
svg {
margin: 0 5px;
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__image {
width: 100%;
margin: 25px 0;
display: block;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
img {
width: 100%;
height: auto;
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__body {
p {
font-size: $p-size;
line-height: $p-height;
margin-bottom: 20px;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
img {
width: 90%;
margin: 30px auto;
display: block;
height: auto;
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
strong {
a {
color: #4285f4;
}
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
img {
width: 90%;
margin: 30px auto;
display: block;
height: auto;
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&__footer {
display: flex;
align-items: center;
justify-content: space-between;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&-social {
display: flex;
align-items: center;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&-link {
margin-right: 20px;
fill: $main-color;
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
svg {
color: $main-color;
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
.footer__social-link {
fill: $main-color;
}
}
2022-03-19 09:55:47 +00:00
2021-11-24 12:26:36 +00:00
&-name {
font-size: $h2-size;
line-height: $h2-height;
font-weight: 700;
color: $text-light-black;
}
}
}
2022-03-19 09:55:47 +00:00
.comment {
padding: 30px 0;
&_header {
background: #242424;
border-radius: 5px;
margin-bottom: 30px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 15px 25px;
&-title {
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #fff;
span {
font-weight: 700;
font-size: 22px;
line-height: 26px;
margin-right: 5px;
}
}
&-add {
font-weight: 700;
font-size: 14px;
line-height: 16px;
color: #FFFFFF;
position: relative;
border: 1px solid #fff;
padding: 8px 15px;
border-radius: 5px;
cursor: pointer;
}
}
&_group {
display: flex;
align-items: center;
}
&_client {
margin-right: 25px;
display: flex;
align-items: center;
span {
display: block;
width: 20px;
height: 20px;
margin-right: 5px;
img {
@include ImgCon;
margin: 0 !important;
}
}
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #FFFFFF;
}
.signOut {
font-weight: 700;
font-size: 14px;
line-height: 16px;
color: #FFFFFF;
border: 1px solid #fff;
border-radius: 5px;
display: block;
padding: 7px 15px;
text-align: center;
}
&_item {
padding-bottom: 15px;
margin-bottom: 25px;
border-bottom: 1px solid #DCDCDC;
&-header {
display: flex;
align-items: center;
}
&-time {
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #A2A2A2;
}
.inner-comment {
padding-left: 30px;
}
}
&_user {
display: flex;
align-items: center;
margin-right: 30px;
position: relative;
&::after {
content: '';
position: absolute;
top: 22px;
right: -15px;
width: 5px;
height: 5px;
background: #DCDCDC;
}
&-img {
background: #F3F5F7;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
width: 50px;
height: 50px;
font-weight: 400;
font-size: 22px;
line-height: 26px;
color: #242424;
}
&-name {
font-weight: 400;
font-size: 18px;
line-height: 21px;
color: #000000;
}
}
&_txt {
font-weight: 400;
font-size: 16px;
line-height: 24px;
color: #A2A2A2;
margin: 15px 0 30px;
}
&_reply {
font-weight: 400;
font-size: 12px;
line-height: 1.4;
color: #A2A2A2;
border: 1px solid #A2A2A2;
display: inline-block;
padding: 7px 20px;
cursor: pointer;
border-radius: 5px;
@include transition;
&:hover {
background: #242424;
color: #fff;
}
}
.reply_form {
margin-top: 25px;
// display: none;
position: relative;
max-height: 0;
overflow: hidden;
@include transition;
&.active {
display: block;
}
&-input {
width: 100%;
margin-bottom: 20px;
textarea {
width: calc(100% - 35px);
padding: 15px;
border: 1px solid #DCDCDC;
font-weight: 400;
font-size: 14px;
line-height: 16px;
font-family: "Roboto", sans-serif;
resize: vertical;
min-height: 110px;
max-height: 200px;
&::placeholder {
color: #A2A2A2;
}
}
}
&-buttons {
display: flex;
align-items: center;
margin: 0 -7px;
button[type=submit] {
font-weight: 700;
font-size: 16px;
line-height: 19px;
color: #FFFFFF;
background: #242424;
width: calc(50% - 14px);
margin: 0 7px;
text-align: center;
display: block;
border-radius: 5px;
cursor: pointer;
padding: 12px 0;
@include transition;
&:hover {
background: #302c2c;
}
}
button[type=reset] {
font-weight: 700;
font-size: 16px;
line-height: 19px;
color: #242424;
background: #F3F5F7;
width: calc(50% - 14px);
margin: 0 7px;
text-align: center;
display: block;
border-radius: 5px;
cursor: pointer;
padding: 12px 0;
@include transition;
&:hover {
background: #c8cbce;
}
}
}
}
}
.reg_modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .5);
z-index: 50;
display: none;
&.active {
display: block;
}
&-form {
position: absolute;
top: 50%;
left: 50%;
@include transform;
z-index: 60;
background: #fff;
border-radius: 10px;
max-width: 760px;
width: calc(100% - 50px);
padding: 50px 0;
.inner {
max-width: 430px;
width: calc(100% - 40px);
margin: 0 auto;
}
}
&-title {
font-weight: 700;
font-size: 22px;
line-height: 26px;
color: #242424;
}
&-txt {
font-weight: 400;
font-size: 16px;
line-height: 19px;
color: #A2A2A2;
margin: 12px 0 30px;
}
&-input {
display: block;
position: relative;
width: 100%;
margin-bottom: 24px;
&:nth-child(2) {
margin-bottom: 16px;
}
label {
font-weight: 700;
font-size: 16px;
line-height: 19px;
color: #242424;
display: block;
margin-bottom: 8px;
}
input {
border: 1px solid #DCDCDC;
padding: 16px;
font-weight: 400;
font-size: 18px;
line-height: 21px;
width: calc(100% - 32px);
&::placeholder {
color: #A2A2A2;
}
}
}
&-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30px;
}
&-check {
input {
display: none;
&:checked~.check_label {
&::after {
display: block;
}
}
}
label {
font-weight: 700;
font-size: 14px;
line-height: 16px;
color: #242424;
display: block;
cursor: pointer;
position: relative;
padding-left: 25px;
&::before {
content: '';
position: absolute;
top: 50%;
@include transformY;
left: 0;
width: 15px;
height: 15px;
border: 1px solid #DCDCDC;
border-radius: 50%;
}
&::after {
content: '';
position: absolute;
top: 50%;
@include transformY;
left: 1px;
width: 15px;
height: 15px;
background: #242424;
border-radius: 50%;
display: none;
}
}
}
.forgot {
font-weight: 700;
font-size: 14px;
line-height: 16px;
color: #000000;
}
.sign {
display: block;
font-weight: 400;
font-size: 18px;
line-height: 21px;
color: #FFFFFF;
cursor: pointer;
border-radius: 5px;
background: #242424;
padding: 15px 0;
width: 100%;
margin-bottom: 15px;
}
.google_sign {
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #DCDCDC;
border-radius: 5px;
cursor: pointer;
font-weight: 400;
font-size: 18px;
line-height: 21px;
color: #242424;
width: 100%;
padding: 10px 0;
background: transparent;
span {
width: 30px;
height: 30px;
margin-right: 10px;
img {
@include ImgCon;
}
}
}
&-signIn {
text-align: center;
font-weight: 400;
font-size: 16px;
line-height: 19px;
color: #A2A2A2;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
margin-top: 25px;
a {
color: #242424;
font-weight: 500;
margin-left: 5px;
display: inline-block;
}
}
}