_dropdown.scss
2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.dropdown-menu{
visibility: hidden;
margin: 0;
padding: 0;
border-radius: $border-radius-extreme;
display: block;
z-index: 9000;
position: absolute;
@include opacity(0);
@include box-shadow($dropdown-shadow);
.open &{
@include opacity(1);
visibility: visible;
}
.select &{
border-radius: $border-radius-bottom;
@include box-shadow(none);
@include transform-origin($select-coordinates);
@include transform-scale(1);
@include transition($fast-transition-time, $transition-linear);
margin-top: -20px;
}
.select.open &{
margin-top: -1px;
}
> li > a {
padding: $padding-base-vertical $padding-base-horizontal;
color: #333333;
img{
margin-top: -3px;
}
}
> li > a:focus{
outline: 0 !important;
}
.btn-group.select &{
min-width: 100%;
}
> li:first-child > a{
border-top-left-radius: $border-radius-extreme;
border-top-right-radius: $border-radius-extreme;
}
> li:last-child > a{
border-bottom-left-radius: $border-radius-extreme;
border-bottom-right-radius: $border-radius-extreme;
}
.select & > li:first-child > a{
border-radius: 0;
border-bottom: 0 none;
}
> li > a:hover,
> li > a:focus {
background-color: $smoke-bg;
color: #333333;
opacity: 1;
text-decoration: none;
}
&.dropdown-blue > li > a:hover,
&.dropdown-blue > li > a:focus{
background-color: $light-blue;
}
&.dropdown-azure > li > a:hover,
&.dropdown-azure > li > a:focus{
background-color: $light-azure;
}
&.ct-green > li > a:hover,
&.ct-green > li > a:focus{
background-color: $light-green;
}
&.dropdown-orange > li > a:hover,
&.dropdown-orange > li > a:focus{
background-color: $light-orange;
}
&.dropdown-red > li > a:hover,
&.dropdown-red > li > a:focus{
background-color: $light-red;
}
}
.dropdown-with-icons{
> li > a{
padding-left: 0px;
line-height: 28px;
}
i{
text-align: center;
line-height: 28px;
float: left;
&[class^="pe-"]{
font-size: 24px;
width: 46px;
}
&[class^="fa"]{
font-size: 14px;
width: 38px;
}
}
}
//fix bug for the select items in btn-group
.btn-group.select{
overflow: hidden;
}
.btn-group.select.open{
overflow: visible;
}