I can't quite figure out how to modify the styles of the top nav bar--the styles that aren't available for editing in the skin that is.
I particularly want to adjust the following:
- the list-style-type and padding of the .sub-menu class
- I want to add icons before my heading titles
I've tried calling the classes that Mad Cap inserts after building, but to no avail. I managed to hide the top nav search from my home page but that's as far as I've gotten outside editing the skin itself.
Modify Top Nav Bar advanced styles
Modify Top Nav Bar advanced styles
You do not have the required permissions to view the files attached to this post.
Re: Modify Top Nav Bar advanced styles
If you can't modify a style from the skin editor, that is what you'd need to do - find out what styles are used, and add them to your own CSS file.jkauffman wrote:I've tried calling the classes that Mad Cap inserts after building, but to no avail.
The best way to do this is to use developer tools (press F12), and use the 'inspect' tool to view the HTML and CSS.
You can also make live edits to the CSS, to test things out before adding it to your stylesheet.
Re: Modify Top Nav Bar advanced styles
Thanks for reminding me that I can live edit my CSS; certainly helps troubleshoot everything. Everything working well so far!
-
kwag_myers
- Propellus Maximus
- Posts: 810
- Joined: Wed Jul 25, 2012 11:36 am
- Location: Ann Arbor, MI
Re: Modify Top Nav Bar advanced styles
In the first image, I had a project where I needed to remove those chevrons (actually, they're called Right Pointing Guillemets). So (using Dave's tip) I discovered it was the following style, added to my CSS, which overrides the style where it come from (.../Skins/Fluid/Stylesheets/Styles.css) and omitted the \00bb value for content:
You should be able to use this to set the list type and padding. For the second item, it looks like you might need something like (although I'm not sure about the selector ">"):
needs a :before style to add the icons, unless each icon is unique.
Code: Select all
ul.navigation ul > li.has-children > a:after
{
position: absolute;
border: none;
content: "";
right: 5px;
top: 9px;
}Code: Select all
ul.navigation > li:before
{
content: url(image.jpg); /*where 'image.jpg' is the icon file*/
}needs a :before style to add the icons, unless each icon is unique.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard