Last active
April 6, 2022 01:31
-
-
Save alexmustin/1a779504412a8b3156fdf2d84edd4cec to your computer and use it in GitHub Desktop.
WooCommerce - Account Page Sidebar Nav Menu styles with FontAwesome icons
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
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li { | |
list-style-type: none; | |
margin: 0 0 10px 0; | |
padding-top: 10px; | |
border-top: none; | |
width: 100%; | |
display: block; | |
text-align: left; | |
font-size: 16px; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li.is-active { | |
font-size: 16px; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li a { | |
text-decoration: none; | |
border-bottom: none; | |
color: #666; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li.is-active a, | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li a:hover { | |
color: #01a3ed; | |
} | |
/* icons */ | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li a::before { | |
font-family: 'Font Awesome 5 Free'; | |
display: inline-block; | |
width: 20px; | |
text-align: center; | |
margin: 0 10px 0 0; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="dashboard"] a::before { | |
content:"\f015"; | |
font-weight: 900; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="orders"] a::before { | |
content:"\f022"; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="subscriptions"] a::before { | |
content:"\f073"; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="downloads"] a::before { | |
content:"\f019"; | |
font-weight: 900; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="edit-address"] a::before { | |
content:"\f303"; | |
font-weight: 900; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="payment-methods"] a::before { | |
content:"\f09d"; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="edit-account"] a::before { | |
content:"\f007"; | |
font-weight: 900; | |
} | |
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li[class*="customer-logout"] a::before { | |
content:"\f2f5"; | |
font-weight: 900; | |
} |
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
.woocommerce-account { | |
.woocommerce { | |
nav.woocommerce-MyAccount-navigation { | |
ul { | |
li { | |
list-style-type: none; | |
margin: 0 0 10px 0; | |
padding-top: 10px; | |
border-top: none; | |
width: 100%; | |
display: block; | |
text-align: left; | |
a { | |
text-decoration: none; | |
color: #666; | |
&::before { | |
font-family: 'Font Awesome 5 Free'; | |
display: inline-block; | |
width: 20px; | |
text-align: center; | |
margin: 0 10px 0 0; | |
} | |
} | |
&.is-active a, | |
& a:hover { | |
color: #01a3ed; | |
} | |
/* FA ICONS */ | |
&[class*="dashboard"] a::before { | |
content:"\f015"; | |
font-weight: 900; | |
} | |
&[class*="orders"] a::before { | |
content:"\f022"; | |
} | |
&[class*="subscriptions"] a::before { | |
content:"\f073"; | |
} | |
&[class*="downloads"] a::before { | |
content:"\f019"; | |
font-weight: 900; | |
} | |
&[class*="edit-address"] a::before { | |
content:"\f303"; | |
font-weight: 900; | |
} | |
&[class*="payment-methods"] a::before { | |
content:"\f09d"; | |
} | |
&[class*="edit-account"] a::before { | |
content:"\f007"; | |
font-weight: 900; | |
} | |
&[class*="customer-logout"] a::before { | |
content:"\f2f5"; | |
font-weight: 900; | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment