Menu bar height
-
Hi,
Is there a way to make the Flymag menu bar and text etc thinner?
tried to change the CSS myself I can’t suss it.
Thanks
-
Have you tried making changes to the font weight?
Yep but the bar/buttons don’t get smaller with it
Ah, ok!
Looks like you’re going to need to change a combination of:
– Font Size / Weight
– Padding
– Line heightAnd you should see some better results!
This is my themes code for menus….??
/*-------------------------------------------------------------- Menus --------------------------------------------------------------*/ .main-navigation { clear: both; display: block; float: left; width: 100%; font-family: 'Oswald', sans-serif; font-weight: 300; padding: 0 30px; background-color: #fff; border-top: 3px solid #444; border-bottom: 3px solid #444; border-left: 1px solid #ebebeb; border-right: 1px solid #ebebeb; } .main-navigation ul { list-style: none; margin: 0; padding-left: 0; } .main-navigation li { float: left; position: relative; padding: 15px; font-size: 16px; text-transform: uppercase; -webkit-transition: all 0.3s; transition: all 0.3s; margin: -3px 0 -1px; font-weight: 400; } .main-navigation a { display: block; text-decoration: none; color: #505559; position: relative; z-index: 11; } .main-navigation ul ul { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); float: left; position: absolute; top: 100%; left: -999em; z-index: 99999; background-color: #272E37; } .main-navigation ul ul ul { left: -999em; top: 0; } .main-navigation ul ul a { width: 200px; color: #fff; } .main-navigation ul ul li { text-transform: none; box-shadow: none; font-weight: 300; border-bottom: 1px solid #fff; } .main-navigation ul ul li:last-of-type { border: 0; } .main-navigation ul ul li:hover { box-shadow: none; } .main-navigation li:hover > a, .main-navigation li:hover::before, .main-navigation ul ul li::before { color: #fff; } .main-navigation ul li:hover > ul { left: 0; } .main-navigation ul ul li:hover > ul { left: 100%; } .main-navigation li::before { font-family: Fontawesome; color: #1E262D; float: left; margin-right: 5px; -webkit-transition: color 0.3s; transition: color 0.3s; } .slicknav_nav li:hover { background-color: transparent; } .slicknav_nav li::before { display: none; } .main-navigation a { float: left; } .main-navigation ul ul a { float: none; } .menu-fallback { font-size: 20px; line-height: 50px; } .site-main .comment-navigation, .site-main .paging-navigation, .site-main .post-navigation { margin: 0; padding: 30px; overflow: hidden; background-color: #fff; border-left: 1px solid #ebebeb; border-right: 1px solid #ebebeb; border-bottom: 1px solid #ebebeb; } .custom-menu-item-1:hover, .custom-menu-item-1 .sub-menu { background-color: #F0696A; } .custom-menu-item-2:hover, .custom-menu-item-2 .sub-menu { background-color: #5B8AC0; } .custom-menu-item-3:hover, .custom-menu-item-3 .sub-menu { background-color: #ED945D; } .custom-menu-item-4:hover, .custom-menu-item-4 .sub-menu { background-color: #9F76CA; } .custom-menu-item-0:hover, .custom-menu-item-0 .sub-menu { background-color: #7FC09B; } .custom-menu-item-1 { border-top: 3px solid #F0696A; } .custom-menu-item-2 { border-top: 3px solid #5B8AC0; } .custom-menu-item-3 { border-top: 3px solid #ED945D; } .custom-menu-item-4 { border-top: 3px solid #9F76CA; } .custom-menu-item-0 { border-top: 3px solid #7FC09B; }
Hey there,
Apologies for the late reply.
Please add following custom CSS to the theme and it should do the trick:
.main-navigation a, .main-navigation li::before{ font-weight: 100; } .main-navigation{ border-top: 1px solid #444; border-bottom: 1px solid #444; }
You can add it in your child theme’s stylesheet directly or using a plugin like Advanced CSS Editor, for the sake of simplicity. Please don’t add it in the theme’s main stylesheet (without using a child theme) as all the changes will be lost when the theme is updated. Hope you understand.
- The topic ‘Menu bar height’ is closed to new replies.