Created
May 8, 2016 14:26
-
-
Save vistar/b994f0960e35a754c84d713616c8b89d to your computer and use it in GitHub Desktop.
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
.field-image { | |
figure { | |
a { | |
display: block; | |
position: relative; | |
&:after { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
content: ''; | |
top: 0; | |
transition: background .3s ease 0s; | |
} | |
&:before { | |
position: absolute; | |
width: 1em; | |
height: 1em; | |
top: 50%; | |
left: 50%; | |
font-size: 5em; | |
transform: translate(-50%, -50%); | |
transition: opacity .3s ease 0s; | |
opacity: 0; | |
} | |
@extend .fa; | |
@extend .fa-search-plus; | |
&:hover { | |
&:before { | |
opacity: 1; | |
} | |
&:after { | |
background-color: rgba(#fff, .3); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment