atk_icons 0.1.1 → 0.1.2

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.md CHANGED
@@ -36,14 +36,40 @@ Usage Example
36
36
 
37
37
  # for a list of all the icons available, see http://www.agiletech.ie/blog/128x16x16
38
38
 
39
- span.delete
40
- / this will add an :after pseudo-selector with the selected icon
41
- @import atk-icon-after("basic-ex")
42
-
43
- span.delete span.icon
44
- / alternatively, you can add a classic sub-element, and set the icon to it
45
- @import atk-icon("basic-ex")
46
-
39
+ .button.delete
40
+ /* this will add an :after pseudo-selector with the specified icon
41
+ @include atk-icon-pseudo("basic-ex")
42
+
43
+ .button.add span.icon
44
+ /* you can also set the icon to a sub-element
45
+ @include atk-icon("basic-plus")
46
+
47
+ The previous SASS will result in the following CSS:
48
+
49
+ .button.delete {
50
+ position: relative;
51
+ padding-left: 15px;
52
+ }
53
+
54
+ .button.delete:before {
55
+ background-image: url('/images/atk_icons.png');
56
+ display: inline-block;
57
+ height: 16px;
58
+ width: 14px;
59
+ background-position: -2px -64px;
60
+ content: "";
61
+ position: absolute;
62
+ left: 0px;
63
+ top: 0px;
64
+ }
65
+
66
+ .button.add span.icon {
67
+ background-image: url('/images/atk_icons.png');
68
+ display: inline-block;
69
+ height: 16px;
70
+ width: 14px;
71
+ background-position: -2px 0px;
72
+ }
47
73
 
48
74
  Contributing to atk_icons
49
75
  =========================
data/Rakefile CHANGED
@@ -17,8 +17,8 @@ Jeweler::Tasks.new do |gem|
17
17
  gem.name = "atk_icons"
18
18
  gem.homepage = "http://github.com/welaika/atk_icons"
19
19
  gem.license = "MIT"
20
- gem.summary = %Q{A way to use the awesome Agile Toolkit Icon Set within your Compass project.}
21
- gem.description = %Q{A way to use the awesome Agile Toolkit Icon Set within your Compass project.}
20
+ gem.summary = %Q{The quickest way to use the awesome Agile Toolkit Icon Set within your Compass project.}
21
+ gem.description = %Q{atk_icons is a Compass extension that wraps the awesome Agile Toolkit iconset and exposes a couple of Sass mixins to use them within your project. }
22
22
  gem.email = "stefano.verna@welaika.com"
23
23
  gem.authors = ["Stefano Verna"]
24
24
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{atk_icons}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Stefano Verna}]
12
12
  s.date = %q{2011-06-07}
13
- s.description = %q{A way to use the awesome Agile Toolkit Icon Set within your Compass project.}
13
+ s.description = %q{atk_icons is a Compass extension that wraps the awesome Agile Toolkit iconset and exposes a couple of Sass mixins to use them within your project. }
14
14
  s.email = %q{stefano.verna@welaika.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.licenses = [%q{MIT}]
37
37
  s.require_paths = [%q{lib}]
38
38
  s.rubygems_version = %q{1.8.5}
39
- s.summary = %q{A way to use the awesome Agile Toolkit Icon Set within your Compass project.}
39
+ s.summary = %q{The quickest way to use the awesome Agile Toolkit Icon Set within your Compass project.}
40
40
 
41
41
  if s.respond_to? :specification_version then
42
42
  s.specification_version = 3
@@ -2,12 +2,12 @@
2
2
 
3
3
  @mixin atk-icon($icon, $offset-y: 0px)
4
4
  :background-image image-url("atk_icons.png")
5
- :display block
5
+ :display inline-block
6
6
  :height 16px
7
7
  :width 14px
8
8
  +atk-icon-sprite($icon, $offset-y)
9
9
 
10
- @mixin atk-icon-after($icon, $offset-y: 0px)
10
+ @mixin atk-icon-pseudo($icon, $offset-y: 0px)
11
11
  position: relative
12
12
  padding-left: 15px
13
13
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk_icons
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefano Verna
@@ -63,7 +63,7 @@ dependencies:
63
63
  requirement: *id003
64
64
  prerelease: false
65
65
  name: jeweler
66
- description: A way to use the awesome Agile Toolkit Icon Set within your Compass project.
66
+ description: "atk_icons is a Compass extension that wraps the awesome Agile Toolkit iconset and exposes a couple of Sass mixins to use them within your project. "
67
67
  email: stefano.verna@welaika.com
68
68
  executables: []
69
69
 
@@ -119,6 +119,6 @@ rubyforge_project:
119
119
  rubygems_version: 1.8.5
120
120
  signing_key:
121
121
  specification_version: 3
122
- summary: A way to use the awesome Agile Toolkit Icon Set within your Compass project.
122
+ summary: The quickest way to use the awesome Agile Toolkit Icon Set within your Compass project.
123
123
  test_files: []
124
124