2014-05-14 13:24:20 +00:00
|
|
|
//
|
|
|
|
|
// Top navigation bar
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
2016-04-04 08:12:21 +00:00
|
|
|
//mainmenu-height: 78px;
|
|
|
|
|
@mainmenu-height: 60px;
|
|
|
|
|
@mainmenu-icon-dimension: 30px;
|
|
|
|
|
|
|
|
|
|
// Stacked nav
|
2016-03-02 07:05:52 +00:00
|
|
|
@mainmenu-tile-dimension: 65px;
|
|
|
|
|
@mainmenu-tile-label-height: 20px;
|
|
|
|
|
@mainmenu-tile-label-width: 100px;
|
|
|
|
|
|
2014-05-14 13:24:20 +00:00
|
|
|
body.mainmenu-open {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-02 07:05:52 +00:00
|
|
|
.mainmenu-item-link() {
|
2016-02-20 06:12:41 +00:00
|
|
|
display: inline-block;
|
2016-04-04 08:12:21 +00:00
|
|
|
font-size: @font-size-base + 1;
|
2016-02-20 06:12:41 +00:00
|
|
|
color: inherit;
|
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active, &:focus {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
color: @color-mainmenu-inactive;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
|
line-height: 1;
|
2016-02-29 20:42:02 +00:00
|
|
|
font-size: 30px;
|
2016-02-20 06:12:41 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-29 21:59:20 +00:00
|
|
|
.mainmenu-tooltip {
|
|
|
|
|
.tooltip-inner {
|
2016-04-04 08:12:21 +00:00
|
|
|
font-size: @font-size-base + 2;
|
2016-02-29 21:59:20 +00:00
|
|
|
padding: 6px 16px;
|
2016-03-02 07:05:52 +00:00
|
|
|
border-radius: 0;
|
2016-02-29 21:59:20 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-20 06:12:41 +00:00
|
|
|
nav#layout-mainmenu {
|
2014-05-14 13:24:20 +00:00
|
|
|
background-color: @color-mainmenu;
|
|
|
|
|
padding: 0 0 0 20px;
|
|
|
|
|
line-height: 0;
|
|
|
|
|
white-space: nowrap;
|
2016-02-16 04:27:01 +00:00
|
|
|
vertical-align: top;
|
2016-03-02 07:05:52 +00:00
|
|
|
height: @mainmenu-height;
|
2015-03-06 09:41:14 +00:00
|
|
|
|
2014-05-14 13:24:20 +00:00
|
|
|
a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
&:focus {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
list-style: none;
|
|
|
|
|
float: left;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
color: @color-mainmenu-inactive;
|
|
|
|
|
display: inline-block;
|
2016-02-16 04:27:01 +00:00
|
|
|
vertical-align: top;
|
2014-05-14 13:24:20 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
2016-02-20 06:12:41 +00:00
|
|
|
a {
|
2016-03-02 07:05:52 +00:00
|
|
|
.mainmenu-item-link();
|
|
|
|
|
padding: 14px 0 10px;
|
2016-02-20 06:12:41 +00:00
|
|
|
|
|
|
|
|
img.svg-icon {
|
|
|
|
|
height: 30px;
|
|
|
|
|
width: 30px;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
position: relative;
|
|
|
|
|
top: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-02 07:05:52 +00:00
|
|
|
&.icon-only {
|
2016-02-20 06:12:41 +00:00
|
|
|
margin-right: 0;
|
2016-03-02 07:05:52 +00:00
|
|
|
a { padding: 14px; }
|
|
|
|
|
i { margin-right: 0; }
|
2014-05-14 13:24:20 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-20 06:12:41 +00:00
|
|
|
&.nav {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-14 13:24:20 +00:00
|
|
|
.toolbar-item {
|
2015-08-26 10:24:37 +00:00
|
|
|
padding-right: 0;
|
2014-05-14 13:24:20 +00:00
|
|
|
|
2015-09-25 22:10:25 +00:00
|
|
|
&:before, &:after {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
2015-03-06 09:41:14 +00:00
|
|
|
|
2016-02-20 06:12:41 +00:00
|
|
|
&:before {
|
|
|
|
|
left: -12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
|
right: -12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.scroll-active-before:before {
|
|
|
|
|
color: @color-mainmenu-active;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.scroll-active-after:after {
|
|
|
|
|
color: @color-mainmenu-active;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-02 07:05:52 +00:00
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Toolbar
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
ul.mainmenu-toolbar {
|
|
|
|
|
li.mainmenu-preview {
|
|
|
|
|
i {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
height: @mainmenu-height - 16px;
|
|
|
|
|
line-height: @mainmenu-height - 16px;
|
|
|
|
|
padding: 0 15px;
|
|
|
|
|
margin: 8px 0 8px 11px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li.mainmenu-account {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
|
|
|
|
> a {
|
|
|
|
|
height: @mainmenu-height;
|
|
|
|
|
line-height: @mainmenu-height;
|
2016-04-04 08:12:21 +00:00
|
|
|
padding: 0 15px 0 10px;
|
2016-03-02 07:05:52 +00:00
|
|
|
font-size: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
// z-index: 200; // Previous value 590 was overlappnig with drop-down menus on small screens
|
|
|
|
|
z-index: 590; // @todo Investigate: This causes the button to dim without 590
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img {
|
2016-04-04 08:12:21 +00:00
|
|
|
width: 45px;
|
|
|
|
|
margin-left: 15px;
|
2016-03-02 07:05:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
line-height: 23px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
2016-04-04 08:12:21 +00:00
|
|
|
// Menu items
|
2016-03-02 07:05:52 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
ul.mainmenu-nav li {
|
2016-04-04 08:12:21 +00:00
|
|
|
//.transition(opacity .15s ease);
|
|
|
|
|
//.opacity(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul.mainmenu-nav li {
|
|
|
|
|
//.opacity(.65);
|
|
|
|
|
//.transition(opacity 5s ease);
|
|
|
|
|
//.transition-delay(5s);
|
|
|
|
|
margin-right: 30px;
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
//.opacity(1);
|
2016-03-02 07:05:52 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-04-04 08:12:21 +00:00
|
|
|
//
|
|
|
|
|
// Menu items (Inline mode)
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
ul.mainmenu-nav.nav-inline {
|
|
|
|
|
li a {
|
|
|
|
|
padding: 15px 0;
|
|
|
|
|
|
|
|
|
|
.nav-icon {
|
|
|
|
|
position: relative;
|
|
|
|
|
top: -1px;
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
width: @mainmenu-icon-dimension;
|
|
|
|
|
height: @mainmenu-icon-dimension;
|
|
|
|
|
i, img { margin: 0; }
|
|
|
|
|
}
|
|
|
|
|
.nav-label {
|
|
|
|
|
line-height: @mainmenu-icon-dimension;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
&:first-child {
|
|
|
|
|
margin-left: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Menu items (Tile mode)
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
ul.mainmenu-nav.nav-tiles {
|
2016-03-02 07:05:52 +00:00
|
|
|
li a {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: @mainmenu-tile-dimension;
|
|
|
|
|
height: @mainmenu-tile-dimension;
|
|
|
|
|
|
|
|
|
|
.nav-icon {
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
2016-04-04 08:12:21 +00:00
|
|
|
margin-left: -(@mainmenu-icon-dimension / 2);
|
2016-03-02 07:05:52 +00:00
|
|
|
margin-top: -(@mainmenu-tile-dimension - @mainmenu-tile-label-height) / 2;
|
2016-04-04 08:12:21 +00:00
|
|
|
width: @mainmenu-icon-dimension;
|
|
|
|
|
height: @mainmenu-icon-dimension;
|
2016-03-02 07:05:52 +00:00
|
|
|
i, img { margin: 0; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-label {
|
|
|
|
|
display: block;
|
|
|
|
|
width: @mainmenu-tile-label-width;
|
|
|
|
|
height: @mainmenu-tile-label-height;
|
2016-04-04 08:12:21 +00:00
|
|
|
line-height: @mainmenu-tile-label-height;
|
2016-03-02 07:05:52 +00:00
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 50%;
|
|
|
|
|
padding: 0 5px;
|
|
|
|
|
margin-left: -(@mainmenu-tile-label-width / 2);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
padding: 3px 0;
|
|
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
a .nav-label {
|
|
|
|
|
text-shadow: 1px 1px 0 rgba(255,255,255,.3);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
.nav-label {
|
|
|
|
|
width: auto;
|
|
|
|
|
min-width: @mainmenu-tile-label-width;
|
|
|
|
|
text-overflow: all;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
background-color: @color-mainmenu;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// Mobile
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
.menu-toggle {
|
|
|
|
|
.mainmenu-item-link();
|
|
|
|
|
height: @mainmenu-height;
|
|
|
|
|
line-height: @mainmenu-height;
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
|
|
> i {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-20 06:12:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html.svg {
|
|
|
|
|
nav#layout-mainmenu,
|
|
|
|
|
.mainmenu-collapsed {
|
|
|
|
|
img.svg-icon {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
2015-03-06 09:41:14 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-20 06:12:41 +00:00
|
|
|
nav#layout-mainmenu ul li .mainmenu-accountmenu {
|
2015-03-06 09:41:14 +00:00
|
|
|
position: fixed;
|
2016-03-02 07:05:52 +00:00
|
|
|
top: @mainmenu-height;
|
2015-03-06 09:41:14 +00:00
|
|
|
right: 0;
|
|
|
|
|
background: @color-accountmenu-bg;
|
2015-04-09 10:20:08 +00:00
|
|
|
z-index: 590;
|
2015-03-06 09:41:14 +00:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
|
.triangle(up, 22px, 12px, @color-accountmenu-bg);
|
2016-04-04 08:12:21 +00:00
|
|
|
right: 26px;
|
2015-03-06 09:41:14 +00:00
|
|
|
top: -12px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
float: none;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
padding: 0;
|
2015-03-19 02:19:43 +00:00
|
|
|
margin: 0;
|
2016-02-16 04:27:01 +00:00
|
|
|
font-weight: normal;
|
2015-03-06 09:41:14 +00:00
|
|
|
text-align: left;
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
display: block;
|
2015-03-19 02:19:43 +00:00
|
|
|
padding: 12px 30px;
|
2015-03-06 09:41:14 +00:00
|
|
|
text-align: left;
|
2015-03-19 02:19:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #3d5265!important;
|
2015-03-06 09:41:14 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li.divider {
|
|
|
|
|
height: 1px;
|
|
|
|
|
width: 100%;
|
2015-03-19 02:19:43 +00:00
|
|
|
background-color: @color-accountmenu-divider;
|
2015-03-06 09:41:14 +00:00
|
|
|
}
|
2014-05-14 13:24:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
nav#layout-mainmenu.navbar ul li:hover,
|
|
|
|
|
.mainmenu-collapsed li:hover {
|
|
|
|
|
a {
|
|
|
|
|
&:active, &:focus {
|
2015-03-06 09:41:14 +00:00
|
|
|
color: @color-mainmenu-active !important;
|
2014-05-14 13:24:20 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-25 22:10:25 +00:00
|
|
|
.touch .mainmenu-collapsed li a:hover {
|
|
|
|
|
color: @color-mainmenu-inactive;
|
|
|
|
|
}
|
2014-05-14 13:24:20 +00:00
|
|
|
|
|
|
|
|
nav#layout-mainmenu.navbar ul li,
|
|
|
|
|
.mainmenu-collapsed li {
|
|
|
|
|
&.active, &.highlight {
|
2015-03-06 09:41:14 +00:00
|
|
|
color: @color-mainmenu-active !important;
|
2014-05-14 13:24:20 +00:00
|
|
|
|
2015-09-25 22:10:25 +00:00
|
|
|
a {
|
|
|
|
|
color: @color-mainmenu-active !important;
|
|
|
|
|
}
|
2014-05-14 13:24:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: @color-mainmenu-active;
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body.drag {
|
|
|
|
|
nav#layout-mainmenu.navbar ul.nav,
|
|
|
|
|
.mainmenu-collapsed ul {
|
2015-03-06 09:41:14 +00:00
|
|
|
li:hover { color: @color-mainmenu-inactive; }
|
2014-05-14 13:24:20 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: @menu-breakpoint-max) {
|
|
|
|
|
nav#layout-mainmenu.navbar {
|
2016-03-02 07:05:52 +00:00
|
|
|
ul.nav { display: none; }
|
2014-05-14 13:24:20 +00:00
|
|
|
|
|
|
|
|
.menu-toggle {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
color: @color-mainmenu-active!important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mainmenu-collapsed {
|
|
|
|
|
position: fixed;
|
|
|
|
|
height: 100%;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
width: 0;
|
|
|
|
|
background: @color-mainmenu-collapsed;
|
|
|
|
|
.box-shadow(inset -5px 0 3px rgba(0,0,0,0.1));
|
|
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
> div {
|
|
|
|
|
display: relative;
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
list-style: none;
|
|
|
|
|
color: @color-mainmenu-inactive;
|
|
|
|
|
|
|
|
|
|
a {
|
2016-03-02 07:05:52 +00:00
|
|
|
.mainmenu-item-link();
|
2016-02-20 06:12:41 +00:00
|
|
|
|
2014-05-14 13:24:20 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
|
display: block;
|
|
|
|
|
padding: 15px 20px;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
2016-02-20 06:12:41 +00:00
|
|
|
|
2016-03-02 07:05:52 +00:00
|
|
|
.nav-icon {
|
2016-02-20 06:12:41 +00:00
|
|
|
margin-right: 10px;
|
|
|
|
|
|
2016-03-02 07:05:52 +00:00
|
|
|
img.svg-icon {
|
|
|
|
|
position: relative;
|
|
|
|
|
top: -3px;
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
|
width: 30px;
|
|
|
|
|
text-align: left;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
2016-02-20 06:12:41 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.active a {
|
|
|
|
|
padding: 9px 20px 11px 20px;
|
2014-05-14 13:24:20 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vertical-scroll-marker(@color-mainmenu-inactive);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body.mainmenu-open .mainmenu-collapsed ul {
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 10px;
|
|
|
|
|
bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: @menu-breakpoint-min) {
|
2016-03-02 07:05:52 +00:00
|
|
|
#layout-canvas { position: static!important; }
|
|
|
|
|
.mainmenu-collapsed { display: none!important; }
|
|
|
|
|
}
|