2015-03-03 18:00:52 +08:00
|
|
|
.dropdown-menu {
|
|
|
|
border: 0;
|
|
|
|
padding: 8px 0;
|
|
|
|
margin-top: 7px;
|
|
|
|
background: @fl-body-bg;
|
2015-03-24 12:37:38 +08:00
|
|
|
color: @fl-body-color;
|
2015-03-03 18:00:52 +08:00
|
|
|
.box-shadow(0 2px 6px @fl-shadow-color);
|
|
|
|
|
|
|
|
& > li > a {
|
2015-05-02 07:02:45 +08:00
|
|
|
padding: 8px 15px 8px 40px;
|
2015-03-03 18:00:52 +08:00
|
|
|
color: @fl-body-color;
|
2015-05-02 07:02:45 +08:00
|
|
|
|
2015-03-03 18:00:52 +08:00
|
|
|
&:hover, &:focus {
|
|
|
|
color: @fl-body-color;
|
|
|
|
background-color: @fl-body-control-bg;
|
|
|
|
}
|
2015-05-04 09:38:45 +08:00
|
|
|
&.disabled {
|
|
|
|
color: #aaa;
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
&:hover, &:focus {
|
|
|
|
color: #aaa;
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
2015-05-02 07:02:45 +08:00
|
|
|
& .icon {
|
|
|
|
float: left;
|
|
|
|
margin-left: -25px;
|
|
|
|
margin-top: 2px;
|
2015-03-03 18:00:52 +08:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
2015-03-20 08:07:15 +08:00
|
|
|
& .count {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 12px;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
& .divider {
|
|
|
|
margin: 10px 0;
|
|
|
|
background-color: @fl-body-control-bg;
|
|
|
|
}
|
|
|
|
}
|
2015-05-04 09:38:45 +08:00
|
|
|
@media @tablet, @desktop, @desktop-hd {
|
|
|
|
.dropdown-split {
|
|
|
|
&.item-count-1 {
|
|
|
|
& .btn {
|
|
|
|
border-radius: @border-radius-base !important;
|
|
|
|
}
|
|
|
|
& .dropdown-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& .dropdown-menu li:first-child {
|
|
|
|
&, & + li.divider {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// PHONES
|
2015-03-04 07:19:59 +08:00
|
|
|
@media @phone {
|
2015-03-03 18:00:52 +08:00
|
|
|
.dropdown-open {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.dropdown-menu {
|
|
|
|
margin: 0;
|
|
|
|
position: fixed;
|
|
|
|
left: 0 !important;
|
|
|
|
right: 0 !important;
|
|
|
|
width: auto !important;
|
|
|
|
bottom: -100vh;
|
|
|
|
top: auto;
|
|
|
|
padding: 0;
|
|
|
|
z-index: @zindex-modal;
|
|
|
|
display: block;
|
|
|
|
max-height: 100vh;
|
|
|
|
border-radius: 0;
|
2015-03-04 07:19:59 +08:00
|
|
|
.box-shadow(0 2px 6px @fl-shadow-color);
|
|
|
|
.translate3d(0, 0, 0);
|
|
|
|
visibility: hidden;
|
|
|
|
.transition(~"bottom 0.3s, visibility 0s 0.3s");
|
2015-03-03 18:00:52 +08:00
|
|
|
|
|
|
|
& > li > a {
|
|
|
|
background: #fff;
|
|
|
|
font-size: 16px;
|
2015-05-02 07:02:45 +08:00
|
|
|
padding: 15px 20px 15px 50px;
|
2015-03-03 18:00:52 +08:00
|
|
|
|
2015-05-02 07:02:45 +08:00
|
|
|
& .icon {
|
2015-03-03 18:00:52 +08:00
|
|
|
font-size: 16px;
|
2015-05-02 07:02:45 +08:00
|
|
|
margin-left: -30px;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
& .divider {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-05-02 07:02:45 +08:00
|
|
|
& > .active > a {
|
|
|
|
color: #fff !important;
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
|
|
|
|
.open & {
|
|
|
|
bottom: 0;
|
2015-03-04 07:19:59 +08:00
|
|
|
visibility: visible;
|
|
|
|
transition-delay: 0s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.dropdown-backdrop {
|
|
|
|
background: fade(@fl-body-primary-color, 90%);
|
|
|
|
opacity: 0;
|
|
|
|
.transition(~"opacity 0.3s");
|
2015-03-03 18:00:52 +08:00
|
|
|
|
2015-03-04 07:19:59 +08:00
|
|
|
.open & {
|
|
|
|
opacity: 1;
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------
|
|
|
|
// Mixins
|
|
|
|
|
|
|
|
.expand-dropdown() {
|
|
|
|
& .dropdown-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
& .dropdown-menu {
|
|
|
|
display: block;
|
|
|
|
border: 0;
|
|
|
|
width: auto;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
min-width: 0;
|
|
|
|
float: none;
|
|
|
|
position: static;
|
|
|
|
background: none;
|
|
|
|
.box-shadow(none);
|
|
|
|
}
|
|
|
|
}
|
2015-03-12 10:29:32 +08:00
|
|
|
|
|
|
|
.nav-list() {
|
|
|
|
& > li > a {
|
2015-05-02 07:02:45 +08:00
|
|
|
padding: 8px 0 8px 30px;
|
2015-03-12 10:29:32 +08:00
|
|
|
color: @fl-body-muted-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: none;
|
|
|
|
color: @link-hover-color;
|
|
|
|
}
|
|
|
|
|
2015-05-02 07:02:45 +08:00
|
|
|
& .icon {
|
|
|
|
float: left;
|
|
|
|
margin-left: -30px;
|
|
|
|
margin-top: 1px;
|
2015-03-12 10:29:32 +08:00
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
& > li.active > a {
|
|
|
|
background: none;
|
|
|
|
color: @fl-body-primary-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-03-28 09:03:18 +08:00
|
|
|
& > li.divider {
|
|
|
|
background: none;
|
|
|
|
}
|
2015-03-12 10:29:32 +08:00
|
|
|
}
|