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.
@@ -23,7 +23,8 @@
23
23
 
24
24
  view.params.activeArticle = params.id;
25
25
 
26
- $('.summaries,#filter,.article_wrapper,#footer,#team_heading,#team_tabs').hide();
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
- $('.summaries,#filter,#footer,#team_heading,#team_tabs').show();
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
- $('.summaries,#filter,#footer,#team_heading,#team_tabs').show();
165
+ $(document.body).removeClass('displaying_article');
165
166
 
166
167
  window.scrollTo(0, view.params.pageYOffset);
167
168
 
@@ -1,3 +1,16 @@
1
+ .displaying_article {
2
+ .team_record,
3
+ #team_h2,
4
+ .team_heading_bx,
5
+ .summaries,
6
+ #filter,
7
+ #footer,
8
+ #team_heading,
9
+ #team_tabs,
10
+ .tabs {
11
+ display: none !important;
12
+ }
13
+ }
1
14
  .news {
2
15
  background-color: #fff;
3
16
 
@@ -8,7 +8,7 @@ html, body {
8
8
  outline: 0;
9
9
 
10
10
  font-size: 100%;
11
- line-height: 1;
11
+ line-height: 1;
12
12
 
13
13
  vertical-align: baseline;
14
14
 
@@ -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
+ }
@@ -4,7 +4,6 @@
4
4
  padding: 0 10px;
5
5
  text-align: center;
6
6
  color: #fff;
7
- text-shadow: $txt_shadow;
8
7
  font-weight: bold;
9
8
 
10
9
  opacity: 1;
@@ -1,26 +1,32 @@
1
- @mixin linear_gradient($top,$btm,$clr: $default_color) {
2
- color: $clr;
3
- background-image: -webkit-gradient(
4
- linear,
5
- left top,
6
- left bottom,
7
- color-stop(0, $top),
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
- .hl_gradient {
13
- @include linear_gradient($hl_bg_pri,$hl_bg_alt,$hl_txt_color);
14
- }
15
- .neutral_mid_gradient {
16
- @include linear_gradient($neutral_mid_bg_pri,$neutral_mid_bg_alt);
17
- }
18
- .neutral_mid_active_gradient {
19
- @include linear_gradient($neutral_mid_bg_pri_active,$neutral_mid_bg_alt_active);
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
- .neutral_hi_active_gradient {
25
- @include linear_gradient($neutral_hi_bg_pri_active,$neutral_hi_bg_alt_active);
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%); }
@@ -44,9 +44,8 @@
44
44
  background-color: $zebra_strip_even;
45
45
  }
46
46
  thead.has_gradient th {
47
- @extend .hl_gradient;
48
- @extend .txt_shadow;
49
- color: #fff;
47
+ @extend .gradient-primary;
48
+ border: none;
50
49
  }
51
50
  thead.has_dark_bg th {
52
51
  background-color: #666;
@@ -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
- color: #fff;
17
- border: 1px solid #A09E9E;
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 .neutral_hi_gradient;
40
- cursor: default;
41
- color: $default_color;
42
- border: 1px solid #A09E9E;
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: $neutral_hi_bg_alt;
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
- font-weight: bold;
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: 3px;
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: -webkit-gradient(linear,left top,left bottom,color-stop(0, #555),color-stop(.05, #444),color-stop(1, #111));
49
- color: #fff;
29
+ background-color: #444;
30
+ margin-right: 1px;
50
31
  }
@@ -1,6 +1,6 @@
1
1
  class Twitter < ActiveRecord::Base
2
2
 
3
- def is_twitter?
3
+ def is_twitter?
4
4
  true
5
5
  end
6
6
 
@@ -12,4 +12,4 @@ class Twitter < ActiveRecord::Base
12
12
  false
13
13
  end
14
14
 
15
- end
15
+ end
@@ -63,4 +63,4 @@
63
63
  <% end %>
64
64
  </div>
65
65
  <% end %>
66
- </news>
66
+ </div>
@@ -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>
@@ -1,3 +1,3 @@
1
1
  module SportsDb
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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-19 00:00:00.000000000 Z
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