This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +38
-22
lines changed Expand file tree Collapse file tree 5 files changed +38
-22
lines changed Original file line number Diff line number Diff line change
1
+ /* Style when highlighting a search. */
1
2
.ui-select-highlight {
2
3
font-weight : bold;
3
4
}
5
+
6
+ /* Fix input width for Selectize theme */
7
+ .selectize-control > .selectize-input > input {
8
+ width : 100% ;
9
+ }
10
+
11
+ /* Fix dropdown width for Selectize theme */
12
+ .selectize-control > .selectize-dropdown {
13
+ width : 100% ;
14
+ }
Original file line number Diff line number Diff line change 44
44
color : # 333 ;
45
45
}
46
46
47
- .selectize-dropdown {
48
- width : 100% ;
47
+ .selectize-control > .selectize-dropdown {
49
48
top : 36px ;
50
49
}
51
50
</ style >
58
57
59
58
< p > Select2 theme (default):</ p >
60
59
< ui-select ng-model ="person.selected " style ="width: 300px; ">
61
- < match placeholder ="Pick one ... "> {{$select.selected.name}}</ match >
60
+ < match placeholder ="Select or search a person in the list ... "> {{$select.selected.name}}</ match >
62
61
< choices data ="people | filter: $select.search ">
63
62
< div ng-bind-html ="trustAsHtml((item.name | highlight: $select.search)) "> </ div >
64
- < div > {{ item.email}} </ div >
63
+ < small ng-bind-html =" trustAsHtml(( item.email | highlight: $select.search)) " > </ small >
65
64
</ choices >
66
65
</ ui-select >
67
66
68
67
< p > Selectize theme:</ p >
69
68
< ui-select ng-model ="person.selected " theme ="selectize " style ="width: 300px; ">
70
- < match placeholder ="Pick one ... "> {{$select.selected.name}}</ match >
69
+ < match placeholder ="Select or search a person in the list ... "> {{$select.selected.name}}</ match >
71
70
< choices data ="people | filter: $select.search ">
72
71
< div ng-bind-html ="trustAsHtml((item.name | highlight: $select.search)) "> </ div >
73
- < div > {{ item.email}} </ div >
72
+ < small ng-bind-html =" trustAsHtml(( item.email | highlight: $select.search)) " > </ small >
74
73
</ choices >
75
74
</ ui-select >
76
75
</ body >
Original file line number Diff line number Diff line change 28
28
29
29
<!--
30
30
Select2 theme
31
- Bootstrap 3 theme from http://fk.github.io/select2-bootstrap-css/
32
- GitHub project: https://github.com/fk/select2-bootstrap-css
31
+ Bootstrap 3 theme from https://github.com/fk/select2-bootstrap-css
33
32
-->
34
33
< link rel ="stylesheet " href ="http://cdnjs.cloudflare.com/ajax/libs/select2/3.4.5/select2.css ">
35
34
< link rel ="stylesheet " href ="http://fk.github.io/select2-bootstrap-css/css/select2-bootstrap.css ">
55
54
< div class ="col-sm-6 ">
56
55
57
56
< ui-select ng-model ="person.selected " theme ="select2 " class ="form-control ">
58
- < match placeholder ="Pick one ... "> {{$select.selected.name}}</ match >
57
+ < match placeholder ="Select or search a person in the list ... "> {{$select.selected.name}}</ match >
59
58
< choices data ="people | filter: $select.search ">
60
59
< div ng-bind-html ="trustAsHtml((item.name | highlight: $select.search)) "> </ div >
61
60
< small ng-bind-html ="trustAsHtml((item.email | highlight: $select.search)) "> </ small >
71
70
< div class ="input-group select2-bootstrap-append ">
72
71
73
72
< ui-select ng-model ="person.selected " theme ="select2 " class ="form-control ">
74
- < match placeholder ="Pick one ... "> {{$select.selected.name}}</ match >
73
+ < match placeholder ="Select or search a person in the list ... "> {{$select.selected.name}}</ match >
75
74
< choices data ="people | filter: $select.search ">
76
75
< span ng-bind-html ="trustAsHtml((item.name | highlight: $select.search)) "> </ span >
77
76
< small ng-bind-html ="trustAsHtml((item.email | highlight: $select.search)) "> </ small >
Original file line number Diff line number Diff line change 37
37
padding : 15px ;
38
38
}
39
39
40
- .selectize-dropdown {
41
- width : 100% ;
42
- top : 34px ;
43
- }
44
-
45
40
.selectize-control {
46
- /* Selectize is positionned too high */
41
+ /* Align Selectize with input-group-btn */
47
42
top : 2px ;
48
43
}
49
44
50
- /**
51
- * Reset right rounded corners
52
- * See Bootstrap input-groups.less
53
- */
45
+ .selectize-control > .selectize-dropdown {
46
+ top : 34px ;
47
+ }
48
+
49
+ /* Reset right rounded corners, see Bootstrap input-groups.less */
54
50
.input-group > .selectize-control > .selectize-input {
55
51
border-bottom-right-radius : 0 ;
56
52
border-top-right-radius : 0 ;
73
69
< div class ="col-sm-6 ">
74
70
75
71
< ui-select ng-model ="person.selected " theme ="selectize ">
76
- < match placeholder ="Pick one ... "> {{$select.selected.name}}</ match >
72
+ < match placeholder ="Select or search a person in the list ... "> {{$select.selected.name}}</ match >
77
73
< choices data ="people | filter: $select.search ">
78
74
< div ng-bind-html ="trustAsHtml((item.name | highlight: $select.search)) "> </ div >
79
75
< small ng-bind-html ="trustAsHtml((item.email | highlight: $select.search)) "> </ small >
89
85
< div class ="input-group ">
90
86
91
87
< ui-select ng-model ="person.selected " theme ="selectize ">
92
- < match placeholder ="Pick one ... "> {{$select.selected.name}}</ match >
88
+ < match placeholder ="Select or search a person in the list ... "> {{$select.selected.name}}</ match >
93
89
< choices data ="people | filter: $select.search ">
94
90
< span ng-bind-html ="trustAsHtml((item.name | highlight: $select.search)) "> </ span >
95
91
< small ng-bind-html ="trustAsHtml((item.email | highlight: $select.search)) "> </ small >
Original file line number Diff line number Diff line change
1
+ /* Style when highlighting a search. */
1
2
.ui-select-highlight {
2
3
font-weight : bold;
3
4
}
5
+
6
+ /* Fix input width for Selectize theme */
7
+ .selectize-control > .selectize-input > input {
8
+ width : 100% ;
9
+ }
10
+
11
+ /* Fix dropdown width for Selectize theme */
12
+ .selectize-control > .selectize-dropdown {
13
+ width : 100% ;
14
+ }
You can’t perform that action at this time.
0 commit comments