Fork-Awesome/less/bootstrap.less

85 lines
2.0 KiB
Plaintext
Raw Normal View History

/* BOOTSTRAP SPECIFIC CLASSES
* -------------------------- */
/* Bootstrap 2.0 sprites.less reset */
2013-10-01 08:16:19 +08:00
[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,
2013-10-01 08:16:19 +08:00
.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 {
2013-10-01 08:16:19 +08:00
[class^="fa-"],
[class*=" fa-"] {
// display: inline;
2013-10-01 08:16:19 +08:00
&.fa-large { line-height: .9em; }
&.fa-spin { display: inline-block; }
}
}
.nav-tabs, .nav-pills {
2013-10-01 08:16:19 +08:00
[class^="fa-"],
[class*=" fa-"] {
&, &.fa-large { line-height: .9em; }
}
}
.btn {
2013-10-01 08:16:19 +08:00
[class^="fa-"],
[class*=" fa-"] {
&.pull-left, &.pull-right {
2013-10-01 08:16:19 +08:00
&.fa-2x { margin-top: .18em; }
}
2013-10-01 08:16:19 +08:00
&.fa-spin.fa-large { line-height: .8em; }
}
}
.btn.btn-small {
2013-10-01 08:16:19 +08:00
[class^="fa-"],
[class*=" fa-"] {
&.pull-left, &.pull-right {
2013-10-01 08:16:19 +08:00
&.fa-2x { margin-top: .25em; }
}
}
}
.btn.btn-large {
2013-10-01 08:16:19 +08:00
[class^="fa-"],
[class*=" fa-"] {
margin-top: 0; // overrides bootstrap default
&.pull-left, &.pull-right {
2013-10-01 08:16:19 +08:00
&.fa-2x { margin-top: .05em; }
}
2013-10-01 08:16:19 +08:00
&.pull-left.fa-2x { margin-right: .2em; }
&.pull-right.fa-2x { margin-left: .2em; }
}
}
2013-06-15 21:22:23 +08:00
/* Fixes alignment in nav lists */
2013-10-01 08:16:19 +08:00
.nav-list [class^="fa-"],
.nav-list [class*=" fa-"] {
2013-06-15 21:22:23 +08:00
line-height: inherit;
}