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 +4 -0
- data/LICENSE +22 -0
- data/Manifest +0 -0
- data/Rakefile +21 -0
- data/VERSION +1 -0
- data/lib/sassy-buttons.rb +4 -1
- data/sassy-buttons.gemspec +35 -0
- data/stylesheets/_sassy-buttons.sass +9 -7
- data/stylesheets/sassy-buttons/_sassy-button-pseudo-states.sass +2 -0
- data/templates/project/_sassybuttons.sass +0 -2
- metadata +49 -15
data/Gemfile
ADDED
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.
|
data/Manifest
ADDED
File without changes
|
data/Rakefile
ADDED
@@ -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
|
data/lib/sassy-buttons.rb
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
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.
|
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
|
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
|
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.
|
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-
|
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:
|
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.
|
21
|
+
version: 0.12.2
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
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
|
-
|
44
|
-
homepage: http://
|
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: '
|
95
|
+
version: '1.2'
|
62
96
|
requirements: []
|
63
|
-
rubyforge_project:
|
64
|
-
rubygems_version: 1.
|
97
|
+
rubyforge_project: sassy-buttons
|
98
|
+
rubygems_version: 1.8.19
|
65
99
|
signing_key:
|
66
100
|
specification_version: 3
|
67
|
-
summary:
|
101
|
+
summary: CSS only buttons extension for compass.
|
68
102
|
test_files: []
|