SOLVED Changing Margins Side Menu (mod_mainmenu or roknav)
Posted 13 years 4 months ago
Hi,
I have the Panacea template and am using a main and a side menu. Although there is plenty of space on the side menu, I don't manage to find x offset setting. See attachment.
The whole menu should stay much more in the middle of the sidemenu, if you know what I mean.
I tested roknavmenu and that gives the same results as mod_mainmenu.
The only setting I could find and adapted are in the template.css. Here are the settings:
so are there 'general' settings somewhere to be found for how many pixels a subcategory shifts to the right when there is a listing of subcategories (x offset)?
Re: SOLVED Changing Margins Side Menu (mod_mainmenu or roknav)
Posted 13 years 4 months ago
ok, finally got it figured out, so let's share it with you:
in components/com_gantry/gantry.css you find this:
/* Lists */
ul,ol {padding-left:15px;}
ul li {padding: 0;margin: 0;}
ul li a {font-size: 1.2em;line-height: 1.8em;} ul ul {margin-left: 25px;padding: 5px 0;}
ul li.author {margin: 0;letter-spacing: 1px;list-style: none;font-weight: bold;text-align: right;}
ul li.date {margin: 0;letter-spacing: 1px;list-style: none;text-align: right;font-weight: bold;}
ul li.comments {list-style: none;text-align: right;font-weight: bold;}
ul li.author span, ul li.date span, ul li.comments span {display: block;font-weight: normal;margin-bottom: 10px;line-height: 1em;}
in line 4 you find: margin-left. This is set on 25 pixels by default. This causes the sidemenu to shift to the right every single sublevel. Don't know the exact difference between x-offset, left-margin or any other terms to define this, but I hope everybody who reads this understands.
I changed the 25 to 0 so I can use full width of the menu. This does it make harder to tell in what level/sublevel you are currently though. I try to overcome this by making the current active mainlevel/sublevel bold with a larger font (see attachments above).
This can be found in templates/rt panacea/css/template.css:
where it says: active > .item {font-weight: bold;font-size: 14px}
so in this case the font in the rt-sidebar-a menu is 9 px and the active font is 14 px.