sports_db 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/plugins/articles.js +4 -3
- data/app/assets/stylesheets/_articles.css.scss +13 -0
- data/app/assets/stylesheets/_base.css.scss +1 -1
- data/app/assets/stylesheets/_btn.css.scss +20 -0
- data/app/assets/stylesheets/_flash.css.scss +0 -1
- data/app/assets/stylesheets/_gradients.css.scss +29 -23
- data/app/assets/stylesheets/_table_base.scss +2 -3
- data/app/assets/stylesheets/_tabs.css.scss +9 -30
- data/app/assets/stylesheets/_toolbar.css.scss +0 -6
- data/app/assets/stylesheets/mock.css.scss +11 -30
- data/app/models/twitter.rb +2 -2
- data/app/views/shared/_articles.html.erb +1 -1
- data/app/views/shared/_sharing.html.erb +1 -1
- data/app/views/shared/_toolbar.html.erb +2 -2
- data/lib/sports_db/version.rb +1 -1
- metadata +3 -2
@@ -23,7 +23,8 @@
|
|
23
23
|
|
24
24
|
view.params.activeArticle = params.id;
|
25
25
|
|
26
|
-
$(
|
26
|
+
$(document.body).addClass('displaying_article');
|
27
|
+
$('.article_wrapper').hide();
|
27
28
|
$(params.id).show();
|
28
29
|
|
29
30
|
window.scrollTo(0,1);
|
@@ -138,7 +139,7 @@
|
|
138
139
|
// This is the standard initialization.
|
139
140
|
} else {
|
140
141
|
$('.article_wrapper').hide();
|
141
|
-
$(
|
142
|
+
$(document.body).removeClass('displaying_article');
|
142
143
|
|
143
144
|
handlers();
|
144
145
|
|
@@ -161,7 +162,7 @@
|
|
161
162
|
|
162
163
|
if (name === 'close') {
|
163
164
|
$('.article_wrapper').hide();
|
164
|
-
$(
|
165
|
+
$(document.body).removeClass('displaying_article');
|
165
166
|
|
166
167
|
window.scrollTo(0, view.params.pageYOffset);
|
167
168
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
.btn {
|
2
|
+
text-align: center;
|
3
|
+
padding: 5px;
|
4
|
+
display: inline-block;
|
5
|
+
-webkit-border-radius: 3px;
|
6
|
+
-webkit-background-clip: padding-box;
|
7
|
+
}
|
8
|
+
|
9
|
+
.btn-primary {
|
10
|
+
@extend .gradient-primary;
|
11
|
+
&.hl { /* TODO */ }
|
12
|
+
}
|
13
|
+
.btn-secondary {
|
14
|
+
@extend .gradient-secondary;
|
15
|
+
&.hl { @extend .gradient-secondary-hl; }
|
16
|
+
}
|
17
|
+
.btn-secondary-alt {
|
18
|
+
@extend .gradient-secondary-alt;
|
19
|
+
&.hl { @extend .gradient-secondary-alt-hl; }
|
20
|
+
}
|
@@ -1,26 +1,32 @@
|
|
1
|
-
@mixin
|
2
|
-
color
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
color-stop(1, $btm)
|
9
|
-
);
|
10
|
-
}
|
1
|
+
@mixin linearGradient($gradient-color, $percentage, $reverse: false) {
|
2
|
+
@if lightness($gradient-color) > lightness(#aaa) {
|
3
|
+
color: #666;
|
4
|
+
} @else {
|
5
|
+
color: #fff;
|
6
|
+
}
|
7
|
+
border: 1px solid #A09E9E;
|
11
8
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
@if $reverse {
|
10
|
+
background-image: -webkit-gradient(
|
11
|
+
linear,
|
12
|
+
left top,
|
13
|
+
left bottom,
|
14
|
+
color-stop(0, darken($gradient-color, $percentage)),
|
15
|
+
color-stop(1, $gradient-color)
|
16
|
+
);
|
17
|
+
} @else {
|
18
|
+
background-image: -webkit-gradient(
|
19
|
+
linear,
|
20
|
+
left top,
|
21
|
+
left bottom,
|
22
|
+
color-stop(0, $gradient-color),
|
23
|
+
color-stop(1, darken($gradient-color, $percentage))
|
24
|
+
);
|
20
25
|
}
|
21
|
-
.neutral_hi_gradient {
|
22
|
-
@include linear_gradient($neutral_hi_bg_pri,$neutral_hi_bg_alt);
|
23
26
|
}
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
+
|
28
|
+
.gradient-primary { @include linearGradient($gradient-primary, 0%); }
|
29
|
+
.gradient-secondary { @include linearGradient($gradient-secondary, 20%); }
|
30
|
+
.gradient-secondary-hl { @include linearGradient($gradient-secondary, 20%, true); }
|
31
|
+
.gradient-secondary-alt { @include linearGradient($gradient-secondary-alt, 10%); }
|
32
|
+
.gradient-secondary-alt-hl { @include linearGradient($gradient-secondary-alt-hl, 10%); }
|
@@ -1,47 +1,26 @@
|
|
1
1
|
.tabs {
|
2
2
|
display: -webkit-box;
|
3
3
|
-webkit-box-orient: horizontal;
|
4
|
-
padding: 5px 0 0 0;
|
5
4
|
|
6
5
|
.tab {
|
7
|
-
@extend .neutral_mid_gradient;
|
8
|
-
|
9
6
|
display: -webkit-box;
|
10
7
|
-webkit-box-pack: center;
|
11
8
|
-webkit-box-align: center;
|
12
9
|
-webkit-box-flex: 1;
|
10
|
+
border-bottom: 0 !important;
|
13
11
|
|
14
12
|
padding: 8px;
|
13
|
+
border-radius: 0;
|
15
14
|
|
16
|
-
|
17
|
-
border:
|
18
|
-
border-bottom: 1px solid #414142;
|
19
|
-
text-shadow: $txt_shadow;
|
15
|
+
&:first-child { border-left: 0 !important; }
|
16
|
+
&:last-child { border-right: 0 !important; }
|
20
17
|
|
21
|
-
&:first-child {
|
22
|
-
border-left: 0 !important;
|
23
|
-
}
|
24
|
-
&:last-child {
|
25
|
-
border-right: 0 !important;
|
26
|
-
}
|
27
|
-
// tap state for tab
|
28
|
-
&.hl {
|
29
|
-
@extend .neutral_mid_active_gradient;
|
30
|
-
color: #fff;
|
31
|
-
}
|
32
18
|
// don't show the tap state for the active tab
|
33
|
-
&.activeTab.hl {
|
34
|
-
@extend .neutral_hi_gradient;
|
35
|
-
color: #fff;
|
36
|
-
}
|
37
|
-
// the active tab
|
38
19
|
&.activeTab {
|
39
|
-
@extend .
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
border-bottom: 1px solid rgb(237,237,237);
|
44
|
-
text-shadow: none;
|
20
|
+
@extend .gradient-secondary-alt;
|
21
|
+
&.hl {
|
22
|
+
@extend .gradient-secondary-alt;
|
23
|
+
}
|
45
24
|
}
|
46
25
|
}
|
47
26
|
.spacer {
|
@@ -55,5 +34,5 @@
|
|
55
34
|
.tab_content {
|
56
35
|
overflow-x: hidden;
|
57
36
|
padding: 5px;
|
58
|
-
background-color: $
|
37
|
+
background-color: darken($gradient-secondary-alt, 10%);
|
59
38
|
}
|
@@ -9,16 +9,10 @@
|
|
9
9
|
&:last-child { margin-right: 0; }
|
10
10
|
}
|
11
11
|
.btn {
|
12
|
-
@extend .neutral_mid_gradient;
|
13
|
-
color: #fff;
|
14
12
|
border-radius: 0;
|
15
|
-
|
16
13
|
height: 30px;
|
17
14
|
line-height: 1.2;
|
18
15
|
|
19
|
-
&.hl {
|
20
|
-
@extend .neutral_mid_active_gradient;
|
21
|
-
}
|
22
16
|
&.disabled {
|
23
17
|
background-image: none;
|
24
18
|
background-color: #aaa;
|
@@ -1,50 +1,31 @@
|
|
1
1
|
#mock-toolbar-container {
|
2
|
-
font-size: 10px;
|
3
|
-
-webkit-user-select: none;
|
4
|
-
margin:0;
|
5
|
-
padding:0;
|
6
|
-
width: auto;
|
7
|
-
overflow: hidden;
|
8
2
|
position: relative;
|
3
|
+
background-color: #333;
|
4
|
+
* {
|
5
|
+
color: #fff;
|
6
|
+
font-weight: bold;
|
7
|
+
}
|
9
8
|
}
|
10
9
|
#mock-toolbar {
|
11
|
-
font-weight: bold;
|
12
|
-
background-color: #111;
|
13
|
-
color: white !important;
|
14
|
-
margin: 0;
|
15
10
|
height: 44px;
|
16
|
-
border-collapse: collapse;
|
17
|
-
border: 1px solid #111;
|
18
|
-
background: -webkit-gradient(linear,left top,left bottom,color-stop(0, #2a2a2a),color-stop(1, #0a0a0a));
|
19
11
|
}
|
20
12
|
#mock-center {
|
21
|
-
text-align: center;
|
22
|
-
color:#fff;
|
23
13
|
font-size: 18px;
|
24
|
-
|
14
|
+
text-align: center;
|
25
15
|
line-height: 2.3;
|
26
|
-
text-shadow: 1px 1px 0 rgba(10, 10, 10, .2);
|
27
16
|
}
|
28
17
|
#mock-left, #mock-right {
|
29
18
|
display: block;
|
30
19
|
position: absolute;
|
31
|
-
top:
|
32
|
-
}
|
33
|
-
#mock-left {
|
34
|
-
left: 8px;
|
35
|
-
}
|
36
|
-
#mock-right {
|
37
|
-
right: 8px;
|
20
|
+
top: 8px;
|
38
21
|
}
|
22
|
+
#mock-left { left: 8px; }
|
23
|
+
#mock-right { right: 8px; }
|
39
24
|
action {
|
40
25
|
display: block;
|
41
26
|
float: left;
|
42
27
|
padding: 6px 8px;
|
43
|
-
cursor: pointer;
|
44
|
-
border: 1px solid #111;
|
45
|
-
border-color:#111 #222 #1a1a1a #111;
|
46
|
-
-webkit-border-radius: 4px;
|
47
28
|
font-size: 16px;
|
48
|
-
background
|
49
|
-
|
29
|
+
background-color: #444;
|
30
|
+
margin-right: 1px;
|
50
31
|
}
|
data/app/models/twitter.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# The gsub at the end is to replace a mdash with a hyphen. It was causing Android to barf.
|
4
4
|
summary = truncate(strip_tags(item.contents.strip), :length => 90).gsub("—", "-")
|
5
5
|
%>
|
6
|
-
<div class="share_btn btn hhl"
|
6
|
+
<div class="share_btn btn btn-secondary hhl"
|
7
7
|
data-url="<%= item.link %>"
|
8
8
|
data-title="<%= item.title %>"
|
9
9
|
data-summary=" <%= summary %> "
|
@@ -4,9 +4,9 @@
|
|
4
4
|
</div>
|
5
5
|
<div class="col stretch"></div>
|
6
6
|
<div class="col">
|
7
|
-
<div class="btn resizeable down hhl" data-dir="-1">T-</div>
|
7
|
+
<div class="btn btn-secondary resizeable down hhl" data-dir="-1">T-</div>
|
8
8
|
</div>
|
9
9
|
<div class="col">
|
10
|
-
<div class="btn resizeable up hhl" data-dir="+1">T+</div>
|
10
|
+
<div class="btn btn-secondary resizeable up hhl" data-dir="+1">T+</div>
|
11
11
|
</div>
|
12
12
|
</div>
|
data/lib/sports_db/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sports_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- app/assets/javascripts/plugins/zepto.tabs.js
|
94
94
|
- app/assets/stylesheets/_articles.css.scss
|
95
95
|
- app/assets/stylesheets/_base.css.scss
|
96
|
+
- app/assets/stylesheets/_btn.css.scss
|
96
97
|
- app/assets/stylesheets/_filterable.css.scss
|
97
98
|
- app/assets/stylesheets/_flash.css.scss
|
98
99
|
- app/assets/stylesheets/_gradients.css.scss
|