woople-theme 0.2.35 → 0.2.36
Sign up to get free protection for your applications and to get access to all the features.
@@ -51,6 +51,51 @@ function visitLocation(element, newWindow) {
|
|
51
51
|
}
|
52
52
|
}
|
53
53
|
|
54
|
+
function mobileSearchToggle() {
|
55
|
+
var mobileSearch = $('<div></div>').addClass('mobile-search');
|
56
|
+
|
57
|
+
$('a.search-page').on('click', function(e) {
|
58
|
+
e.preventDefault();
|
59
|
+
|
60
|
+
if ($(window).width() > 768) {
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
|
64
|
+
var masthead = $('#masthead');
|
65
|
+
var menu = $('.container .menu');
|
66
|
+
var form = $('form.search');
|
67
|
+
var profile = $('.profile');
|
68
|
+
|
69
|
+
var clonedForm = form.clone(true);
|
70
|
+
var menuOffset = menu.offset();
|
71
|
+
|
72
|
+
masthead.toggleClass('mobile-search-visible');
|
73
|
+
menu.toggleClass('mobile-search-visible');
|
74
|
+
|
75
|
+
$(clonedForm).children('a').remove();
|
76
|
+
|
77
|
+
if ($(mobileSearch).is(":visible")) {
|
78
|
+
mobileSearch.html(null);
|
79
|
+
mobileSearch.hide();
|
80
|
+
} else {
|
81
|
+
mobileSearch.html(clonedForm);
|
82
|
+
mobileSearch.show();
|
83
|
+
$(profile).before(mobileSearch);
|
84
|
+
}
|
85
|
+
|
86
|
+
return false;
|
87
|
+
});
|
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
|
+
});
|
97
|
+
}
|
98
|
+
|
54
99
|
$(document).ready(function() {
|
55
100
|
resizeFix();
|
56
101
|
|
@@ -88,4 +133,6 @@ $(document).ready(function() {
|
|
88
133
|
width: 2
|
89
134
|
});
|
90
135
|
});
|
91
|
-
|
136
|
+
|
137
|
+
mobileSearchToggle();
|
138
|
+
});
|
@@ -1,6 +1,26 @@
|
|
1
1
|
@import "woople-theme/variables.css.less";
|
2
2
|
@import "woople-theme/colours.css.less";
|
3
3
|
|
4
|
+
#masthead.mobile-search-visible {
|
5
|
+
height: 72px;
|
6
|
+
}
|
7
|
+
.container .menu.mobile-search-visible {
|
8
|
+
top: 120px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.mobile-search {
|
12
|
+
display: none;
|
13
|
+
margin-left: 0.5em;
|
14
|
+
margin-right: 0.5em;
|
15
|
+
margin-top: 25px;
|
16
|
+
text-align: right;
|
17
|
+
|
18
|
+
input {
|
19
|
+
margin-bottom: 10px;
|
20
|
+
height: 28px;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
4
24
|
.profile {
|
5
25
|
position:absolute;
|
6
26
|
top:19px;
|
@@ -89,7 +109,27 @@
|
|
89
109
|
}
|
90
110
|
}
|
91
111
|
|
112
|
+
@media (min-width: 320px) {
|
113
|
+
.mobile-search {
|
114
|
+
input {
|
115
|
+
width: 278px;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
@media (min-width: 480px) {
|
120
|
+
.mobile-search {
|
121
|
+
input {
|
122
|
+
width: 438px;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
92
126
|
@media (max-width: 768px) {
|
127
|
+
.mobile-search {
|
128
|
+
input {
|
129
|
+
width: 682px;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
93
133
|
.profile {
|
94
134
|
right:5px;
|
95
135
|
width:auto;
|
@@ -117,4 +157,4 @@
|
|
117
157
|
}
|
118
158
|
}
|
119
159
|
}
|
120
|
-
}
|
160
|
+
}
|
data/lib/woople-theme/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.36
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70277082715240 !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: *
|
24
|
+
version_requirements: *70277082715240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: less-rails-bootstrap
|
27
|
-
requirement: &
|
27
|
+
requirement: &70277082714340 !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: *
|
35
|
+
version_requirements: *70277082714340
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70277082707300 !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: *
|
46
|
+
version_requirements: *70277082707300
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sqlite3
|
49
|
-
requirement: &
|
49
|
+
requirement: &70277082706320 !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: *
|
57
|
+
version_requirements: *70277082706320
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec-rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &70277082705520 !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: *
|
68
|
+
version_requirements: *70277082705520
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
|
-
requirement: &
|
71
|
+
requirement: &70277082704880 !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: *
|
79
|
+
version_requirements: *70277082704880
|
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.
|
202
|
+
rubygems_version: 1.8.10
|
203
203
|
signing_key:
|
204
204
|
specification_version: 3
|
205
205
|
summary: Our Front-End CSS Framework/Theme
|