-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2d739b
commit 9d3e071
Showing
5 changed files
with
140 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,131 @@ | ||
body.show-modal-2 .backdrop-3 { | ||
opacity: 1; | ||
visibility: visible; | ||
pointer-events: initial; | ||
// body.show-modal-2 .backdrop-3 { | ||
// opacity: 1; | ||
// visibility: visible; | ||
// pointer-events: initial; | ||
// } | ||
// body.show-modal-2 .content-gallety { | ||
// transform: scale(1); | ||
// } | ||
|
||
// .backdrop-3 { | ||
// display: flex; | ||
// justify-content: center; | ||
// align-items: center; | ||
// position: fixed; | ||
// top: 0; | ||
// left: 0; | ||
// bottom: 0; | ||
// right: 0; | ||
// background-color: rgba(0, 0, 0, 0.3); | ||
|
||
// opacity: 0; | ||
// transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); | ||
// pointer-events: none; | ||
// visibility: hidden; | ||
// transition: | ||
// opacity 200ms ease-in-out, | ||
// visibility 200ms ease-in-out; | ||
// } | ||
|
||
// .content-gallety { | ||
// display: flex; | ||
// align-items: center; | ||
// max-width: 900px; | ||
// background-color: $white-color; | ||
// transform: scale(0.8); | ||
// transition: transform 200ms ease-in-out; | ||
// } | ||
|
||
// .gallery__image { | ||
// transform: scale(1); | ||
|
||
// transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 250ms; | ||
// } | ||
|
||
// .gallery__image:hover, | ||
// .gallery__image:focus { | ||
// transform: scale(1.1); | ||
// } | ||
|
||
.gallery { | ||
display: flex; | ||
justify-content: center; | ||
flex-wrap: wrap; | ||
// max-width: 900px; | ||
width: 100%; | ||
} | ||
|
||
body.show-modal-2 .content-gallety { | ||
transform: scale(1); | ||
.gallery__card { | ||
display: flex; | ||
width: 300px; | ||
} | ||
|
||
.gallery__image { | ||
width: 300px; | ||
} | ||
|
||
.backdrop-3 { | ||
// @media screen and (max-width: 767px) { | ||
// position: fixed; | ||
// top: 0; | ||
// left: 0; | ||
// width: 100%; | ||
// height: 100%; | ||
// z-index: 40; | ||
// background-color: rgba(0, 0, 0, 0.3); | ||
// visibility: hidden; | ||
// transition: | ||
// background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1), | ||
// visibility 0.45s cubic-bezier(0.4, 0, 0.2, 1); | ||
// } | ||
.gallery__card:hover .gallery__image { | ||
transform: scale(1.1); | ||
cursor: zoom-in; | ||
} | ||
|
||
.slider { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100vw; | ||
height: 100vh; | ||
background-color: rgba(0, 0, 0, 0.3); | ||
// z-index: 999; | ||
|
||
opacity: 0; | ||
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); | ||
pointer-events: none; | ||
visibility: hidden; | ||
transition: | ||
opacity 200ms ease-in-out, | ||
visibility 200ms ease-in-out; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.89); | ||
} | ||
|
||
// .js-backdrop-gallery.is-open { | ||
// // opacity: 1; | ||
// // background-color: rgba(0, 0, 0, 0.3); | ||
// visibility: visible; | ||
|
||
// // pointer-events: none; | ||
// } | ||
|
||
.content-gallety { | ||
.slider__container { | ||
display: flex; | ||
align-items: center; | ||
// @media screen and (max-width: $tablet) { | ||
// height: 100%; | ||
// width: 60%; | ||
|
||
// background-color: $accent-color; | ||
// transform: translateX(-100%); | ||
// // transition: transform 0.45s linear; | ||
// transition-property: all; | ||
// transition-duration: 0.65s; | ||
// transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); | ||
|
||
// // transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); | ||
// padding: 20px; | ||
// // спрятать переполнение | ||
// overflow: hidden; | ||
// } | ||
// padding: 30px; | ||
max-width: 900px; | ||
// min-height: 320px; | ||
// width: 100%; | ||
background-color: $white-color; | ||
// border-radius: 10px; | ||
// box-shadow: | ||
// 0px 1px 3px 0px rgba(0, 0, 0, 0.2), | ||
// 0px 1px 1px 0px rgba(0, 0, 0, 0.14), | ||
// 0px 2px 1px -1px rgba(0, 0, 0, 0.12); | ||
transform: scale(0.8); | ||
transition: transform 200ms ease-in-out; | ||
|
||
// @media screen and (max-width: $tablet) { | ||
// max-width: 235px; | ||
// } | ||
|
||
// @media screen and (min-width: $tablet) and (max-width: $desktop) { | ||
// max-width: 330px; | ||
// } | ||
} | ||
.prev { | ||
display: flex; | ||
|
||
.slider__container img { | ||
animation: anim 0.5s ease; | ||
} | ||
|
||
.next { | ||
display: flex; | ||
.slider__btn { | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
text-decoration: none; | ||
display: inline-flex; | ||
padding: 14px 40px; | ||
border-radius: 30px; | ||
background-image: linear-gradient(#6ab1d7 0%, #33d9de 50%, #002878 100%); | ||
background-position: 100% 0; | ||
background-size: 200% 200%; | ||
font-size: inherit; | ||
font-size: 24px; | ||
font-weight: 300; | ||
color: $white-color; | ||
box-shadow: 0 16px 32px 0 rgba(0, 40, 120, 0.35); | ||
transition: 0.5s; | ||
} | ||
|
||
.content-gallery__btn { | ||
display: flex; | ||
.slider__btn-close:hover { | ||
box-shadow: | ||
0 0 10px 0 #f137a6 inset, | ||
0 0 10px 4px #f137a6; | ||
color: #f137a6; | ||
} | ||
|
||
// .backdrop-3.is-open .content-gallery { | ||
// // opacity: 1; | ||
// transform: translateX(0); | ||
// } | ||
@keyframes anim { | ||
0% { | ||
border-radius: 100%; | ||
transform: scale(0); | ||
} | ||
50% { | ||
border-radius: 50%; | ||
transform: scale(1.2); | ||
} | ||
100% { | ||
border-radius: 0; | ||
transform: scale(1); | ||
} | ||
} |