forked from t0m/select2-bootstrap-css
-
Notifications
You must be signed in to change notification settings - Fork 1
/
select2-bootstrap.css
142 lines (121 loc) · 3.08 KB
/
select2-bootstrap.css
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/**
* Select2 Bootstrap CSS 1.0
* Compatible with select2 3.4.0 and bootstrap 2.3.1
* MIT License
*/
.select2-container {
vertical-align: middle;
}
.select2-container .select2-choice,
.select2-container-multi .select2-choices {
height: 28px;
line-height: 29px;
border: 1px solid #ccc;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
background: none;
background-color: #fff;
filter: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.select2-container .select2-choice div,
.select2-container.select2-container-disabled .select2-choice div {
border-left: none;
background: none;
filter: none;
}
.control-group.error [class^="select2-choice"] {
border-color: #B94A48;
}
.select2-container-multi .select2-choices .select2-search-field {
height: 28px;
line-height: 27px;
}
.select2-container-active .select2-choice,
.select2-container-multi.select2-container-active .select2-choices,
.select2-drop.select2-drop-active {
border-color: rgba(82, 168, 236, 0.8);
outline: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.select2-container .select2-choices .select2-search-choice {
display: inline-block;
padding: 4px 4px 4px 14px;
font-size: 11.844px;
font-weight: bold;
line-height: 14px;
color: #fff;
vertical-align: baseline;
white-space: nowrap;
text-shadow: none;
background: #999;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
border: 0;
}
.select2-container .select2-choices .select2-search-choice-focus {
opacity: 0.5;
}
.select2-search-choice-close, .select2-search-choice-close:hover {
background: none;
font: inherit;
font-size: 15px;
color: inherit;
text-decoration: none;
}
.select2-search-choice-close:hover {
opacity: 0.7;
}
.select2-search-choice-close:after {
content: "\00D7";
}
.select2-container .select2-choices .select2-search-field .select2-input {
padding: 0 5px;
}
[class^="input-"] .select2-container {
font-size: 14px;
}
.input-prepend [class^="select2-choice"] {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.input-append [class^="select2-choice"] {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.select2-dropdown-open [class^="select2-choice"] {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
[class^="input-"] [class^="select2-choice"] > div {
display: none;
}
[class^="input-"] .select2-offscreen {
position: absolute;
}
.select2-drop {
border: 1px solid #ccc;
border-top: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
/**
* This stops the quick flash when a native selectbox is shown and
* then replaced by a select2 input when javascript kicks in. This can be
* removed if javascript is not present
*/
select.select2 {
height: 28px;
visibility: hidden;
}