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

core.less « less - github.com/ForkAwesome/Fork-Awesome.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ffa63ba30b338dc6738ef1f18a3d56e58ec2a58b (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* FONT AWESOME CORE
 * -------------------------- */

.@{fa-css-prefix} {
  display: inline-block;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* makes the font 33% larger relative to the icon container */
.@{fa-css-prefix}-lg {
  font-size: (4em / 3);
  line-height: (3em / 4);
  vertical-align: -15%;
}
/* increased font size for icon-lg */
.@{fa-css-prefix}-fixed-width {
  width: (16em / 14);
  padding-right: (4em / 14);
  text-align: right;
  &.@{fa-css-prefix}-lg {
    width: (20em / 14);
  }
}


// Icon UL & LI
// -------------------------

.@{fa-css-prefix}-ul {
  padding-left: 0;
  margin-left: @fa-icon-li-width;
  list-style-type: none;

  > li { position: relative; }
}
.@{fa-css-prefix}-li {
  position: absolute;
  left: -@fa-icon-li-width;
  width: @fa-icon-li-width;
  top: (2em / 14);
  text-align: center;
  &.@{fa-css-prefix}-lg {
    left: -@fa-icon-li-width + (4em / 14);
  }
}


// allows usage of the hide class directly on font awesome icons
.@{fa-css-prefix}.hide { display: none; }

.@{fa-css-prefix}-muted { color: @fa-icon-muted; }
.@{fa-css-prefix}-light { color: @fa-icon-light; }
.@{fa-css-prefix}-dark { color: @fa-icon-dark; }


// Icon Borders
// -------------------------

.@{fa-css-prefix}-border {
  padding: .2em .25em .15em;
  border: solid 1px @fa-border-color;
  border-radius: 3px;
}


// Icon Sizes
// -------------------------

.@{fa-css-prefix}-2x {
  font-size: 2em;
  &.@{fa-css-prefix}-border {
    border-width: 2px;
    border-radius: 4px;
  }
}
.@{fa-css-prefix}-3x {
  font-size: 3em;
  &.@{fa-css-prefix}-border {
    border-width: 3px;
    border-radius: 5px;
  }
}
.@{fa-css-prefix}-4x {
  font-size: 4em;
  &.@{fa-css-prefix}-border {
    border-width: 4px;
    border-radius: 6px;
  }
}
.@{fa-css-prefix}-5x {
  font-size: 5em;
  &.@{fa-css-prefix}-border {
    border-width: 5px;
    border-radius: 7px;
  }
}


// Floats & Margins
// -------------------------

// Quick floats
.pull-right { float: right; }
.pull-left { float: left; }

.@{fa-css-prefix} {
  &.pull-left { margin-right: .3em; }
  &.pull-right { margin-left: .3em; }
}