bootstrap-sass 3.0.0.0.rc2 → 3.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bootstrap-sass might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +29 -0
- data/lib/bootstrap-sass.rb +10 -5
- data/lib/bootstrap-sass/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1e4cbf951a9a343944ac462a39d6b43bebfc6ec
|
4
|
+
data.tar.gz: b62ae642dcf8ab632639863c06ba4a780de0f182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0a03a10a35d447a05d4be0b408d130667660bd6883b115c8f1c104bedfb0763b81539de9de31d64007cb14c9da376116e0b1d6d5005bb89951d7d44fefae60d
|
7
|
+
data.tar.gz: 5c054a06f4bae587b0565b892181a607c2bd155afa53be377e5c89f4a676ddc57d3d920d29e22aa07b614c85ac6752ac3f78c805fab8e8a3f7c6851dfa987a68
|
data/README.md
CHANGED
@@ -67,6 +67,35 @@ You can also include optional bootstrap theme:
|
|
67
67
|
@import "bootstrap/theme";
|
68
68
|
```
|
69
69
|
|
70
|
+
The full list of bootstrap variables can be found [here](http://getbootstrap.com/customize/#less-variables). You can override these by simply redefining the variable before the `@import` directive.
|
71
|
+
For example:
|
72
|
+
```css
|
73
|
+
$navbar-default-bg: #312312;
|
74
|
+
$light-orange: #ff8c00;
|
75
|
+
$navbar-default-color: $light-orange;
|
76
|
+
|
77
|
+
@import "bootstrap";
|
78
|
+
```
|
79
|
+
|
80
|
+
For granular control over what is imported, instead of `@import "bootstrap"`, explicitly specify which modules and components should be included.
|
81
|
+
|
82
|
+
Copy `bootstrap.scss` from the gem into the project's vendor/ as `bootstrap-custom.scss`.
|
83
|
+
|
84
|
+
```bash
|
85
|
+
cp $(bundle show bootstrap-sass)/vendor/assets/stylesheets/bootstrap/bootstrap.scss \
|
86
|
+
vendor/assets/stylesheets/bootstrap-custom.scss
|
87
|
+
```
|
88
|
+
|
89
|
+
Comment out the import statements you do not need from `bootstrap-custom.scss`.
|
90
|
+
|
91
|
+
Finally, in your `application.sass`:
|
92
|
+
|
93
|
+
```scss
|
94
|
+
@import 'bootstrap-custom';
|
95
|
+
```
|
96
|
+
|
97
|
+
NB: This file now needs to be manually kept up to date with structural changes from upstream.
|
98
|
+
|
70
99
|
### Javascript
|
71
100
|
|
72
101
|
We have a helper that includes all Bootstrap javascripts. If you use Rails (or Sprockets separately),
|
data/lib/bootstrap-sass.rb
CHANGED
@@ -15,12 +15,17 @@ module Bootstrap
|
|
15
15
|
register_rails_engine
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
raise Bootstrap::FrameworkNotFound,
|
18
|
+
unless rails? || compass?
|
19
|
+
raise Bootstrap::FrameworkNotFound,
|
20
|
+
'bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded'
|
21
|
+
end
|
22
|
+
|
23
|
+
bs_stylesheets = File.expand_path(File.join('..', 'vendor', 'assets', 'stylesheets'))
|
24
|
+
::Sass.load_paths << bs_stylesheets
|
25
|
+
if ::Sass::Script::Number.precision < 10
|
26
|
+
# see https://github.com/thomas-mcdonald/bootstrap-sass/issues/409
|
27
|
+
::Sass::Script::Number.precision = 10
|
20
28
|
end
|
21
|
-
|
22
|
-
stylesheets = File.expand_path(File.join("..", 'vendor', 'assets', 'stylesheets'))
|
23
|
-
::Sass.load_paths << stylesheets
|
24
29
|
end
|
25
30
|
|
26
31
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.0
|
4
|
+
version: 3.0.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas McDonald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: compass
|
@@ -278,12 +278,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
278
278
|
version: '0'
|
279
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
280
|
requirements:
|
281
|
-
- - '
|
281
|
+
- - '>='
|
282
282
|
- !ruby/object:Gem::Version
|
283
|
-
version:
|
283
|
+
version: '0'
|
284
284
|
requirements: []
|
285
285
|
rubyforge_project:
|
286
|
-
rubygems_version: 2.
|
286
|
+
rubygems_version: 2.0.6
|
287
287
|
signing_key:
|
288
288
|
specification_version: 4
|
289
289
|
summary: Twitter's Bootstrap, converted to Sass and ready to drop into Rails or Compass
|