bootstrap-combobox-rails 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/lib/bootstrap-combobox-rails.rb +11 -0
- data/lib/bootstrap-combobox-rails/version.rb +7 -0
- data/vendor/assets/README.md +28 -0
- data/vendor/assets/javascripts/bootstrap-combobox.js +243 -0
- data/vendor/assets/javascripts/tests/index.html +31 -0
- data/vendor/assets/javascripts/tests/unit/bootstrap-combobox.js +297 -0
- data/vendor/assets/javascripts/tests/vendor/bootstrap-typeahead.js +335 -0
- data/vendor/assets/javascripts/tests/vendor/jquery.js +9597 -0
- data/vendor/assets/javascripts/tests/vendor/qunit.css +244 -0
- data/vendor/assets/javascripts/tests/vendor/qunit.js +2152 -0
- data/vendor/assets/less/combobox.less +102 -0
- data/vendor/assets/stylesheets/bootstrap-combobox.css +150 -0
- metadata +76 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
.combobox-container {
|
|
2
|
+
.input-append();
|
|
3
|
+
select {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
width: 0;
|
|
6
|
+
height: 0;
|
|
7
|
+
border: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
text-indent: -99999px;
|
|
11
|
+
*text-indent: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.form-search .combobox-container,
|
|
16
|
+
.form-inline .combobox-container {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
vertical-align: top;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.form-search .combobox-container .add-on,
|
|
23
|
+
.form-inline .combobox-container .add-on {
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.combobox-selected {
|
|
28
|
+
.combobox-clear {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
}
|
|
31
|
+
.caret {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.combobox-clear {
|
|
37
|
+
display: none;
|
|
38
|
+
width: 14px;
|
|
39
|
+
height: 14px;
|
|
40
|
+
line-height: 14px;
|
|
41
|
+
vertical-align: top;
|
|
42
|
+
.opacity(30);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.dropdown:hover .combobox-clear,
|
|
46
|
+
.open.dropdown .combobox-clear {
|
|
47
|
+
.opacity(100);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.btn .combobox-clear {
|
|
51
|
+
margin-top: 1px;
|
|
52
|
+
margin-left: 1px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.btn .combobox-clear [class^="icon-"] {
|
|
56
|
+
line-height: 1.4em;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.btn:hover .combobox-clear, .open.btn-group .combobox-clear {
|
|
60
|
+
.opacity(100);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.typeahead-long {
|
|
64
|
+
max-height: 300px;
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.control-group.error {
|
|
69
|
+
.combobox-container {
|
|
70
|
+
.add-on {
|
|
71
|
+
color: #B94A48;
|
|
72
|
+
border-color: #B94A48;
|
|
73
|
+
}
|
|
74
|
+
.caret {
|
|
75
|
+
border-top-color: #B94A48;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.control-group.warning {
|
|
81
|
+
.combobox-container {
|
|
82
|
+
.add-on {
|
|
83
|
+
color: #C09853;
|
|
84
|
+
border-color: #C09853;
|
|
85
|
+
}
|
|
86
|
+
.caret {
|
|
87
|
+
border-top-color: #C09853;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.control-group.success {
|
|
93
|
+
.combobox-container {
|
|
94
|
+
.add-on {
|
|
95
|
+
color: #468847;
|
|
96
|
+
border-color: #468847;
|
|
97
|
+
}
|
|
98
|
+
.caret {
|
|
99
|
+
border-top-color: #468847;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
.combobox-container {
|
|
2
|
+
margin-bottom: 5px;
|
|
3
|
+
*zoom: 1;
|
|
4
|
+
}
|
|
5
|
+
.combobox-container:before,
|
|
6
|
+
.combobox-container:after {
|
|
7
|
+
display: table;
|
|
8
|
+
content: "";
|
|
9
|
+
}
|
|
10
|
+
.combobox-container:after {
|
|
11
|
+
clear: both;
|
|
12
|
+
}
|
|
13
|
+
.combobox-container input,
|
|
14
|
+
.combobox-container .uneditable-input {
|
|
15
|
+
-webkit-border-radius: 0 3px 3px 0;
|
|
16
|
+
-moz-border-radius: 0 3px 3px 0;
|
|
17
|
+
border-radius: 0 3px 3px 0;
|
|
18
|
+
}
|
|
19
|
+
.combobox-container input:focus,
|
|
20
|
+
.combobox-container .uneditable-input:focus {
|
|
21
|
+
position: relative;
|
|
22
|
+
z-index: 2;
|
|
23
|
+
}
|
|
24
|
+
.combobox-container .uneditable-input {
|
|
25
|
+
border-left-color: #ccc;
|
|
26
|
+
}
|
|
27
|
+
.combobox-container .add-on {
|
|
28
|
+
float: left;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: auto;
|
|
31
|
+
min-width: 16px;
|
|
32
|
+
height: inherit !important;
|
|
33
|
+
margin-right: -1px;
|
|
34
|
+
padding: 4px 5px;
|
|
35
|
+
font-weight: normal;
|
|
36
|
+
color: #999999;
|
|
37
|
+
text-align: center;
|
|
38
|
+
text-shadow: 0 1px 0 #ffffff;
|
|
39
|
+
background-color: #f5f5f5;
|
|
40
|
+
border: 1px solid #ccc;
|
|
41
|
+
-webkit-border-radius: 3px 0 0 3px;
|
|
42
|
+
-moz-border-radius: 3px 0 0 3px;
|
|
43
|
+
border-radius: 3px 0 0 3px;
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
.combobox-container .active {
|
|
47
|
+
background-color: #a9dba9;
|
|
48
|
+
border-color: #46a546;
|
|
49
|
+
}
|
|
50
|
+
.combobox-container input,
|
|
51
|
+
.combobox-container .uneditable-input {
|
|
52
|
+
float: left;
|
|
53
|
+
-webkit-border-radius: 3px 0 0 3px;
|
|
54
|
+
-moz-border-radius: 3px 0 0 3px;
|
|
55
|
+
border-radius: 3px 0 0 3px;
|
|
56
|
+
}
|
|
57
|
+
.combobox-container .uneditable-input {
|
|
58
|
+
border-left-color: #eee;
|
|
59
|
+
border-right-color: #ccc;
|
|
60
|
+
}
|
|
61
|
+
.combobox-container .add-on {
|
|
62
|
+
margin-right: 0;
|
|
63
|
+
margin-left: -1px;
|
|
64
|
+
-webkit-border-radius: 0 3px 3px 0;
|
|
65
|
+
-moz-border-radius: 0 3px 3px 0;
|
|
66
|
+
border-radius: 0 3px 3px 0;
|
|
67
|
+
}
|
|
68
|
+
.combobox-container input:first-child {
|
|
69
|
+
*margin-left: -160px;
|
|
70
|
+
}
|
|
71
|
+
.combobox-container input:first-child + .add-on {
|
|
72
|
+
*margin-left: -21px;
|
|
73
|
+
}
|
|
74
|
+
.combobox-container select {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
width: 0;
|
|
77
|
+
height: 0;
|
|
78
|
+
border: 0;
|
|
79
|
+
padding: 0;
|
|
80
|
+
margin: 0;
|
|
81
|
+
text-indent: -99999px;
|
|
82
|
+
*text-indent: 0;
|
|
83
|
+
}
|
|
84
|
+
.form-search .combobox-container,
|
|
85
|
+
.form-inline .combobox-container {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
margin-bottom: 0;
|
|
88
|
+
vertical-align: top;
|
|
89
|
+
}
|
|
90
|
+
.form-search .combobox-container .add-on,
|
|
91
|
+
.form-inline .combobox-container .add-on {
|
|
92
|
+
vertical-align: middle;
|
|
93
|
+
}
|
|
94
|
+
.combobox-selected .combobox-clear {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
}
|
|
97
|
+
.combobox-selected .caret {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
.combobox-clear {
|
|
101
|
+
display: none;
|
|
102
|
+
width: 14px;
|
|
103
|
+
height: 14px;
|
|
104
|
+
line-height: 14px;
|
|
105
|
+
vertical-align: top;
|
|
106
|
+
opacity: 0.3;
|
|
107
|
+
filter: alpha(opacity=30);
|
|
108
|
+
}
|
|
109
|
+
.dropdown:hover .combobox-clear,
|
|
110
|
+
.open.dropdown .combobox-clear {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
filter: alpha(opacity=100);
|
|
113
|
+
}
|
|
114
|
+
.btn .combobox-clear {
|
|
115
|
+
margin-top: 1px;
|
|
116
|
+
margin-left: 1px;
|
|
117
|
+
}
|
|
118
|
+
.btn:hover .combobox-clear,
|
|
119
|
+
.open.btn-group .combobox-clear {
|
|
120
|
+
opacity: 1;
|
|
121
|
+
filter: alpha(opacity=100);
|
|
122
|
+
}
|
|
123
|
+
.typeahead-long {
|
|
124
|
+
max-height: 300px;
|
|
125
|
+
overflow-y: auto;
|
|
126
|
+
}
|
|
127
|
+
.control-group.error .combobox-container .add-on {
|
|
128
|
+
color: #B94A48;
|
|
129
|
+
border-color: #B94A48;
|
|
130
|
+
}
|
|
131
|
+
.control-group.error .combobox-container .caret {
|
|
132
|
+
border-top-color: #B94A48;
|
|
133
|
+
}
|
|
134
|
+
.control-group.warning .combobox-container .add-on {
|
|
135
|
+
color: #C09853;
|
|
136
|
+
border-color: #C09853;
|
|
137
|
+
}
|
|
138
|
+
.control-group.warning .combobox-container .caret {
|
|
139
|
+
border-top-color: #C09853;
|
|
140
|
+
}
|
|
141
|
+
.control-group.success .combobox-container .add-on {
|
|
142
|
+
color: #468847;
|
|
143
|
+
border-color: #468847;
|
|
144
|
+
}
|
|
145
|
+
.control-group.success .combobox-container .caret {
|
|
146
|
+
border-top-color: #468847;
|
|
147
|
+
}
|
|
148
|
+
.btn .combobox-clear [class^="icon-"] {
|
|
149
|
+
line-height: 1.4em;
|
|
150
|
+
}
|
metadata
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: bootstrap-combobox-rails
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- denishaskin
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: railties
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '3.1'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ~>
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '3.1'
|
|
30
|
+
description: Simple wrapping of bootstrap-combobox in a gem for easy deployment &
|
|
31
|
+
maintenance. Note this uses a forked version of bootstrap-combobox
|
|
32
|
+
email:
|
|
33
|
+
- denis@constantorbit.com
|
|
34
|
+
executables: []
|
|
35
|
+
extensions: []
|
|
36
|
+
extra_rdoc_files: []
|
|
37
|
+
files:
|
|
38
|
+
- lib/bootstrap-combobox-rails/version.rb
|
|
39
|
+
- lib/bootstrap-combobox-rails.rb
|
|
40
|
+
- vendor/assets/javascripts/bootstrap-combobox.js
|
|
41
|
+
- vendor/assets/javascripts/tests/index.html
|
|
42
|
+
- vendor/assets/javascripts/tests/unit/bootstrap-combobox.js
|
|
43
|
+
- vendor/assets/javascripts/tests/vendor/bootstrap-typeahead.js
|
|
44
|
+
- vendor/assets/javascripts/tests/vendor/jquery.js
|
|
45
|
+
- vendor/assets/javascripts/tests/vendor/qunit.css
|
|
46
|
+
- vendor/assets/javascripts/tests/vendor/qunit.js
|
|
47
|
+
- vendor/assets/less/combobox.less
|
|
48
|
+
- vendor/assets/README.md
|
|
49
|
+
- vendor/assets/stylesheets/bootstrap-combobox.css
|
|
50
|
+
- LICENSE.txt
|
|
51
|
+
- README.md
|
|
52
|
+
homepage: ''
|
|
53
|
+
licenses: []
|
|
54
|
+
post_install_message:
|
|
55
|
+
rdoc_options: []
|
|
56
|
+
require_paths:
|
|
57
|
+
- lib
|
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
|
+
none: false
|
|
60
|
+
requirements:
|
|
61
|
+
- - ! '>='
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0'
|
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
66
|
+
requirements:
|
|
67
|
+
- - ! '>='
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
requirements: []
|
|
71
|
+
rubyforge_project:
|
|
72
|
+
rubygems_version: 1.8.25
|
|
73
|
+
signing_key:
|
|
74
|
+
specification_version: 3
|
|
75
|
+
summary: Simple wrapping of bootstrap-combobox in a gem
|
|
76
|
+
test_files: []
|