mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-28 06:21:30 +08:00
Merge pull request #1617 from tagliala/strict-math
LESS CSS strict maths update to be future proof
This commit is contained in:
commit
4f24465ea5
8
src/assets/font-awesome/less/core.less
vendored
8
src/assets/font-awesome/less/core.less
vendored
@ -16,7 +16,7 @@
|
|||||||
/* makes the font 33% larger relative to the icon container */
|
/* makes the font 33% larger relative to the icon container */
|
||||||
.icon-large:before {
|
.icon-large:before {
|
||||||
vertical-align: -10%;
|
vertical-align: -10%;
|
||||||
font-size: 4/3em;
|
font-size: (4em / 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* makes sure icons active on rollover in links */
|
/* makes sure icons active on rollover in links */
|
||||||
@ -32,11 +32,11 @@ a {
|
|||||||
[class*=" icon-"] {
|
[class*=" icon-"] {
|
||||||
&.icon-fixed-width {
|
&.icon-fixed-width {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 16/14em;
|
width: (16em / 14);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 4/14em;
|
padding-right: (4em / 14);
|
||||||
&.icon-large {
|
&.icon-large {
|
||||||
width: 20/14em;
|
width: (20em / 14);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% include license-code.less %}
|
{% include license-code.less %}
|
||||||
|
|
||||||
.icon-large {
|
.icon-large {
|
||||||
font-size: 4/3em;
|
font-size: (4em / 3);
|
||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
margin-bottom: -4px;
|
margin-bottom: -4px;
|
||||||
|
2
src/assets/font-awesome/less/mixins.less
vendored
2
src/assets/font-awesome/less/mixins.less
vendored
@ -43,7 +43,7 @@
|
|||||||
}
|
}
|
||||||
.icon-stack-base {
|
.icon-stack-base {
|
||||||
font-size: @base-font-size;
|
font-size: @base-font-size;
|
||||||
*line-height: @height / @base-font-size;
|
*line-height: (@height / @base-font-size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
src/assets/font-awesome/less/variables.less
vendored
2
src/assets/font-awesome/less/variables.less
vendored
@ -10,7 +10,7 @@
|
|||||||
@iconMuted: #eee;
|
@iconMuted: #eee;
|
||||||
@iconLight: #fff;
|
@iconLight: #fff;
|
||||||
@iconDark: #333;
|
@iconDark: #333;
|
||||||
@icons-li-width: 30/14em;
|
@icons-li-width: (30em / 14);
|
||||||
|
|
||||||
{% for icon in icons %}
|
{% for icon in icons %}
|
||||||
@{{ icon.id }}: "\{{ icon.unicode }}";
|
@{{ icon.id }}: "\{{ icon.unicode }}";
|
||||||
|
Loading…
Reference in New Issue
Block a user