laipower/wp-content/plugins/gp-premium/menu-plus/functions/css/navigation-branding-flex.css

116 lines
2.7 KiB
CSS

.navigation-branding,
.site-logo.mobile-header-logo {
display: flex;
align-items: center;
order: 0;
margin-right: 10px;
margin-left: 10px;
}
.rtl .navigation-branding,
.rtl .site-logo.mobile-header-logo {
margin-right: 10px;
margin-left: auto;
}
.navigation-branding img,
.site-logo.mobile-header-logo img {
position: relative;
vertical-align: middle;
padding: 10px 0;
display: block;
box-sizing: border-box;
transition: height .3s ease;
}
.navigation-branding img {
margin-right: 10px;
}
.navigation-branding .main-title {
transition: line-height .3s ease;
margin-right: 10px;
}
.rtl .navigation-branding .main-title {
margin-right: 0;
margin-left: 10px;
}
.mobile-header-navigation .navigation-branding .main-title {
margin-left: 10px;
}
.rtl .mobile-header-navigation .navigation-branding .main-title {
margin-left: 0;
margin-right: 10px;
}
.navigation-branding .main-title a {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
text-transform: unset;
}
.main-navigation:not(.grid-container):not(.mobile-header-navigation) .inside-navigation.grid-container .navigation-branding {
margin-left: 0;
}
.rtl .main-navigation:not(.grid-container).nav-align-left:not(.mobile-header-navigation) .inside-navigation.grid-container .navigation-branding {
margin-left: auto;
margin-right: 0;
}
.rtl .main-navigation.nav-align-right:not(.mobile-header-navigation) .navigation-branding {
order: 10;
}
.main-navigation.mobile-header-navigation {
display: none;
float: none;
margin-bottom: 0;
}
.mobile-header-navigation.is_stuck {
box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .2);
}
.main-navigation .menu-toggle {
flex-grow: 1;
width: auto;
}
.main-navigation.has-branding .menu-toggle,
.main-navigation.has-sticky-branding.navigation-stick .menu-toggle {
flex-grow: 0;
padding-right: 20px;
order: 2;
}
.main-navigation:not(.slideout-navigation) .mobile-bar-items + .menu-toggle {
text-align: left;
}
.main-navigation.has-sticky-branding:not(.has-branding):not(.navigation-stick) .navigation-branding {
display: none;
}
.nav-align-right .navigation-branding {
margin-right: auto;
}
.nav-align-center .navigation-branding {
margin-right: 10px;
}
.main-navigation.has-branding:not([class*="nav-align-"]):not(.mobile-header-navigation) .inside-navigation,
.main-navigation.has-sticky-branding.navigation-stick:not([class*="nav-align-"]):not(.mobile-header-navigation) .inside-navigation {
justify-content: flex-start;
}
.main-navigation.has-branding:not([class*="nav-align-"]):not(.mobile-header-navigation) .menu-bar-items,
.main-navigation.has-sticky-branding.navigation-stick:not([class*="nav-align-"]):not(.mobile-header-navigation) .menu-bar-items {
margin-left: auto;
}