Storefront header – nav menu height
-
Hi,
Am converting from unsupported Canvas themed site datlas.com to Storefront theme https://vrt1bx6kzzz.c.updraftclone.com/ and wish to tighten up the header height.I have made some progress, but cannot figure out how to reduce the height of the gold main navigation bar menu.
Here’s my CSS (please excuse any novice mistakes!)
.storefront-primary-navigation,
.main-navigation ul.menu ul.sub-menu{
background-color:#a29261;
}/* Masthead */
#masthead.site-header {
height: 155px!important;
margin-bottom:50px
}/* Mobile CSS for Masthead */
@media only screen and (max-width: 320px) {
#masthead.site-header {
height: 80px!important;
margin-bottom:0px;
}
}/* Masthead menu */
.storefront-primary-navigation a, .cart-contents a {
padding:5px 15px !important;
}.main-navigation .primary-navigation li a {
padding:5px 15px !important;
}.main-navigation ul {
padding:1 1 22px 1px!important;
}
.main-navigation li {
height:80px!important;}/* Mobile CSS for Masthead menu */
@media only screen and (max-width: 320px) {
.main-navigation ul {
background:#D6DDE4!important;
}
}/* Header area */
.site-header {
padding-top:0.5em;
}.site-header .custom-logo-link img, .site-header .site-logo-anchor img, .site-header .site-logo-link img {
margin-bottom: -7px;
}/* Search bar size */
input#woocommerce-product-search-field-0 {
height:10px;
}
.site-search .widget_product_search form::before {
top:0.55em;
}Would greatly appreciate a little help!
The page I need help with: [log in to see the link]
- The topic ‘Storefront header – nav menu height’ is closed to new replies.