web-common-design
Version:
This package provides basic style sheet files, which may be useful for all projects and may help to publish a consistent design.
204 lines (179 loc) • 6.29 kB
CSS
/*Icons*/
.menulistlink {
background-image: url(../Images/Kantar/Menu_List.svg);
display: inline-block;
background-size: 100% auto;
background-repeat: no-repeat;
min-width: 48px;
height: 48px;
padding: 0;
margin: 0 0 0 0;
border: 0;
border-collapse: collapse;
}
.menuadministrationlink {
background-image: url(../Images/Kantar/Menu_Administration.svg);
display: inline-block;
background-size: 100% auto;
background-repeat: no-repeat;
min-width: 48px;
height: 48px;
padding: 0;
margin: 0 0 0 0;
border: 0;
border-collapse: collapse;
}
.menuacelink {
background-image: url(../Images/ace.png);
display: inline-block;
background-size: 100% auto;
background-repeat: no-repeat;
min-width: 48px;
height: 48px;
padding: 0;
margin: 0 0 0 0;
border: 0;
border-collapse: collapse;
}
.menuutalink {
background-image: url(../Images/uta.png);
display: inline-block;
background-size: 100% auto;
background-repeat: no-repeat;
min-width: 48px;
height: 48px;
padding: 0;
margin: 0 0 0 0;
border: 0;
border-collapse: collapse;
}
/* Menü Panel */
#menu {
background: rgb(255, 255, 255);
margin: 0;
padding: 0;
font-family: frutiger, verdana;
font-size: 14pt;
/*füllt linke hälfte aus*/
float: left;
width: 220px;
/*das menü soll immer vom header bis zum footer gehen*/
position: absolute;
bottom: 0;
top: 100px;
}
#menu * {
white-space: normal;
word-wrap: break-word;
word-break: normal;
}
/*Hauptmenü*/
#menu ul {
/*etwas Abstand nach oben*/
margin: 20px 0 0 0;
padding: 0;
}
/*menü items erste ebene*/
#menu ul li {
/*keine aufzählungszeichen*/
list-style-type: none;
/*links und rechts gleiches padding für mittige platzierung*/
padding: 10px 20px 5px 20px;
/*durch auto wird verhindert, dass die Element zu große oder zu klein werden*/
width: auto;
background: transparent;
}
/*mouse over über menüpunkt soll drunkelgrau sein*/
#menu ul li:hover {
background: rgb(212, 212, 201);
}
/*ausgewählte menüpunkte soll hellgrau sein*/
#menu ul li.active {
background: rgb(242, 241, 239);
}
/*Submenu*/
#menu ul li ul {
/*keine aufzählungszeichen*/
list-style-type: none;
/*submenü soll immer feste Breite haben*/
width: 140px;
/*damit ersters Menü nicht überdeckt wird, muss ein Rand von 60px eingehalten werde.*/
margin: 0 0 0 60px;
padding: 0;
/*das submenü soll nur sichtbar werden, wenn ein hauptmenüpunkt ausgewählt wurde oder gehovert wird*/
display: none;
/*der balken für das submenü soll den ganzen Bildschirm ausfüllen */
height: 100%;
/*das untermenü soll sich nicht relative zum hauptmenü platzieren, sondern immer ganz oben beginnen*/
position: absolute;
top: 0;
font-size: 10pt;
}
/* wenn ein item aus der ersten ebene gehovert wird, so werden die zugehörigen kinder eingeblendet und dunkelgrau hinterlegt */
#menu ul li:hover > ul {
/*submenü wird eingeblendet*/
display: block;
background: rgb(212, 212, 201);
/*muss ganz oben liegen, um evtl. aktives element zu überdecken. */
z-index: 10000;
}
#menu ul li.active > ul {
/*submenü wird eingeblendet*/
display: block;
background: rgb(242, 241, 239);
/*liegt 'tiefer' als hover und kann somit überdeckt werden*/
z-index: 9999;
}
/*die submenüitems sollen einen angenehmen abstand nach oben und nach links haben*/
#menu ul li ul li {
padding: 5px 0 5px 20px;
}
/*für das erste submenüitem wird ein größerer Abstand nach oben erstellt*/
#menu ul li ul li:first-child {
margin-top: 20px;
}
/*alle links im submenü sollen linksbündig und ohne Rand dargestellt werden*/
#menu ul li ul li > a {
text-align: left;
margin: 0;
padding: 0;
}
#menu ul li ul li > img, #menu ul li ul li > a.img {
vertical-align: text-top;
margin-top: 10px ;
}
#menu ul li ul li:hover {
/*die hintergrundfarbe soll sich beim hovern für die submenü items nicht mehr ändern*/
background: transparent;
}
/*Alle Links, die eine active Klasse haben oder gehovert werden bekommen andere Farbe*/
#menu ul li.active > a {
color: rgb(227, 194, 76);
font-weight: bolder;
text-decoration: none;
}
#menu ul li ul li:hover > a {
color: rgb(227, 194, 76);
font-weight: bolder;
text-decoration: none;
}
#menu ul li ul li:visited > a {
color: rgb(0, 0, 0);
text-decoration: none;
}
#menu ul li > a {
color: rgb(0, 0, 0);
text-decoration: none;
}
.menulink .waitingIconWrapper {
display: inline-block;
}
.menulink .waitingIcon {
position: relative;
display: inline-block;
top: 2px;
left: 2px;
height: 13px;
width: 13px;
margin-right: 5px;
}