Skip to content

Commit

Permalink
Improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Apr 8, 2012
1 parent af1aef2 commit fe9d7c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# Format is descriped below.
#
#
# css-prefix: "icon-" # prefix for css-generated classes
# demo-columns: 4 # used for html demo page generation
# demo:
# css_prefix: "icon-" # prefix for css-generated classes
# columns: 4 # used for html demo page generation
#
# font: # all vars from here will be used as font
# # params in fontforge
Expand All @@ -26,8 +27,9 @@
#


css-prefix: "icon-"
demo-columns: 4
demo:
css_prefix: "icon-"
columns: 4


font:
Expand Down
8 changes: 4 additions & 4 deletions src/demo.jade
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ body
.page-header
h1: | Entypo font icons demo
.row
- var col_class = "span" + Math.ceil(12 / locals['demo-columns'])
- var chunk_size = Math.ceil(glyphs.length / locals['demo-columns'])
- for (var i = 0; i < locals['demo-columns']; i++)
- var col_class = "span" + Math.ceil(12 / demo.columns)
- var chunk_size = Math.ceil(glyphs.length / demo.columns)
- for (var i = 0; i < demo.columns; i++)
div(class=col_class)
ul.the-icons
- var offset = i * chunk_size
- for (var c = 0; c < chunk_size && glyphs[offset + c]; c++)
each opts, file in glyphs[offset + c]
- var css_class = locals['css-prefix'] + (opts.css || file)
- var css_class = demo.css_prefix + (opts.css || file)
li
i(class=css_class)
= css_class
2 changes: 1 addition & 1 deletion support/font-builder
Submodule font-builder updated 1 files
+2 −1 bin/parse_template.py

0 comments on commit fe9d7c9

Please sign in to comment.