mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-26 21:41:31 +08:00
85 lines
2.0 KiB
Plaintext
85 lines
2.0 KiB
Plaintext
/* BOOTSTRAP SPECIFIC CLASSES
|
|
* -------------------------- */
|
|
|
|
/* Bootstrap 2.0 sprites.less reset */
|
|
[class^="fa-"],
|
|
[class*=" fa-"] {
|
|
display: inline;
|
|
width: auto;
|
|
height: auto;
|
|
margin-top: 0;
|
|
line-height: normal;
|
|
vertical-align: baseline;
|
|
background-image: none;
|
|
background-position: 0 0;
|
|
background-repeat: repeat;
|
|
}
|
|
|
|
/* more sprites.less reset */
|
|
.icon-white,
|
|
.nav-pills > .active > a > [class^="fa-"],
|
|
.nav-pills > .active > a > [class*=" fa-"],
|
|
.nav-list > .active > a > [class^="fa-"],
|
|
.nav-list > .active > a > [class*=" fa-"],
|
|
.navbar-inverse .nav > .active > a > [class^="fa-"],
|
|
.navbar-inverse .nav > .active > a > [class*=" fa-"],
|
|
.dropdown-menu > li > a:hover > [class^="fa-"],
|
|
.dropdown-menu > li > a:hover > [class*=" fa-"],
|
|
.dropdown-menu > .active > a > [class^="fa-"],
|
|
.dropdown-menu > .active > a > [class*=" fa-"],
|
|
.dropdown-submenu:hover > a > [class^="fa-"],
|
|
.dropdown-submenu:hover > a > [class*=" fa-"] {
|
|
background-image: none;
|
|
}
|
|
|
|
|
|
/* keeps Bootstrap styles with and without icons the same */
|
|
.btn, .nav {
|
|
[class^="fa-"],
|
|
[class*=" fa-"] {
|
|
// display: inline;
|
|
&.fa-large { line-height: .9em; }
|
|
&.fa-spin { display: inline-block; }
|
|
}
|
|
}
|
|
.nav-tabs, .nav-pills {
|
|
[class^="fa-"],
|
|
[class*=" fa-"] {
|
|
&, &.fa-large { line-height: .9em; }
|
|
}
|
|
}
|
|
.btn {
|
|
[class^="fa-"],
|
|
[class*=" fa-"] {
|
|
&.pull-left, &.pull-right {
|
|
&.fa-2x { margin-top: .18em; }
|
|
}
|
|
&.fa-spin.fa-large { line-height: .8em; }
|
|
}
|
|
}
|
|
.btn.btn-small {
|
|
[class^="fa-"],
|
|
[class*=" fa-"] {
|
|
&.pull-left, &.pull-right {
|
|
&.fa-2x { margin-top: .25em; }
|
|
}
|
|
}
|
|
}
|
|
.btn.btn-large {
|
|
[class^="fa-"],
|
|
[class*=" fa-"] {
|
|
margin-top: 0; // overrides bootstrap default
|
|
&.pull-left, &.pull-right {
|
|
&.fa-2x { margin-top: .05em; }
|
|
}
|
|
&.pull-left.fa-2x { margin-right: .2em; }
|
|
&.pull-right.fa-2x { margin-left: .2em; }
|
|
}
|
|
}
|
|
|
|
/* Fixes alignment in nav lists */
|
|
.nav-list [class^="fa-"],
|
|
.nav-list [class*=" fa-"] {
|
|
line-height: inherit;
|
|
}
|