sassy-buttons 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sassy-buttons.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Jared Hardy
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File without changes
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ require "sass"
5
+
6
+ begin
7
+ require 'echoe'
8
+
9
+ Echoe.new('sassy-buttons', open('VERSION').read) do |p|
10
+ p.summary = "CSS only buttons extension for compass."
11
+ p.description = "Sassy CSS3 buttons using Compass./"
12
+ p.url = "http://jaredhardy.com/"
13
+ p.author = "Jared Hardy"
14
+ p.email = "jared@jaredhardy.com"
15
+ p.dependencies = ["compass >=0.12.2", "sass >=3.2.0"]
16
+ end
17
+
18
+ rescue LoadError => error
19
+ puts "You are missing a dependency required for meta-operations on this gem."
20
+ puts "#{error.to_s.capitalize}."
21
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.2
@@ -1 +1,4 @@
1
- Compass::Frameworks.register("sassy-buttons", :path => "#{File.dirname(__FILE__)}/..")
1
+ require 'compass'
2
+ Compass::Frameworks.register('sassy-buttons',
3
+ :stylesheets_directory => File.join(File.dirname(__FILE__), '..', 'stylesheets'),
4
+ :templates_directory => File.join(File.dirname(__FILE__), '..', 'templates'))
@@ -0,0 +1,35 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "sassy-buttons"
5
+ s.version = "0.1.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Jared Hardy"]
9
+ s.date = "2012-08-21"
10
+ s.description = "Sassy CSS3 buttons using Compass./"
11
+ s.email = "jared@jaredhardy.com"
12
+ s.extra_rdoc_files = ["LICENSE", "README.mkdn", "lib/sassy-buttons.rb"]
13
+ s.files = ["Gemfile", "LICENSE", "Manifest", "README.mkdn", "VERSION", "lib/sassy-buttons.rb", "sassy-buttons.gemspec", "stylesheets/_sassy-buttons.sass", "stylesheets/sassy-buttons/_sassy-button-gradients.sass", "stylesheets/sassy-buttons/_sassy-button-pseudo-states.sass", "stylesheets/sassy-buttons/_sassy-button-shadows.sass", "stylesheets/sassy-buttons/_sassy-button-styles.sass", "stylesheets/sassy-buttons/_sassy-button-text.sass", "templates/project/_sassybuttons.sass", "templates/project/manifest.rb", "templates/project/sassy-ie-overlay.png", "Rakefile"]
14
+ s.homepage = "http://jaredhardy.com/"
15
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Sassy-buttons", "--main", "README.mkdn"]
16
+ s.require_paths = ["lib"]
17
+ s.rubyforge_project = "sassy-buttons"
18
+ s.rubygems_version = "1.8.19"
19
+ s.summary = "CSS only buttons extension for compass."
20
+
21
+ if s.respond_to? :specification_version then
22
+ s.specification_version = 3
23
+
24
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
+ s.add_runtime_dependency(%q<compass>, [">= 0.12.2"])
26
+ s.add_runtime_dependency(%q<sass>, [">= 3.2.0"])
27
+ else
28
+ s.add_dependency(%q<compass>, [">= 0.12.2"])
29
+ s.add_dependency(%q<sass>, [">= 3.2.0"])
30
+ end
31
+ else
32
+ s.add_dependency(%q<compass>, [">= 0.12.2"])
33
+ s.add_dependency(%q<sass>, [">= 3.2.0"])
34
+ end
35
+ end
@@ -26,7 +26,7 @@ $sb-second-color: false !default
26
26
  $sb-border-radius: 5px !default
27
27
 
28
28
  // Padding that gives button structure.
29
- $sb-padding: 0.3em 1.5em !default
29
+ $sb-padding: 0.5em 1.5em !default
30
30
 
31
31
  // Font size.
32
32
  $sb-font-size: 16px !default
@@ -46,22 +46,18 @@ $sb-pseudo-states: true !default
46
46
  // Add gradient png for IE 7+
47
47
  $sb-ie-support: true !default
48
48
 
49
- // Set the default Line height
50
- $sb-line-height: 1.5 !default
51
-
52
49
 
53
50
  // Mixing that gets included when calling the sassy-button-structure if you need any
54
51
  // styles applied to all your sassy buttons, add it here.
55
52
  @mixin sassy-button-default-structure
56
- display: inline-block
53
+ display: inline
57
54
  cursor: pointer
