Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bootstrap.less « less « font-awesome « assets « src - github.com/ForkAwesome/Fork-Awesome.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90ddc1b73e762b86d289e6550e6a40f4dc9cca65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
---
/* BOOTSTRAP SPECIFIC CLASSES
 * -------------------------- */

/* Bootstrap 2.0 sprites.less reset */
.{{ site.fontawesome.css_prefix }} {
  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;
}


/* keeps Bootstrap styles with and without icons the same */
.btn, .nav {
  .{{ site.fontawesome.css_prefix }} {
//    display: inline;
    &.{{ site.fontawesome.css_prefix }}-large { line-height: .9em; }
    &.{{ site.fontawesome.css_prefix }}-spin { display: inline-block; }
  }
}
.nav-tabs, .nav-pills {
  .{{ site.fontawesome.css_prefix }} {
    &, &.{{ site.fontawesome.css_prefix }}-large { line-height: .9em; }
  }
}
.btn {
  .{{ site.fontawesome.css_prefix }} {
    &.pull-left, &.pull-right {
      &.{{ site.fontawesome.css_prefix }}-2x { margin-top: .18em; }
    }
    &.{{ site.fontawesome.css_prefix }}-spin.{{ site.fontawesome.css_prefix }}-large { line-height: .8em; }
  }
}
.btn.btn-small {
  .{{ site.fontawesome.css_prefix }} {
    &.pull-left, &.pull-right {
      &.{{ site.fontawesome.css_prefix }}-2x { margin-top: .25em; }
    }
  }
}
.btn.btn-large {
  .{{ site.fontawesome.css_prefix }} {
    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 .fa {
  line-height: inherit;
}