fancy-buttons 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +17 -6
- data/fancy-buttons.gemspec +2 -2
- data/lib/sass/_fancy_buttons.sass +8 -2
- metadata +2 -2
data/README.markdown
CHANGED
@@ -1,17 +1,28 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
## Using fancy buttons on your site?
|
2
|
+
Add a link to the [wiki](http://wiki.github.com/imathis/fancy-buttons)
|
3
|
+
|
4
|
+
## Demo
|
5
|
+

|
6
|
+
|
7
|
+
Without CSS gradient support:
|
8
|
+

|
9
|
+
|
3
10
|
|
4
11
|
## Install
|
5
12
|
|
6
13
|
Install the plugin:
|
7
14
|
|
8
|
-
sudo gem install
|
15
|
+
sudo gem install fancy-buttons
|
16
|
+
|
17
|
+
If you don't have compass colors 0.3.1
|
18
|
+
|
19
|
+
sudo gem install compass-colors
|
9
20
|
|
10
|
-
|
21
|
+
To create a new project based on fancy-buttons:
|
11
22
|
|
12
|
-
compass -r compass-colors -r fancy-buttons -f fancy-buttons
|
23
|
+
compass -r compass-colors -r fancy-buttons -f fancy-buttons your_project_name
|
13
24
|
|
14
|
-
|
25
|
+
To add fancy-buttons to an existing compass project:
|
15
26
|
|
16
27
|
# Add the following lines to your compass configuration file:
|
17
28
|
require 'compass-colors'
|
data/fancy-buttons.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fancy-buttons}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brandon Mathis"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-22}
|
13
13
|
s.description = %q{Make fancy buttons with the Compass stylesheet authoring framework.}
|
14
14
|
s.email = %q{brandon@imathis.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -65,7 +65,13 @@
|
|
65
65
|
border-width= !border_width
|
66
66
|
|
67
67
|
=fancy-button-size(!font_size = !default_button_font_size, !radius = !default_button_radius, !line_height = !font_size * 1.2)
|
68
|
-
|
68
|
+
// for smaller font-sizes, the default vertical padding is too large resulting in unbalanced button
|
69
|
+
!v_padding = 0
|
70
|
+
@if !font_size > 15
|
71
|
+
!v_padding = floor(!font_size/3.5)
|
72
|
+
@else
|
73
|
+
!v_padding = floor(!font_size/6.5)
|
74
|
+
|
69
75
|
!h_padding = floor(!font_size)
|
70
76
|
!v_padding_active = !v_padding - 1px
|
71
77
|
!h_padding_active = !h_padding - 1px
|
@@ -98,4 +104,4 @@
|
|
98
104
|
=disable-button(!opacity = .7)
|
99
105
|
+opacity(!opacity)
|
100
106
|
&:hover
|
101
|
-
cursor: default
|
107
|
+
cursor: default
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy-buttons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-22 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|