first commit
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # Icomoon icons base
|
||||
*
|
||||
* Base styles for Icomoon. Include font import, class definition and other options
|
||||
*
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
// Font definition
|
||||
@font-face {
|
||||
font-family: 'icomoon';
|
||||
src:url('#{$im-font-path}/icomoon.eot?3p0rtw');
|
||||
src:url('#{$im-font-path}/icomoon.eot?#iefix3p0rtw') format('embedded-opentype'),
|
||||
url('#{$im-font-path}/icomoon.woff?3p0rtw') format('woff'),
|
||||
url('#{$im-font-path}/icomoon.ttf?3p0rtw') format('truetype'),
|
||||
url('#{$im-font-path}/icomoon.svg?3p0rtw#icomoon') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
// Base Class Definition
|
||||
[class^="#{$im-css-prefix}-"],
|
||||
[class*=" #{$im-css-prefix}-"] {
|
||||
/* Use !important to prevent issues with browser extensions that change fonts */
|
||||
font-family: 'icomoon' !important;
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
min-width: 1em;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
font-size: $icon-font-size;
|
||||
vertical-align: middle;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
// Icon Sizes. 4 additional sizes: .im-2x -> .im-5x
|
||||
@for $i from 1 through 5 {
|
||||
.#{$im-css-prefix}-#{$i}x {
|
||||
font-size: $i * $icon-font-size;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Rotated & Flipped Icons
|
||||
//
|
||||
|
||||
// Rotation
|
||||
.#{$im-css-prefix}-rotate-90 { @include im-icon-rotate(90deg, 1); }
|
||||
.#{$im-css-prefix}-rotate-180 { @include im-icon-rotate(180deg, 2); }
|
||||
.#{$im-css-prefix}-rotate-270 { @include im-icon-rotate(270deg, 3); }
|
||||
|
||||
// Flip
|
||||
.#{$im-css-prefix}-flip-horizontal { @include im-icon-flip(-1, 1, 0); }
|
||||
.#{$im-css-prefix}-flip-vertical { @include im-icon-flip(1, -1, 2); }
|
||||
.#{$im-css-prefix}-flip-horizontal.#{$im-css-prefix}-flip-vertical { @include im-icon-flip(-1, -1, 2); }
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,20 @@
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # Icomoon mixins
|
||||
*
|
||||
* Custom mixins for Icomoon icon set only.
|
||||
*
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
// Rotate icon
|
||||
@mixin im-icon-rotate($degrees, $rotation) {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
|
||||
transform: rotate($degrees);
|
||||
}
|
||||
|
||||
// Flip icon
|
||||
@mixin im-icon-flip($horiz, $vert, $rotation) {
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
|
||||
transform: scale($horiz, $vert);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
/* ------------------------------------------------------------------------------
|
||||
*
|
||||
* # Icomoon icons base
|
||||
*
|
||||
* Main file to compile. Do not change file order. Default output file: styles.min.css
|
||||
*
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
// Import custom template config
|
||||
@import "../../../../config";
|
||||
|
||||
// Import icon set
|
||||
@import '../variables';
|
||||
@import '../mixins';
|
||||
|
||||
@import '../base';
|
||||
@import '../icons';
|
||||
Reference in New Issue
Block a user