forked from wbzyl/less-rails-fontawesome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deba807
commit 666b68a
Showing
16 changed files
with
865 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ module Font | |
module Awesome | ||
module Less | ||
module Rails | ||
VERSION = "0.4.1" | ||
VERSION = "0.4.2" | ||
end | ||
end | ||
end | ||
|
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* BOOTSTRAP SPECIFIC CLASSES | ||
* -------------------------- */ | ||
|
||
/* Bootstrap 2.0 sprites.less reset */ | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
display: inline; | ||
width: auto; | ||
height: auto; | ||
line-height: normal; | ||
vertical-align: baseline; | ||
background-image: none; | ||
background-position: 0% 0%; | ||
background-repeat: repeat; | ||
margin-top: 0; | ||
} | ||
|
||
/* more sprites.less reset */ | ||
.icon-white, | ||
.nav-pills > .active > a > [class^="icon-"], | ||
.nav-pills > .active > a > [class*=" icon-"], | ||
.nav-list > .active > a > [class^="icon-"], | ||
.nav-list > .active > a > [class*=" icon-"], | ||
.navbar-inverse .nav > .active > a > [class^="icon-"], | ||
.navbar-inverse .nav > .active > a > [class*=" icon-"], | ||
.dropdown-menu > li > a:hover > [class^="icon-"], | ||
.dropdown-menu > li > a:hover > [class*=" icon-"], | ||
.dropdown-menu > .active > a > [class^="icon-"], | ||
.dropdown-menu > .active > a > [class*=" icon-"], | ||
.dropdown-submenu:hover > a > [class^="icon-"], | ||
.dropdown-submenu:hover > a > [class*=" icon-"] { | ||
background-image: none; | ||
} | ||
|
||
|
||
/* keeps Bootstrap styles with and without icons the same */ | ||
.btn, .nav { | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
// display: inline; | ||
&.icon-large { line-height: .9em; } | ||
&.icon-spin { display: inline-block; } | ||
} | ||
} | ||
.nav-tabs, .nav-pills { | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
&, &.icon-large { line-height: .9em; } | ||
} | ||
} | ||
.btn { | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
&.pull-left, &.pull-right { | ||
&.icon-2x { margin-top: .18em; } | ||
} | ||
&.icon-spin.icon-large { line-height: .8em; } | ||
} | ||
} | ||
.btn.btn-small { | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
&.pull-left, &.pull-right { | ||
&.icon-2x { margin-top: .25em; } | ||
} | ||
} | ||
} | ||
.btn.btn-large { | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
margin-top: 0; // overrides bootstrap default | ||
&.pull-left, &.pull-right { | ||
&.icon-2x { margin-top: .05em; } | ||
} | ||
&.pull-left.icon-2x { margin-right: .2em; } | ||
&.pull-right.icon-2x { margin-left: .2em; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
/* FONT AWESOME CORE | ||
* -------------------------- */ | ||
|
||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
font-family: FontAwesome; | ||
font-weight: normal; | ||
font-style: normal; | ||
text-decoration: inherit; | ||
-webkit-font-smoothing: antialiased; | ||
*margin-right: .3em; // fixes ie7 issues | ||
} | ||
|
||
[class^="icon-"]:before, | ||
[class*=" icon-"]:before { | ||
text-decoration: inherit; | ||
display: inline-block; | ||
speak: none; | ||
} | ||
|
||
/* makes the font 33% larger relative to the icon container */ | ||
.icon-large:before { | ||
vertical-align: -10%; | ||
font-size: 4/3em; | ||
} | ||
|
||
/* makes sure icons active on rollover in links */ | ||
a { | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
&, &:before { display: inline; } | ||
} | ||
} | ||
|
||
/* increased font size for icon-large */ | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
&.icon-fixed-width { | ||
display: inline-block; | ||
width: 18/14em; | ||
text-align: center; | ||
&.icon-large { | ||
width: 22/14em; | ||
} | ||
} | ||
} | ||
|
||
ul.icons-ul { | ||
list-style-type: none; | ||
text-indent: -10/14em; | ||
margin-left: 30/14em; | ||
|
||
> li { | ||
.icon-li { | ||
width: 10/14em; | ||
display: inline-block; | ||
text-align: center; | ||
} | ||
} | ||
} | ||
|
||
// allows usage of the hide class directly on font awesome icons | ||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
&.hide { | ||
display: none; | ||
} | ||
} | ||
|
||
.icon-muted { color: @iconMuted; } | ||
.icon-light { color: @iconLight; } | ||
.icon-dark { color: @iconDark; } | ||
|
||
// Icon Borders | ||
// ------------------------- | ||
|
||
.icon-border { | ||
border: solid 1px @borderColor; | ||
padding: .2em .25em .15em; | ||
.border-radius(3px); | ||
} | ||
|
||
// Icon Sizes | ||
// ------------------------- | ||
|
||
.icon-2x { | ||
font-size: 2em; | ||
&.icon-border { | ||
border-width: 2px; | ||
.border-radius(4px); | ||
} | ||
} | ||
.icon-3x { | ||
font-size: 3em; | ||
&.icon-border { | ||
border-width: 3px; | ||
.border-radius(5px); | ||
} | ||
} | ||
.icon-4x { | ||
font-size: 4em; | ||
&.icon-border { | ||
border-width: 4px; | ||
.border-radius(6px); | ||
} | ||
} | ||
|
||
.icon-5x { | ||
font-size: 5em; | ||
&.icon-border { | ||
border-width: 5px; | ||
.border-radius(7px); | ||
} | ||
} | ||
|
||
|
||
// Floats & Margins | ||
// ------------------------- | ||
|
||
// Quick floats | ||
.pull-right { float: right; } | ||
.pull-left { float: left; } | ||
|
||
[class^="icon-"], | ||
[class*=" icon-"] { | ||
&.pull-left { | ||
margin-right: .3em; | ||
} | ||
&.pull-right { | ||
margin-left: .3em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* EXTRAS | ||
* -------------------------- */ | ||
|
||
/* Stacked and layered icon */ | ||
.icon-stack(); | ||
|
||
/* Animated rotating icon */ | ||
.icon-spin { | ||
display: inline-block; | ||
-moz-animation: spin 2s infinite linear; | ||
-o-animation: spin 2s infinite linear; | ||
-webkit-animation: spin 2s infinite linear; | ||
animation: spin 2s infinite linear; | ||
} | ||
|
||
@-moz-keyframes spin { | ||
0% { -moz-transform: rotate(0deg); } | ||
100% { -moz-transform: rotate(359deg); } | ||
} | ||
@-webkit-keyframes spin { | ||
0% { -webkit-transform: rotate(0deg); } | ||
100% { -webkit-transform: rotate(359deg); } | ||
} | ||
@-o-keyframes spin { | ||
0% { -o-transform: rotate(0deg); } | ||
100% { -o-transform: rotate(359deg); } | ||
} | ||
@-ms-keyframes spin { | ||
0% { -ms-transform: rotate(0deg); } | ||
100% { -ms-transform: rotate(359deg); } | ||
} | ||
@keyframes spin { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(359deg); } | ||
} | ||
|
||
/* Icon rotations and mirroring */ | ||
.icon-rotate-90:before{ | ||
-webkit-transform: rotate(90deg); | ||
-moz-transform: rotate(90deg); | ||
-ms-transform: rotate(90deg); | ||
-o-transform: rotate(90deg); | ||
transform: rotate(90deg); | ||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); | ||
} | ||
|
||
.icon-rotate-180:before{ | ||
-webkit-transform: rotate(180deg); | ||
-moz-transform: rotate(180deg); | ||
-ms-transform: rotate(180deg); | ||
-o-transform: rotate(180deg); | ||
transform: rotate(180deg); | ||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); | ||
} | ||
|
||
.icon-rotate-270:before{ | ||
-webkit-transform: rotate(270deg); | ||
-moz-transform: rotate(270deg); | ||
-ms-transform: rotate(270deg); | ||
-o-transform: rotate(270deg); | ||
transform: rotate(270deg); | ||
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); | ||
} | ||
|
||
.icon-flip-horizontal:before { | ||
-webkit-transform: scale(-1, 1); | ||
-moz-transform: scale(-1, 1); | ||
-ms-transform: scale(-1, 1); | ||
-o-transform: scale(-1, 1); | ||
transform: scale(-1, 1); | ||
} | ||
|
||
.icon-flip-vertical:before { | ||
-webkit-transform: scale(1, -1); | ||
-moz-transform: scale(1, -1); | ||
-ms-transform: scale(1, -1); | ||
-o-transform: scale(1, -1); | ||
transform: scale(1, -1); | ||
} |
Oops, something went wrong.