Skip to content

Commit

Permalink
References #24 - Refactored the navigation bar to have its own, globa…
Browse files Browse the repository at this point in the history
…l styling, regardless of the theme applied to the rest of the page.
  • Loading branch information
jefflunt committed Jun 14, 2012
1 parent 5aa0da7 commit 3e174a8
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 33 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/_variables.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$color-light-grey: #ebebeb
$color-light-medium-grey: #cbcbcb

$dark-theme-light-grey: #ebebeb
$dark-theme-dark-grey: #1b1b1b
$dark-theme-dim-grey: #222
Expand Down
Empty file.
26 changes: 26 additions & 0 deletions app/assets/stylesheets/controls.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@import "variables"

#control-bar
position: relative
top: -8px
left: -8px
height: 30px
margin-right: -16px
background-color: $dark-theme-dark-grey
a
color: $color-light-grey
&:hover
color: $color-light-medium-grey
#control-links
position: absolute
top: 5px
left: 20px
color: $color-light-grey
#recent-thought-walls
background-color: $dark-theme-dark-grey
opacity: 0.0
position: absolute
left: 20px
top: 25px
padding: 10px
z-index: $layer-menu
15 changes: 0 additions & 15 deletions app/assets/stylesheets/layout-standard.sass
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ body.layout-standard

a
text-decoration: none

#nav-bar
position: relative
height: 25px
border-bottom: 1px solid
#nav-links
position: absolute
left: 20px
#recent-thought-walls
opacity: 0.0
position: absolute
left: 20px
top: 25px
padding: 10px
z-index: $layer-menu

#content
position: absolute
Expand Down
6 changes: 0 additions & 6 deletions app/assets/stylesheets/theme-canvas.sass
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ body.theme-canvas
&:hover
color: $canvas-theme-color-links-hover

#nav-bar
#nav-links
#recent-thought-walls
border: solid 1px $canvas-theme-dark-brown
background-color: $canvas-theme-light-brown

#content

#overlay
Expand Down
6 changes: 0 additions & 6 deletions app/assets/stylesheets/theme-dark.sass
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ body.theme-dark
&:hover
color: $dark-theme-color-links-hover

#nav-bar
#nav-links
#recent-thought-walls
border: solid 1px $dark-theme-light-grey
background-color: $dark-theme-dark-grey

#content

#overlay
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#nav-bar
#nav-links
#control-bar
#control-links
=link_to "recent lists", "javascript:;", id: "recent-thought-walls-link"
|
=link_to "new brainstorm", "/"
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="thought-wall-code" class="hidden"><%= @thought_wall.code if defined?(@thought_wall) %></div>
<div id="safe-to-alter-layout" class="hidden">true</div>

<%= render :partial => 'navigation/nav_bar' %>
<%= render :partial => 'controls/control_bar' %>
<div id="content">
<%= yield %>
</div>
Expand Down
Binary file modified public/assets/application-55787a5221a995c5d39f3acf5b60418f.js.gz
Binary file not shown.

This file was deleted.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit 3e174a8

Please sign in to comment.