Created
June 18, 2017 10:35
-
-
Save yaulaannl/5e7d8fc06aa7a241ee798f8207587b55 to your computer and use it in GitHub Desktop.
Old CSS segment for toggling text and font awesome symbol display
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
.menu-item-type-post_type, | |
.menu-item-type-taxonomy{ | |
position: relative; | |
display: inline-block; | |
/*to hide contentt*/ | |
overflow: hidden; | |
} | |
.menu-item-type-post_type a, | |
.menu-item-type-taxonomy a{ | |
display: inline-block; | |
transition: all 0.3s; | |
-moz-transition: all 0.3s; | |
-webkit-transition: all 0.3s; | |
} | |
/*setup before*/ | |
.menu-item-type-post_type a:before, | |
.menu-item-type-taxonomy a:before{ | |
display: inline-block; | |
text-align: center; | |
font-size: 150%; | |
transition: top 0.3s; | |
-moz-transition: top 0.3s; | |
-webkit-transition: top 0.3s; | |
position: absolute; | |
height: 100%; | |
width: 100%; | |
left: 0; | |
top: -75%; | |
} | |
.menu-item-type-post_type:hover, | |
.menu-item-type-taxonomy:hover { | |
background: #000000; | |
} | |
.menu-item-type-post_type:hover a, | |
.menu-item-type-taxonomy:hover a { | |
-moz-transition: translateY(100%); | |
-webkit-transform: translateY(100%); | |
transition: translateY(100%); | |
} | |
/*Specify content for each menu item*/ | |
/* Cycling */ | |
.menu-item-cycling a:before{ | |
font-family: FontAwesome; | |
content: "\f206"; | |
} | |
/* Home*/ | |
.menu-item-home a:before{ | |
font-family: FontAwesome; | |
content: "\f015"; | |
} | |
/* Beer*/ | |
.menu-item-beer-life a:before{ | |
font-family: FontAwesome; | |
content: "\f0fc"; | |
} | |
/* web*/ | |
.menu-item-web a:before{ | |
font-family: FontAwesome; | |
content: "\f1fa"; | |
} | |
/* Internet of Things*/ | |
.menu-item-iot a:before{ | |
font-family: FontAwesome; | |
content: "\f289"; | |
} | |
/* About footer menu icon*/ | |
.menu-item-about a:before{ | |
font-family: FontAwesome; | |
content: "\f129"; | |
font-size: 100%; | |
top: -100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment