woople-theme 0.2.39 → 0.2.40
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/woople-theme/theme.js +14 -27
- data/app/assets/stylesheets/woople-theme/base.css.less +16 -0
- data/app/assets/stylesheets/woople-theme/pagination.css.less +11 -1
- data/app/assets/stylesheets/woople-theme/profile.css.less +30 -29
- data/app/helpers/theme_helper.rb +1 -1
- data/lib/woople-theme/version.rb +1 -1
- metadata +14 -14
@@ -29,7 +29,14 @@ function setLoading(selector, element, options) {
|
|
29
29
|
new Spinner(options).spin(div[0]);
|
30
30
|
}
|
31
31
|
|
32
|
-
function
|
32
|
+
function tinyLoadingIndicator(element) {
|
33
|
+
options = {
|
34
|
+
lines: 9,
|
35
|
+
radius: 2,
|
36
|
+
length: 2,
|
37
|
+
width: 2
|
38
|
+
};
|
39
|
+
|
33
40
|
var spinner = new Spinner(options).spin();
|
34
41
|
var el = $(element);
|
35
42
|
var span = $('<span></span>').addClass('loading');
|
@@ -37,7 +44,6 @@ function paginationLoading(element, options) {
|
|
37
44
|
span.css({ 'width': el.width() });
|
38
45
|
|
39
46
|
el.html(span);
|
40
|
-
$( spinner.el ).css({'top': '50%', 'left': '50%' });
|
41
47
|
span.append(spinner.el);
|
42
48
|
}
|
43
49
|
|
@@ -51,36 +57,18 @@ function visitLocation(element, newWindow) {
|
|
51
57
|
}
|
52
58
|
}
|
53
59
|
|
54
|
-
function nonMobileScreen() {
|
55
|
-
return ($(window).width() > 768);
|
56
|
-
}
|
57
|
-
|
58
60
|
function mobileSearchToggle() {
|
59
61
|
var mobileSearch = $('<div></div>').addClass('mobile-search');
|
60
62
|
|
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
|
-
|
70
63
|
$('a.search-page').on('click', function(e) {
|
71
64
|
e.preventDefault();
|
72
|
-
|
73
|
-
if ( nonMobileScreen() ) {
|
74
|
-
return;
|
75
|
-
}
|
76
|
-
|
65
|
+
|
77
66
|
var masthead = $('#masthead');
|
78
67
|
var menu = $('.container .menu');
|
79
68
|
var form = $('form.search');
|
80
69
|
var profile = $('.profile');
|
81
70
|
|
82
71
|
var clonedForm = form.clone(true);
|
83
|
-
var menuOffset = menu.offset();
|
84
72
|
|
85
73
|
masthead.toggleClass('mobile-search-visible');
|
86
74
|
menu.toggleClass('mobile-search-visible');
|
@@ -131,12 +119,11 @@ $(document).ready(function() {
|
|
131
119
|
});
|
132
120
|
|
133
121
|
$('.pagination a').on('click', function() {
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
});
|
122
|
+
tinyLoadingIndicator(this);
|
123
|
+
});
|
124
|
+
|
125
|
+
$('a.loading_indicator').on('click', function() {
|
126
|
+
tinyLoadingIndicator(this);
|
140
127
|
});
|
141
128
|
|
142
129
|
mobileSearchToggle();
|
@@ -99,3 +99,19 @@ a:hover {
|
|
99
99
|
}
|
100
100
|
}
|
101
101
|
|
102
|
+
|
103
|
+
a.loading_indicator {
|
104
|
+
outline: none;
|
105
|
+
display: inline-block;
|
106
|
+
|
107
|
+
span {
|
108
|
+
display: inline;
|
109
|
+
|
110
|
+
.spinner {
|
111
|
+
display: inline-block;
|
112
|
+
position: relative;
|
113
|
+
padding-left: 0.6em;
|
114
|
+
top: -0.4em;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
@@ -1,25 +1,21 @@
|
|
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
|
-
|
8
|
-
.container .menu.mobile-search-visible {
|
9
|
-
top: 120px;
|
10
|
-
}
|
11
|
-
|
12
4
|
.mobile-search {
|
13
5
|
display: none;
|
14
|
-
|
15
|
-
|
6
|
+
left: 0.5em;
|
7
|
+
right: 0.5em;
|
8
|
+
position: absolute;
|
16
9
|
margin-top: 25px;
|
17
|
-
text-align: right;
|
18
10
|
|
19
11
|
input {
|
20
|
-
-
|
21
|
-
|
22
|
-
|
12
|
+
-moz-box-sizing: border-box;
|
13
|
+
-webkit-box-sizing: border-box;
|
14
|
+
box-sizing: border-box;
|
15
|
+
.border-radius(28px);
|
16
|
+
height: 38px;
|
17
|
+
margin-bottom: 20px;
|
18
|
+
width: 100%;
|
23
19
|
}
|
24
20
|
}
|
25
21
|
|
@@ -110,29 +106,34 @@
|
|
110
106
|
}
|
111
107
|
}
|
112
108
|
}
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
input {
|
117
|
-
width: 278px;
|
118
|
-
}
|
109
|
+
@media (min-width: 769px) {
|
110
|
+
#masthead.mobile-search-visible {
|
111
|
+
height: 24px;
|
119
112
|
}
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
input {
|
124
|
-
width: 438px;
|
125
|
-
}
|
113
|
+
|
114
|
+
.container .menu.mobile-search-visible {
|
115
|
+
top: 120px;
|
126
116
|
}
|
127
|
-
|
128
|
-
@media (min-width: 768px) {
|
117
|
+
|
129
118
|
.mobile-search {
|
119
|
+
display: none;
|
120
|
+
overflow: hidden;
|
121
|
+
height: 0;
|
122
|
+
|
130
123
|
input {
|
131
|
-
|
124
|
+
display: none;
|
132
125
|
}
|
133
126
|
}
|
134
127
|
}
|
135
128
|
@media (max-width: 768px) {
|
129
|
+
#masthead.mobile-search-visible {
|
130
|
+
height: 72px;
|
131
|
+
}
|
132
|
+
|
133
|
+
.container .menu.mobile-search-visible {
|
134
|
+
top: 120px;
|
135
|
+
}
|
136
|
+
|
136
137
|
.profile {
|
137
138
|
right:5px;
|
138
139
|
width:auto;
|
data/app/helpers/theme_helper.rb
CHANGED
@@ -47,7 +47,7 @@ module ThemeHelper
|
|
47
47
|
def results_header(title, path = nil)
|
48
48
|
output = ""
|
49
49
|
output << content_tag(:h2, title, class: 'results-header')
|
50
|
-
output << content_tag(:a, I18n.t('woople_theme.search_results_more'), href: path) unless path.nil?
|
50
|
+
output << content_tag(:a, I18n.t('woople_theme.search_results_more'), href: path, class: 'loading_indicator') unless path.nil?
|
51
51
|
output.html_safe
|
52
52
|
end
|
53
53
|
end
|
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.40
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70133003400120 !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: *70133003400120
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: less-rails-bootstrap
|
27
|
-
requirement: &
|
27
|
+
requirement: &70133003398840 !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: *70133003398840
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70133003397160 !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: *70133003397160
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sqlite3
|
49
|
-
requirement: &
|
49
|
+
requirement: &70133003411160 !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: *70133003411160
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec-rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &70133003408820 !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: *70133003408820
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
|
-
requirement: &
|
71
|
+
requirement: &70133003407400 !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: *70133003407400
|
80
80
|
description: All Front-End all the Time
|
81
81
|
email:
|
82
82
|
- developers@bigbangtechnology.com
|