58
- line-height: $sb-line-height
59
- text-decoration: none
60
55
 
61
56
  // The Sassy Button kitchen sink.
62
57
  @mixin sassy-button($gradient-style: $sb-gradient-style, $border-radius: $sb-border-radius, $font-size: $sb-font-size, $first-color: $sb-base-color, $second-color: $sb-second-color, $text-color:$sb-text-color, $text-style: $sb-text-style, $auto-states: $sb-pseudo-states, $ie: $sb-ie-support)
63
58
  @include sassy-button-structure($border-radius, $font-size, $sb-padding)
64
59
  @include sassy-button-gradient($gradient-style, $first-color, $second-color, $text-color, $text-style, $auto-states, $ie)
60
+ @include sassy-firefox-fix
65
61
 
66
62
 
67
63
  // Structure for a sassy button
@@ -71,3 +67,9 @@ $sb-line-height: 1.5 !default
71
67
  @include sassy-button-default-structure
72
68
  @include border-radius($border-radius)
73
69
 
70
+
71
+ // Fix for the Firefox padding issue
72
+ @mixin sassy-firefox-fix
73
+ &::-moz-focus-inner
74
+ padding: 0 !important
75
+ margin: -1px !important
@@ -12,6 +12,8 @@
12
12
 
13
13
  @mixin sassy-button-hover($first-color, $second-color, $style)
14
14
 
15
+ &:hover
16
+ text-decoration: none
15
17
  @if $style == "matte"
16
18
  &:hover
17
19
  background-color: darken($second-color, 5%)
@@ -22,8 +22,6 @@ $sb-ie-support: true // Add gradient png for IE 7+
22
22
  @mixin sassy-button-default-structure
23
23
  display: inline-block
24
24
  cursor: pointer
25
- text-decoration: none
26
- line-height: 1.5
27
25
 
28
26
 
29
27
  // * Mixin reference
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassy-buttons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,28 +9,56 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-23 00:00:00.000000000 -07:00
13
- default_executable:
12
+ date: 2012-08-21 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: compass
17
- requirement: &70136250042280 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
- version: 0.12.1
21
+ version: 0.12.2
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *70136250042280
26
- description: Sassy css3 buttons using compass
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.12.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 3.2.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.2.0
46
+ description: Sassy CSS3 buttons using Compass./
27
47
  email: jared@jaredhardy.com
28
48
  executables: []
29
49
  extensions: []
30
- extra_rdoc_files: []
50
+ extra_rdoc_files:
51
+ - LICENSE
52
+ - README.mkdn
53
+ - lib/sassy-buttons.rb
31
54
  files:
55
+ - Gemfile
56
+ - LICENSE
57
+ - Manifest
32
58
  - README.mkdn
59
+ - VERSION
33
60
  - lib/sassy-buttons.rb
61
+ - sassy-buttons.gemspec
34
62
  - stylesheets/_sassy-buttons.sass
35
63
  - stylesheets/sassy-buttons/_sassy-button-gradients.sass
36
64
  - stylesheets/sassy-buttons/_sassy-button-pseudo-states.sass
@@ -40,11 +68,17 @@ files:
40
68
  - templates/project/_sassybuttons.sass
41
69
  - templates/project/manifest.rb
42
70
  - templates/project/sassy-ie-overlay.png
43
- has_rdoc: true
44
- homepage: http://www.jaredhardy.com
71
+ - Rakefile
72
+ homepage: http://jaredhardy.com/
45
73
  licenses: []
46
74
  post_install_message:
47
- rdoc_options: []
75
+ rdoc_options:
76
+ - --line-numbers
77
+ - --inline-source
78
+ - --title
79
+ - Sassy-buttons
80
+ - --main
81
+ - README.mkdn
48
82
  require_paths:
49
83
  - lib
50
84
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -58,11 +92,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
92
  requirements:
59
93
  - - ! '>='
60
94
  - !ruby/object:Gem::Version
61
- version: '0'
95
+ version: '1.2'
62
96
  requirements: []
63
- rubyforge_project:
64
- rubygems_version: 1.6.2
97
+ rubyforge_project: sassy-buttons
98
+ rubygems_version: 1.8.19
65
99
  signing_key:
66
100
  specification_version: 3
67
- summary: css only buttons extension for compass
101
+ summary: CSS only buttons extension for compass.
68
102
  test_files: []