ORIENT/themes/modern2/assets/new/styles/_article.scss

408 lines
5.9 KiB
SCSS
Raw Normal View History

2022-12-06 15:33:01 +00:00
.article-inner {
padding: 3rem 0 4rem;
@include grid(false, 67% auto);
gap: 4rem;
}
2023-04-17 06:48:25 +00:00
.article-wrap {
padding-top: 30px;
}
.article {
&_desc {
&-title {
color: #292929;
font-weight: 600;
font-size: 17px;
line-height: 1.4;
}
&-result {
font-weight: 600;
font-size: 20px;
line-height: 1.4;
margin: 50px 0 40px;
color: #00822c;
text-align: center;
}
&-photo {
display: block;
width: 100%;
height: 450px;
margin-bottom: 20px;
img {
width: 100%;
height: 100%;
object-fit: contain;
-o-object-fit: contain;
object-position: left;
}
}
}
&_btn {
display: flex;
align-items: center;
// justify-content: ;
margin-top: 40px;
2023-04-18 04:08:59 +00:00
&.color-gr {
a {
color: #fff;
}
}
2023-04-17 06:48:25 +00:00
a {
font-weight: 600;
font-size: 15px;
line-height: 1.4;
border: 1px solid transparent;
2023-04-18 04:08:59 +00:00
background: #00822c;
2023-04-17 06:48:25 +00:00
color: #fff;
display: block;
padding: 8px 30px;
2023-04-18 04:08:59 +00:00
transition: 0.2s linear;
2023-04-17 06:48:25 +00:00
&:hover {
background: transparent;
2023-04-18 04:08:59 +00:00
border-color: #00822c;
color: #00822c;
2023-04-17 06:48:25 +00:00
}
}
}
&-test {
display: flex;
flex-direction: column;
2023-04-18 04:08:59 +00:00
align-items: stretch;
2023-04-17 06:48:25 +00:00
button {
cursor: pointer;
position: relative;
display: flex;
align-items: center;
font-weight: 600;
font-size: 14px;
line-height: 1.4;
2023-04-18 04:08:59 +00:00
max-width: 300px;
2023-04-17 06:48:25 +00:00
padding: 5px 14px;
margin-bottom: 12px;
color: #00822c;
border: 1px solid #00822c;
transition: 0.2s linear;
&::before {
content: "";
display: inline-block;
width: 5px;
height: 5px;
border-radius: 50%;
background: #00822c;
margin-right: 10px;
text-align: center;
align-self: center;
}
&:hover {
border-color: #000;
color: #000;
&::before {
background: #000;
}
}
&.true {
background: #00822c;
border-color: #00822c;
color: #fff;
&::before {
background: #fff;
}
}
&.false {
background: #ff0c00;
border-color: #ff0c00;
color: #fff;
&::before {
background: #fff;
}
}
&.disabled {
pointer-events: none;
}
}
}
&-hint {
display: none;
position: relative;
&.active {
display: block;
animation: hint 0.2s linear;
}
}
}
@keyframes hint {
0% {
top: 50px;
}
100% {
top: 0;
}
}
2022-12-06 15:33:01 +00:00
.article-content-top {
@include flex(column);
gap: 1.2rem;
}
.article-item {
2023-04-18 04:08:59 +00:00
@include imgStyle($objFit: contain);
2022-12-23 09:55:31 +00:00
@include flex;
2023-04-17 06:48:25 +00:00
align-items: flex-start;
2023-04-18 04:08:59 +00:00
height: 55rem;
2022-12-19 17:21:39 +00:00
overflow: hidden;
2022-12-06 15:33:01 +00:00
}
.article-prev,
.article-next {
top: 45%;
}
.article-head {
@include flex(column);
gap: 1.2rem;
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
h2 {
font-size: 2.4rem;
font-weight: bold;
line-height: 3.3rem;
}
span {
font-weight: 600;
2022-12-14 15:55:13 +00:00
font-size: 1.7rem;
2022-12-06 15:33:01 +00:00
color: $base-green;
}
}
.article-content {
@include flex(column);
gap: 4rem;
}
.article-desc {
padding-top: 1.8rem;
@include flex(column);
gap: 2.4rem;
2023-04-17 06:48:25 +00:00
a {
color: rgb(59, 59, 255);
}
2022-12-06 15:33:01 +00:00
p,
h5 {
2022-12-14 15:55:13 +00:00
font-size: 1.7rem;
2022-12-06 15:33:01 +00:00
line-height: 2.5rem;
}
2023-02-02 10:36:39 +00:00
p {
img {
max-height: 55rem;
object-fit: cover;
}
}
2022-12-06 15:33:01 +00:00
}
.article-links {
padding-top: 2.8rem;
}
.article-content-bottom {
@include flex(column);
gap: 3.2rem;
h3 {
font-size: 2.4rem;
}
}
.article-bottom-head {
2023-04-18 04:08:59 +00:00
2022-12-06 15:33:01 +00:00
h4,
span {
color: $base-black;
font-weight: 300;
}
}
.article-content-info {
color: $base-black !important;
font-weight: bold !important;
}
.article-items {
display: none;
}
2023-04-17 06:48:25 +00:00
.align-center {
align-items: center;
flex-direction: row;
}
2022-12-06 15:33:01 +00:00
// Media
2022-12-23 09:55:31 +00:00
2022-12-06 15:33:01 +00:00
@media screen and (max-width: 1080px) {
.article-aside {
display: none;
2023-04-17 06:48:25 +00:00
&.test-aside {
border-top: 0.1rem solid rgb(3, 159, 55);
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 80px 0 0;
.aside {
&-ad {
&-wrapper {
width: calc(33.33% - 2.4rem);
&-title {
width: 100%;
padding-top: 20px;
}
}
}
}
}
2022-12-06 15:33:01 +00:00
}
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
.article-inner {
display: block;
}
}
@media screen and (max-width: 800px) {
.article-inner {
padding: 2.2rem 0 5rem;
}
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
.article-head {
flex-direction: column-reverse;
h2 {
2022-12-14 15:55:13 +00:00
font-size: 1.9rem;
2022-12-06 15:33:01 +00:00
}
span {
2022-12-14 15:55:13 +00:00
font-size: 1.5rem;
2022-12-06 15:33:01 +00:00
color: $mild-gray;
}
}
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
.article-content-top {
gap: 2.5rem;
}
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
.article-content-bottom {
gap: 2.5rem;
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
h3 {
font-size: 2rem;
letter-spacing: 0.1em;
text-align: center;
}
}
2023-04-17 06:48:25 +00:00
.article-aside {
&.test-aside {
.aside {
&-ad {
&-wrapper {
width: calc(50% - 2.4rem);
2023-04-18 04:08:59 +00:00
&:nth-of-type(n + 3) {
2023-04-17 06:48:25 +00:00
display: none;
}
}
}
}
}
}
2022-12-06 15:33:01 +00:00
}
@media screen and (max-width: 700px) {
2023-04-18 04:08:59 +00:00
2022-12-29 11:38:21 +00:00
// .article-swiper-wrapper-lower {
// display: none;
// }
2022-12-06 15:33:01 +00:00
.article-items {
@include flex(column);
gap: 2.5rem;
}
2023-04-17 06:48:25 +00:00
.article {
&_desc {
&-photo {
height: auto;
}
}
}
2022-12-06 15:33:01 +00:00
.article-content-info {
2022-12-14 15:55:13 +00:00
font-size: 1.7rem;
2022-12-06 15:33:01 +00:00
}
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
.article-bottom-head {
2022-12-14 15:55:13 +00:00
font-size: 1.5rem;
2022-12-06 15:33:01 +00:00
}
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
.sub-news-left-content-item-content {
gap: 0.5rem;
}
2023-04-17 06:48:25 +00:00
2022-12-06 15:33:01 +00:00
.article-bottom-item {
gap: 1.4rem;
}
}
2023-04-17 06:48:25 +00:00
@media screen and (max-width: 600px) {
.article-aside {
&.test-aside {
margin-top: 50px;
.aside {
&-ad {
&-wrapper {
width: calc(100% - 2.4rem);
a {
height: 200px;
}
img {
object-fit: contain;
object-position: left;
}
}
}
}
}
}
2023-04-18 04:08:59 +00:00
}