ORIENT/themes/modern2/template/css/components/2-layout/responsive.scss

831 lines
19 KiB
SCSS

@include xxlg-xxxlg {
.auto__container {
max-width: 1240px;
}
.swiper {
&-slide {
height: 450px;
}
}
}
@include xlg-xxlg {
.swiper-slide-content-link {
font-size: 18px;
line-height: 25px;
height: 50px;
}
.newsSlider {
&__item {
height: 280px;
}
}
.main__banner {
margin-bottom: 40px;
}
.swiper {
&-slide {
height: 350px;
}
}
.newsSlider .newsSlider__item {
height: 180px;
&-content {
&-date {
max-width: 120px;
margin-bottom: 0;
}
}
}
.header__slogan {
font-size: 28px;
line-height: 1;
}
.auto__container {
max-width: 1040px;
padding: 0 25px;
}
.banner {
margin: 40px 0;
}
.slider {
height: 450px;
&__item {
height: 450px;
}
&__nav {
a {
height: 33.3%;
span {
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
.event {
margin: 40px 0;
&__header {
margin-bottom: 40px;
}
&__body {
&-row {
margin: 0 -10px;
}
&-image {
margin: 0 10px;
width: calc(50% - 20px);
a.progressive {
height: 200px;
}
}
&-card {
top: 150px;
left: 10px;
width: calc(100% - 20px);
}
&-column {
margin: 0 10px;
width: calc(50% - 30px);
padding: 0 15px;
.card {
padding: 15px 0;
}
}
}
}
.main {
&__body {
&-header {
margin-bottom: 40px;
}
&-column {
a.progressive {
height: 240px;
}
}
&-card {
margin: -50px 15px 0 15px;
}
}
&__sidebar {
&-title {
margin-bottom: 40px;
}
a.progressive {
margin-bottom: 40px;
}
&-tag {
margin-bottom: 40px;
&-link {
padding: 4px 6px;
font-size: 12px;
}
}
}
}
.card {
padding: 15px;
}
.partner {
&__title {
margin-bottom: 40px;
}
}
.heading {
&__row {
margin-bottom: 40px;
}
&__title {
margin-bottom: 40px;
}
&__content {
padding: 15px 0 15px 15px;
width: calc(60% - 15px);
&-header {
margin-bottom: 15px;
}
&-body {
&-para {
height: 90px;
}
}
}
a.progressive {
height: 250px;
}
}
.form {
&__title {
margin-bottom: 40px;
}
&__input {
label {
height: 60px;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.news {
&__inner {
padding: 40px 0;
}
&__image {
margin: 20px 0;
}
&__body {
&-row {
&-image {
margin: 0 10px;
width: calc(50% - 20px);
}
}
}
}
}
@include lg-xlg {
.newsSlider {
&__item {
height: 240px;
}
}
.swiper-container {
.slick-list {
padding: 0 20% 0 0;
}
}
.partner__title {
margin-bottom: 20px;
}
.swiper-slide {
&-content {
padding: 15px;
width: calc(100% - 30px);
&-category {
font-size: 12px;
line-height: 14px;
padding: 8px 12px;
font-weight: 500;
}
&-link {
font-size: 14px;
line-height: 26px;
height: 52px;
width: 75%;
}
}
}
.slider {
&__nav {
display: none;
}
&__inner {
width: 100%;
margin: 0;
}
}
.search {
&Modal {
display: block;
@include transition;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
transform: translateY(-100%);
-webkit-transform: translateY(-100%);
-moz-transform: translateY(-100%);
-ms-transform: translateY(-100%);
-o-transform: translateY(-100%);
background: #fff;
width: 100%;
height: 100%;
&__inner {
padding: 25px;
}
&.active {
transform: translateY(0);
-webkit-transform: translateY(0);
-moz-transform: translateY(0);
-ms-transform: translateY(0);
-o-transform: translateY(0);
}
}
&Input {
position: relative;
max-width: 450px;
margin: 0 auto;
input {
width: calc(100% - 60px);
height: 50px;
padding: 0 40px 0 20px;
display: flex;
align-items: center;
font-size: 14px;
line-height: 1;
font-weight: 500;
color: $text-black;
border-radius: 5px;
border: 1px solid #242424;
}
&__btn {
position: absolute;
right: 15px;
background: none;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
svg {
width: 24px;
height: 24px;
fill: #242424;
}
}
}
&Logo {
width: 100%;
max-width: 160px;
margin: 30px auto;
}
&Close {
width: 24px;
height: 24px;
fill: #b4b4b4;
}
}
.header {
border-bottom: 4px solid #242424;
&__slogan {
display: none;
}
.mobileSearch {
display: block;
svg {
width: 22px;
height: 22px;
fill: #b4b4b4;
}
}
&__search {
display: none;
}
.hamBtn {
display: block;
width: 35px;
background: none;
height: 25px;
display: flex;
flex-direction: column;
-ms-flex-direction: column;
justify-content: space-between;
span {
width: 100%;
height: 5px;
border-radius: 10px;
background: $text-light-black;
}
}
}
.subheader__inner {
position: fixed;
top: 0;
right: 0;
height: 100%;
width: 0;
overflow: hidden;
opacity: 0;
background: rgba($color: #000000, $alpha: 0.5);
z-index: 1000;
@include transition;
.close {
width: 30px;
height: 30px;
position: absolute;
left: 30px;
top: 30px;
display: block;
img {
width: 100%;
height: 100%;
}
}
.nav {
position: absolute;
top: 0;
right: 0;
width: 50%;
height: calc(100% - 50px);
overflow-y: scroll;
background: $text-light-black;
&__inner {
flex-direction: column;
-ms-flex-direction: column;
&-link {
display: block;
text-align: center;
margin-right: 0;
padding: 20px;
font-size: $h3-size;
line-height: $h3-height;
font-weight: 700;
width: calc(100% - 40px);
&::before {
display: none;
}
.dropDown {
margin-top: 20px;
position: unset;
width: unset;
background: unset;
background: #b4b4b4;
&__link {
color: $text-color-white;
text-align: center;
padding: 20px 0;
&:hover {
background: unset;
}
}
}
}
}
}
.language {
position: absolute;
bottom: 0;
right: 0;
width: 50%;
padding: 15px 0;
justify-content: center;
background: $color-grey;
}
&.showMenu {
width: 100%;
opacity: 1;
}
}
.event {
&__body {
&-image {
width: calc(50% - 20px);
}
&-column {
width: calc(50% - 30px);
}
}
}
.main {
margin-top: 40px;
&__sidebar {
display: none;
}
&__content {
width: 100%;
margin: 0;
}
&__body {
&-card {
margin: -50px 0 0 0;
}
&-column {
a.progressive {
height: 300px;
}
}
}
}
.footer {
&__inner {
flex-direction: column;
-ms-flex-direction: column;
justify-content: center;
}
&__social {
margin-top: 20px;
}
&__copyright {
text-align: center;
}
}
.card.other {
padding: 15px;
}
.mr-top-bot {
margin: 40px 0;
}
.about {
padding: 40px 0;
}
.news {
&__sidebar {
display: none;
}
&__content {
width: 100%;
margin-right: 0;
}
}
.terms {
padding: 40px 0;
&__title {
margin-bottom: 20px;
}
&__para {
margin-bottom: 20px;
}
}
}
@include sm-md {
.newsSlider__outer {
display: none;
}
.swiper-container {
.slick-list {
padding: 0 0 0 0;
}
}
.header__logo {
width: 80px;
img {
width: 100%;
}
}
.marquee {
display: none;
}
.slider {
height: 350px;
&__item {
height: 350px;
}
}
.event {
&__body {
&-row {
margin: 0;
flex-direction: column;
-ms-flex-direction: column;
border: 1px solid #dcdcdc;
}
&-image {
width: 100%;
margin: 15px 0;
a.progressive {
height: auto;
}
}
&-column {
width: calc(100% - 30px);
margin: 0;
padding: 0 15px;
border: none;
.card {
padding: 15px 0;
border-bottom: 1px solid #dcdcdc;
&:last-child {
border-bottom: none;
}
}
}
&-card {
position: unset;
width: 100%;
border: none;
border-bottom: 1px solid #dcdcdc;
}
}
}
.main {
&__body {
&-row {
display: block;
margin: 0;
}
.banner__mobile {
display: block;
width: 100%;
}
&-column {
width: 100%;
margin: 15px 0;
a.progressive {
height: auto;
}
}
}
&__banner {
margin-bottom: 40px;
}
}
.heading {
&__row {
margin-bottom: 20px;
flex-direction: column;
-ms-flex-direction: column;
}
&__image {
width: 100%;
}
&__content {
padding: 20px 0;
width: 100%;
&-body {
&-para {
height: 120px;
}
}
}
a.progressive {
height: auto;
img {
height: unset;
width: 100%;
object-fit: unset;
-o-object-fit: unset;
}
}
}
.form {
&__row {
flex-direction: column;
-ms-flex-direction: column;
}
&__input {
margin-bottom: 20px;
&:first-child {
width: 100%;
margin-right: 0;
}
&:last-child {
width: 100%;
margin-left: 0;
}
label {
height: unset;
}
}
&__btn {
width: 100%;
}
}
.main {
&__inner.contact {
padding: 0;
}
}
.news {
&__body {
&-row {
margin: 0;
flex-direction: column;
-ms-flex-direction: column;
&-image {
margin: 15px 0;
width: 100%;
}
}
img {
width: 100%;
margin: 15px 0;
display: block;
}
}
&__footer {
flex-direction: column;
-ms-flex-direction: column;
}
img {
width: 100%;
margin: 15px 0;
display: block;
}
}
.newsSlider {
.newsSlider__item {
img {
height: 250px;
}
&-content {
position: unset;
padding: 10px;
border: 1px solid #dfdfdf;
width: calc(100% - 20px);
&-link {
color: $text-light-black;
font-size: 12px;
line-height: 16px;
height: 48px;
}
&-date {
font-size: 10px;
width: 100%;
padding: 8px 0;
}
}
}
}
}
@include xsm-sm {
.swiper-slide-content-category {
position: absolute;
top: 12px;
right: 15px;
}
.auto__container {
padding: 0 10px;
}
.slider {
height: 300px;
&__item {
height: 300px;
}
}
.partnerSlider {
overflow: hidden;
&__item {
margin-right: 0;
padding: 5px;
height: unset;
}
}
.footer {
&__social {
flex-wrap: wrap;
justify-content: center;
&-link {
margin: 5px;
}
}
}
.subheader {
z-index: 12;
&__inner {
.close {
width: 20px;
height: 20px;
top: 15px;
left: 15px;
}
}
.nav {
width: calc(100% - 50px);
}
.language {
width: calc(100% - 50px);
}
}
.swiper-slide {
height: 300px;
}
.newsSlider__outer {
display: none;
}
.main {
&__body {
&-card {
margin: 0 0 0 0;
}
}
}
.popUp {
display: flex;
transform: translateY(100%);
position: fixed;
bottom: 0;
left: 0;
background: #f7f7f7;
z-index: 11;
animation: popUp 0.2s linear;
border-radius: 20px 20px 0 0;
padding: 40px 20px;
width: calc(100% - 40px);
@include transition;
&__inner {
width: 100%;
&-header {
display: flex;
align-items: center;
justify-content: space-between;
&-logo {
width: 75px;
img {
width: 100%;
}
}
&-close {
display: flex;
align-items: flex-end;
justify-content: flex-end;
svg {
width: 18px;
height: 18px;
fill: #000;
}
}
}
&-body {
margin: 15px 0;
&-subtitle {
font-size: 16px;
line-height: 20px;
font-weight: 400;
color: #000000;
text-align: center;
}
&-title {
font-size: 20px;
line-height: 24px;
font-weight: 700;
color: #000000;
text-align: center;
margin-bottom: 15px;
}
}
&-footer {
&-btn {
width: 80%;
margin: 0 auto;
padding: 15px 0;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
font-size: 16px;
line-height: 20px;
border-radius: 15px;
background: $main-color;
display: flex;
}
&-close {
text-align: center;
font-size: 16px;
line-height: 20px;
font-weight: 400;
color: $main-color;
margin-top: 15px;
}
}
}
&.active {
transform: translateY(0%);
}
}
@keyframes popUp {
0% {
opacity: 0;
transform: translateY(100%);
}
100% {
opacity: 1;
transform: translateY(0%);
}
}
}