forked from wxwvx/_simpleselect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simpleselect.less
executable file
·106 lines (91 loc) · 1.76 KB
/
simpleselect.less
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
.selectbox (@select-width, @select-height, @select-btn-width, @select-btn-picture) {
.inlineblock;
margin-left: 3px;
&.opened {
.selectbox__display {
border-bottom: 0 none;
.border-radius(3px 3px 0 0);
padding-bottom: 1px;
&:hover {
background: #edecec;
}
}
.selectbox__dropdown {
display: block;
}
}
.selectbox__inner {
position: relative;
}
.selectbox__display {
width: @select-width;
border: 1px solid #bdbdbd;
.border-radius(3px);
background: #ffffff;
.clearfix;
cursor: pointer;
overflow: hidden;
position: relative;
}
.selectbox__display-title {
float: left;
width: @select-width - @select-btn-width - 5;
}
.selectbox__title-text {
font-size: 12px;
line-height: @select-height;
color: #686868;
padding-left: 11px;
height: @select-height;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.selectbox__display-btn {
width: @select-btn-width;
float: left;
height: @select-height;
background: transparent;
top: 0;
right: 0;
position: absolute;
}
.selectbox__btn-icon {
width: @select-btn-width;
height: @select-height;
background: @select-btn-picture center center no-repeat;
}
.selectbox__dropdown {
position: absolute;
top: 100%;
left: 0px;
right: 0px;
background: #ffffff;
border: 1px solid #bdbdbd;
border-top: 0 none;
.border-radius(0 0 5px 5px);
overflow: hidden;
display: none;
z-index: 1000;
}
.selectbox__dropdown-item {
&.selected {
.selectbox__item-link {
background: #edecec;
}
}
}
.selectbox__item-link {
font-size: 12px;
line-height: 14px;
color: #686868;
padding-left: 13px;
padding-top: 5px;
padding-bottom: 5px;
cursor: pointer;
display: block;
&:hover {
background: #edecec;
}
}
}