Created
November 16, 2017 22:28
-
-
Save aosipov/b66356956f2b2a3a1b39d366b791edfe to your computer and use it in GitHub Desktop.
add icon to the post thumbnail
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
article{ | |
position:relative; | |
&:after{ | |
content: "\f15c"; | |
font-family: FontAwesome; | |
font-style: normal; | |
font-weight: normal; | |
text-decoration: inherit; | |
/*--adjust as necessary--*/ | |
color: $brand-main-color; | |
font-size: 2rem; | |
position: absolute; | |
top: 1.8rem; | |
right: 2.2rem; | |
z-index:2; | |
} | |
&:before{ | |
content: ""; | |
display:block; | |
position: absolute; | |
top: 1rem; | |
right: 1rem; | |
height:4rem; | |
width:4rem; | |
background: #FFFFFF; | |
z-index:1; | |
border-radius:50%; | |
opacity: .8; | |
} | |
} | |
article.format-video{ | |
position:relative; | |
&:after{ | |
content: "\f04b"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment