Fork-Awesome/src/assets/font-awesome/scss/_core.scss

113 lines
2.1 KiB
SCSS
Raw Normal View History

2013-10-16 19:46:28 +02:00
---
---
2013-06-12 16:47:27 +02:00
/* FONT AWESOME CORE
2013-05-16 09:19:04 +02:00
* -------------------------- */
.#{$fa-css-prefix} {
2013-06-12 16:47:27 +02:00
display: inline-block;
2013-10-16 19:46:28 +02:00
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2013-05-16 09:19:04 +02:00
}
2013-06-12 16:47:27 +02:00
/* makes the font 33% larger relative to the icon container */
.#{$fa-css-prefix}-lg {
2013-10-16 19:46:28 +02:00
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
2013-06-12 16:47:27 +02:00
}
.#{$fa-css-prefix}-fixed-width {
width: (18em / 14);
text-align: center;
2013-06-12 16:47:27 +02:00
}
2013-05-16 09:19:04 +02:00
2013-10-16 19:46:28 +02:00
// Icon UL & LI
// -------------------------
.#{$fa-css-prefix}-ul {
2013-08-02 19:36:08 +02:00
padding-left: 0;
2013-10-16 19:46:28 +02:00
margin-left: $fa-icon-li-width;
2013-06-12 16:47:27 +02:00
list-style-type: none;
> li { position: relative; }
2013-10-16 19:46:28 +02:00
}
.#{$fa-css-prefix}-li {
2013-10-16 19:46:28 +02:00
position: absolute;
left: -$fa-icon-li-width;
width: $fa-icon-li-width;
top: (2em / 14);
text-align: center;
&.#{$fa-css-prefix}-lg {
2013-10-16 19:46:28 +02:00
left: -$fa-icon-li-width + (4em / 14);
2013-05-16 09:19:04 +02:00
}
}
2013-10-16 19:46:28 +02:00
2013-06-12 16:47:27 +02:00
// allows usage of the hide class directly on font awesome icons
.#{$fa-css-prefix}.hide { display: none; }
2013-10-16 19:46:28 +02:00
.#{$fa-css-prefix}-muted { color: $fa-icon-muted; }
.#{$fa-css-prefix}-light { color: $fa-icon-light; }
.#{$fa-css-prefix}-dark { color: $fa-icon-dark; }
2013-05-16 09:19:04 +02:00
2013-06-12 16:47:27 +02:00
// Icon Borders
// -------------------------
.#{$fa-css-prefix}-border {
2013-06-12 16:47:27 +02:00
padding: .2em .25em .15em;
2013-10-16 19:46:28 +02:00
border: solid 1px $fa-border-color;
border-radius: 3px;
2013-06-12 16:47:27 +02:00
}
2013-10-16 19:46:28 +02:00
2013-06-12 16:47:27 +02:00
// Icon Sizes
// -------------------------
.#{$fa-css-prefix}-2x {
2013-06-12 16:47:27 +02:00
font-size: 2em;
&.#{$fa-css-prefix}-border {
2013-06-12 16:47:27 +02:00
border-width: 2px;
2013-10-16 19:46:28 +02:00
border-radius: 4px;
2013-06-12 16:47:27 +02:00
}
}
.#{$fa-css-prefix}-3x {
2013-06-12 16:47:27 +02:00
font-size: 3em;
&.#{$fa-css-prefix}-border {
2013-06-12 16:47:27 +02:00
border-width: 3px;
2013-10-16 19:46:28 +02:00
border-radius: 5px;
2013-06-12 16:47:27 +02:00
}
}
.#{$fa-css-prefix}-4x {
2013-06-12 16:47:27 +02:00
font-size: 4em;
&.#{$fa-css-prefix}-border {
2013-06-12 16:47:27 +02:00
border-width: 4px;
2013-10-16 19:46:28 +02:00
border-radius: 6px;
2013-05-16 09:19:04 +02:00
}
}
.#{$fa-css-prefix}-5x {
2013-06-12 16:47:27 +02:00
font-size: 5em;
&.#{$fa-css-prefix}-border {
2013-06-12 16:47:27 +02:00
border-width: 5px;
2013-10-16 19:46:28 +02:00
border-radius: 7px;
2013-06-12 16:47:27 +02:00
}
}
// Floats & Margins
// -------------------------
// Quick floats
.pull-right { float: right; }
.pull-left { float: left; }
.#{$fa-css-prefix} {
2013-10-16 19:46:28 +02:00
&.pull-left { margin-right: .3em; }
&.pull-right { margin-left: .3em; }
2013-05-16 09:19:04 +02:00
}