[GELÖST]Anpassung des Menüs

Für Fragen und Diskussionen zum Layout und Design, Templates und Stylesheets sowie Themes
Locked
searchy

[GELÖST]Anpassung des Menüs

Post by searchy »

Hallo,

bin gerade dabei im Menü die Hintergrund- und Schriftfarben anzupassen. Ich verwende simple-vertical.
Allerdings hab ich inzwischen einiges durcheinander gebracht. Wo finde ich eine Übersicht, einen echten Wegweiser, wie ich die Farben anpassen kann und dann noch deutsch?

searchy
Last edited by searchy on Tue Oct 23, 2007 9:10 am, edited 1 time in total.
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm
Location: Germany

Re: Anpassung des Menüs

Post by lollipop27 »

sag doch mal was du haben willst, und poste deinen code, dann kann ich dir vielleicht helfen.... so generell is das schwierig...
searchy

Re: Anpassung des Menüs

Post by searchy »

ja, verstehe ich, fällt mir manchmal schwer, alles so zu formulieren, dass mein Problem auch richtig verstanden wird, also hier ist der code aus der vertikalen navi:
ich möchte die Hintergründe der Links eigentlich generell orange haben, geht man mit der Maus drauf -also hover - sollte ein helles orange sein. Die Schriftfarbe generell ein dunkles braun... Da ich in der Programmierung nicht so recht durchsehe, hab ichs halt ausprobiert, aber inzwischen ist eigentlich vieles durcheinander. Muss mit css auch noch n bissl dazulernen und so weiß ich nicht immer, was diese englischen Kommentare */...*/ erklären wollen. Manches was ich meinte herausgefunden zu haben, hab ich deutsch reingeschrieben
Is das jetzt besser verständlich?

searchy


/********************
MENU
*********************/
#menu_vert {
  padding-left: 0;
  margin-left: 1em;
}


/* third level has some padding to have it stand out */
div#menu_vert ul ul ul {
  padding-bottom: 0.5em;
}

/* menu li block  Farbe für Trennstriche zwischen button*/
#menu_vert li {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid #fb8d17;
  display: block;
}

#menu_vert ul ul li {
  border: none;
}

/** fix stupid ie bug with display:block; **/
* html #menu_vert li a { height: 1%; }
* html #menu_vert li hr { height: 1%; }
/** end fix **/

/* first level links */
div#menu_vert a {
  text-decoration:none; /* no underline for links */
  display: block; /* IE has problems with this, fixed above */
  padding: 0.8em 0.5em 0.8em 1.5em; /* some air for it */
  color: #F7812A; /*  orange this will be link color for all levels */
  background: url(images/cms/arrow-right.gif)*/das sind die kleinen pfeile bei Unterlinks*/
no-repeat 0.5em center;
  min-height:1em; /* Fixes IE7 whitespace bug */
}

/* next level links, more padding and smaller font */
div#menu_vert ul ul a {
  font-size: 90%;
  padding: 0.5em 0.5em 0.5em 2.8em;
  background-position: 1.5em center;
}

/* third drittes level links, more padding */
div#menu_vert ul ul ul a {
  padding: 0.3em 0.5em 0.3em 4.3em;
  background: url(images/cms/dash.gif) no-repeat 2.8em center;
}

/* hover state for all links  helles orange*/
div#menu_vert a:hover {
  background-color: #f9c05d;
}
div#menu_vert a.activeparent:hover {
  background-color: #f9c05d;*/unterseite angeklickt - farbe von hover des uebergeordneten hauptlinks helles orange*/
  color: #000;
}

/*
active parent, that is the first-level parent
of a child page that is the current page Farbe für Linkhintergrund
*/
div#menu_vert li a.activeparent {
  background: url(images/cms/arrow-down.gif) no-repeat 0.4em center;
  background-color: #F7812A;
  color: #2E1902;
}

div#menu_vert ul ul li a.activeparent {
  background-position: 1.5em center;
  background-color: transparent;
  color: #2E1902;*/braun*/
}


/*
current pages in the default Menu Manager
template are unclickable. This is for current page on first level Farbe für Links
*/
div#menu_vert ul h3 {
  background: url(images/cms/arrow-right-active.gif) no-repeat 0.4em center;
  background-color: #F9810C;
  display: block;
  padding: 0.8em 0.5em 0.8em 1.5em;  /* some air for it */
  color: #311D01; */schriftfarbe aktiver link*/             
/* this will be link color for all levels */
  font-size: 1em;                          /* instead of the normal font size for */
  margin: 0;                                  /* as normally has some margin by default */
}

/*
next level current pages, more padding,
smaller font and no background color or bottom border
*/
div#menu_vert ul ul h3 {
  font-size: 90%;
  padding: 0.3em 0.5em 0.3em 2.8em;
  background-position: 1.4em center;
  background-color: transparent;
  border-bottom: none;
  color: #2D1C03 
}

