Skip to content

Commit

Permalink
Simplified button CSS for primary buttons for #54; back and date/time…
Browse files Browse the repository at this point in the history
… buttons still must be changed
  • Loading branch information
brzaik committed Mar 11, 2012
1 parent 69274df commit 580ce0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/assets/stylesheets/application/controls/buttons.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@
padding: 2px 10px;
@include no-box-shadow;
@include border-radius(4px);
@include vertical-gradient(#8ac6e8, #306da2);
font-size: $basefont - 2;
cursor: pointer;
font-weight: bold;
color: $white;
letter-spacing: -0.07em;
text-shadow: 0 -1px 0px $concerto-blue-1;
text-decoration: none;
background: image-url('layout/button_norm_states.png') top left repeat-x;
//background: image-url('layout/button_norm_states.png') top left repeat-x;
border: solid 1px #003366;

$shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
Expand All @@ -82,12 +83,11 @@
@include ie7-restore-left-whitespace;

&:hover {
background-position: 100% -26px;
@include vertical-gradient(#c8eff9, #3ea5de);
color: #000033 !important;
text-shadow: 0 -1px #eee;
text-shadow: 0 -1px 0px #eee;
border: solid 1px #2f84da;
text-decoration: none;
background-color: lighten($white, 10%);

}

Expand All @@ -100,9 +100,9 @@
&.active,
&:active {
@include box-shadow(inset 0 0 6px $black);
background-position: 100% 100%;
@include vertical-gradient(#dedede, #767676);
color: #333;
text-shadow: 0 1px #eee;
text-shadow: 0 -1px 0px #eee;
outline: none;
border: solid 1px $black;
}
Expand Down
4 changes: 3 additions & 1 deletion app/assets/stylesheets/application/layout/topmenu.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nav#TM {

// custom attributes:
@include border-radius(6px);
background: transparent image-url('layout/TM/button_TM_states.png') top left repeat-x;
background: transparent image-url('layout/TM/button_TM_states.png') top left repeat-x;
color: #666;
text-shadow: 0 1px #eee;
margin: 0px 2px;
Expand All @@ -28,12 +28,14 @@ nav#TM {
float: left;

&:hover {
background: transparent image-url('layout/TM/button_TM_states.png') top left repeat-x;
text-shadow: 0 1px #eee;
background-position: 100% -31px;
border: solid 1px #2f84da;
}

&:active {
background: transparent image-url('layout/TM/button_TM_states.png') top left repeat-x;
background-position: 100% -62px;
border: solid 1px #333;
padding-top: 5px;
Expand Down

0 comments on commit 580ce0e

Please sign in to comment.