-
Notifications
You must be signed in to change notification settings - Fork 6
/
fa5-power-transforms.scss
389 lines (332 loc) · 13.3 KB
/
fa5-power-transforms.scss
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
$base-width: 1.25em;
$base-width-half: $base-width / 2;
/*
* BACKGROUND COLORS
* For glow and masking effects
*/
$bg-default-color: #fff;
$bg-default-active-color: #f5f5f5;
$bg-danger-color: #f2dede;
$bg-danger-active-color: #ebcccc;
$bg-warning-color: #fcf8e3;
$bg-warning-active-color: #faf2cc;
$bg-success-color: #dff0d8;
$bg-success-active-color: #d0e9c6;
$bg-info-color: #d9edf7;
$bg-info-active-color: #c4e3f3;
$bg-btn-default-hover-color: #e6e6e6;
$bg-btn-default-active-color: #d4d4d4;
$bg-btn-success-color: #5cb85c;
$bg-btn-success-hover-color: #449d44;
$bg-btn-success-active-color: #398439;
$bg-btn-warning-color: #f0ad4e;
$bg-btn-warning-hover-color: #ec971f;
$bg-btn-warning-active-color: #d58512;
$bg-nav-pills-hover-color: #eeeeee;
$bg-nav-pills-active-color: #337ab7;
/**
* fa-layers
* - supports up, down, left, right
*/
.fa-layers {
position: relative;
display: inline-block;
width: $base-width;
height: $base-width;
line-height: $base-width;
text-align: center;
vertical-align: middle;
&.fa-fw > * {
width: 100%;
height: 100%;
}
& > .fa,
& > .fa-layers-text,
& > .fab,
& > .fad,
& > .fal,
& > .far,
& > .fas {
position: absolute;
left: 0;
width: 100%;
line-height: inherit;
text-align: center;
}
/*
* SHIFTING
*/
@for $i from 1 through 8 {
& [data-fa-transform*='up-#{$i}'] {
top: -($i / 8 * 50%);
}
}
@for $i from 1 through 8 {
& [data-fa-transform*='down-#{$i}'] {
top: ($i / 8 * 50%);
}
}
@for $i from 1 through 8 {
& [data-fa-transform*='right-#{$i}'] {
left: ($i / 8 * 50%);
}
}
@for $i from 1 through 8 {
& [data-fa-transform*='left-#{$i}'] {
left: -($i / 8 * 50%);
}
}
}
.fa,
.fa-layers-text,
.fab,
.fad,
.fal,
.far,
.fas {
/*
* ROTATE
*/
@for $i from 1 through 71 {
&[data-fa-transform*='rotate-#{$i * 5}'],
&[data-fa-transform*='rotate-#{$i * 5 - 360}'] {
transform: rotate(5deg * $i);
}
}
/*
* FLIP
*/
&[data-fa-transform*='flip-h'] {
transform: scale(-1, 1);
}
&[data-fa-transform*='flip-v'] {
transform: scale(1, -1);
}
&[data-fa-transform*='flip-h'][data-fa-transform*='flip-v'] {
transform: scale(-1, -1);
}
/*
* SHRINK
*/
@for $i from 1 through 16 {
&[data-fa-transform*='shrink-#{$i}'] {
font-size: 1em - $i / 16;
}
}
/*
* GROW
*/
@for $i from 1 through 16 {
&[data-fa-transform*='grow-#{$i}'] {
font-size: 1em + $i / 16;
}
}
/*
* MASKING
*/
&[data-fa-mask] {
color: $bg-default-color;
a.list-group-item:hover &,
a.list-group-item:focus &,
button.list-group-item:hover &,
button.list-group-item:focus & {
color: $bg-default-active-color;
}
.alert-danger &,
.bg-danger &,
.list-group-item-danger &,
tr.danger &,
td.danger & {
color: $bg-danger-color;
}
a.list-group-item-danger:hover &,
a.list-group-item-danger:focus &,
button.list-group-item-danger:hover &,
button.list-group-item-danger:focus & {
color: $bg-danger-active-color;
}
.alert-warning &,
.bg-warning &,
.list-group-item-warning &,
tr.warning &,
td.warning & {
color: $bg-warning-color;
}
a.list-group-item-warning:hover &,
a.list-group-item-warning:focus &,
button.list-group-item-warning:hover &,
button.list-group-item-warning:focus & {
color: $bg-warning-active-color;
}
.alert-success &,
.bg-success &,
.list-group-item-success &,
tr.success &,
td.success & {
color: $bg-success-color;
}
a.list-group-item-success:hover &,
a.list-group-item-success:focus &,
button.list-group-item-success:hover &,
button.list-group-item-success:focus & {
color: $bg-success-active-color;
}
.alert-info &,
.bg-info &,
.list-group-item-info &,
tr.info &,
td.info & {
color: $bg-info-color;
}
a.list-group-item-info:hover &,
a.list-group-item-info:focus &,
button.list-group-item-info:hover &,
button.list-group-item-info:focus & {
color: $bg-info-active-color;
}
}
/*
* GLOWING
*/
&[data-fa-glow] {
text-shadow: -2px 0 0 $bg-default-color, 2px 0 $bg-default-color, 0 2px 0 $bg-default-color, 0 -2px 0 $bg-default-color, 1.5px 1.5px 0 $bg-default-color, -1.5px -1.5px 0 $bg-default-color, -1.5px 1.5px 0 $bg-default-color, 1.5px -1.5px 0 $bg-default-color;
-webkit-text-stroke-width: 4px;
-webkit-text-stroke-color: $bg-default-color;
paint-order: stroke fill;
@for $i from 1 through 9 {
&[data-fa-glow*='#{$i}px'] {
-webkit-text-stroke-width: #{$i}px;
}
}
a.list-group-item:hover &,
a.list-group-item:focus &,
button.list-group-item:hover &,
button.list-group-item:focus & {
text-shadow: -2px 0 0 $bg-default-active-color, 2px 0 $bg-default-active-color, 0 2px 0 $bg-default-active-color, 0 -2px 0 $bg-default-active-color, 1.5px 1.5px 0 $bg-default-active-color, -1.5px -1.5px 0 $bg-default-active-color, -1.5px 1.5px 0 $bg-default-active-color, 1.5px -1.5px 0 $bg-default-active-color;
-webkit-text-stroke-color: $bg-default-active-color;
}
.alert-danger &,
.bg-danger &,
.list-group-item-danger &,
tr.danger &,
td.danger &,
&[data-fa-glow*='danger'] {
text-shadow: -2px 0 0 $bg-danger-color, 2px 0 $bg-danger-color, 0 2px 0 $bg-danger-color, 0 -2px 0 $bg-danger-color, 1.5px 1.5px 0 $bg-danger-color, -1.5px -1.5px 0 $bg-danger-color, -1.5px 1.5px 0 $bg-danger-color, 1.5px -1.5px 0 $bg-danger-color;
-webkit-text-stroke-color: $bg-danger-color;
}
a.list-group-item-danger:hover &,
a.list-group-item-danger:focus &,
button.list-group-item-danger:hover &,
button.list-group-item-danger:focus & {
text-shadow: -2px 0 0 $bg-danger-active-color, 2px 0 $bg-danger-active-color, 0 2px 0 $bg-danger-active-color, 0 -2px 0 $bg-danger-active-color, 1.5px 1.5px 0 $bg-danger-active-color, -1.5px -1.5px 0 $bg-danger-active-color, -1.5px 1.5px 0 $bg-danger-active-color, 1.5px -1.5px 0 $bg-danger-active-color;
-webkit-text-stroke-color: $bg-danger-active-color;
}
.alert-warning &,
.bg-warning &,
.list-group-item-warning &,
tr.warning &,
td.warning &,
&[data-fa-glow*='warning'] {
text-shadow: -2px 0 0 $bg-warning-color, 2px 0 $bg-warning-color, 0 2px 0 $bg-warning-color, 0 -2px 0 $bg-warning-color, 1.5px 1.5px 0 $bg-warning-color, -1.5px -1.5px 0 $bg-warning-color, -1.5px 1.5px 0 $bg-warning-color, 1.5px -1.5px 0 $bg-warning-color;
-webkit-text-stroke-color: $bg-warning-color;
}
a.list-group-item-warning:hover &,
a.list-group-item-warning:focus &,
button.list-group-item-warning:hover &,
button.list-group-item-warning:focus & {
text-shadow: -2px 0 0 $bg-warning-active-color, 2px 0 $bg-warning-active-color, 0 2px 0 $bg-warning-active-color, 0 -2px 0 $bg-warning-active-color, 1.5px 1.5px 0 $bg-warning-active-color, -1.5px -1.5px 0 $bg-warning-active-color, -1.5px 1.5px 0 $bg-warning-active-color, 1.5px -1.5px 0 $bg-warning-active-color;
-webkit-text-stroke-color: $bg-warning-active-color;
}
.alert-success &,
.bg-success &,
.list-group-item-success &,
tr.success &,
td.success &,
&[data-fa-glow*='success'] {
text-shadow: -2px 0 0 $bg-success-color, 2px 0 $bg-success-color, 0 2px 0 $bg-success-color, 0 -2px 0 $bg-success-color, 1.5px 1.5px 0 $bg-success-color, -1.5px -1.5px 0 $bg-success-color, -1.5px 1.5px 0 $bg-success-color, 1.5px -1.5px 0 $bg-success-color;
-webkit-text-stroke-color: $bg-success-color;
}
a.list-group-item-success:hover &,
a.list-group-item-success:focus &,
button.list-group-item-success:hover &,
button.list-group-item-success:focus & {
text-shadow: -2px 0 0 $bg-success-active-color, 2px 0 $bg-success-active-color, 0 2px 0 $bg-success-active-color, 0 -2px 0 $bg-success-active-color, 1.5px 1.5px 0 $bg-success-active-color, -1.5px -1.5px 0 $bg-success-active-color, -1.5px 1.5px 0 $bg-success-active-color, 1.5px -1.5px 0 $bg-success-active-color;
-webkit-text-stroke-color: $bg-success-active-color;
}
.alert-info &,
.bg-info &,
.list-group-item-info &,
tr.info &,
td.info &,
&[data-fa-glow*='info'] {
text-shadow: -2px 0 0 $bg-info-color, 2px 0 $bg-info-color, 0 2px 0 $bg-info-color, 0 -2px 0 $bg-info-color, 1.5px 1.5px 0 $bg-info-color, -1.5px -1.5px 0 $bg-info-color, -1.5px 1.5px 0 $bg-info-color, 1.5px -1.5px 0 $bg-info-color;
-webkit-text-stroke-color: $bg-info-color;
}
a.list-group-item-info:hover &,
a.list-group-item-info:focus &,
button.list-group-item-info:hover &,
button.list-group-item-info:focus & {
text-shadow: -2px 0 0 $bg-info-active-color, 2px 0 $bg-info-active-color, 0 2px 0 $bg-info-active-color, 0 -2px 0 $bg-info-active-color, 1.5px 1.5px 0 $bg-info-active-color, -1.5px -1.5px 0 $bg-info-active-color, -1.5px 1.5px 0 $bg-info-active-color, 1.5px -1.5px 0 $bg-info-active-color;
-webkit-text-stroke-color: $bg-info-active-color;
}
.btn-default:hover &,
.btn-default:focus &,
.btn-default:active & {
text-shadow: -2px 0 0 $bg-btn-default-hover-color, 2px 0 $bg-btn-default-hover-color, 0 2px 0 $bg-btn-default-hover-color, 0 -2px 0 $bg-btn-default-hover-color, 1.5px 1.5px 0 $bg-btn-default-hover-color, -1.5px -1.5px 0 $bg-btn-default-hover-color, -1.5px 1.5px 0 $bg-btn-default-hover-color, 1.5px -1.5px 0 $bg-btn-default-hover-color;
-webkit-text-stroke-color: $bg-btn-default-hover-color;
}
.btn-default:active:hover &,
.btn-default:active:focus & {
text-shadow: -2px 0 0 $bg-btn-default-active-color, 2px 0 $bg-btn-default-active-color, 0 2px 0 $bg-btn-default-active-color, 0 -2px 0 $bg-btn-default-active-color, 1.5px 1.5px 0 $bg-btn-default-active-color, -1.5px -1.5px 0 $bg-btn-default-active-color, -1.5px 1.5px 0 $bg-btn-default-active-color, 1.5px -1.5px 0 $bg-btn-default-active-color;
-webkit-text-stroke-color: $bg-btn-default-active-color;
}
.btn-success & {
text-shadow: -2px 0 0 $bg-btn-success-color, 2px 0 $bg-btn-success-color, 0 2px 0 $bg-btn-success-color, 0 -2px 0 $bg-btn-success-color, 1.5px 1.5px 0 $bg-btn-success-color, -1.5px -1.5px 0 $bg-btn-success-color, -1.5px 1.5px 0 $bg-btn-success-color, 1.5px -1.5px 0 $bg-btn-success-color;
-webkit-text-stroke-color: $bg-btn-success-color;
}
.btn-success:hover &,
.btn-success:focus &,
.btn-success:active & {
text-shadow: -2px 0 0 $bg-btn-success-hover-color, 2px 0 $bg-btn-success-hover-color, 0 2px 0 $bg-btn-success-hover-color, 0 -2px 0 $bg-btn-success-hover-color, 1.5px 1.5px 0 $bg-btn-success-hover-color, -1.5px -1.5px 0 $bg-btn-success-hover-color, -1.5px 1.5px 0 $bg-btn-success-hover-color, 1.5px -1.5px 0 $bg-btn-success-hover-color;
-webkit-text-stroke-color: $bg-btn-success-hover-color;
}
.btn-success:active:hover &,
.btn-success:active:focus & {
text-shadow: -2px 0 0 $bg-btn-success-active-color, 2px 0 $bg-btn-success-active-color, 0 2px 0 $bg-btn-success-active-color, 0 -2px 0 $bg-btn-success-active-color, 1.5px 1.5px 0 $bg-btn-success-active-color, -1.5px -1.5px 0 $bg-btn-success-active-color, -1.5px 1.5px 0 $bg-btn-success-active-color, 1.5px -1.5px 0 $bg-btn-success-active-color;
-webkit-text-stroke-color: $bg-btn-success-active-color;
}
.btn-warning & {
text-shadow: -2px 0 0 $bg-btn-warning-color, 2px 0 $bg-btn-warning-color, 0 2px 0 $bg-btn-warning-color, 0 -2px 0 $bg-btn-warning-color, 1.5px 1.5px 0 $bg-btn-warning-color, -1.5px -1.5px 0 $bg-btn-warning-color, -1.5px 1.5px 0 $bg-btn-warning-color, 1.5px -1.5px 0 $bg-btn-warning-color;
-webkit-text-stroke-color: $bg-btn-warning-color;
}
.btn-warning:hover &,
.btn-warning:focus &,
.btn-warning:active & {
text-shadow: -2px 0 0 $bg-btn-warning-hover-color, 2px 0 $bg-btn-warning-hover-color, 0 2px 0 $bg-btn-warning-hover-color, 0 -2px 0 $bg-btn-warning-hover-color, 1.5px 1.5px 0 $bg-btn-warning-hover-color, -1.5px -1.5px 0 $bg-btn-warning-hover-color, -1.5px 1.5px 0 $bg-btn-warning-hover-color, 1.5px -1.5px 0 $bg-btn-warning-hover-color;
-webkit-text-stroke-color: $bg-btn-warning-hover-color;
}
.btn-warning:active:hover &,
.btn-warning:active:focus & {
text-shadow: -2px 0 0 $bg-btn-warning-active-color, 2px 0 $bg-btn-warning-active-color, 0 2px 0 $bg-btn-warning-active-color, 0 -2px 0 $bg-btn-warning-active-color, 1.5px 1.5px 0 $bg-btn-warning-active-color, -1.5px -1.5px 0 $bg-btn-warning-active-color, -1.5px 1.5px 0 $bg-btn-warning-active-color, 1.5px -1.5px 0 $bg-btn-warning-active-color;
-webkit-text-stroke-color: $bg-btn-warning-active-color;
}
.nav-pills [data-toggle='tab']:hover &,
.nav-pills [data-toggle='tab']:focus & {
text-shadow: -2px 0 0 $bg-nav-pills-hover-color, 2px 0 $bg-nav-pills-hover-color, 0 2px 0 $bg-nav-pills-hover-color, 0 -2px 0 $bg-nav-pills-hover-color, 1.5px 1.5px 0 $bg-nav-pills-hover-color, -1.5px -1.5px 0 $bg-nav-pills-hover-color, -1.5px 1.5px 0 $bg-nav-pills-hover-color, 1.5px -1.5px 0 $bg-nav-pills-hover-color;
-webkit-text-stroke-color: $bg-nav-pills-hover-color;
}
.nav-pills > .active > [data-toggle='tab'] & {
text-shadow: -2px 0 0 $bg-nav-pills-active-color, 2px 0 $bg-nav-pills-active-color, 0 2px 0 $bg-nav-pills-active-color, 0 -2px 0 $bg-nav-pills-active-color, 1.5px 1.5px 0 $bg-nav-pills-active-color, -1.5px -1.5px 0 $bg-nav-pills-active-color, -1.5px 1.5px 0 $bg-nav-pills-active-color, 1.5px -1.5px 0 $bg-nav-pills-active-color;
-webkit-text-stroke-color: $bg-nav-pills-active-color;
}
&[data-fa-glow*='black'] {
text-shadow: -2px 0 0 #000, 2px 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 1.5px 1.5px 0 #000, -1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000;
-webkit-text-stroke-color: #000;
}
&[data-fa-glow*='1px'],
&[data-fa-glow*='2px'],
&[data-fa-glow*='3px'] {
text-shadow: none;
}
}
}