/* current page on third level, more padding */
div#menu_vert ul ul ul h3 {
  padding: 0.3em 0.5em 0.3em 4.3em;
  background: url(images/cms/arrow-right-active.gif) no-repeat 2.7em center;
}

/* section header */
div#menu_vert li.sectionheader {
  border-right: none;
  font-size: 130%;
  font-weight: bold;
  padding: 1.5em 0 0.8em 0;
  background-color: #fff;
  line-height: 1em;
  margin: 0;
  text-align:center;
}



/* separator */
div#menu_vert li.separator {
  height: 1px !important;
  margin-top: -1px;
  margin-bottom: 0;
  padding:2px 0 2px 0;
  background-color: #f8b03e;*/helles orange*/
  overflow:hidden !important;
  line-height:1px !important;
  font-size:1px; /* for ie */
}

div#menu_vert li.separator hr {
  display: none; /* this is for accessibility */
}
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm
Location: Germany

Re: Anpassung des Menüs

Post by lollipop27 »

also folgendes:

du hast ganz viele oranges da drin.

am besten ist es, sich oben einmal die Farben als Kommentar aufzulisten.

So:

*/=======

#f9c05d  --  helles Orange (Hintergrundfarbe Hover)

#f7812a -- dunkles Orange (Hintergrundfarbe) <-- du hast verschiedenste abweichungen, hab mal eines genommen

#2e1902 -- Braun (Schriftfarbe)

=======*/


Nächste Frage, willst du Ränder? Wie schaut das Aktive Element aus?

Wie schaut ein Element aus, dessen Kind Aktiv ist?

Unterscheiden sich die Ebenen?



Kannst evtl ein Bild schicken?? so wies aussehen soll? Oder genaue Definitionen?
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm
Location: Germany

Re: Anpassung des Menüs

Post by lollipop27 »

Jetzt müsste man eigentlich nur folgende Fettgedruckten Begriffe mittels suchen/ersetzen einsetzen...


normal


SCHRIFT

HINTERGRUND

SCHRIFT_2

HINTERGRUND_2

SCHRIFT_3

HINTERGRUND_3






hover

SCHRIFT_HOVER

HINTERGRUND_HOVER


parent

SCHRIFT_PARENT_1

HINTERGRUND_PARENT_1

SCHRIFT_PARENT_2

HINTERGRUND_PARENT_2


parent Hover

SCHRIFT_PARENT_HOVER

HINTERGRUND_PARENT_HOVER




aktiv

SCHRIFT_AKTIV

HINTERGRUND_AKTIV


SCHRIFT_AKTIV_2

HINTERGRUND_AKTIV_2









/********************

MENU

*********************/

#menu_vert {

  padding-left: 0;

  margin-left: 1em;

}





/* third level has some padding to have it stand out */

div#menu_vert ul ul ul {

  padding-bottom: 0.5em;

}



/* menu li block */

#menu_vert li {

  list-style: none;

  margin: 0;

  border-bottom: 1px solid #c0c0c0;

  display: block;

}



#menu_vert ul ul li {

  border: none;

}



/** fix stupid ie bug with display:block; **/

* html #menu_vert li a { height: 1%; }

* html #menu_vert li hr { height: 1%; }

/** end fix **/



/* first level links */

div#menu_vert a {

  text-decoration:none; /* no underline for links */

  display: block; /* IE has problems with this, fixed above */

  padding: 0.8em 0.5em 0.8em 1.5em; /* some air for it */

  color: #SCHRIFT; /* this will be link color for all levels */

  background: url(images/cms/arrow-right.gif) no-repeat 0.5em center #HINTERGRUND;

  min-height:1em; /* Fixes IE7 whitespace bug */

}



/* next level links, more padding and smaller font */

div#menu_vert ul ul a {

  font-size: 90%;

  padding: 0.5em 0.5em 0.5em 2.8em;

  background-position: 1.5em center #HINTERGRUND_2;

  color: #SCHRIFT_2;

}



/* third level links, more padding */

div#menu_vert ul ul ul a {

  padding: 0.3em 0.5em 0.3em 4.3em;

  background: url(images/cms/dash.gif) no-repeat 2.8em center #HINTERGRUND_3;

  color: #SCHRIFT_3;

}



/* hover state for all links */

div#menu_vert a:hover {

  background-color: #HINTERGRUND_HOVER;

  color: #SCHRIFT_HOVER;

}

div#menu_vert a.activeparent:hover {

  background-color: #HINTERGRUND_PARENT_HOVER;

  color: #SCHRIFT_PARENT_HOVER;

}



/*

active parent, that is the first-level parent

of a child page that is the current page

*/

div#menu_vert li a.activeparent {

  background: url(images/cms/arrow-down.gif) no-repeat 0.4em center;

  background-color: #HINTERGRUND_PARENT_1;

  color: #SCHRIFT_PARENT_1;

}



div#menu_vert ul ul li a.activeparent {

  background-position: 1.5em center;

  background-color: #HINTERGRUND_PARENT_2;

  color: #SCHRIFT_PARENT_2;

}





