Skip to content

Commit

Permalink
Merge pull request #19 from xtoolkit/v3
Browse files Browse the repository at this point in the history
Micon css font toolkit V3
  • Loading branch information
xtoolkit authored Jan 20, 2019
2 parents 06a2d00 + 92255d9 commit 8d34a6f
Show file tree
Hide file tree
Showing 1,918 changed files with 75,605 additions and 49,284 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ script_out/*
[Dd]esktop.ini
*.DS_store
.DS_store?
node_modules/
script.php
6 changes: 0 additions & 6 deletions .templates/css/style-min.css

This file was deleted.

213 changes: 0 additions & 213 deletions .templates/css/style.css

This file was deleted.

22 changes: 10 additions & 12 deletions .templates/html-demo.html → .templates/html-demo.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

<head>
<meta charset="utf-8">
<title>
<%= fontName %>
</title>
<link href="css/<%= fontName %>.css" rel="stylesheet">
<title>{{config.fontName}} - {{config.fontVersion}}</title>
<link href="css/{{config.fontName}}.css" rel="stylesheet">
<style>
* {
padding: 0;
Expand Down Expand Up @@ -79,15 +77,15 @@
</head>

<body>
<h1><a href="http://xtoolkit.github.io/Micon/"><%= fontName %></a></h1>
<h1><a href="http://xtoolkit.github.io/Micon/">{{config.fontName}}</a></h1>
<ul class="glyphs">
<% _.each(glyphs, function(glyph) { %>
<li>
<span class="glyph"><i class="<%= className %> <%= className %>-<%= glyph.name %>"></i></span>
<span class="glyph-codepoint"><%= glyph.codepoint.toString(16).toUpperCase() %></span>
<span class="glyph-name"><%= glyph.name %></span>
</li>
<% }); %>
{{#glyphs}}
<li>
<span class="glyph"><i class="{{config.fontPrefix}} {{config.fontPrefix}}-{{name}}"></i></span>
<span class="glyph-codepoint">{{codepoint}}</span>
<span class="glyph-name">{{name}}</span>
</li>
{{/glyphs}}
</ul>
</body>

Expand Down
20 changes: 20 additions & 0 deletions .templates/less/_animated.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Animated Icons
// --------------------------

{{=[[ ]]=}}
.@{[[config.fontPrefix]]-css-prefix}-spin {
animation: [[config.fontPrefix]]-spin 2s infinite linear;
}

.@{[[config.fontPrefix]]-css-prefix}-pulse {
animation: [[config.fontPrefix]]-spin 1s infinite steps(8);
}

@keyframes [[config.fontPrefix]]-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
17 changes: 17 additions & 0 deletions .templates/less/_bordered-pulled.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Bordered & Pulled
// -------------------------

{{=[[ ]]=}}
.@{[[config.fontPrefix]]-css-prefix}-border {
border-radius: .1em;
border: solid .08em @[[config.fontPrefix]]-border-color;
padding: .2em .25em .15em;
}

.@{[[config.fontPrefix]]-css-prefix}-pull-left { float: left; }
.@{[[config.fontPrefix]]-css-prefix}-pull-right { float: right; }

.@{[[config.fontPrefix]]-css-prefix}, .fas, .far, .fal, .fab {
&.@{[[config.fontPrefix]]-css-prefix}-pull-left { margin-right: .3em; }
&.@{[[config.fontPrefix]]-css-prefix}-pull-right { margin-left: .3em; }
}
13 changes: 13 additions & 0 deletions .templates/less/_core.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Base Class Definition
// -------------------------

{{=[[ ]]=}}
.@{[[config.fontPrefix]]-css-prefix} {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 1;
}
8 changes: 8 additions & 0 deletions .templates/less/_fixed-width.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Fixed Width Icons
// -------------------------

{{=[[ ]]=}}
.@{[[config.fontPrefix]]-css-prefix}-fw {
text-align: center;
width: (20em / 16);
}
7 changes: 7 additions & 0 deletions .templates/less/_icons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */

{{=[[ ]]=}}
[[#glyphs]]
.@{[[config.fontPrefix]]-css-prefix}-[[name]][[#names]]:before, .@{[[config.fontPrefix]]-css-prefix}-[[.]][[/names]]:before { content: @[[config.fontPrefix]]-var-[[name]]; }
[[/glyphs]]
28 changes: 28 additions & 0 deletions .templates/less/_larger.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Icon Sizes
// -------------------------

{{=[[ ]]=}}
.larger(@factor) when (@factor > 0) {
.larger((@factor - 1));

.@{[[config.fontPrefix]]-css-prefix}-@{factor}x {
font-size: (@factor * 1em);
}
}

/* makes the font 33% larger relative to the icon container */
.@{[[config.fontPrefix]]-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -.0667em;
}

.@{[[config.fontPrefix]]-css-prefix}-xs {
font-size: .75em;
}

.@{[[config.fontPrefix]]-css-prefix}-sm {
font-size: .875em;
}

.larger(10);
19 changes: 19 additions & 0 deletions .templates/less/_list.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// List Icons
// -------------------------

{{=[[ ]]=}}
.@{[[config.fontPrefix]]-css-prefix}-ul {
list-style-type: none;
margin-left: @[[config.fontPrefix]]-li-width * 5/4;
padding-left: 0;

> li { position: relative; }
}

.@{[[config.fontPrefix]]-css-prefix}-li {
left: -@[[config.fontPrefix]]-li-width;
position: absolute;
text-align: center;
width: @[[config.fontPrefix]]-li-width;
line-height: inherit;
}
Loading

0 comments on commit 8d34a6f

Please sign in to comment.