This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
/
custom.mixins.import.less
115 lines (93 loc) · 1.83 KB
/
custom.mixins.import.less
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
.box-shadow() {
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset,
0px 0px 8px rgba(56, 130, 156, 0.6);
}
.box-shadow-s(@color) {
box-shadow: 0px 0px 4px @color;
}
.no-padding() {
padding: 0;
}
.form-control-humble() {
.form-control;
&:focus {
box-shadow: none;
}
}
.list-unstyled() {
list-style: none;
padding-left: 0;
}
.flip_n_scale(@degrees, @x-axis, @y-axis) {
-moz-transform: rotate(@degrees) scale(@x-axis, @y-axis);
-webkit-transform: rotate(@degrees) scale(@x-axis, @y-axis);
-o-transform: rotate(@degrees) scale(@x-axis, @y-axis);
-ms-transform: rotate(@degrees) scale(@x-axis, @y-axis);
transform: rotate(@degrees) scale(@x-axis, @y-axis);
}
// CUSTOM BUTTON MIXINS
.btn-thin {
.btn;
padding: 3px 12px;
}
.big-button-primary() {
.form-control;
.btn;
.btn-primary;
.no-padding;
border: none;
border-top: 3px solid @body-bg;
text-align: left;
height: auto;
font-size: large;
padding: 10px 15px;
line-height: 1.1;
&:hover {
border: none;
border-top: 3px solid @body-bg;
}
}
.big-button-success() {
.form-control;
.btn;
.btn-success;
.no-padding;
border: none;
border-top: 3px solid @body-bg;
text-align: left;
height: auto;
font-size: large;
padding: 10px 15px;
line-height: 1.1;
&:hover {
border: none;
border-top: 3px solid @body-bg;
}
}
// CUSTOM GRID MIXINS
// One-line statements using bootstrap grid mixins
// Value 0 is used to inherit the previous value
.grid(@xs) {
.make-xs-column(@xs);
}
.grid(@xs, @sm) {
.make-xs-column(@xs);
.make-sm-column(@sm);
}
.grid(@xs, @sm, @md) {
.make-xs-column(@xs);
& when not (@sm = 0) {
.make-sm-column(@sm);
}
.make-md-column(@md);
}
.grid(@xs, @sm, @md, @lg) {
.make-xs-column(@xs);
& when not (@sm = 0) {
.make-sm-column(@sm);
}
& when not (@md = 0) {
.make-md-column(@md);
}
.make-lg-column(@lg);
}