Committing SASS and Less sources compiled by the build process.

This commit is contained in:
Macdonald, Zak 2015-06-28 20:33:26 -07:00
parent ba67d21cba
commit 7c5420119c
29 changed files with 2301 additions and 2092 deletions

View File

@ -20,7 +20,6 @@ Get started at http://fontawesome.io!
- Full details: http://fontawesome.io/license - Full details: http://fontawesome.io/license
##Changelog ##Changelog
- v4.4.0 - SASS/LessCSS refactoring
- v3.0.0 - all icons redesigned from scratch, optimized for Bootstrap's 14px default - v3.0.0 - all icons redesigned from scratch, optimized for Bootstrap's 14px default
- v3.0.1 - much improved rendering in webkit, various bug fixes - v3.0.1 - much improved rendering in webkit, various bug fixes
- v3.0.2 - much improved rendering and alignment in IE7 - v3.0.2 - much improved rendering and alignment in IE7

3004
css/font-awesome.css vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
// Animated Icons // animated icons
// -------------------------- // --------------------------
.@{fa-css-prefix}-spin { .@{fa-css-prefix}-spin {

View File

@ -1,4 +1,4 @@
// Bordered & Pulled // bordered and pulled
// ------------------------- // -------------------------
.@{fa-css-prefix}-border { .@{fa-css-prefix}-border {

View File

@ -1,4 +1,4 @@
// Base Class Definition // base class definition
// ------------------------- // -------------------------
.@{fa-css-prefix} { .@{fa-css-prefix} {
@ -9,4 +9,5 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
transform: translate(0, 0); // ensures no half-pixel rendering in firefox transform: translate(0, 0); // ensures no half-pixel rendering in firefox
} }

View File

@ -1,4 +1,4 @@
// Fixed Width Icons // fixed width icons
// ------------------------- // -------------------------
.@{fa-css-prefix}-fw { .@{fa-css-prefix}-fw {

View File

@ -1,4 +1,4 @@
// List Icons // list icons
// ------------------------- // -------------------------
.@{fa-css-prefix}-ul { .@{fa-css-prefix}-ul {
@ -7,7 +7,6 @@
list-style-type: none; list-style-type: none;
> li { position: relative; } > li { position: relative; }
} }
.@{fa-css-prefix}-li { .@{fa-css-prefix}-li {
position: absolute; position: absolute;
left: -@fa-li-width; left: -@fa-li-width;

View File

@ -1,4 +1,4 @@
// Mixins // mixins
// -------------------------- // --------------------------
.fa-icon() { .fa-icon() {
@ -9,6 +9,7 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
transform: translate(0, 0); // ensures no half-pixel rendering in firefox transform: translate(0, 0); // ensures no half-pixel rendering in firefox
} }
.fa-icon-rotate(@degrees) { .fa-icon-rotate(@degrees) {

View File

@ -1,8 +1,10 @@
/* FONT PATH // font path
* -------------------------- */ // --------------------------
@font-face { @font-face {
font-family: 'FontAwesome'; font-family: 'FontAwesome';
font-style: normal;
font-weight: normal;
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}'); src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'), src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'), url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
@ -10,6 +12,4 @@
url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'), url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg'); url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
} }

View File

@ -1,4 +1,4 @@
// Rotated & Flipped Icons // rotated and flipped icons
// ------------------------- // -------------------------
@rotations-requiring-ie-fix: @rotations-requiring-ie-fix:

View File

@ -1,13 +1,36 @@
// Icon Sizes // icon sizes
// ------------------------- // --------------------------
/* makes the font 33% larger relative to the icon container */ // scale icon size by n
.@{fa-css-prefix}-lg { .createIconScales(@iterator: 1) when(@iterator <= length(@fa-var-scales)) {
font-size: (4em / 3);
line-height: (3em / 4); @fa-icon-scale-name: extract(extract(@fa-var-scales, @iterator), 1);
@fa-icon-scale-name-unquoted: ~"@{fa-icon-scale-name}";
@fa-icon-scale: extract(extract(@fa-var-scales, @iterator), 2);
.@{fa-css-prefix}-@{fa-icon-scale-name-unquoted} {
font-size: floor(@fa-font-size-base * @fa-icon-scale);
line-height: floor(@fa-font-size-base * @fa-icon-scale * 0.75);
vertical-align: -15%; vertical-align: -15%;
}
.createIconScales((@iterator + 1));
} }
.@{fa-css-prefix}-2x { font-size: 2em; } .createIconScales();
.@{fa-css-prefix}-3x { font-size: 3em; }
.@{fa-css-prefix}-4x { font-size: 4em; } // multiply icon size by n
.@{fa-css-prefix}-5x { font-size: 5em; } .createIconMultipliers(@iterator: 1) when(@iterator <= length(@fa-var-multipliers)) {
@fa-icon-multiplier-name: extract(extract(@fa-var-multipliers, @iterator), 1);
@fa-icon-multiplier-name-unquoted: ~"@{fa-icon-multiplier-name}";
@fa-icon-multiplier: extract(extract(@fa-var-multipliers, @iterator), 2);
.@{fa-css-prefix}-@{fa-icon-multiplier-name-unquoted} {
font-size: floor(@fa-font-size-base * @fa-icon-multiplier);
}
.createIconMultipliers((@iterator + 1));
}
.createIconMultipliers();

View File

@ -1,4 +1,4 @@
// Stacked Icons // stacked icons
// ------------------------- // -------------------------
.@{fa-css-prefix}-stack { .@{fa-css-prefix}-stack {

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
// Spinning Icons // spinning icons
// -------------------------- // --------------------------
.#{$fa-css-prefix}-spin { .#{$fa-css-prefix}-spin {

View File

@ -1,4 +1,4 @@
// Bordered & Pulled // bordered and pulled
// ------------------------- // -------------------------
.#{$fa-css-prefix}-border { .#{$fa-css-prefix}-border {

View File

@ -1,4 +1,4 @@
// Base Class Definition // base class definition
// ------------------------- // -------------------------
.#{$fa-css-prefix} { .#{$fa-css-prefix} {
@ -9,4 +9,5 @@
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
transform: translate(0, 0); // ensures no half-pixel rendering in firefox transform: translate(0, 0); // ensures no half-pixel rendering in firefox
} }

View File

@ -1,4 +1,4 @@
// Fixed Width Icons // fixed width icons
// ------------------------- // -------------------------
.#{$fa-css-prefix}-fw { .#{$fa-css-prefix}-fw {

View File

@ -1,4 +1,4 @@
// Functions // functions
// -------------------------- // --------------------------
// extract the number from a unit // extract the number from a unit

18
scss/_larger.scss Normal file
View File

@ -0,0 +1,18 @@
// icon sizes
// -------------------------
// scale icon size by n
@each $fa-icon-scale-name, $fa-icon-scale in $fa-var-scales {
.#{$fa-css-prefix}-#{$fa-icon-scale-name} {
font-size: #{fudge(unitless($fa-font-size-base) * $fa-icon-scale)}px;
line-height: #{fudge(unitless($fa-font-size-base) * $fa-icon-scale * 0.75)}px;
vertical-align: -15%;
}
}
// multiply icon size by n
@each $fa-icon-multiplier-name, $fa-icon-multiplier in $fa-var-multipliers {
.#{$fa-css-prefix}-#{$fa-icon-multiplier-name} {
font-size: #{fudge($fa-font-size-base * $fa-icon-multiplier)}px;
}
}

View File

@ -1,4 +1,4 @@
// List Icons // list icons
// ------------------------- // -------------------------
.#{$fa-css-prefix}-ul { .#{$fa-css-prefix}-ul {

View File

@ -1,4 +1,4 @@
// Mixins // mixins
// -------------------------- // --------------------------
@mixin fa-icon() { @mixin fa-icon() {

View File

@ -1,5 +1,5 @@
/* FONT PATH // font path
* -------------------------- */ // --------------------------
@font-face { @font-face {
font-family: 'FontAwesome'; font-family: 'FontAwesome';

View File

@ -1,4 +1,4 @@
// Rotated & Flipped Icons // rotated and flipped icons
// ------------------------- // -------------------------
$rotations-requiring-ie-fix: ( $rotations-requiring-ie-fix: (

View File

@ -1,4 +1,4 @@
// Icon Sizes // icon sizes
// ------------------------- // -------------------------
// scale icon size by n // scale icon size by n

View File

@ -1,4 +1,4 @@
// Stacked Icons // stacked icons
// ------------------------- // -------------------------
.#{$fa-css-prefix}-stack { .#{$fa-css-prefix}-stack {

View File

@ -1,17 +1,18 @@
// Variables // variables
// -------------------------- // --------------------------
$fa-border-color: #eee !default;
$fa-css-prefix: fa !default;
$fa-font-path: "../fonts" !default; $fa-font-path: "../fonts" !default;
$fa-font-size-base: 14px !default; $fa-font-size-base: 14px !default;
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.4.0/fonts" !default; // for referencing Bootstrap CDN font files directly
$fa-css-prefix: fa !default;
$fa-version: "4.4.0" !default;
$fa-border-color: #eee !default;
$fa-inverse: #fff !default; $fa-inverse: #fff !default;
$fa-li-width: (30em / 14) !default; $fa-li-width: (30em / 14) !default;
$fa-version: "4.4.0" !default;
$fa-rotation-increment: 45 !default; $fa-rotation-increment: 45 !default;
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.0/fonts" !default; // for referencing Bootstrap CDN font files directly
// the icons
$fa-var-glyphs: ( $fa-var-glyphs: (
"adjust": "\f042", "adjust": "\f042",
"adn": "\f170", "adn": "\f170",
@ -605,9 +606,9 @@ $fa-var-glyphs: (
"yen": "\f157", "yen": "\f157",
"youtube": "\f167", "youtube": "\f167",
"youtube-play": "\f16a", "youtube-play": "\f16a",
"youtube-square": "\f166" "youtube-square": "\f166",
);
);
// icon sizes - these scale font size and line height // icon sizes - these scale font size and line height
$fa-var-scales: ( $fa-var-scales: (
"default": 1.000, "default": 1.000,

View File

@ -1,16 +0,0 @@
---
---
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.@{fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.@{fa-css-prefix}-2x { font-size: 2em; }
.@{fa-css-prefix}-3x { font-size: 3em; }
.@{fa-css-prefix}-4x { font-size: 4em; }
.@{fa-css-prefix}-5x { font-size: 5em; }

View File

@ -1,16 +0,0 @@
---
---
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.#{$fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.#{$fa-css-prefix}-2x { font-size: 2em; }
.#{$fa-css-prefix}-3x { font-size: 3em; }
.#{$fa-css-prefix}-4x { font-size: 4em; }
.#{$fa-css-prefix}-5x { font-size: 5em; }