2015-06-29 11:33:26 +08:00
|
|
|
// icon sizes
|
2013-10-23 12:24:08 +08:00
|
|
|
// -------------------------
|
|
|
|
|
SASS refactor, changes outlined below:
**functions.scss**
- added convenience functions
- `fudge` fudge a number from 0-6 decimal places
- `unitless` simple hack to parse a number from a unit
**icons.scss**
- removed explicit definitions in favor of a loop iterating `$fa-var-glyphs`
**mixins.scss**
- removed requirement to pass `$rotation` to `@fa-icon-rotate`, it is now calculated
- calculation required since `$fa-rotation-increment` is configurable, meaning not every rotation may adhere to 90 degree increments requiring $rotation
**rotated-flipped.scss**
- rotations are now calculated by a loop iterating `$fa-rotation-increment`
- the ie fix is now calculated using a loop iterating only the rotation selectors requiring intervention
- this is required now that `$fa-rotation-increment` eists
**sizes.scss**
- sizes are now calculated by a loop iterating `$fa-var-scales`
- this new method supports the existing `.fa-lg` selector, as well as introducing: `.fa-xsm` (33%), `.fa-sm` (66%x), `.fa-default` (100%), `.fa-xlg` (166%)
- multipliers are now calculated by a loop iterating `$fa-var-multipliers`
- this new method supports all existing multipliers (`.fa-2x`, `.fa-3x`, `.fa-4x`, `.fa-5x`)
**variables.scss**
- added variables:
- deprecated explicit icon variables in favor of an array value (`$fa-var-glyphs`)
- `$fa-rotation-increment`
- `$fa-var-scales`
- `$fa-var-multipliers`
**font-awesome.scss**
- added `functions.scss`
**misc.**
- minor code cleanup
2015-06-29 09:26:27 +08:00
|
|
|
// scale icon size by n
|
|
|
|
@each $fa-icon-scale-name, $fa-icon-scale in $fa-var-scales {
|
|
|
|
.#{$fa-css-prefix}-#{$fa-icon-scale-name} {
|
2015-07-03 11:46:11 +08:00
|
|
|
font-size: #{$fa-icon-scale}em;
|
|
|
|
line-height: #{$fa-icon-scale * 0.75}em;
|
SASS refactor, changes outlined below:
**functions.scss**
- added convenience functions
- `fudge` fudge a number from 0-6 decimal places
- `unitless` simple hack to parse a number from a unit
**icons.scss**
- removed explicit definitions in favor of a loop iterating `$fa-var-glyphs`
**mixins.scss**
- removed requirement to pass `$rotation` to `@fa-icon-rotate`, it is now calculated
- calculation required since `$fa-rotation-increment` is configurable, meaning not every rotation may adhere to 90 degree increments requiring $rotation
**rotated-flipped.scss**
- rotations are now calculated by a loop iterating `$fa-rotation-increment`
- the ie fix is now calculated using a loop iterating only the rotation selectors requiring intervention
- this is required now that `$fa-rotation-increment` eists
**sizes.scss**
- sizes are now calculated by a loop iterating `$fa-var-scales`
- this new method supports the existing `.fa-lg` selector, as well as introducing: `.fa-xsm` (33%), `.fa-sm` (66%x), `.fa-default` (100%), `.fa-xlg` (166%)
- multipliers are now calculated by a loop iterating `$fa-var-multipliers`
- this new method supports all existing multipliers (`.fa-2x`, `.fa-3x`, `.fa-4x`, `.fa-5x`)
**variables.scss**
- added variables:
- deprecated explicit icon variables in favor of an array value (`$fa-var-glyphs`)
- `$fa-rotation-increment`
- `$fa-var-scales`
- `$fa-var-multipliers`
**font-awesome.scss**
- added `functions.scss`
**misc.**
- minor code cleanup
2015-06-29 09:26:27 +08:00
|
|
|
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} {
|
2015-07-03 11:46:11 +08:00
|
|
|
font-size: #{$fa-icon-multiplier}em;
|
SASS refactor, changes outlined below:
**functions.scss**
- added convenience functions
- `fudge` fudge a number from 0-6 decimal places
- `unitless` simple hack to parse a number from a unit
**icons.scss**
- removed explicit definitions in favor of a loop iterating `$fa-var-glyphs`
**mixins.scss**
- removed requirement to pass `$rotation` to `@fa-icon-rotate`, it is now calculated
- calculation required since `$fa-rotation-increment` is configurable, meaning not every rotation may adhere to 90 degree increments requiring $rotation
**rotated-flipped.scss**
- rotations are now calculated by a loop iterating `$fa-rotation-increment`
- the ie fix is now calculated using a loop iterating only the rotation selectors requiring intervention
- this is required now that `$fa-rotation-increment` eists
**sizes.scss**
- sizes are now calculated by a loop iterating `$fa-var-scales`
- this new method supports the existing `.fa-lg` selector, as well as introducing: `.fa-xsm` (33%), `.fa-sm` (66%x), `.fa-default` (100%), `.fa-xlg` (166%)
- multipliers are now calculated by a loop iterating `$fa-var-multipliers`
- this new method supports all existing multipliers (`.fa-2x`, `.fa-3x`, `.fa-4x`, `.fa-5x`)
**variables.scss**
- added variables:
- deprecated explicit icon variables in favor of an array value (`$fa-var-glyphs`)
- `$fa-rotation-increment`
- `$fa-var-scales`
- `$fa-var-multipliers`
**font-awesome.scss**
- added `functions.scss`
**misc.**
- minor code cleanup
2015-06-29 09:26:27 +08:00
|
|
|
}
|
2013-10-23 12:24:08 +08:00
|
|
|
}
|