woople-theme 0.2.37 → 0.2.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,16 +51,29 @@ function visitLocation(element, newWindow) {
51
51
  }
52
52
  }
53
53
 
54
+ function nonMobileScreen() {
55
+ return ($(window).width() > 768);
56
+ }
57
+
54
58
  function mobileSearchToggle() {
55
59
  var mobileSearch = $('<div></div>').addClass('mobile-search');
56
60
 
61
+ $(window).resize(function(e) {
62
+ if ( nonMobileScreen() ) {
63
+ $('#masthead').removeClass('mobile-search-visible');
64
+ $('.container .menu').removeClass('mobile-search-visible');
65
+ $('.mobile-search').empty();
66
+ $('.mobile-search').hide();
67
+ }
68
+ });
69
+
57
70
  $('a.search-page').on('click', function(e) {
58
71
  e.preventDefault();
59
-
60
- if ($(window).width() > 768) {
72
+
73
+ if ( nonMobileScreen() ) {
61
74
  return;
62
75
  }
63
-
76
+
64
77
  var masthead = $('#masthead');
65
78
  var menu = $('.container .menu');
66
79
  var form = $('form.search');
@@ -73,27 +86,19 @@ function mobileSearchToggle() {
73
86
  menu.toggleClass('mobile-search-visible');
74
87
 
75
88
  $(clonedForm).children('a').remove();
76
-
89
+
77
90
  if ($(mobileSearch).is(":visible")) {
78
- mobileSearch.html(null);
91
+ mobileSearch.empty();
79
92
  mobileSearch.hide();
80
- } else {
93
+ } else {
81
94
  mobileSearch.html(clonedForm);
82
95
  mobileSearch.show();
83
96
  $(profile).before(mobileSearch);
84
97
  }
85
-
98
+
86
99
  return false;
87
100
  });
88
-
89
- $(document).resize(function(e) {
90
- if ($(window).width() > 768) {
91
- $('#masthead').removeClass('mobile-search-visible');
92
- $('.container .menu').removeClass('mobile-search-visible');
93
- $('.mobile-search').html(null);
94
- $('.mobile-search').hide();
95
- }
96
- });
101
+
97
102
  }
98
103
 
99
104
  $(document).ready(function() {
@@ -112,7 +117,7 @@ $(document).ready(function() {
112
117
  radius: 3,
113
118
  length: 4,
114
119
  width: 2
115
- });
120
+ });
116
121
  }
117
122
 
118
123
  visitLocation(this, $(this).hasClass('download'));
@@ -135,4 +140,4 @@ $(document).ready(function() {
135
140
  });
136
141
 
137
142
  mobileSearchToggle();
138
- });
143
+ });
@@ -3,7 +3,8 @@
3
3
 
4
4
  #masthead.mobile-search-visible {
5
5
  height: 72px;
6
- }
6
+ }
7
+
7
8
  .container .menu.mobile-search-visible {
8
9
  top: 120px;
9
10
  }
@@ -16,6 +17,7 @@
16
17
  text-align: right;
17
18
 
18
19
  input {
20
+ -webkit-appearance: searchfield;
19
21
  margin-bottom: 10px;
20
22
  height: 28px;
21
23
  }
@@ -110,7 +112,7 @@
110
112
  }
111
113
 
112
114
  @media (min-width: 320px) {
113
- .mobile-search {
115
+ .mobile-search {
114
116
  input {
115
117
  width: 278px;
116
118
  }
@@ -158,4 +160,4 @@
158
160
  }
159
161
  }
160
162
  }
161
- }
163
+ }
@@ -1,7 +1,7 @@
1
1
  <div class="profile">
2
2
  <form class="search" action="/search">
3
3
  <a href="#" class='search-page'><i class="icon-search"></i></a>
4
- <input name="q" type="text" class="search-query" placeholder="<%=t 'woople_theme.profile.search' %>" value="<%= params[:q] %>">
4
+ <input name="q" type="search" class="search-query" placeholder="<%=t 'woople_theme.profile.search' %>" value="<%= params[:q] %>">
5
5
  </form>
6
6
  <ul class="nav nav-pills profile-link">
7
7
  <li class="dropdown">
@@ -1,3 +1,3 @@
1
1
  module WoopleTheme
2
- VERSION = "0.2.37"
2
+ VERSION = "0.2.38"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woople-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.37
4
+ version: 0.2.38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70191933946200 !ruby/object:Gem::Requirement
16
+ requirement: &70278293648920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70191933946200
24
+ version_requirements: *70278293648920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: less-rails-bootstrap
27
- requirement: &70191933944940 !ruby/object:Gem::Requirement
27
+ requirement: &70278293648120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.8
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70191933944940
35
+ version_requirements: *70278293648120
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70191933944360 !ruby/object:Gem::Requirement
38
+ requirement: &70278293647620 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70191933944360
46
+ version_requirements: *70278293647620
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
- requirement: &70191933953400 !ruby/object:Gem::Requirement
49
+ requirement: &70278293647160 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70191933953400
57
+ version_requirements: *70278293647160
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec-rails
60
- requirement: &70191933951980 !ruby/object:Gem::Requirement
60
+ requirement: &70278293646660 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.9.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70191933951980
68
+ version_requirements: *70278293646660
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capybara
71
- requirement: &70191933951000 !ruby/object:Gem::Requirement
71
+ requirement: &70278293646240 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70191933951000
79
+ version_requirements: *70278293646240
80
80
  description: All Front-End all the Time
81
81
  email:
82
82
  - developers@bigbangtechnology.com
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  requirements: []
201
201
  rubyforge_project:
202
- rubygems_version: 1.8.16
202
+ rubygems_version: 1.8.17
203
203
  signing_key:
204
204
  specification_version: 3
205
205
  summary: Our Front-End CSS Framework/Theme