Last active
February 1, 2019 14:59
-
-
Save akther80/d7250aefdf8164cff5e7f3b51e4d36ae to your computer and use it in GitHub Desktop.
Uneno - Header User Account in Home v2
This file contains hidden or 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
add_action( 'init', 'un_child_add_header_user_account_in_home_v2' ); | |
function un_child_add_header_user_account_in_home_v2() { | |
add_action( 'uneno_header_v2_icons', 'uneno_header_user_account', 30 ); | |
} |
This file contains hidden or 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
.site-header--v2 .site-header__primary-nav { | |
flex: 0 0 50%; | |
max-width: 50%; | |
} | |
.site-header--v2 .primary-nav-menu>.menu-item>a { | |
padding: 21.5px 22px; | |
} | |
.site-header--v2 .primary-nav-menu>.menu-item>a:first-child { | |
padding-left:0; | |
} | |
.site-header--v2 .header-user-account-dropdown>.menu-item-has-children>a { | |
padding: 8px 36px 8px 10px; | |
border-radius: 4px; | |
border-width: 1px; | |
border-style: dashed; | |
display: flex; | |
align-items: center; | |
border-color: #b92d5e; | |
} | |
.site-header--v2 .header-user-account-dropdown>.menu-item-has-children>a:after { | |
color: #979797; | |
margin-left: 5px; | |
margin-right: 5px; | |
} | |
.site-header--v2 .header-user-account-body__welcome-text, | |
.site-header--v2 .header-user-account-body__username { | |
color: #000; | |
} | |
.site-header--v2 .header-user-account-body__username { | |
font-weight: 500; | |
line-height: 24px; | |
} | |
.site-header--v2 .sub-menu, .site-header--v2 .dropdown-menu { | |
border-top: 2px solid #b92d5e; | |
} | |
.site-header--v2 .header-user-account-dropdown > .menu-item-has-children > .sub-menu:before, .site-header--v2 .header-user-account-dropdown > .menu-item-has-children > .dropdown-menu:before { | |
border-bottom-color: #b92d5e; | |
} | |
.site-header--v2 .off-canvas-navigation-wrapper { | |
padding-left: 0; | |
} | |
.site-header--v2 .header-user-account-dropdown img { | |
border-color: #b92d5e ; | |
} | |
.site-header--v2 .site-header__header-icons { | |
flex: 0 0 30%; | |
max-width: 30%; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment