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

bootstrap.less « less - github.com/ForkAwesome/Fork-Awesome.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6115cda979ddd4e26776baedae9c585f344755e6 (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
/* BOOTSTRAP SPECIFIC CLASSES
 * -------------------------- */

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


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