Skip to content

Commit

Permalink
deprecated non-dasherized imports, added :visited style override for …
Browse files Browse the repository at this point in the history
…link buttons
  • Loading branch information
imathis committed May 14, 2010
1 parent a53f3c3 commit 156762a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Fancy Buttons Changelog

## 0.5.3

- Deprecated @import fancy_button.sass in favor of syntax agnostic and dashed import @import "fancy-buttons"
- Added :visited override to avoid incorrect colors in link buttons

## 0.5.2

Updated requirements to include latest stable versions of Haml and Compass

## 0.5.1

Fixed an overzealous .gitignore rule where essential stylesheets were being excluded from the gem. Oh my!
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ begin
gemspec.email = "brandon@imathis.com"
gemspec.homepage = "http://github.com/imathis/fancy-buttons"
gemspec.author = "Brandon Mathis"
gemspec.add_dependency('haml', '>= 3.0.1')
gemspec.add_dependency('compass', '>= 0.10')
gemspec.add_dependency('haml', '>= 3.0.2')
gemspec.add_dependency('compass', '>= 0.10.0')
gemspec.files = []
gemspec.files << "fancy-buttons.gemspec"
gemspec.files << "README.markdown"
Expand Down
2 changes: 1 addition & 1 deletion example/src/buttons.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import fancy_buttons.sass
@import fancy-buttons

body
text-align: center
Expand Down
14 changes: 7 additions & 7 deletions fancy-buttons.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = %q{fancy-buttons}
s.version = "0.5.1"
s.version = "0.5.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Brandon Mathis"]
Expand Down Expand Up @@ -40,15 +40,15 @@ Gem::Specification.new do |s|
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<haml>, [">= 3.0.1"])
s.add_runtime_dependency(%q<compass>, [">= 0.10"])
s.add_runtime_dependency(%q<haml>, [">= 3.0.2"])
s.add_runtime_dependency(%q<compass>, [">= 0.10.0"])
else
s.add_dependency(%q<haml>, [">= 3.0.1"])
s.add_dependency(%q<compass>, [">= 0.10"])
s.add_dependency(%q<haml>, [">= 3.0.2"])
s.add_dependency(%q<compass>, [">= 0.10.0"])
end
else
s.add_dependency(%q<haml>, [">= 3.0.1"])
s.add_dependency(%q<compass>, [">= 0.10"])
s.add_dependency(%q<haml>, [">= 3.0.2"])
s.add_dependency(%q<compass>, [">= 0.10.0"])
end
end

8 changes: 5 additions & 3 deletions lib/stylesheets/_fancy-buttons.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import compass/css3
@import fancy_gradient
@import fancy-gradient

$fb_gradient_style: glossy !default
$fb_invert_on_click: 1 !default
Expand Down Expand Up @@ -93,10 +93,12 @@ $fb_image_path: image_url("button_bg.png") !default
$text_shadow_settings: unquote("0px -1px -1px")
@if lightness($lumins) < lightness(#aaaaaa)
text-shadow: darken($color, 25) $text_shadow_settings
color: $fb_light_text
&, &:visited
color: $fb_light_text
@else
text-shadow: lighten($color, 15) $text_shadow_settings
color: $fb_dark_text
&, &:visited
color: $fb_dark_text

=fancy-button-text-colors($color, $hover, $active)
color: $color
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/project/buttons.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import fancy_buttons.sass
@import fancy-buttons

body
text-align: center
Expand Down

0 comments on commit 156762a

Please sign in to comment.