created media queries for card, form, popup, story components and for booking section

This commit is contained in:
Yusuf Ipek
2021-05-06 10:41:08 +03:00
parent 9eee80c625
commit d72346a221
5 changed files with 118 additions and 1 deletions
+45
View File
@@ -176,4 +176,49 @@
font-size: 6rem; font-size: 6rem;
font-weight: 100; font-weight: 100;
} }
@include respond(tab-port) {
height: auto;
border-radius: 3px;
background-color: $color-white;
box-shadow: $shadow-default;
&__side {
height: auto;
transition: all 0.58s ease;
position: relative;
box-shadow: none;
&--back {
transform: rotateY(0);
clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
}
}
&:hover &__side--front {
transform: rotateY(0);
}
&__details {
padding: 1rem 3rem;
}
// Back side
&__cta {
position: relative;
top: 0;
left: 0;
transform: translate(0);
width: 100%;
padding: 7rem 4rem 4rem 4rem;
}
&__price-box {
margin-bottom: 3rem;
}
&__price-value {
font-size: 5.5rem;
}
}
} }
+9
View File
@@ -16,6 +16,10 @@
display: block; display: block;
transition: all 0.3s; transition: all 0.3s;
@include respond(tab-port) {
width: 100%;
}
&:focus { &:focus {
outline: none; outline: none;
box-shadow: $shadow-light; box-shadow: $shadow-light;
@@ -49,6 +53,11 @@
&__radio-group { &__radio-group {
width: 50%; width: 50%;
display: inline-block; display: inline-block;
@include respond(tab-port) {
width: 100%;
margin-bottom: 2rem;
}
} }
&__radio-input { &__radio-input {
+19
View File
@@ -21,12 +21,21 @@
opacity: 0; opacity: 0;
transform: translate(-50%, -50%) scale(0.5); transform: translate(-50%, -50%) scale(0.5);
transition: all 0.4s 0.2s; transition: all 0.4s 0.2s;
@include respond(tab-land) {
display: block;
}
} }
&__left { &__left {
width: 33.33333333%; width: 33.33333333%;
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
@include respond(tab-land) {
display: block;
width: 100%;
}
} }
&__right { &__right {
@@ -39,6 +48,16 @@
&__img { &__img {
display: block; display: block;
width: 100%; width: 100%;
@include respond(tab-land) {
width: 50%;
float: left;
height: 25rem;
}
@include respond(phone) {
display: none;
}
} }
&__text { &__text {
+18
View File
@@ -9,6 +9,16 @@
font-size: $default-font-size; font-size: $default-font-size;
transform: skewX(-12deg); transform: skewX(-12deg);
@include respond(tab-port) {
width: 100%;
padding: 4rem;
padding-left: 7rem;
}
@include respond(phone) {
transform: skewX(0);
}
&__shape { &__shape {
width: 15rem; width: 15rem;
height: 15rem; height: 15rem;
@@ -17,6 +27,10 @@
clip-path: circle(50% at 50% 50%); clip-path: circle(50% at 50% 50%);
transform: translateX(-3rem) skewX(12deg); transform: translateX(-3rem) skewX(12deg);
position: relative; position: relative;
@include respond(phone) {
transform: translateX(-3rem) skewX(0);
}
} }
&__img { &__img {
@@ -27,6 +41,10 @@
&__text { &__text {
transform: skewX(12deg); transform: skewX(12deg);
@include respond(phone) {
transform: skewX(0);
}
} }
&__caption { &__caption {
+27 -1
View File
@@ -65,6 +65,7 @@
.book { .book {
background-image: linear-gradient( background-image: linear-gradient(
105deg, 105deg,
rgba($color-white, 0.9) 0%,
rgba($color-white, 0.9) 50%, rgba($color-white, 0.9) 50%,
transparent 50% transparent 50%
), ),
@@ -73,10 +74,35 @@
border-radius: $border-radius-default; border-radius: $border-radius-default;
box-shadow: $shadow-default; box-shadow: $shadow-default;
height: 50rem; @include respond(tab-land) {
background-image: linear-gradient(
105deg,
rgba($color-white, 0.9) 0%,
rgba($color-white, 0.9) 65%,
transparent 65%
),
url(../../commons/images/nat-10.jpg);
}
@include respond(tab-port) {
background-image: linear-gradient(
to right,
rgba($color-white, 0.9) 0%,
rgba($color-white, 0.9) 65%
),
url(../../commons/images/nat-10.jpg);
}
&__form { &__form {
width: 50%; width: 50%;
padding: 6rem; padding: 6rem;
@include respond(tab-land) {
width: 65%;
}
@include respond(tab-port) {
width: 100%;
}
} }
} }