Last active
July 28, 2021 19:55
-
-
Save rhcarlosweb/1fa78f00c84e55134d81839c01a2fd03 to your computer and use it in GitHub Desktop.
Play Button - Video
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
.s-video { | |
.wrapper-video { | |
position : relative; | |
width : 100%; | |
// 992 | |
@media (min-width : $tablet-portrait) { | |
max-width : 720px; | |
margin-right : auto; | |
margin-left : auto; | |
} | |
// 1200 | |
@media (min-width : $notebook) { | |
max-width : 930px; | |
} | |
} | |
.wrapper-video .video-image { | |
img { | |
position : absolute; | |
display : none; | |
// $tablet-portrait | |
@media (min-width : $tablet-portrait) { | |
display : block; | |
left : 100%; | |
bottom : 0; | |
max-width : 200px; | |
transform : translate(-15%, 5%); | |
} | |
// $notebook | |
@media (min-width : $notebook) { | |
max-width : 280px; | |
} | |
// $desktop | |
@media (min-width : $desktop) { | |
max-width : 100%; | |
transform : translate(-25%, 5%); | |
} | |
} | |
} | |
.action { | |
margin-top : 20px; | |
// $tablet | |
@media (min-width : $tablet) { | |
margin-top : 30px; | |
} | |
} | |
} |
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
.video { | |
position : relative; | |
border-radius : 10px; | |
border : 8px solid $success; | |
overflow : hidden; | |
// $notebook | |
@media (min-width : $notebook) { | |
border-width : 10px; | |
} | |
.thumb { | |
//border-radius : 10px; | |
} | |
.play { | |
position : absolute; | |
top : 0; | |
right : 0; | |
bottom : 0; | |
left : 0; | |
display : flex; | |
align-items : center; | |
flex-flow : column; | |
justify-content : center; | |
text-align : center; | |
img { | |
max-width : 60px; | |
} | |
// 992 | |
@media (min-width : $tablet-portrait) { | |
img { | |
max-width : 80px; | |
} | |
} | |
// 1200 | |
@media (min-width : $notebook) { | |
img { | |
max-width : 100px; | |
} | |
} | |
&:hover { | |
transform : scale(1.05); | |
} | |
} | |
.play > .text { | |
font-weight : 500; | |
margin-top : 10px; | |
text-align : center; | |
color : $primary; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment