Difference between revisions of "Template:KU Leuven Test/css"

Line 17: Line 17:
 
}
 
}
  
.menu li {
+
.menu ul {
     float:left;
+
     list-style-type: none;
     position:relative;
+
     margin: 0;
 +
    padding: 0;
 +
    overflow: hidden;
 
}
 
}
  
.menu>li:first-of-type {
+
.menu li {
     float:left;
+
     float: left;
    position:relative;
+
margin-left: 2em;
+
}
+
 
+
.menu li a {
+
    display:block;
+
    font-size:0.9em;
+
    line-height:2em;
+
    padding: 0em 2.5em 1.25em 0em;
+
    vertical-align:middle;
+
    text-decoration:none;
+
text-transform: uppercase;
+
border: none;
+
}
+
 
+
.menu-indicator {
+
width: 100%;
+
height: 10px;
+
display:block;
+
visibility:hidden;
+
}
+
 
+
 
+
.menu ul {
+
    position: absolute;
+
    left: -9999px;
+
    list-style: none;
+
}
+
.menu ul li {
+
    float: none;
+
}
+
.menu ul a {
+
    white-space: nowrap;
+
 
}
 
}
  
.menu li:hover ul {
+
.menu a:link, a:visited {
     padding-top: 0.8em;
+
     display: block;
left: 0px;
+
    width: 120px;
z-index:1;
+
    font-weight: bold;
 +
    color: #FFFFFF;
 +
    background-color: #98bf21;
 +
    text-align: center;
 +
    padding: 4px;
 +
    text-decoration: none;
 +
    text-transform: uppercase;
 
}
 
}
  
.menu li:hover ul a {
+
.menu a:hover, a:active {
     background: none;
+
     background-color: #7A991A;
padding: 0.75em 1em 0.75em 1em;
+
 
}
 
}
 
</style>
 
</style>

Revision as of 08:47, 2 July 2015

<!DOCTYPE html>