Created
August 10, 2021 10:02
-
-
Save zinc1234596/120f668f627e206648ffba4044c774a4 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
%transition_all_03s { | |
transition:all .3s ease; | |
} | |
%backface_visibility_hidden{ | |
backface-visibility:hidden; | |
-webkit-backface-visibility:hidden; | |
} | |
*, *:before, *:after { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
.swiper-container { | |
width: 100%; | |
height: 28vw; | |
transition:opacity .6s ease; | |
&.swiper-container-coverflow{ | |
padding-top:2%; | |
} | |
&.loading{ | |
opacity:0; | |
visibility:hidden; | |
} | |
&:hover{ | |
.swiper-button-prev, | |
.swiper-button-next{ | |
transform:translateX(0); | |
opacity:1; | |
visibility:visible; | |
} | |
} | |
} | |
.swiper-wrapper{ | |
} | |
.swiper-slide{ | |
background-position:center; | |
background-size:cover; | |
.slide-inner{ | |
} | |
.entity-img{ | |
display:none; | |
} | |
.content{ | |
position:absolute; | |
top:40%; | |
left:0; | |
width:50%; | |
padding-left:5%; | |
color:#fff; | |
.title{ | |
font-size:2.6em; | |
font-weight:bold; | |
margin-bottom:30px; | |
} | |
.caption{ | |
display:block; | |
font-size:13px; | |
line-height:1.4; | |
} | |
} | |
} | |
[class^="swiper-button-"]{ | |
width:44px; | |
opacity:0; | |
visibility:hidden; | |
@extend %transition_all_03s; | |
} | |
.swiper-button-prev{ | |
transform:translateX(50px); | |
} | |
.swiper-button-next{ | |
transform:translateX(-50px); | |
} | |
.swiper-container-horizontal{ | |
>.swiper-pagination-bullets{ | |
.swiper-pagination-bullet{ | |
margin:0 9px; | |
position:relative; | |
width:12px; | |
height:12px; | |
background-color:#fff; | |
opacity:.4; | |
@extend %transition_all_03s; | |
&::before{ | |
content:''; | |
position:absolute; | |
top:50%; | |
left:50%; | |
width:18px; | |
height:18px; | |
transform:translate(-50%, -50%); | |
border:0px solid #fff; | |
border-radius:50%; | |
@extend %transition_all_03s; | |
} | |
&:hover, | |
&.swiper-pagination-bullet-active{ | |
opacity:1; | |
} | |
&.swiper-pagination-bullet-active{ | |
&::before{ | |
border-width:1px; | |
} | |
} | |
} | |
} | |
} | |
// Mediaqueries | |
@media(max-width:1180px){ | |
.swiper-slide{ | |
.content{ | |
.title{ | |
font-size:25px; | |
} | |
.caption{ | |
font-size:12px; | |
} | |
} | |
} | |
} | |
@media(max-width:1023px){ | |
.swiper-container { | |
height:40vw; | |
&.swiper-container-coverflow{ | |
padding-top:0; | |
} | |
} | |
} |
This file contains hidden or 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
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet::before, .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet, [class^=swiper-button-] { | |
transition: all 0.3s ease; | |
} | |
*, *:before, *:after { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
.swiper-container { | |
width: 100%; | |
height: 28vw; | |
transition: opacity 0.6s ease; | |
} | |
.swiper-container.swiper-container-coverflow { | |
padding-top: 2%; | |
} | |
.swiper-container.loading { | |
opacity: 0; | |
visibility: hidden; | |
} | |
.swiper-container:hover .swiper-button-prev, | |
.swiper-container:hover .swiper-button-next { | |
transform: translateX(0); | |
opacity: 1; | |
visibility: visible; | |
} | |
.swiper-slide { | |
background-position: center; | |
background-size: cover; | |
} | |
.swiper-slide .entity-img { | |
display: none; | |
} | |
.swiper-slide .content { | |
position: absolute; | |
top: 40%; | |
left: 0; | |
width: 50%; | |
padding-left: 5%; | |
color: #fff; | |
} | |
.swiper-slide .content .title { | |
font-size: 2.6em; | |
font-weight: bold; | |
margin-bottom: 30px; | |
} | |
.swiper-slide .content .caption { | |
display: block; | |
font-size: 13px; | |
line-height: 1.4; | |
} | |
[class^=swiper-button-] { | |
width: 44px; | |
opacity: 0; | |
visibility: hidden; | |
} | |
.swiper-button-prev { | |
transform: translateX(50px); | |
} | |
.swiper-button-next { | |
transform: translateX(-50px); | |
} | |
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet { | |
margin: 0 9px; | |
position: relative; | |
width: 12px; | |
height: 12px; | |
background-color: #fff; | |
opacity: 0.4; | |
} | |
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet::before { | |
content: ""; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
width: 18px; | |
height: 18px; | |
transform: translate(-50%, -50%); | |
border: 0px solid #fff; | |
border-radius: 50%; | |
} | |
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet:hover, .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active { | |
opacity: 1; | |
} | |
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active::before { | |
border-width: 1px; | |
} | |
@media (max-width: 1180px) { | |
.swiper-slide .content .title { | |
font-size: 25px; | |
} | |
.swiper-slide .content .caption { | |
font-size: 12px; | |
} | |
} | |
@media (max-width: 1023px) { | |
.swiper-container { | |
height: 40vw; | |
} | |
.swiper-container.swiper-container-coverflow { | |
padding-top: 0; | |
} | |
} |
This file contains hidden or 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
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment