fontcustomtoadstool 0.1.2 → 0.1.3
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 +3 -1
- data/lib/fontcustom/templates/fontcustom.scss +8 -6
- data/lib/fontcustom/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -11,11 +11,13 @@ There are two difference between FontCustom and FontCustom.sass. The main differ
|
|
|
11
11
|
|
|
12
12
|
The next difference is that I beat up on the [generator.rb](http://goo.gl/IGZi0) file so that this better suits the Toadstool framework. Specific placement of the generated font files and a generated Sass partial as well.
|
|
13
13
|
|
|
14
|
+
Oh yeah, this is a 1:off gem `gem install fontcustomtoadstool`.
|
|
15
|
+
|
|
14
16
|
##Installation
|
|
15
17
|
```sh
|
|
16
18
|
# Requires FontForge
|
|
17
19
|
brew install fontforge eot-utils ttfautohint
|
|
18
|
-
gem install
|
|
20
|
+
gem install fontcustomtoadstool
|
|
19
21
|
```
|
|
20
22
|
|
|
21
23
|
##Usage
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
@font-face {
|
|
4
4
|
font-family: "<%= @name %>";
|
|
5
|
-
src: url("
|
|
6
|
-
url("
|
|
7
|
-
url("
|
|
8
|
-
url("
|
|
5
|
+
src: url("/fonts/<%= @path %>.eot?#iefix") format("embedded-opentype"),
|
|
6
|
+
url("/fonts/<%= @path %>.woff") format("woff"),
|
|
7
|
+
url("/fonts/<%= @path %>.ttf") format("truetype"),
|
|
8
|
+
url("/fonts/<%= @path %>.svg#<%= @name %>") format("svg");
|
|
9
9
|
font-weight: normal;
|
|
10
10
|
font-style: normal;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
%fontcustom {
|
|
15
15
|
font-family: "<%= @name %>";
|
|
16
16
|
font-weight: normal;
|
|
17
17
|
font-style: normal;
|
|
@@ -24,6 +24,8 @@ a [class^="icon-"], a [class*=" icon-"] {
|
|
|
24
24
|
text-decoration: inherit;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
|
|
28
|
+
|
|
27
29
|
// * makes the font 33% larger relative to the icon container */
|
|
28
30
|
// .icon-large:before {
|
|
29
31
|
// vertical-align: top;
|
|
@@ -62,4 +64,4 @@ a [class^="icon-"], a [class*=" icon-"] {
|
|
|
62
64
|
|
|
63
65
|
// *Icon Classes */
|
|
64
66
|
<% @classes.each_with_index do |name, index| %>
|
|
65
|
-
%icon-<%= name %>:before { content: "\<%= (61696+index).to_s(16) %>"; }<% end %>
|
|
67
|
+
%icon-<%= name %>:before { content: "\<%= (61696+index).to_s(16) %>"; @extend %fontcustom; }<% end %>
|
data/lib/fontcustom/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fontcustomtoadstool
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2012-12-
|
|
14
|
+
date: 2012-12-06 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: json
|