Previously the line-height was set to 1em which leads to a distinct
misalignment due to the icon being smaller than the fixed dimensions
element.
Increasing the line-height to match the vertical size causes the icon to
be aligned with the base-line where it previously was slightly shifted
to the top of the element.
font-family: FontAwesome;
font-weight: normal !important;
font-style: normal !important;
- line-height: 1em;
text-align: center;
-webkit-user-select: none;
.icon16 {
font-size: 14px;
height: 16px;
+ line-height: 16px;
width: 16px;
}
.icon24 {
font-size: 18px;
height: 24px;
+ line-height: 24px;
width: 24px;
}
.icon32 {
font-size: 28px;
height: 32px;
+ line-height: 32px;
width: 32px;
vertical-align: -5px;
}
.icon48 {
font-size: 42px;
height: 48px;
+ line-height: 48px;
width: 48px;
}
.icon96 {
font-size: 84px;
height: 96px;
+ line-height: 96px;
width: 96px;
}
.icon144 {
font-size: 130px; // TODO
height: 144px;
+ line-height: 144px;
width: 144px;
}