2015-04-09 15:46:29 +02:00
|
|
|
/**
|
2017-01-11 16:24:33 +01:00
|
|
|
* Copyright JS Foundation and other contributors, http://js.foundation
|
2015-04-09 15:46:29 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
**/
|
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
.red-ui-menu-dropdown {
|
2019-05-09 20:22:40 +02:00
|
|
|
font-family: $primary-font;
|
|
|
|
font-size: $primary-font-size;
|
2019-05-02 18:03:42 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
2019-05-07 15:46:44 +02:00
|
|
|
width: 200px;
|
2019-05-02 18:03:42 +02:00
|
|
|
left: 0;
|
|
|
|
z-index: 1000;
|
|
|
|
display: none;
|
|
|
|
float: left;
|
|
|
|
margin: 2px 0 0;
|
2019-05-07 15:46:44 +02:00
|
|
|
margin-left: 0px !important;
|
|
|
|
padding: 5px 0;
|
2019-05-02 18:03:42 +02:00
|
|
|
list-style: none;
|
2019-05-07 15:46:44 +02:00
|
|
|
background: $menuBackground;
|
|
|
|
border: 1px solid $secondary-border-color;
|
2019-05-15 14:54:29 +02:00
|
|
|
box-shadow: 0 5px 10px $shadow;
|
2019-05-02 18:03:42 +02:00
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
&.pull-right {
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
}
|
2019-05-02 18:03:42 +02:00
|
|
|
|
2019-05-16 23:32:28 +02:00
|
|
|
.red-ui-menu-divider {
|
2019-05-07 15:46:44 +02:00
|
|
|
height: 1px;
|
|
|
|
margin: 9px 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-color: $menuDivider;
|
|
|
|
}
|
2019-05-21 16:26:15 +02:00
|
|
|
& > li > a,
|
|
|
|
& > li > a:focus {
|
2019-05-07 15:46:44 +02:00
|
|
|
display: block;
|
2019-05-15 14:54:29 +02:00
|
|
|
padding: 4px 0 4px 32px;
|
2019-05-07 15:46:44 +02:00
|
|
|
clear: both;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 20px;
|
|
|
|
color: $menuColor;
|
|
|
|
white-space: normal !important;
|
2019-05-21 16:26:15 +02:00
|
|
|
outline: none;
|
2019-05-07 15:46:44 +02:00
|
|
|
}
|
2019-05-02 18:03:42 +02:00
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
& > .active > a,
|
|
|
|
& > .active > a:hover,
|
|
|
|
& > .active > a:focus {
|
|
|
|
color: $menuActiveColor;
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: $menuActiveBackground;
|
|
|
|
outline: 0;
|
|
|
|
}
|
2019-05-02 18:03:42 +02:00
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
& > .disabled > a,
|
|
|
|
& > .disabled > a:hover,
|
|
|
|
& > .disabled > a:focus {
|
|
|
|
color: $menuDisabledColor;
|
2021-09-07 12:47:04 +02:00
|
|
|
.red-ui-popover-key {
|
|
|
|
color: $menuDisabledColor;
|
|
|
|
border-color: $menuDisabledColor;
|
|
|
|
}
|
2019-05-07 15:46:44 +02:00
|
|
|
}
|
2019-05-02 18:03:42 +02:00
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
& > .disabled > a:hover,
|
|
|
|
& > .disabled > a:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: default;
|
|
|
|
background-color: transparent;
|
|
|
|
background-image: none;
|
|
|
|
}
|
2019-05-02 18:03:42 +02:00
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
a {
|
2019-08-12 16:01:54 +02:00
|
|
|
img {
|
|
|
|
max-width: 14px;
|
|
|
|
}
|
2019-05-07 15:46:44 +02:00
|
|
|
.fa {
|
|
|
|
width: 20px;
|
|
|
|
margin-left: -25px;
|
|
|
|
margin-top: 3px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.fa-check-square {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.fa-square {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
&.active {
|
|
|
|
.fa-check-square {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.fa-square {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2021-09-07 12:47:04 +02:00
|
|
|
.red-ui-popover-key {
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
font-size: 13px;
|
|
|
|
float: right;
|
|
|
|
color: $menuColor;
|
|
|
|
border-color: $menuColor;
|
|
|
|
}
|
2019-05-07 15:46:44 +02:00
|
|
|
}
|
2019-05-02 18:03:42 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
.pull-right > .red-ui-menu-dropdown {
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
2019-05-02 18:03:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
.red-ui-menu-dropdown > li > a:hover,
|
|
|
|
.red-ui-menu-dropdown > li > a:focus,
|
|
|
|
.red-ui-menu-dropdown-submenu:hover > a,
|
|
|
|
.red-ui-menu-dropdown-submenu:focus > a {
|
|
|
|
color: $menuHoverColor;
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: $menuHoverBackground;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
.red-ui-menu-dropdown-submenu {
|
|
|
|
position: relative;
|
|
|
|
& > .red-ui-menu-dropdown {
|
|
|
|
top: 0;
|
|
|
|
left: 100%;
|
|
|
|
margin-top: -6px;
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
|
|
|
&:hover > .red-ui-menu-dropdown {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
& > a:after {
|
|
|
|
display: block;
|
|
|
|
float: right;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-right: -10px;
|
|
|
|
border-color: transparent;
|
|
|
|
border-left-color: $menuCaret;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 5px 0 5px 5px;
|
|
|
|
content: " ";
|
|
|
|
}
|
|
|
|
&.pull-left {
|
|
|
|
float: none;
|
|
|
|
& > .red-ui-menu-dropdown {
|
|
|
|
left: -100%;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
2019-01-11 00:30:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
.red-ui-menu-dropdown-submenu>a:after {
|
2015-04-09 15:46:29 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2019-05-07 15:46:44 +02:00
|
|
|
.red-ui-menu-dropdown-submenu>a:before {
|
2015-04-09 15:46:29 +02:00
|
|
|
display: block;
|
|
|
|
float: left;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-left: -30px;
|
2019-05-07 15:46:44 +02:00
|
|
|
/* Caret Arrow */
|
2015-04-09 15:46:29 +02:00
|
|
|
border-color: transparent;
|
2019-05-07 15:46:44 +02:00
|
|
|
border-right-color: $menuCaret;
|
2015-04-09 15:46:29 +02:00
|
|
|
border-style: solid;
|
|
|
|
border-width: 5px 5px 5px 0;
|
|
|
|
content: " ";
|
|
|
|
}
|
|
|
|
|
2019-05-07 15:46:44 +02:00
|
|
|
.red-ui-menu-dropdown-submenu.disabled > a:before {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-right-color: $menuCaret;
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2020-06-08 13:01:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Menu NG
|
|
|
|
ul.red-ui-menu:not(.red-ui-menu-dropdown) {
|
|
|
|
font-family: $primary-font;
|
|
|
|
font-size: 12px;
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
li a {
|
|
|
|
display: block;
|
|
|
|
padding: 4px 8px 4px 16px;
|
|
|
|
clear: both;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 20px;
|
|
|
|
color: $menuColor;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover,&:focus {
|
|
|
|
color: $menuHoverColor;
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: $menuHoverBackground;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.red-ui-menu-compact {
|
|
|
|
font-size: 12px;
|
|
|
|
li a {
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-07 12:47:04 +02:00
|
|
|
}
|