forked from vb/lazyframe
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request vb#21 from XhmikosR/xmr-sass
Improve Sass files.
- Loading branch information
Showing
4 changed files
with
73 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,52 @@ | ||
.lazyframe[data-vendor="vine"]{ | ||
.lazyframe[data-vendor="vine"] { | ||
background-color: #00bf8f; | ||
|
||
.lazyframe__title{ | ||
.lazyframe__title { | ||
color: #fff; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 14px; | ||
line-height: 16px; | ||
white-space: nowrap; | ||
z-index: 3; | ||
positon: relative; | ||
&:after{ | ||
content: ''; | ||
position: relative; | ||
|
||
&::after { | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
z-index: -1; | ||
height: 115px; | ||
padding: 24px 70px 24px 24px; | ||
background: linear-gradient(to top,rgba(23,23,23,0) 0,rgba(23,23,23,.7) 100%); | ||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#b3171717", endColorstr="#00171717", GradientType=0 ); | ||
background-image: linear-gradient(to top, rgba(23, 23, 23, 0) 0, rgba(23, 23, 23, .7) 100%); | ||
} | ||
|
||
} | ||
|
||
&:before{ | ||
padding-top:100%; | ||
&::before { | ||
padding-top: 100%; | ||
} | ||
|
||
&[data-ratio="16:9"]:before { padding-top: 56.25%; } | ||
&[data-ratio="4:3"]:before { padding-top: 75%; } | ||
&[data-ratio="1:1"]:before { padding-top: 100%; } | ||
|
||
&:after{ | ||
content: ''; | ||
&::after { | ||
content: ""; | ||
width: 60px; | ||
height: 60px; | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
z-index: 4; | ||
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMzYiIGhlaWdodD0iMTM2IiB2aWV3Qm94PSIwIDAgMTM2IDEzNiI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTU2IDQ0Yy0uNyAwLTEuNC4yLTIgLjUtMS4yLjgtMiAyLTIgMy41djQwYzAgMS40LjggMi44IDIgMy41LjYuMyAxLjMuNSAyIC41czEuNC0uMiAyLS41bDM0LjYtMjBjMS4zLS43IDItMiAyLTMuNSAwLTEuNC0uNy0yLjgtMi0zLjVMNTggNDQuNWMtLjYtLjMtMS4zLS41LTItLjV6Ii8+PC9zdmc+'); | ||
background-color: rgba(0,0,0,.5); | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='136' height='136' viewBox='0 0 136 136'%3E%3Cpath fill='%23FFF' d='M56 44c-.7 0-1.4.2-2 .5-1.2.8-2 2-2 3.5v40c0 1.4.8 2.8 2 3.5.6.3 1.3.5 2 .5s1.4-.2 2-.5l34.6-20c1.3-.7 2-2 2-3.5 0-1.4-.7-2.8-2-3.5L58 44.5c-.6-.3-1.3-.5-2-.5z'/%3E%3C/svg%3E"); | ||
background-color: rgba(0, 0, 0, .5); | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
margin-top: -30px; | ||
margin-left: -30px; | ||
border-radius: 50%; | ||
border-radius: 50%; | ||
} | ||
|
||
&:hover:after{ | ||
background-color: rgba(0,0,0,.75); | ||
&:hover::after { | ||
background-color: rgba(0, 0, 0, .75); | ||
} | ||
|
||
} |
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