You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+32-84
Original file line number
Diff line number
Diff line change
@@ -1,114 +1,62 @@
1
1
# Golden Bootstrap
2
-
Golden Bootstrap is a bunch of [less](http://lesscss.org/)written css rules giving you the [divine](http://en.wikipedia.org/wiki/Sacred_geometry) power of using golden ratio sized columns with [Bootstrap](http://twitter.github.com/bootstrap).
2
+
Golden Bootstrap is a tiny addon for [Bootstrap](http://getbootstrap.com/) giving you the [divine](http://en.wikipedia.org/wiki/Sacred_geometry) power of using golden ratio sized columns. Available both for [less](http://lesscss.org/) and [Sass]() CSS preprocessors.
Include `golden-bootstrap.less` or `golden-bootstrap.scss` in `bootstrap.less` or `bootstrap.scss`, and that's it.
5
6
6
-
## Getting started
7
-
Include `golden-bootstrap.less` in `bootstrap.less`, compile and that's it.
8
-
9
-
```
10
-
// Grid system and page structure
11
-
...
12
-
@import "golden-bootstrap/golden-bootstrap.less"; // Add support for Golden Bootstrap
13
-
```
14
-
15
-
## How it works
16
-
“Two quantities are in the golden ratio if the ratio of the sum of the quantities to the larger quantity is equal to the ratio of the larger quantity to the smaller one” ([source](http://en.wikipedia.org/wiki/Golden_ratio)). Under the hood it looks like this:
17
-
18
-
```
19
-
@goldenRatio: 1.6180339887498948482;
20
-
@goldenLarge: 1/@goldenRatio;
21
-
@goldenSmall: 1-@goldenLarge;
7
+
```sass
8
+
// Core CSS
9
+
//...
10
+
@import "golden-bootstrap/golden-bootstrap.scss"; // Add support for Golden Bootstrap
22
11
```
23
-
24
-
Golden Bootstrap uses `@gridColumnWidth` and `@gridGutterWidth` values specified in bootstrap's `variables.less` to generate the grid system.
25
-
26
-
## Fixed
27
-
Use Bootstrap's default fixed columns and nest a new `.row` with a set of `.golden-small` and `.golden-large` columns.
12
+
Then, like you would do with any other Bootstrap default column, simply use a set of `.golden-sm` and `.golden-lg` columns:
28
13
29
14
```html
30
15
<divclass="row">
31
-
<divclass="span9">
32
-
<divclass="row">
33
-
<divclass="golden-small">...</div>
34
-
<divclass="golden-large">...</div>
35
-
</div>
36
-
</div>
16
+
<divclass="col-golden-sm">...</div>
17
+
<divclass="col-golden-lg">...</div>
37
18
</div>
38
19
```
39
20
40
-
Using Golden Bootstrap comes with a notable drawback: you can't nest any `.span*` in a `.golden-small` and `.golden-large` column.
41
-
42
-
### Fixed offsetting
43
-
Add `.offset-golden-small` or `.offset-golden-large` to a `golden*` column to offset it by it's counterpart.
Keep your regular fluid grid scaffolding. To divide any `.span*` by the golden ratio, simply nest `.golden-small` and `.golden-large` under a `.row-fluid`.
You can nest any fluid column in `.golden-small` and `.golden-large`.
40
+
##How it works
41
+
“Two quantities are in the golden ratio if the ratio of the sum of the quantities to the larger quantity is equal to the ratio of the larger quantity to the smaller one” ([source](http://en.wikipedia.org/wiki/Golden_ratio)). Under the hood it looks like this:
73
42
74
-
### Fluid offsetting
75
-
Use `.offset-golden-small` or `.offset-golden-large` to offset any `golden*` column by its counterpart.
43
+
```
44
+
$golden-ratio: 1.6180339887498948482;
45
+
$golden-lg: (1 / $golden-ratio);
46
+
$golden-sm: (1 - $golden-lg);
47
+
```
76
48
77
-
---
49
+
Golden Bootstrap uses `$grid-gutter-width` values specified in bootstrap's `variables.scss` to generate the grid system.
78
50
79
-
## Forms
80
-
Apply Golden Bootstrap's grid to standard form controls through `.controls` for stacked behavior.
Like Bootstrap, you have to add another file to support responsive behaviors. To do so, simply include `golden-bootstrap-responsive.less` in `responsive.less`, compile and you're done.
Golden Bootstrap follows the same versionning than Bootstrap, see [versionning](https://github.com/twbs/bootstrap?source=c#versioning).
110
59
111
-
Golden Bootstrap uses `@gridColumnWidth768`, `@gridGutterWidth768`, `@gridColumnWidth1200` and `@gridGutterWidth1200` values specified in bootstrap's `variables.less` to adapt itself to mediaqueries.
112
60
113
61
---
114
62
@@ -117,7 +65,7 @@ Golden Bootstrap uses `@gridColumnWidth768`, `@gridGutterWidth768`, `@gridColumn
117
65
118
66
# Copyright and license
119
67
120
-
Copyright 2012 Philippe Dionne
68
+
Copyright 2014 Philippe Dionne
121
69
122
70
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
0 commit comments