Skip to content

Commit

Permalink
Fancy buttons woo.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Sep 1, 2010
1 parent a2d1e40 commit b3e21bc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'fancy-buttons'

# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
Expand Down
Binary file added lib/public/images/button_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lib/public/stylesheets/ie6.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a.button,form button{background-image:none !important}a.button:hover,a.button:active,a.button:focus,form button:hover,form button:active,form button:focus{background-image:none !important}
2 changes: 1 addition & 1 deletion lib/public/stylesheets/screen.css

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

4 changes: 4 additions & 0 deletions lib/sass/ie6.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
a.button, form button {
background-image: none !important;
&:hover, &:active, &:focus {
background-image: none !important; } }
2 changes: 2 additions & 0 deletions lib/sass/partials/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ $blueprint-grid-margin: 10px;
// Use this to calculate the width based on the total width.
// Or you can set !blueprint_grid_width to a fixed value and unset !blueprint_container_size -- it will be calculated for you.
$blueprint-grid-width: ($blueprint-container-size + $blueprint-grid-margin) / $blueprint-grid-columns - $blueprint-grid-margin;

$marmalade: darken(mix(red, yellow), 5%);
11 changes: 9 additions & 2 deletions lib/sass/partials/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "compass/css3/border-radius";
@import "compass/css3/text-shadow";
@import "fancy-buttons";

body {
@include container;
Expand All @@ -23,17 +24,23 @@ body {

nav {
@include column($nav-width, true);
position: relative;
margin-top: 1.5em;
a {
@include fancy-button;
@include fancy-button-colors($marmalade);

display: block;
width: 100%;
text-align: center;
font-size: 2em;
padding: 6px;
padding: 5px;
&:active {padding: 4px}
line-height: 20px;
}
input {
@include border-radius(5px);
width: 100% !important;
line-height: 20px;
}
}
}
Expand Down

0 comments on commit b3e21bc

Please sign in to comment.