Hi zusammen
Ich habe unter http://www.ovlu.li/cms eine kleine Basisinstalltion von CMS Made Simple eingerichtet und angepasst. Das meiste funktioniert auch gut, aber leider habe ich in der navigation noch leichte Probleme. In der horinzontalen und auch vertikalen Navigationsleiste sind manche Elemente wenn sie ausgewählt sind noch fett gedruckt. Ich habe zwar die beiden Stylesheets durchgeschaut, aber der einzige bold eintrag den ich gefunden habe habe ich entfernt und es hat nichts geändert. weiss jemand wo ich da genau suchen muss?
Probleme mit Simple Navigation
-
- Power Poster
- Posts: 751
- Joined: Fri Sep 12, 2008 2:34 pm
Re: Probleme mit Simple Navigation
Ein aktiver Menüpunkt wird bei dir mit umschlossen. (allerdings auch nicht in jedem Fall) Entweder du passt das Menütemplate an, damit du nie ein hast oder du ergänzt das Stylesheet entsprechend.
Meine Empfehlung ist das Menütemplate, damit du am Schluss etwas homogenes hast.
Meine Empfehlung ist das Menütemplate, damit du am Schluss etwas homogenes hast.
[this message is written with 100% recycled bits]
Re: Probleme mit Simple Navigation
danke jetzt siehts scho mal nicht mehr fett aus aber dafür ist es hochgstellt.. finde das immer noch komisch. das ist das horizontale stylesheet:
Code: Select all
/********************MENU*********************/
/* hack for IE6 */
* html div#menu_horiz {
/* hide ie/mac \*/
height: 1%;
/* end hide */
}
div#menu_horiz {
/* background color for the entire menu row */
background-color: #dadfc5;
/* insure full width */
width: 100%;
/* set height */
height: 39px;
margin: 0;
/* set font */
color: #000000;
font-family: "Lithos Pro Regular";
font-size: 1.6em;
}
div#menu_horiz ul {
/* remove any default bullets */
list-style-type: none;
margin: 0;
/* pushes the menu div up to give room above for background color to show */
//padding-top: 10px;
/* keeps the first menu item off the left side */
padding-left: 300px;
}
/* menu list items */
div#menu_horiz li {
/* makes the list horizontal */
float: left;
/* remove any default bullets */
list-style: none;
/* still no margin */
margin: 0;
}
/* the links, that is each list item */
div#menu_horiz a,
div#menu_horiz h3 {
/* pushes li out from the text, sort of like making links a certain size, if you give them a set width and/or height you may limit you ability to have as much text as you need */
padding: 12px 15px 15px 0px;
/* still no margin */
margin: 0;
/* removes default underline */
text-decoration: none;
/* default link color */
color: #000000;
/* makes it hold a shape, IE has problems with this, fixed above */
display: block;
}
/* hover state for links */
div#menu_horiz li a:hover,
div#menu_horiz li a.currentpage,
div#menu_horiz li.currentpage h3 {
/* set your image here, dark grey image with white text set above*/
//background: url(uploads/ngrey/nav.png) repeat-x left -50px;
color: #000000;
background-color: #abb980;
}
div#menu_horiz a span,
div#menu_horiz h3 span {
/* compensates for no left padding on the "a" */
padding-left: 15px;
}
div#menu_horiz li.parent a span,
div#menu_horiz li.parent h3 span {
/* no left padding on the "a" we can set it here, it lets us use the span for an image */
padding-left: 20px;
/* set your image here, down arrow to note it has children, left side of text */
//background: url(uploads/ngrey/active.gif) no-repeat 0.3em center;
}
div#menu_horiz li.parent a:hover span,
div#menu_horiz li.parent h3:hover span {
padding-left: 20px;
/* hover replaces default with right arrow image */
//background: url(uploads/ngrey/parent.gif) no-repeat 0.3em center;
}
div#menu_horiz li.menuactive a span,
div#menu_horiz li.menuactive h3 span {
padding-left: 20px;
/* menuactive replaces default with right arrow image */
//background: url(uploads/ngrey/parent.gif) no-repeat 0.5em center;
color: #000000;
}
/* active parent, that is the first level parent of a child page that is the current page */
div#menu_horiz li.menuactive, div#menu_horiz li.menuactive a:hover,
div#menu_horiz li.menuactive h3:hover {
/* set your image here, light image with #000/black text set below*/
//background: url(uploads/ngrey/nav.png) repeat-x left 0px;
background-color: #abb980;
color: #000000;
}
-
- Power Poster
- Posts: 751
- Joined: Fri Sep 12, 2008 2:34 pm
Re: Probleme mit Simple Navigation
Poste mal das Menütemplate. Dann kann ich direkt vergleichen.
[this message is written with 100% recycled bits]
Re: Probleme mit Simple Navigation
danke dir
Code: Select all
{* CSS classes used in this template:
.activeparent - The top level parent when a child is the active/current page
li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
li.separator - To style the ruler for the separator *}
{if $count > 0}
<ul>
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true and $node->current!=true}
<li class="menuactive menuparent"><a class="menuactive menuparent" href="{$node->url}"><span>{$node->menutext}</span></a>
{elseif $node->haschildren == true and $node->type != 'sectionheader' and $node->type != 'separator'}
{if $node->current == true}
<li class="parent currentpage">
<span>{$node->menutext}</span>
{else}
<li class="parent">
<a class="parent" href="{$node->url}"><span>{$node->menutext}</span></a>
{/if}
{elseif $node->current == true}
<li class="currentpage"><span>{$node->menutext}</span>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader"><span>{$node->menutext}</span>
{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr />
{else}
<li><a href="{$node->url}"><span>{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
Re: Probleme mit Simple Navigation
ah ja und beim vertikalen menu ist noch das problem dass das aktive element leider bisschen kleiner ist als die nicht aktiven
wenn du zeit hast darfst du gerne auch dort drauf einen blick werfen:

Code: Select all
/* Vertical menu for the CMS CSS Menu Module */
/* by Alexander Endresen and mark */
#menuwrapper {
/* just smaller than it's containing div */
width: 95%;
margin-left: 0px;
/* room at bottom */
margin-bottom: 10px;
}
/* Unless you know what you do, do not touch this */
#primary-nav, #primary-nav ul {
/* remove any default bullets */
list-style: none;
margin: 0px;
padding: 0px;
/* make sure it fills out */
width: 100%;
/* just a little bump */
margin-left: 1px;
}
#primary-nav li {
/* negative bottom margin pulls them together, images look like one border between */
margin-bottom: -1px;
/* keeps within it's container */
position: relative;
/* bottom padding pushes "a" up enough to show our image */
padding: 0px 0px 4px 0px;
/* you can set your own image here */
background: url(uploads/ngrey/liup.gif) no-repeat right bottom;
}
#primary-nav li li {
/* you can set your width here, if no width or set auto it will only be as wide as the text in it */
width: 190px;
/* changes padding inherited from first level */
padding: 0px 10px;
/* removes first level li image */
background-image: none;
}
/* Styling the basic appearance of the menu "a" elements */
ul#primary-nav li a {
/* specific font size, this could be larger or smaller than default font size */
font-size: 1em;
/* make sure we keep the font normal */
font-weight: normal;
/* set default link colors */
color: #595959;
/* pushes li out from the text, sort of like making links a certain size, if you give them a set width and/or height you may limit you ability to have as much text as you need */
padding: 0.8em 0.5em 0.5em 0.5em;
/* makes it hold a shape */
display: block;
/* removes underline from default link setting */
text-decoration: none;
/* you can set your own image here this is tall enough to cover text heavy links */
background: url(uploads/ngrey/libk.gif) no-repeat right top;
}
ul#primary-nav a span {
/* makes it hold a shape */
display: block;
/* pushes text to right */
padding-left: 1.5em;
}
ul#primary-nav li a:hover {
/* stops image flicker in some browsers */
background: url(uploads/ngrey/libk.gif) no-repeat right top;
/* changes text color on hover */
color: #899092
}
ul#primary-nav li li a:hover {
/* you can set your own image here, second level "a" */
background: url(uploads/ngrey/darknav.png) repeat-x left center;
/* contrast color to image behind it */
color: #FFF
}
ul#primary-nav li a.menuactive {
/* black and bold to set it off from non active */
color: #000;
font-weight: bold;
}
ul#primary-nav li ul a {
/* insure alignment */
text-align: left;
margin: 0px;
/* relative to it's container */
position: relative;
/* even padding all 4 sides */
padding: 6px;
/* make sure we keep the font normal */
font-weight: normal;
/* set default link colors from here on */
color: #000;
/* remove any background that may have been set in level above */
background: none;
}
ul#primary-nav li ul {
/* remove any default bullets */
list-style-type: none;
/* sets width of second level ul to background image */
width: 209px;
height: auto;
/* negative margin pulls it over the parent ul */
margin: 0px 0px 0px -2px;
/* top padding gives room for image shadow and pushes li down into image */
padding: 10px 0px 0px;
/* make the ul stay in place so when we hover it lets the drops go over the content instead of displacing it */
position: absolute;
/* keeps the left side of this ul on the right side of the preceding ul */
left: 100%;
/* negative top pulls up so left arrow centered in li next to it */
top: -2px;
display: none;
/* set your image here, tall enough for the ul, this is the left arrow for second ul and on */
background: url(uploads/ngrey/ultoprt.png) no-repeat left top;
}
/* a lot of the same as above, minor changes */
ul#primary-nav li ul ul {
list-style-type: none;
/* bit more negative left margin */
margin: 0px 0px 0px -8px;
/* you can call a property twice but not a property:'value', this flat lines it */
padding: 0px;
/* now we just change one with 'property'-top:value */
padding-top: 10px;
position: absolute;
width: 209px;
height: auto;
/* negative top pulls up so left arrow centered in li next to it, more on 3rd ul covers default drop increase */
top: -5px;
left: 100%;
display: none;
/* set your image here */
background: url(uploads/ngrey/ultoprt.png) no-repeat left top;
}
* html ul#primary-nav li ul {
/* gif for IE6, as it can't handle transparent png */
background: url(uploads/ngrey/ultoprt.gif) no-repeat left top;
}
* html ul#primary-nav li ul ul {
/* gif for IE6, as it can't handle transparent png */
background: url(uploads/ngrey/ultoprt.gif) no-repeat left top;
}
/* this is a special li type from the menu template, used to hold the bottom image for ul set above */
#primary-nav ul li.separator, #primary-nav .separator:hover {
/* set same as ul */
width: 209px;
padding: 0px;
/* height of image */
height: 9px;
/* negative margin pulls it down to cover ul image */
margin: 0px 0px -9px;
/* set your image here */
background: url(uploads/ngrey/ulbtmrt.png) no-repeat left bottom;
}
/* IE6 'star html' Hack */
* html #primary-nav li ul li.separator {
height: 2px;
/* set your image here */
background: url(uploads/ngrey/ulbtmrt.gif) no-repeat left bottom;
}
/* IE6 Hack */
* html #prmary-nav .separatorh {
height: 2px;
/* set your image here */
background: url(uploads/ngrey/ultop.gif) no-repeat left bottom;
}
/* Fixes IE7 bug*/
#primary-nav li, #primary-nav li.menuparent {
min-height: 1em;
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li li.menuactive a.menuactive {
/* contrast color to image behind it */
color: #FFF;
/* not bold as text color and image behind it set it off from non active */
font-weight: normal;
/* set your image here, dark grey image with white text set above*/
background: url(uploads/ngrey/darknav.png) repeat-x left center;
}
#primary-nav li.menuparent span {
/* padding on left for image */
padding-left: 1.5em;
/* down arrow to note it has children, left side of text */
background: url(uploads/ngrey/active.png) no-repeat left center;
}
#primary-nav li.menuparent:hover li.menuparent span {
/* remove left padding as image is on right side of text */
padding-left: 0;
/* right arrow to note it has children, right side of text */
background: url(uploads/ngrey/parent.png) no-repeat right center;
}
#primary-nav li.menuparenth li.menuparent span,
#primary-nav li.menuparenth li.menuparenth span {
/* same as above but this is for IE6, gif image as it can't handle transparent png */
padding-left: 0;
background: url(uploads/ngrey/parent.gif) no-repeat right center;
}
#primary-nav li.menuparent:hover span,
#primary-nav li.menuparent.menuactive span,
#primary-nav li.menuparent.menuactiveh span,
#primary-nav li.menuparenth span {
/* right arrow on hover */
background: url(uploads/ngrey/parent.png) no-repeat left center;
}
#primary-nav li li span,
#primary-nav li.menuparent li span,
#primary-nav li.menuparent:hover li span,
#primary-nav li.menuparenth li span,
#primary-nav li.menuparenth li.menuparenth li span,
#primary-nav li.menuparent li.menuparent li span,
#primary-nav li.menuparent li.menuparent:hover li span {
/* removes any images set above unless it's a parent or active parent */
background: none;
padding-left: 0px;
}
/* Styling the appearance of menu items on hover */
#primary-nav li:hover li a,
#primary-nav li.menuh li a,
#primary-nav li.menuparenth li a,
#primary-nav li.menuactiveh li a {
/* removes any images set above unless it's a parent or active parent */
background: none;
color: #000;
}
/* The magic - set to work for up to a 3 level menu, but can be increased unlimited, for fourth level add
#primary-nav li:hover ul ul ul,
#primary-nav li.menuparenth ul ul ul,
*/
#primary-nav ul,
#primary-nav li:hover ul,
#primary-nav li:hover ul ul,
#primary-nav li.menuparenth ul,
#primary-nav li.menuparenth ul ul {
display: none;
}
/* for fourth level add
#primary-nav ul ul ul li:hover ul,
#primary-nav ul ul ul li.menuparenth ul,
*/
#primary-nav li:hover ul,
#primary-nav ul li:hover ul,
#primary-nav ul ul li:hover ul,
#primary-nav li.menuparenth ul,
#primary-nav ul li.menuparenth ul,
#primary-nav ul ul li.menuparenth ul {
display: block;
}
/* IE Hack, will cause the css to not validate */
#primary-nav li, #primary-nav li.menuparenth {
_float: left;
_height: 1%;
}
#primary-nav li a {
_height: 1%;
}
/* BIG NOTE: I didn't do anything to these 2, never tested */
#primary-nav li.sectionheader {
border-left: 1px solid #006699;
border-top: 1px solid #006699;
font-size: 130%;
font-weight: bold;
padding: 1.5em 0 0.8em 0.5em;
background-color: #fff;
margin: 0;
width: 100%;
}
/* separator */
#primary-nav li hr.separator {
display: block;
height: 0.5em;
color: #abb0b6;
background-color: #abb0b6;
width: 100%;
border: 0;
margin: 0;
padding: 0;
border-top: 1px solid #006699;
border-right: 1px solid #006699;
}
-
- Power Poster
- Posts: 751
- Joined: Fri Sep 12, 2008 2:34 pm
Re: Probleme mit Simple Navigation
Ändere mal im Menütemplate folgende Zeilen:
in
Damit ist der aktive Menüpunkt immer auch ein Link. Ich halte dies jeweils so, da ich damit ein homogeneres Aussehen ermögliche. (a href und h3 aufeinander abstimmen ist nicht ganz trivial)
Code: Select all
{elseif $node->current == true}
<li class="currentpage"><span>{$node->menutext}</span>
Code: Select all
{elseif $node->current == true}
<li class="currentpage"><a href="{$node->url}"><span>{$node->menutext}</span></a>
[this message is written with 100% recycled bits]
Re: Probleme mit Simple Navigation
danke! mit diesem tipp und mit firebug konnte ich schon mal das problem in der vertikalen navigationsleiste lösen. besteht nur noch das problem in der horizontalen leiste!