Skip to content

Commit

Permalink
Reverting much of the toggle work, using my old ones for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Darowski committed Mar 24, 2012
1 parent ddc8e2f commit 521f614
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
8 changes: 4 additions & 4 deletions app/assets/stylesheets/_mixins.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ $red_sox_red: #BD3039
padding: 0

=toggle_button
+border_radius(10px)
padding: 2px 12px
background-color: #EEE
border: 1px solid #DDD
background-color: #FFF
border: 1px solid #EEE
margin: 0 0 4px
white-space: nowrap
cursor: pointer
&:hover
border-color: #CCC
&.yah
background-color: #FF9
span
font-size: 11px
color: #666
Expand Down
2 changes: 2 additions & 0 deletions app/assets/stylesheets/players.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ ol
dd
display: inline-block
+reset
&.active a
background-color: #FF9
a
color: #333
+toggle_button
Expand Down
30 changes: 15 additions & 15 deletions app/views/players/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -10,67 +10,67 @@
%section#toggles
%dl
%dt Filter:
%dd<
%dd
%a#show-hall{:href => "#show-hall"}
Red Sox Hall of wWAR
%span (#{wwar_hall_count})
%dd<>
%dd
%a#show-all{:href => "#show-all"}
All Red Sox Players with 5+ WAR
%span (#{@players.size})
%dl#positions
%dt Positions:
%dd<
%dd
%a#show-p{:href => "#show-p"}
P
%span
%dd<>
%dd
%a#show-c{:href => "#show-c"}
C
%span
%dd<>
%dd
%a#show-1b{:href => "#show-1b"}
1B
%span
%dd<>
%dd
%a#show-2b{:href => "#show-2b"}
2B
%span
%dd<>
%dd
%a#show-3b{:href => "#show-3b"}
3B
%span
%dd<>
%dd
%a#show-ss{:href => "#show-ss"}
SS
%span
%dd<>
%dd
%a#show-lf{:href => "#show-lf"}
LF
%span
%dd<>
%dd
%a#show-cf{:href => "#show-cf"}
CF
%span
%dd<>
%dd
%a#show-rf{:href => "#show-rf"}
RF
%span
%dd<>
%dd
%a#show-dh{:href => "#show-dh"}
DH
%span
%dl#adjustments
%dt Adjustments:
%dd<
%dd
%a#whos-in{:href => "#whos-in"}
Who's In?
%span (#{whos_in_count})
%dd<>
%dd
%a#whos-out{:href => "#whos-out"}
Who's Out?
%span (#{whos_out_count})
%dd<>
%dd
%a#whos-next{:href => "#whos-next"}
Who's Next?
%span (#{whos_next_count})
Expand Down

0 comments on commit 521f614

Please sign in to comment.