Skip to content

Commit

Permalink
Merge pull request #11 from xtoolkit/v_2_0_155
Browse files Browse the repository at this point in the history
Version 2.1.155
  • Loading branch information
xtoolkit authored Dec 28, 2016
2 parents 9a5ef28 + 6625338 commit 20049c5
Show file tree
Hide file tree
Showing 94 changed files with 23,689 additions and 40 deletions.
6 changes: 6 additions & 0 deletions .templates/css/style-min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/style-template.css → .templates/css/style.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*! Micon v2.0.155 | MIT License | http://xtoolkit.github.io/Micon/ */
/*! Micon v2.1.155 | MIT License | http://xtoolkit.github.io/Micon/ */

@font-face {
font-family: '<%= fontName %>';
src: url('<%= fontPath %><%= fontName %>.eot?v=<%= fontVer %>');
src: url('<%= fontPath %><%= fontName %>.eot?#iefix&v=<%= fontVer %>') format('embedded-opentype'), url('<%= fontPath %><%= fontName %>.woff2?v=<%= fontVer %>') format('woff2'), url('<%= fontPath %><%= fontName %>.woff?v=<%= fontVer %>') format('woff'), url('<%= fontPath %><%= fontName %>.ttf?v=<%= fontVer %>') format('truetype'), url('<%= fontPath %><%= fontName %>.svg?v=<%= fontVer %>#fontawesomeregular') format('svg');
src: url('<%= fontPath %><%= fontName %>.eot?#iefix&v=<%= fontVer %>') format('embedded-opentype'), url('<%= fontPath %><%= fontName %>.woff2?v=<%= fontVer %>') format('woff2'), url('<%= fontPath %><%= fontName %>.woff?v=<%= fontVer %>') format('woff'), url('<%= fontPath %><%= fontName %>.ttf?v=<%= fontVer %>') format('truetype'), url('<%= fontPath %><%= fontName %>.svg?v=<%= fontVer %>#<%= fontName %>') format('svg');
font-weight: normal;
font-style: normal;
}
Expand Down
File renamed without changes.
34 changes: 34 additions & 0 deletions .templates/less/animated.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Animated Icons
// --------------------------

.@{<%= className %>-css-prefix}-spin {
-webkit-animation: <%= className %>-spin 2s infinite linear;
animation: <%= className %>-spin 2s infinite linear;
}

.@{<%= className %>-css-prefix}-pulse {
-webkit-animation: <%= className %>-spin 1s infinite steps(8);
animation: <%= className %>-spin 1s infinite steps(8);
}
@-webkit-keyframes <%= className %>-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes <%= className %>-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
44 changes: 44 additions & 0 deletions .templates/less/bordered-pulled.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Bordered & Pulled
// -------------------------

.@{<%= className %>-css-prefix}-border {
padding: 0.2em 0.25em 0.15em;
border: solid 0.08em @<%= className %>-border-color;
border-radius: 0.1em;
}

.@{<%= className %>-css-prefix}-pull-left {
float: left;
}

.@{<%= className %>-css-prefix}-pull-right {
float: right;
}

.@{<%= className %>-css-prefix} {
&.@{<%= className %>-css-prefix}-pull-left {
margin-right: 0.3em;
}

&.@{<%= className %>-css-prefix}-pull-right {
margin-left: 0.3em;
}
}

.pull-right {
float: right;
}

.pull-left {
float: left;
}

.@{<%= className %>-css-prefix} {
&.pull-left {
margin-right: 0.3em;
}

&.pull-right {
margin-left: 0.3em;
}
}
11 changes: 11 additions & 0 deletions .templates/less/core.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Base Class Definition
// -------------------------

