bootstrap-typeahead-rails 0.9.3.1 → 0.9.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65508efb6780c8caf243ee3fda979d86d74085c2
4
- data.tar.gz: 3313d8d771b230540d52380077e6cbb33ad93942
3
+ metadata.gz: ad02c037898d98a208dea3b6652de8e144af5095
4
+ data.tar.gz: 29ad90f2f2fb44d67416679f1c41b0f5c460e649
5
5
  SHA512:
6
- metadata.gz: 8880b0e48e1a95c9f5dae8b51eb7bb91668f5177f9731982497e5e84d087aa2eb52775788075331759ea509ed886508c2ff885c455e85916dccf6ea9c2fee7fa
7
- data.tar.gz: b397f2d0222ce831ec267455304fb46a41c15360023081a1abfad22fe850fda88614b520b7e2ddc7eb4670eb6a96362d6583ce56f06daf272e797984e7081e15
6
+ metadata.gz: 9830906c90b20d5ae730985c2a79ab2d1856fe859079fdf3a042da7aa408ac5ab6d70074f545bac35aff3188f456137a0aec3cff556570628097c1da97428f62
7
+ data.tar.gz: 0b6aef5490a80908b10a1f79079aa6a0e6bf3b9eae6c980f77508abc25fb81bfa2d842a64a667f84528409b1e6662956d5863577da753efff87976f3117fcd83
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  bootstrap-typeahead-src
2
2
  *.gem
3
3
  Gemfile.lock
4
+ bootstrap-typeahead-css-src
data/Rakefile CHANGED
@@ -10,8 +10,18 @@ task :update do
10
10
  else
11
11
  system("git clone git@github.com:twitter/typeahead.js.git bootstrap-typeahead-src")
12
12
  end
13
+
14
+ if Dir.exist?('bootstrap-typeahead-css-src')
15
+ system("cd bootstrap-typeahead-css-src && git pull && cd ..")
16
+ else
17
+ system("git clone git@github.com:jharding/typeahead.js-bootstrap.css.git bootstrap-typeahead-css-src")
18
+ end
19
+
13
20
  system("cp bootstrap-typeahead-src/dist/typeahead.js vendor/assets/javascripts/bootstrap-typeahead-rails/bootstrap-typeahead.js")
14
21
 
22
+ system("cp bootstrap-typeahead-css-src/typeahead.js-bootstrap.css vendor/assets/stylesheets/bootstrap-typeahead-rails/bootstrap-typeahead.css")
23
+ # system("cp bootstrap-typeahead-css-src/typeahead.js-bootstrap.less vendor/assets/stylesheets/bootstrap-typeahead-rails/bootstrap-typeahead.less")
24
+
15
25
  system("git status")
16
26
 
17
27
  puts "\n"
@@ -1,5 +1,5 @@
1
1
  module BootstrapTypeaheadRails
2
2
  module Rails
3
- VERSION = "0.9.3.1"
3
+ VERSION = "0.9.3.2"
4
4
  end
5
5
  end
@@ -30,6 +30,12 @@ Add this line to app/assets/javascripts/application.js
30
30
  //= require bootstrap-typeahead-rails
31
31
  ```
32
32
 
33
+ The official Typeahead do not include any styling for it. Nonetheless, you can add this line to app/assets/stylesheets/application.css and you will get a nice one. Or don't, and implement your own – instructions on https://github.com/twitter/typeahead.js/#look-and-feel.
34
+
35
+ ``` javascript
36
+ *= require bootstrap-typeahead-rails
37
+ ```
38
+
33
39
  ## Using bootstrap-typeahead-rails
34
40
 
35
41
  See https://github.com/twitter/typeahead.js/#usage
@@ -11,4 +11,5 @@
11
11
  *= require_self
12
12
  *= require_tree .
13
13
  *= require bootstrap
14
+ *= require bootstrap-typeahead-rails
14
15
  */
@@ -0,0 +1,49 @@
1
+ .twitter-typeahead .tt-query,
2
+ .twitter-typeahead .tt-hint {
3
+ margin-bottom: 0;
4
+ }
5
+
6
+ .tt-dropdown-menu {
7
+ min-width: 160px;
8
+ margin-top: 2px;
9
+ padding: 5px 0;
10
+ background-color: #fff;
11
+ border: 1px solid #ccc;
12
+ border: 1px solid rgba(0,0,0,.2);
13
+ *border-right-width: 2px;
14
+ *border-bottom-width: 2px;
15
+ -webkit-border-radius: 6px;
16
+ -moz-border-radius: 6px;
17
+ border-radius: 6px;
18
+ -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
19
+ -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
20
+ box-shadow: 0 5px 10px rgba(0,0,0,.2);
21
+ -webkit-background-clip: padding-box;
22
+ -moz-background-clip: padding;
23
+ background-clip: padding-box;
24
+ }
25
+
26
+ .tt-suggestion {
27
+ display: block;
28
+ padding: 3px 20px;
29
+ }
30
+
31
+ .tt-suggestion.tt-is-under-cursor {
32
+ color: #fff;
33
+ background-color: #0081c2;
34
+ background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
35
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
36
+ background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
37
+ background-image: -o-linear-gradient(top, #0088cc, #0077b3);
38
+ background-image: linear-gradient(to bottom, #0088cc, #0077b3);
39
+ background-repeat: repeat-x;
40
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0)
41
+ }
42
+
43
+ .tt-suggestion.tt-is-under-cursor a {
44
+ color: #fff;
45
+ }
46
+
47
+ .tt-suggestion p {
48
+ margin: 0;
49
+ }
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require ./bootstrap-typeahead.css
3
+ */
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-typeahead-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3.1
4
+ version: 0.9.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodríguez-Baltanás Díaz
@@ -153,6 +153,8 @@ files:
153
153
  - testapp/vendor/assets/stylesheets/.keep
154
154
  - vendor/assets/javascripts/bootstrap-typeahead-rails/bootstrap-typeahead.js
155
155
  - vendor/assets/javascripts/bootstrap-typeahead-rails/index.js
156
+ - vendor/assets/stylesheets/bootstrap-typeahead-rails/bootstrap-typeahead.css
157
+ - vendor/assets/stylesheets/bootstrap-typeahead-rails/index.css
156
158
  homepage: https://github.com/Nerian/bootstrap-typeahead-rails
157
159
  licenses:
158
160
  - MIT