CSS: Add styles for flattened user menu

This commit is contained in:
Florian Strohmaier 2016-11-16 16:37:02 +01:00
parent 04c28c0ccb
commit bd9b3613bd

View File

@ -12,6 +12,7 @@
#menu { #menu {
height: 100%; height: 100%;
overflow: auto; overflow: auto;
position: relative;
} }
#menu a { #menu a {
@ -84,10 +85,6 @@
width: 1em; width: 1em;
} }
#menu .user-nav-item {
background-color: @gray-light;
}
#menu input.search { #menu input.search {
background: transparent url('../img/icons/search.png') no-repeat 0.7em center; background: transparent url('../img/icons/search.png') no-repeat 0.7em center;
background-size: 1em auto; background-size: 1em auto;
@ -166,6 +163,54 @@
} }
} }
// Exception for admin navigation menu
#menu .nav-level-1 .user-nav-item,
#menu .nav-level-1 .user-nav-item.hover,
#menu .nav-level-1 .user-nav-item.active {
position: absolute;
bottom: 0; left: 0; right: 0;
border-left: none;
padding-left: 5px;
> .nav-level-2 {
position: absolute;
right: 0;
top: 0;
}
> .nav-level-2 li {
width: 2em;
overflow: hidden;
display: inline-block;
white-space: nowrap;
font-size: 1.091em;
}
> .nav-level-2 li.no-icon {
margin-left: 0;
}
> .nav-level-2 li a {
padding: @vertical-padding;
}
> .nav-level-2 li a:before {
font-size: 14px;
font-family: 'ifont';
margin-right: 100px;
width: 1.5em;
}
> .nav-level-2 li:first-child a:before {
content: '\e83d';
}
> .nav-level-2 li:last-child a:before {
content: '\e815';
}
}
// Accessibility skip links // Accessibility skip links
.skip-links { .skip-links {