Skip to content

Commit

Permalink
add non-minified css to project
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhutchings committed Jul 10, 2014
1 parent 2e9d45f commit f707f2c
Show file tree
Hide file tree
Showing 5 changed files with 1,058 additions and 12 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ support:

html:
$(FONTBUILDER)tpl-render.js --locals config.yml --input ./src/demo/demo.jade --output ./src/font/demo.html
$(FONTBUILDER)tpl-render.js --locals config.yml --input ./src/demo/font.css.jade --output ./src/font/typicons.css
$(FONTBUILDER)tpl-minify.js --locals config.yml --input ./src/demo/font.css.jade --output ./src/font/typicons.min.css


Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Info

What's new in Typicons

#### Version 2.0.5
- Added non-minified CSS to Bower.

#### Version 2.0.4
- Font files are now licenced using the [SIL Open Font Licence](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web). This means that the font can be used, studied, modified and
redistributed freely as long as they are not sold by themselves.
Expand Down
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "typicons.font",
"version": "2.0.4",
"version": "2.0.5",
"main": [
"src/font/demo.html",
"src/font/typicons.eot",
"src/font/typicons.ttf",
"src/font/typicons.woff",
"src/font/typicons.svg",
"src/font/typicons.css",
"src/font/typicons.min.css",
"src/font/LICENCE.md"
],
Expand Down
23 changes: 12 additions & 11 deletions src/demo/font.css.jade
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| @charset 'UTF-8';

|
/* @FONT-FACE loads font into browser */
| @font-face {
| font-family: '#{font.fontname}';
Expand All @@ -11,7 +11,7 @@
| url('#{font.fontname}.ttf') format('truetype'),
| url('#{font.fontname}.svg##{font.fontname}') format('svg');
| }

|
/* :before psuedo-selector inserts and styles icon */
| .#{meta.css_prefix}:before {
| font-family: '#{font.fontname}';
Expand All @@ -28,13 +28,14 @@
| font-smoothing: antialiased;
| text-rendering: optimizeLegibility;
| }

|
/* Code for individual icons */
- var i, g, css, hex, chr
- for (i in glyphs)
- g = glyphs[i]
- css = meta.css_prefix + '-' + g.css
- hex = g.code.replace('0x','\\')
- chr = unichr(g.code)
!= '\n'
| .#{css}:before { content: '#{hex}'; } /* '#{chr}' */
for g, i in glyphs
- var css = meta.css_prefix + '-' + g.css;
- var hex = g.code.replace('0x','\\');
- var chr = unichr(g.code);
|
| .#{css}:before {
| content: '#{hex}'; /* '#{chr}' */
| }

Loading

0 comments on commit f707f2c

Please sign in to comment.