/*

current pages in the default Menu Manager

template are unclickable. This is for current page on first level

*/

div#menu_vert ul h3 {

  background: url(images/cms/arrow-right-active.gif) no-repeat 0.4em center;

  background-color: #HINTERGRUND_AKTIV;

  display: block;

  padding: 0.8em 0.5em 0.8em 1.5em;  /* some air for it */

  color: #SCHRIFT_AKTIV;                                /* this will be link color for all levels */

  font-size: 1em;                          /* instead of the normal font size for */

  margin: 0;                                  /* as normally has some margin by default */

}



/*

next level current pages, more padding,

smaller font and no background color or bottom border

*/

div#menu_vert ul ul h3 {

  font-size: 90%;

  padding: 0.3em 0.5em 0.3em 2.8em;

  background-position: 1.4em center;

  background-color: #HINTERGRUND_AKTIV_2;

  border-bottom: none;

  color: #SCHRIFT_AKTIV_2;   

}



/* current page on third level, more padding */

div#menu_vert ul ul ul h3 {

  padding: 0.3em 0.5em 0.3em 4.3em;

  background: url(images/cms/arrow-right-active.gif) no-repeat 2.7em center #HINTERGRUND_AKTIV_3;

  color: #SCHRIFT_AKTIV_3

}



/* section header */

div#menu_vert li.sectionheader {

  border-right: none;

  font-size: 130%;

  font-weight: bold;

  padding: 1.5em 0 0.8em 0;

  background-color: #fff;

  line-height: 1em;

  margin: 0;

  text-align:center;

}







/* separator */

div#menu_vert li.separator {

  height: 1px !important;

  margin-top: -1px;

  margin-bottom: 0;

  padding:2px 0 2px 0;

  background-color: #000;

  overflow:hidden !important;

  line-height:1px !important;

  font-size:1px; /* for ie */

}



div#menu_vert li.separator hr {

  display: none; /* this is for accessibility */

}
/* End of 'Navigation: Simple - Vertical' */

/* Start of CMSMS style sheet 'Accessibility and cross-browser tools' */
/* accessibility */



/*

menu links accesskeys

*/

span.accesskey {

  text-decoration:none;

}



/*

accessibility divs are hidden by default

text, screenreaders and such will show these

*/

.accessibility, hr {

  position: absolute;

  top: -999em;

  left: -999em;

}



/*

definition tags are also hidden

these are also used for menu links   

*/

dfn {

  position: absolute;

  left: -1000px;

  top: -1000px;

  width: 0;

  height: 0;

  overflow: hidden;

  display: inline;

}

/* end accessibility */





/* wiki style external links */

/* external links will have "(external link)" text added, lets hide it */

a.external span {

  position: absolute;

  left: -5000px;

  width: 4000px;

}



/* make some room for the image */

a.external {

/* css shorthand rules, read: first top padding 0 then right padding 12px then bottom then right */

  padding: 0 12px 0 0;

}

/* colors for external links */

a.external:link {

  color: #18507C;

/* background image for the link to show wiki style arrow */

  background: url(images/cms/external.gif) no-repeat 100% 0;

}

a.external:visited {

  color: #18507C; /* a different color can be used for visited external links */



/*

Set the last 0 to -100px to use that part of the external.gif image for different color for active links

external.gif is actually 300px tall, we can use different positions of the image to simulate rollover image changes.

*/

  background: url(images/cms/external.gif) no-repeat 100% 0;

}



a.external:hover {

  color: #18507C;

/* Set the last 0 to -200px to use that part of the external.gif image for different color on hover */

  background: url(images/cms/external.gif) no-repeat 100% 0;

  background-color: #C3D4DF;

}

/* end wiki style external links */





/* clearing */

/*

clearfix is a hack for divs that hold floated elements. it will force the holding div to span all the way down to last floated item.

We strongly recommend against using this as it is a hack and might not render correctly but it is included here for convenience.

Do not edit if you dont know what you are doing

*/

.clearfix:after {

content: ".";

display: block;

height: 0;

clear: both;

visibility: hidden;

}

* html>body .clearfix {

display: inline-block;

width: 100%;

}



* html .clearfix {

/* Hides from IE-mac \*/

height: 1%;

/* End hide from IE-mac */

}



/* end clearing */
/* End of 'Accessibility and cross-browser tools' */
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm
Location: Germany

Re: Anpassung des Menüs

Post by lollipop27 »

Sorry an alle für diese langen Text, das müsste jetzt aber eine Standard Lösung sein...

hab noch BORDER vergessen



/* menu li block */

#menu_vert li {

  list-style: none;

  margin: 0;

  border-bottom: 1px solid #BORDER;    <---- hier einfügen

  display: block;

}
searchy

Re: Anpassung des Menüs

Post by searchy »

Wow, daaanke! Ich werd das schrittweise durchgehen. Der Überblick hilft mir wirklich sehr!
Und ich sehe, dass ich mir noch n bissl eingehendere Gedanken machen muss.
Danke! searchy
Locked

Return to “Layout und Design”