You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
2.9 KiB
Plaintext
110 lines
2.9 KiB
Plaintext
7 years ago
|
@import (once) "./colortheme.less";
|
||
|
|
||
|
/* The container <div> - needed to position the dropdown content */
|
||
|
.dropdown_main () {
|
||
|
.cp-dropdown-container {
|
||
|
@dropdown_font: @colortheme_app-font-size @colortheme_font;
|
||
|
position: relative;
|
||
|
display: inline-block;
|
||
|
|
||
|
.fa {
|
||
|
font-family: FontAwesome;
|
||
|
}
|
||
|
|
||
|
button {
|
||
|
.fa-caret-down{
|
||
|
margin-right: 0px;
|
||
|
margin-left: 5px;
|
||
|
}
|
||
|
* {
|
||
|
.unselectable();
|
||
|
cursor: default;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.cp-dropdown-content {
|
||
|
display: none;
|
||
|
position: absolute;
|
||
|
background-color: @colortheme_dropdown-bg;
|
||
|
min-width: 250px;
|
||
|
box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
|
||
|
z-index: 1000;
|
||
|
max-height: 300px;
|
||
|
overflow-y: auto;
|
||
|
font: @dropdown_font;
|
||
|
line-height: 1em;
|
||
|
|
||
|
&.cp-dropdown-left {
|
||
|
right: 0;
|
||
|
}
|
||
|
|
||
|
&:hover {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
color: @colortheme_dropdown-color;
|
||
|
padding: 5px 16px;
|
||
|
text-decoration: none;
|
||
|
display: flex;
|
||
|
cursor: pointer;
|
||
|
-webkit-user-select: none;
|
||
|
-moz-user-select: none;
|
||
|
-ms-user-select: none;
|
||
|
user-select: none;
|
||
|
float: none;
|
||
|
text-align: left;
|
||
|
font: @dropdown_font;
|
||
|
line-height: 1em;
|
||
|
|
||
|
|
||
|
.fa {
|
||
|
width: 20px;
|
||
|
text-align: center;
|
||
|
margin-right: 5px !important;
|
||
|
}
|
||
|
|
||
|
&:hover {
|
||
|
background-color: @colortheme_dropdown-bg-hover;
|
||
|
color: @colortheme_dropdown-color;
|
||
|
}
|
||
|
|
||
|
&.cp-dropdown-element-active {
|
||
|
background-color: @colortheme_dropdown-bg-active;
|
||
|
color: @colortheme_dropdown-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
margin: 5px 0px;
|
||
|
height: 1px;
|
||
|
background: #bbb;
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
min-width: 160px;
|
||
|
padding: 5px;
|
||
|
margin: 0;
|
||
|
white-space: normal;
|
||
|
text-align: left;
|
||
|
color: black;
|
||
|
font-size: 14px;
|
||
|
* {
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
h2 {
|
||
|
color: black;
|
||
|
font-weight: bold;
|
||
|
text-align: center;
|
||
|
background-color: #EEEEEE;
|
||
|
padding: 5px 0px;
|
||
|
margin: 5px 0px;
|
||
|
font-size: 16px;
|
||
|
white-space: normal;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|