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

136 lines
3.0 KiB
CSS
Raw Normal View History

2020-04-07 13:03:04 +00:00
.navigation-branding,
.site-logo.mobile-header-logo {
display: flex;
align-items: center;
order: 1;
margin-right: auto;
margin-left: 10px;
}
.rtl .navigation-branding,
.rtl .site-logo.mobile-header-logo {
margin-right: 10px;
margin-left: auto;
}
2020-04-07 13:03:04 +00:00
.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;
}
2020-04-07 13:03:04 +00:00
.mobile-header-navigation .navigation-branding .main-title {
margin-left: 10px;
}
.rtl .mobile-header-navigation .navigation-branding .main-title {
margin-left: 0;
margin-right: 10px;
}
2020-04-07 13:03:04 +00:00
.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):not(.mobile-header-navigation) .inside-navigation.grid-container .navigation-branding {
margin-left: auto;
margin-right: 0;
}
2020-04-07 13:03:04 +00:00
.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.has-branding .inside-navigation,
.main-navigation.has-sticky-branding.navigation-stick .inside-navigation,
#mobile-header .inside-navigation {
flex-wrap: wrap;
display: flex;
align-items: center;
}
.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;
order: 3;
padding-right: 20px;
}
.main-navigation .mobile-bar-items {
order: 2;
position: relative;
}
.main-navigation:not(.slideout-navigation):not(.has-branding):not(.has-sticky-branding) .menu-toggle,
.main-navigation.navigation-stick:not(.has-sticky-branding):not(.has-branding) .menu-toggle {
order: 1;
flex-grow: 1;
}
.main-navigation:not(.slideout-navigation) .mobile-bar-items + .menu-toggle {
text-align: left;
}
.main-navigation:not(.slideout-navigation) .main-nav {
order: 4;
}
.mobile-bar-items {
position: relative;
}
.main-navigation.has-sticky-branding:not(.has-branding):not(.navigation-stick) .navigation-branding {
display: none;
}
.nav-aligned-center .navigation-branding,
.nav-aligned-left .navigation-branding {
margin-right: 10px;
}
.nav-aligned-center .main-navigation.has-branding .inside-navigation,
.nav-aligned-center .main-navigation.has-sticky-branding.navigation-stick .inside-navigation {
justify-content: center;
}
.nav-aligned-left .main-navigation.has-branding:not(.slideout-navigation) .inside-navigation .main-nav,
.nav-aligned-left .main-navigation.has-sticky-branding.navigation-stick .inside-navigation .main-nav {
flex-grow: 1;
}