.@{<%= className %>-css-prefix} {
display: inline-block;
font: normal normal normal @<%= className %>-font-size-base/@<%= className %>-line-height-base <%= fontName %>; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
7 changes: 7 additions & 0 deletions .templates/less/fixed-width.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Fixed Width Icons
// -------------------------

.@{<%= className %>-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
10 changes: 10 additions & 0 deletions .templates/less/icons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* Micon uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
<% _.each(glyphs, function(glyph) {
var xname=glyph.name;
var temp=namedb[xname];
%>.@{<%= className %>-css-prefix}-<%= temp.join(":before,\n.@{" + className + '-css-prefix}-') %>:before {
content: @<%= className %>-var-<%= glyph.name %>;
}

<% }); %>
24 changes: 24 additions & 0 deletions .templates/less/larger.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.@{<%= className %>-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}

.@{<%= className %>-css-prefix}-2x {
font-size: 2em;
}

.@{<%= className %>-css-prefix}-3x {
font-size: 3em;
}

.@{<%= className %>-css-prefix}-4x {
font-size: 4em;
}

.@{<%= className %>-css-prefix}-5x {
font-size: 5em;
}
24 changes: 24 additions & 0 deletions .templates/less/list.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// List Icons
// -------------------------

.@{<%= className %>-css-prefix}-ul {
padding-left: 0;
margin-left: @<%= className %>-li-width;
list-style-type: none;

> li {
position: relative;
}
}

.@{<%= className %>-css-prefix}-li {
position: absolute;
left: -@<%= className %>-li-width;
width: @<%= className %>-li-width;
top: (2em / 14);
text-align: center;

&.@{<%= className %>-css-prefix}-lg {
left: (-@<%= className %>-li-width + (4em / 14));
}
}
57 changes: 57 additions & 0 deletions .templates/less/mixins.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// Mixins
// --------------------------

.<%= className %>-icon() {
display: inline-block;
font: normal normal normal @<%= className %>-font-size-base/@<%= className %>-line-height-base <%= fontName %>; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.<%= className %>-icon-rotate(@degrees, @rotation) {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
-webkit-transform: rotate(@degrees);
-ms-transform: rotate(@degrees);
transform: rotate(@degrees);
}

.<%= className %>-icon-flip(@horiz, @rotation),
@vert {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
-webkit-transform: scale(@horiz, @vert);
-ms-transform: scale(@horiz, @vert);
transform: scale(@horiz, @vert);
}
// Only display content to screen readers. A la Bootstrap 4.
//
// See: http://a11yproject.com/posts/how-to-hide-content/

.sr-only() {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}
// Use in conjunction with .sr-only to only display content when it's focused.
//
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
//
// Credit: HTML5 Boilerplate

.sr-only-focusable() {
&:active,
&:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
}
13 changes: 13 additions & 0 deletions .templates/less/path.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* FONT PATH
* -------------------------- */
@font-face {
font-family: '<%= fontName %>';
src: url('@{<%= className %>-font-path}/<%= fontName %>.eot?v=@{<%= className %>-version}');
src: url('@{<%= className %>-font-path}/<%= fontName %>.eot?#iefix&v=@{<%= className %>-version}') format('embedded-opentype'),
url('@{<%= className %>-font-path}/<%= fontName %>.woff2?v=@{<%= className %>-version}') format('woff2'),
url('@{<%= className %>-font-path}/<%= fontName %>.woff?v=@{<%= className %>-version}') format('woff'),
url('@{<%= className %>-font-path}/<%= fontName %>.ttf?v=@{<%= className %>-version}') format('truetype'),
url('@{<%= className %>-font-path}/<%= fontName %>.svg?v=@{<%= className %>-version}#<%= fontName %>') format('svg');
font-weight: normal;
font-style: normal;
}
33 changes: 33 additions & 0 deletions .templates/less/rotated-flipped.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Rotated & Flipped Icons
// -------------------------

.@{<%= className %>-css-prefix}-rotate-90 {
.<%= className %>-icon-rotate(90deg, 1);
}

.@{<%= className %>-css-prefix}-rotate-180 {
.<%= className %>-icon-rotate(180deg, 2);
}

.@{<%= className %>-css-prefix}-rotate-270 {
.<%= className %>-icon-rotate(270deg, 3);
}

.@{<%= className %>-css-prefix}-flip-horizontal {
.<%= className %>-icon-flip(-1, 1, 0);
}

.@{<%= className %>-css-prefix}-flip-vertical {
.<%= className %>-icon-flip(1, -1, 2);
}

// Hook for IE8-9
// -------------------------

:root .@{<%= className %>-css-prefix}-rotate-90,
:root .@{<%= className %>-css-prefix}-rotate-180,
:root .@{<%= className %>-css-prefix}-rotate-270,
:root .@{<%= className %>-css-prefix}-flip-horizontal,
:root .@{<%= className %>-css-prefix}-flip-vertical {
filter: none;
}
10 changes: 10 additions & 0 deletions .templates/less/screen-reader.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Screen Readers
// -------------------------

.sr-only {
.sr-only();
}

.sr-only-focusable {
.sr-only-focusable();
}
29 changes: 29 additions & 0 deletions .templates/less/stacked.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Stacked Icons
// -------------------------

.@{<%= className %>-css-prefix}-stack {
position: relative;
display: inline-block;
width: 2em;
height: 2em;
line-height: 2em;
vertical-align: middle;
}
.@{<%= className %>-css-prefix}-stack-1x,
.@{<%= className %>-css-prefix}-stack-2x {
position: absolute;
left: 0;
width: 100%;
text-align: center;
}
.@{<%= className %>-css-prefix}-stack-1x {
line-height: inherit;
}

.@{<%= className %>-css-prefix}-stack-2x {
font-size: 2em;
}

.@{<%= className %>-css-prefix}-inverse {
color: @<%= className %>-inverse;
}
14 changes: 14 additions & 0 deletions .templates/less/style.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*! Micon v2.1.155 | MIT License | http://xtoolkit.github.io/Micon/ */
@import "variables.less";
@import "mixins.less";
@import "path.less";
@import "core.less";
@import "larger.less";
@import "fixed-width.less";
@import "list.less";
@import "bordered-pulled.less";
@import "animated.less";
@import "rotated-flipped.less";
@import "stacked.less";
@import "icons.less";
@import "screen-reader.less";
14 changes: 14 additions & 0 deletions .templates/less/variables.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Variables
// --------------------------

@<%= className %>-font-path: "<%= fontPath %>";
@<%= className %>-font-size-base: 14px;
@<%= className %>-line-height-base: 1;
@<%= className %>-css-prefix: @<%= className %>;
@<%= className %>-version: "<%= fontVer %>";
@<%= className %>-border-color: #eee;
@<%= className %>-inverse: #fff;
@<%= className %>-li-width: (30em / 14);

<% _.each(glyphs, function(glyph) { %>@<%= className %>-var-<%= glyph.name %>: "\<%= glyph.codepoint.toString(16).toUpperCase() %>";
<% }); %>
34 changes: 34 additions & 0 deletions .templates/scss/_animated.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Spinning Icons
// --------------------------

.#{$<%= className %>-css-prefix}-spin {
-webkit-animation: <%= className %>-spin 2s infinite linear;
animation: <%= className %>-spin 2s infinite linear;
}

.#{$<%= className %>-css-prefix}-pulse {
-webkit-animation: <%= className %>-spin 1s infinite steps(8);
animation: <%= className %>-spin 1s infinite steps(8);
}
@-webkit-keyframes <%= className %>-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes <%= className %>-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
Loading

0 comments on commit 20049c5

Please sign in to comment.