uberbutton 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.mkdn CHANGED
@@ -1,4 +1,4 @@
1
- Uberbutton - Compass Plugin
1
+ Uberbutton - A Compass plugin
2
2
  ================================
3
3
 
4
4
  A class and a mixin to generate nifty buttons.
@@ -6,36 +6,62 @@ A class and a mixin to generate nifty buttons.
6
6
 
7
7
  Installation
8
8
  ==================================
9
+ Run this in the command line
9
10
 
10
11
  gem install uberbutton
11
12
 
12
- Add the following line to config/compass.rb
13
+ Add the following line to **config/compass.rb**
14
+
13
15
  require 'uberbutton'
14
16
 
15
- Install the framework
17
+ Install the extension into compass
18
+
16
19
  compass install uberbutton
17
20
 
18
21
  Usage
19
22
  ==================================
20
23
 
21
- The class "uberbutton" includes common base styles for each button.
22
- The mixin "uberbutton" lets you create classes for different styled buttons.
24
+ The **class** "uberbutton" includes *common* base styles for each button.
25
+ The **mixin** "uberbutton" lets you create classes for *different* buttons.
23
26
 
24
- Use "uberbutton" in conjunction with a style class you create.
27
+ Use the class "uberbutton" in conjunction with a style class you create.
25
28
  (This isolates the common code and is for DRY).
26
29
 
27
- Example:
30
+ Example
31
+ ---------------------
28
32
 
29
33
  Create the style class in scss
30
- .main-cta {
31
- @include uberbutton(start-color, end-color, "path_to_background_pattern");
32
- }
33
34
 
34
- Use both style class and uberbutton to construct button.
35
- <a class="uberbutton main-cta">
36
- Hello world.
37
- </a>
35
+ @import "uberbutton/uberbutton"
36
+
37
+ .main-cta {
38
+ @include uberbutton(start-color, end-color, "path_to_background_pattern");
39
+ }
40
+
41
+ Then use both the style class you just created and **uberbutton** to construct button.
42
+
43
+ <a class="uberbutton main-cta">
44
+ Hello world.
45
+ </a>
46
+
47
+
48
+ Customization
49
+ ==================================
50
+
51
+ The following customizations are available:
52
+
53
+ CSS3PIE
54
+ ---------------------
55
+ If you want the gradient, rounded corners and shadows to work in IE, download CSS3PIE, and place its folder under public with the name "css3pie". If you need to upload the folder to a different location, set the following variable before importing uberbutton.
56
+
57
+ $uberbutton-csspie-location: "/css3pie/PIE.htc";
58
+
59
+
60
+ BASE BUTTON CLASS
61
+ ---------------------
62
+ The class "uberbutton" contains the common styles to each button. If you need to rename this class, set the following variable before importing uberbutton.
38
63
 
64
+ $uberbutton-base-class: "uberbutton";
39
65
 
40
66
 
41
67
 
@@ -85,6 +85,7 @@ $uberbutton-csspie-location: "/css3pie/PIE.htc" !default;
85
85
 
86
86
  // border
87
87
  border: 1px solid darken($color2, 12%);
88
+ border-bottom-color: darken($color2, 20%);
88
89
 
89
90
  // text
90
91
  @include text-shadow($shadow-color, 0, $shadow-position, 0);
@@ -93,6 +94,7 @@ $uberbutton-csspie-location: "/css3pie/PIE.htc" !default;
93
94
  &:link, &:visited {
94
95
  color: $text-color;
95
96
  border: 1px solid darken($color2, 20%);
97
+ border-bottom-color: darken($color2, 30%);
96
98
  }
97
99
 
98
100
  &:hover {
data/uberbutton.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{uberbutton}
5
- s.version = "0.1"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
8
8
  s.authors = ["Cemre Gungor"]
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  "templates/project/manifest.rb"
24
24
  ]
25
25
 
26
- s.homepage = %q{http://github.com/cemregr/uberubtton}
26
+ s.homepage = %q{http://github.com/cemregr/uberbutton}
27
27
  s.require_paths = ["lib"]
28
28
  s.rubyforge_project = %q{uberbutton}
29
29
  s.rubygems_version = %q{1.3.6}
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- version: "0.1"
8
+ - 1
9
+ version: 0.1.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Cemre Gungor
@@ -49,7 +50,7 @@ files:
49
50
  - templates/project/noise.png
50
51
  - templates/project/manifest.rb
51
52
  has_rdoc: true
52
- homepage: http://github.com/cemregr/uberubtton
53
+ homepage: http://github.com/cemregr/uberbutton
53
54
  licenses: []
54
55
 
55
56
  post_install_message: