-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathgolden-bootstrap.less
50 lines (40 loc) · 1.02 KB
/
golden-bootstrap.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
/*!
* Golden Bootstrap v3.1
*
* Licensed under the Apache License v2.0
*
* A quick project by Philippe Dionne (http://phildionne.com)
* Much love to @mdo, @fat and every collaborators to Bootstrap
*/
//
// Variables
// --------------------------------------------------
@golden-ratio: 1.6180339887498948482;
@golden-lg: (1 / @golden-ratio);
@golden-sm: (1 - @golden-lg);
//
// Grid
// --------------------------------------------------
.make-col-golden (@grid-gutter-width) {
float: left;
position: relative;
// Prevent columns from collapsing when empty
min-height: 1px;
// Inner gutter via padding
padding-left: (@grid-gutter-width / 2);
padding-right: (@grid-gutter-width / 2);
}
.col-golden-sm {
.make-col-golden(@grid-gutter-width);
width: percentage(@golden-sm);
}
.col-golden-lg {
.make-col-golden(@grid-gutter-width);
width: percentage(@golden-lg);
}
.col-golden-offset-sm {
margin-left: percentage(@golden-sm);
}
.col-golden-offset-lg {
margin-left: percentage(@golden-lg);
}