bootstrap-generators 3.2.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/Rakefile +9 -18
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +31 -21
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +38 -24
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/starter.scss +2 -1
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +3 -3
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +5 -3
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.slim +7 -4
- data/lib/generators/bootstrap/install/templates/layouts/starter.html.erb +10 -9
- data/lib/generators/bootstrap/install/templates/layouts/starter.html.haml +12 -9
- data/lib/generators/bootstrap/install/templates/layouts/starter.html.slim +15 -11
- data/readme-template.md.erb +3 -1
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +1 -1
- data/vendor/assets/javascripts/bootstrap/affix.js +43 -23
- data/vendor/assets/javascripts/bootstrap/alert.js +6 -4
- data/vendor/assets/javascripts/bootstrap/button.js +16 -10
- data/vendor/assets/javascripts/bootstrap/carousel.js +27 -10
- data/vendor/assets/javascripts/bootstrap/collapse.js +69 -28
- data/vendor/assets/javascripts/bootstrap/dropdown.js +20 -10
- data/vendor/assets/javascripts/bootstrap/modal.js +67 -23
- data/vendor/assets/javascripts/bootstrap/popover.js +13 -7
- data/vendor/assets/javascripts/bootstrap/scrollspy.js +12 -7
- data/vendor/assets/javascripts/bootstrap/tab.js +41 -16
- data/vendor/assets/javascripts/bootstrap/tooltip.js +60 -39
- data/vendor/assets/javascripts/bootstrap/transition.js +1 -1
- data/vendor/assets/stylesheets/bootstrap.css.erb +332 -203
- data/vendor/assets/stylesheets/bootstrap.css.map +1 -0
- data/vendor/twitter/bootstrap/less/badges.less +7 -1
- data/vendor/twitter/bootstrap/less/button-groups.less +16 -13
- data/vendor/twitter/bootstrap/less/buttons.less +7 -4
- data/vendor/twitter/bootstrap/less/carousel.less +24 -0
- data/vendor/twitter/bootstrap/less/code.less +1 -0
- data/vendor/twitter/bootstrap/less/component-animations.less +5 -2
- data/vendor/twitter/bootstrap/less/dropdowns.less +3 -5
- data/vendor/twitter/bootstrap/less/forms.less +46 -40
- data/vendor/twitter/bootstrap/less/glyphicons.less +2 -1
- data/vendor/twitter/bootstrap/less/jumbotron.less +6 -5
- data/vendor/twitter/bootstrap/less/list-group.less +1 -8
- data/vendor/twitter/bootstrap/less/media.less +27 -36
- data/vendor/twitter/bootstrap/less/mixins/buttons.less +2 -0
- data/vendor/twitter/bootstrap/less/mixins/forms.less +5 -1
- data/vendor/twitter/bootstrap/less/mixins/grid-framework.less +2 -2
- data/vendor/twitter/bootstrap/less/mixins/image.less +0 -1
- data/vendor/twitter/bootstrap/less/mixins/labels.less +1 -1
- data/vendor/twitter/bootstrap/less/mixins/vendor-prefixes.less +6 -3
- data/vendor/twitter/bootstrap/less/modals.less +3 -5
- data/vendor/twitter/bootstrap/less/navbar.less +30 -25
- data/vendor/twitter/bootstrap/less/navs.less +3 -1
- data/vendor/twitter/bootstrap/less/normalize.less +5 -3
- data/vendor/twitter/bootstrap/less/pager.less +1 -2
- data/vendor/twitter/bootstrap/less/pagination.less +1 -1
- data/vendor/twitter/bootstrap/less/panels.less +21 -3
- data/vendor/twitter/bootstrap/less/popovers.less +6 -4
- data/vendor/twitter/bootstrap/less/print.less +102 -96
- data/vendor/twitter/bootstrap/less/progress-bars.less +1 -19
- data/vendor/twitter/bootstrap/less/responsive-embed.less +2 -1
- data/vendor/twitter/bootstrap/less/scaffolding.less +1 -1
- data/vendor/twitter/bootstrap/less/tables.less +11 -10
- data/vendor/twitter/bootstrap/less/theme.less +23 -9
- data/vendor/twitter/bootstrap/less/thumbnails.less +1 -1
- data/vendor/twitter/bootstrap/less/tooltip.less +12 -4
- data/vendor/twitter/bootstrap/less/type.less +0 -11
- data/vendor/twitter/bootstrap/less/utilities.less +0 -1
- data/vendor/twitter/bootstrap/less/variables.less +31 -21
- data/vendor/twitter/bootstrap/sass/_bootstrap-compass.scss +7 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-mincer.scss +17 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-sprockets.scss +7 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap.scss +50 -0
- data/vendor/twitter/bootstrap/sass/{_alerts.scss → bootstrap/_alerts.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{_badges.scss → bootstrap/_badges.scss} +7 -1
- data/vendor/twitter/bootstrap/sass/{_breadcrumbs.scss → bootstrap/_breadcrumbs.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{_button-groups.scss → bootstrap/_button-groups.scss} +18 -15
- data/vendor/twitter/bootstrap/sass/{_buttons.scss → bootstrap/_buttons.scss} +8 -5
- data/vendor/twitter/bootstrap/sass/{_carousel.scss → bootstrap/_carousel.scss} +25 -1
- data/vendor/twitter/bootstrap/sass/{_close.scss → bootstrap/_close.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{_code.scss → bootstrap/_code.scss} +1 -0
- data/vendor/twitter/bootstrap/sass/{_component-animations.scss → bootstrap/_component-animations.scss} +5 -2
- data/vendor/twitter/bootstrap/sass/{_dropdowns.scss → bootstrap/_dropdowns.scss} +4 -6
- data/vendor/twitter/bootstrap/sass/{_forms.scss → bootstrap/_forms.scss} +53 -43
- data/vendor/twitter/bootstrap/sass/{_glyphicons.scss → bootstrap/_glyphicons.scss} +7 -10
- data/vendor/twitter/bootstrap/sass/{_grid.scss → bootstrap/_grid.scss} +4 -4
- data/vendor/twitter/bootstrap/sass/{_input-groups.scss → bootstrap/_input-groups.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{_jumbotron.scss → bootstrap/_jumbotron.scss} +6 -5
- data/vendor/twitter/bootstrap/sass/{_labels.scss → bootstrap/_labels.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{_list-group.scss → bootstrap/_list-group.scss} +1 -8
- data/vendor/twitter/bootstrap/sass/bootstrap/_media.scss +47 -0
- data/vendor/twitter/bootstrap/sass/{_mixins.scss → bootstrap/_mixins.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{_modals.scss → bootstrap/_modals.scss} +4 -6
- data/vendor/twitter/bootstrap/sass/{_navbar.scss → bootstrap/_navbar.scss} +36 -33
- data/vendor/twitter/bootstrap/sass/{_navs.scss → bootstrap/_navs.scss} +5 -3
- data/vendor/twitter/bootstrap/sass/{_normalize.scss → bootstrap/_normalize.scss} +5 -3
- data/vendor/twitter/bootstrap/sass/{_pager.scss → bootstrap/_pager.scss} +2 -3
- data/vendor/twitter/bootstrap/sass/{_pagination.scss → bootstrap/_pagination.scss} +1 -1
- data/vendor/twitter/bootstrap/sass/{_panels.scss → bootstrap/_panels.scss} +22 -4
- data/vendor/twitter/bootstrap/sass/{_popovers.scss → bootstrap/_popovers.scss} +6 -4
- data/vendor/twitter/bootstrap/sass/bootstrap/_print.scss +107 -0
- data/vendor/twitter/bootstrap/sass/{_progress-bars.scss → bootstrap/_progress-bars.scss} +2 -20
- data/vendor/twitter/bootstrap/sass/{_responsive-embed.scss → bootstrap/_responsive-embed.scss} +2 -1
- data/vendor/twitter/bootstrap/sass/{_responsive-utilities.scss → bootstrap/_responsive-utilities.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{_scaffolding.scss → bootstrap/_scaffolding.scss} +3 -3
- data/vendor/twitter/bootstrap/sass/{_tables.scss → bootstrap/_tables.scss} +11 -10
- data/vendor/twitter/bootstrap/sass/{_theme.scss → bootstrap/_theme.scss} +27 -13
- data/vendor/twitter/bootstrap/sass/{_thumbnails.scss → bootstrap/_thumbnails.scss} +2 -2
- data/vendor/twitter/bootstrap/sass/{_tooltip.scss → bootstrap/_tooltip.scss} +12 -4
- data/vendor/twitter/bootstrap/sass/{_type.scss → bootstrap/_type.scss} +10 -16
- data/vendor/twitter/bootstrap/sass/{_utilities.scss → bootstrap/_utilities.scss} +3 -4
- data/vendor/twitter/bootstrap/sass/{_variables.scss → bootstrap/_variables.scss} +38 -24
- data/vendor/twitter/bootstrap/sass/{_wells.scss → bootstrap/_wells.scss} +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_alerts.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_background-variant.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_border-radius.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_buttons.scss +2 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_center-block.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_clearfix.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_forms.scss +5 -1
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_gradients.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_grid-framework.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_grid.scss +2 -2
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_hide-text.scss +1 -1
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_image.scss +0 -1
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_labels.scss +1 -1
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_list-group.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_nav-divider.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_nav-vertical-align.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_opacity.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_pagination.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_panels.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_progress-bar.scss +1 -1
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_reset-filter.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_resize.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_responsive-visibility.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_size.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_tab-focus.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_table-row.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_text-emphasis.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_text-overflow.scss +0 -0
- data/vendor/twitter/bootstrap/sass/{mixins → bootstrap/mixins}/_vendor-prefixes.scss +6 -3
- metadata +76 -72
- data/vendor/twitter/bootstrap/sass/_media.scss +0 -56
- data/vendor/twitter/bootstrap/sass/_print.scss +0 -101
- data/vendor/twitter/bootstrap/sass/bootstrap.scss +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cff101b0f3c336c4dc668c9fc174938a3089771
|
4
|
+
data.tar.gz: 416e1baf6efa343ad79b8c18d783008d68838a4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a417da5dc22e34a4cb0649132b1fe8089d4fa796d3cd4498dca087137b98694ddf0cf35b0f30bb0e7e2524537794f736bc01e2762f640c285413b863504f9f0d
|
7
|
+
data.tar.gz: 97eb67dc8e8b583224e4d98e68fda3aaba4b4139732a4a83c44bb503ac53a70eb5975af3771aad12a7d13fbac49be17e3204f2a66c02d095ae0db52a03602f3e
|
data/README.md
CHANGED
@@ -6,13 +6,13 @@ Bootstrap-generators provides [Twitter Bootstrap](http://getbootstrap.com/) gene
|
|
6
6
|
|
7
7
|
## Current Twitter Bootstrap version
|
8
8
|
|
9
|
-
The current supported version of Twitter Bootstrap is 3.
|
9
|
+
The current supported version of Twitter Bootstrap is 3.3.1.
|
10
10
|
|
11
11
|
## Installing Gem
|
12
12
|
|
13
13
|
In your Gemfile, add this line:
|
14
14
|
|
15
|
-
gem 'bootstrap-generators', '~> 3.
|
15
|
+
gem 'bootstrap-generators', '~> 3.3.1'
|
16
16
|
|
17
17
|
Or you can install from latest build:
|
18
18
|
|
@@ -26,7 +26,9 @@ Run bundle install:
|
|
26
26
|
|
27
27
|
Get started:
|
28
28
|
|
29
|
-
rails generate bootstrap:install
|
29
|
+
rails generate bootstrap:install
|
30
|
+
|
31
|
+
To overwrite files that already exist, pass the `--force` (`-f`) option.
|
30
32
|
|
31
33
|
Once you've done that, any time you generate a controller or scaffold, you'll get [Bootstrap](http://twitter.github.com/bootstrap/) templates.
|
32
34
|
|
data/Rakefile
CHANGED
@@ -13,8 +13,8 @@ task :default => :test
|
|
13
13
|
namespace :bootstrap do
|
14
14
|
desc "Update to a new version of Twitter Bootstrap"
|
15
15
|
task :update do
|
16
|
-
bootstrap_version = "3.
|
17
|
-
striped_bootstrap_generators_version = "3.
|
16
|
+
bootstrap_version = "3.3.1"
|
17
|
+
striped_bootstrap_generators_version = "3.3.1"
|
18
18
|
|
19
19
|
twitter_latest_dist_zip_url = "https://github.com/twbs/bootstrap/archive/v#{bootstrap_version}.zip"
|
20
20
|
twitter_sass_lastest_dist_zip_url = "https://github.com/twbs/bootstrap-sass/archive/v#{bootstrap_version}.zip"
|
@@ -57,17 +57,6 @@ namespace :bootstrap do
|
|
57
57
|
require_files << File.basename(js_file, '.*')
|
58
58
|
end
|
59
59
|
|
60
|
-
# Make sure that tooltip.js is before popover.js (Popover requires tooltip.js)
|
61
|
-
tooltip_position = require_files.index('tooltip')
|
62
|
-
popover_position = require_files.index('popover')
|
63
|
-
require_files.insert(tooltip_position, require_files.delete_at(popover_position)) if tooltip_position > popover_position
|
64
|
-
|
65
|
-
File.open(bootstrap_main_javascript, 'w') do |file|
|
66
|
-
require_files.each do |require_file|
|
67
|
-
file.write("//= require bootstrap/#{require_file}\n")
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
60
|
# Reset Twitter Bootstrap Fonts
|
72
61
|
bootstrap_fonts_dir = 'vendor/assets/fonts/bootstrap'
|
73
62
|
|
@@ -76,6 +65,7 @@ namespace :bootstrap do
|
|
76
65
|
|
77
66
|
# Reset Twitter Bootstrap CSS file
|
78
67
|
FileUtils.cp "#{twitter_bootstrap_dir}/dist/css/bootstrap.css", "vendor/assets/stylesheets/bootstrap.css.erb"
|
68
|
+
FileUtils.cp "#{twitter_bootstrap_dir}/dist/css/bootstrap.css.map", "vendor/assets/stylesheets/bootstrap.css.map"
|
79
69
|
|
80
70
|
# Reset Twitter Bootstrap LESS files
|
81
71
|
bootstrap_less_dir = 'vendor/twitter/bootstrap/less'
|
@@ -88,12 +78,13 @@ namespace :bootstrap do
|
|
88
78
|
bootstrap_sass_dir = 'vendor/twitter/bootstrap/sass'
|
89
79
|
|
90
80
|
FileUtils.rm Dir.glob("#{bootstrap_sass_dir}/**/*.scss")
|
91
|
-
FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets
|
92
|
-
FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/bootstrap
|
81
|
+
FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/*.scss"), bootstrap_sass_dir
|
82
|
+
FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/bootstrap/*.scss"), "#{bootstrap_sass_dir}/bootstrap"
|
83
|
+
FileUtils.cp Dir.glob("#{twitter_sass_bootstrap_dir}/assets/stylesheets/bootstrap/mixins/*.scss"), "#{bootstrap_sass_dir}/bootstrap/mixins"
|
93
84
|
|
94
85
|
# Copy bootstrap variables
|
95
86
|
FileUtils.cp "#{bootstrap_less_dir}/variables.less", "lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less"
|
96
|
-
FileUtils.cp "#{bootstrap_sass_dir}/_variables.scss", "lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss"
|
87
|
+
FileUtils.cp "#{bootstrap_sass_dir}/bootstrap/_variables.scss", "lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss"
|
97
88
|
|
98
89
|
# Asset helpers
|
99
90
|
Dir.glob('**/*.css.erb').each do |filepath|
|
@@ -113,10 +104,10 @@ namespace :bootstrap do
|
|
113
104
|
file_content = File.read(filepath)
|
114
105
|
|
115
106
|
# Remove fonts path
|
116
|
-
file_content.gsub!("../fonts/", "
|
107
|
+
file_content.gsub!("../fonts/", "")
|
117
108
|
|
118
109
|
# Asset helpers for fonts
|
119
|
-
file_content.gsub!(%r{(["'\w\-@{}$#\/]+\.(eot|woff|ttf|svg)(\??#[\w\-@{}$#]+)?["'])}, '
|
110
|
+
file_content.gsub!(%r{(["'\w\-@{}$#\/]+\.(eot|woff|ttf|svg)(\??#[\w\-@{}$#]+)?["'])}, '\1')
|
120
111
|
|
121
112
|
# Asset helpers for images
|
122
113
|
file_content.gsub!(%r{image: url\(}, 'image: image-url(')
|
@@ -7,13 +7,14 @@
|
|
7
7
|
//
|
8
8
|
//## Gray and brand colors for use across Bootstrap.
|
9
9
|
|
10
|
-
@gray-
|
11
|
-
@gray-
|
12
|
-
@gray:
|
13
|
-
@gray
|
14
|
-
@gray-
|
15
|
-
|
16
|
-
|
10
|
+
@gray-base: #000;
|
11
|
+
@gray-darker: lighten(@gray-base, 13.5%); // #222
|
12
|
+
@gray-dark: lighten(@gray-base, 20%); // #333
|
13
|
+
@gray: lighten(@gray-base, 33.5%); // #555
|
14
|
+
@gray-light: lighten(@gray-base, 46.7%); // #777
|
15
|
+
@gray-lighter: lighten(@gray-base, 93.5%); // #eee
|
16
|
+
|
17
|
+
@brand-primary: darken(#428bca, 6.5%);
|
17
18
|
@brand-success: #5cb85c;
|
18
19
|
@brand-info: #5bc0de;
|
19
20
|
@brand-warning: #f0ad4e;
|
@@ -33,6 +34,8 @@
|
|
33
34
|
@link-color: @brand-primary;
|
34
35
|
//** Link hover color set via `darken()` function.
|
35
36
|
@link-hover-color: darken(@link-color, 15%);
|
37
|
+
//** Link hover decoration.
|
38
|
+
@link-hover-decoration: underline;
|
36
39
|
|
37
40
|
|
38
41
|
//== Typography
|
@@ -181,13 +184,20 @@
|
|
181
184
|
@input-color: @gray;
|
182
185
|
//** `<input>` border color
|
183
186
|
@input-border: #ccc;
|
184
|
-
|
187
|
+
|
188
|
+
// TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
|
189
|
+
//** Default `.form-control` border radius
|
185
190
|
@input-border-radius: @border-radius-base;
|
191
|
+
//** Large `.form-control` border radius
|
192
|
+
@input-border-radius-large: @border-radius-large;
|
193
|
+
//** Small `.form-control` border radius
|
194
|
+
@input-border-radius-small: @border-radius-small;
|
195
|
+
|
186
196
|
//** Border color for inputs on focus
|
187
197
|
@input-border-focus: #66afe9;
|
188
198
|
|
189
199
|
//** Placeholder text color
|
190
|
-
@input-color-placeholder:
|
200
|
+
@input-color-placeholder: #999;
|
191
201
|
|
192
202
|
//** Default `.form-control` height
|
193
203
|
@input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
|
@@ -204,6 +214,9 @@
|
|
204
214
|
//** Border color for textual input addons
|
205
215
|
@input-group-addon-border-color: @input-border;
|
206
216
|
|
217
|
+
//** Disabled cursor for form controls and buttons.
|
218
|
+
@cursor-disabled: not-allowed;
|
219
|
+
|
207
220
|
|
208
221
|
//== Dropdowns
|
209
222
|
//
|
@@ -252,8 +265,7 @@
|
|
252
265
|
@zindex-popover: 1060;
|
253
266
|
@zindex-tooltip: 1070;
|
254
267
|
@zindex-navbar-fixed: 1030;
|
255
|
-
@zindex-modal
|
256
|
-
@zindex-modal: 1050;
|
268
|
+
@zindex-modal: 1040;
|
257
269
|
|
258
270
|
|
259
271
|
//== Media queries breakpoints
|
@@ -315,17 +327,17 @@
|
|
315
327
|
//## Define the maximum width of `.container` for different screen sizes.
|
316
328
|
|
317
329
|
// Small screen / tablet
|
318
|
-
@container-tablet: (
|
330
|
+
@container-tablet: (720px + @grid-gutter-width);
|
319
331
|
//** For `@screen-sm-min` and up.
|
320
332
|
@container-sm: @container-tablet;
|
321
333
|
|
322
334
|
// Medium screen / desktop
|
323
|
-
@container-desktop: (
|
335
|
+
@container-desktop: (940px + @grid-gutter-width);
|
324
336
|
//** For `@screen-md-min` and up.
|
325
337
|
@container-md: @container-desktop;
|
326
338
|
|
327
339
|
// Large screen / wide desktop
|
328
|
-
@container-large-desktop: (
|
340
|
+
@container-large-desktop: (1140px + @grid-gutter-width);
|
329
341
|
//** For `@screen-lg-min` and up.
|
330
342
|
@container-lg: @container-large-desktop;
|
331
343
|
|
@@ -368,12 +380,12 @@
|
|
368
380
|
|
369
381
|
// Inverted navbar
|
370
382
|
// Reset inverted navbar basics
|
371
|
-
@navbar-inverse-color: @gray-light;
|
383
|
+
@navbar-inverse-color: lighten(@gray-light, 15%);
|
372
384
|
@navbar-inverse-bg: #222;
|
373
385
|
@navbar-inverse-border: darken(@navbar-inverse-bg, 10%);
|
374
386
|
|
375
387
|
// Inverted navbar links
|
376
|
-
@navbar-inverse-link-color: @gray-light;
|
388
|
+
@navbar-inverse-link-color: lighten(@gray-light, 15%);
|
377
389
|
@navbar-inverse-link-hover-color: #fff;
|
378
390
|
@navbar-inverse-link-hover-bg: transparent;
|
379
391
|
@navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
|
@@ -403,8 +415,6 @@
|
|
403
415
|
@nav-disabled-link-color: @gray-light;
|
404
416
|
@nav-disabled-link-hover-color: @gray-light;
|
405
417
|
|
406
|
-
@nav-open-link-hover-color: #fff;
|
407
|
-
|
408
418
|
//== Tabs
|
409
419
|
@nav-tabs-border-color: #ddd;
|
410
420
|
|
@@ -529,7 +539,7 @@
|
|
529
539
|
//** Popover arrow width
|
530
540
|
@popover-arrow-width: 10px;
|
531
541
|
//** Popover arrow color
|
532
|
-
@popover-arrow-color:
|
542
|
+
@popover-arrow-color: @popover-bg;
|
533
543
|
|
534
544
|
//** Popover outer arrow width
|
535
545
|
@popover-arrow-outer-width: (@popover-arrow-width + 1);
|
@@ -628,6 +638,8 @@
|
|
628
638
|
@progress-bg: #f5f5f5;
|
629
639
|
//** Progress bar text color
|
630
640
|
@progress-bar-color: #fff;
|
641
|
+
//** Variable for setting rounded corners on progress bar.
|
642
|
+
@progress-border-radius: @border-radius-base;
|
631
643
|
|
632
644
|
//** Default progress bar color
|
633
645
|
@progress-bar-bg: @brand-primary;
|
@@ -842,5 +854,3 @@
|
|
842
854
|
@dl-horizontal-offset: @component-offset-horizontal;
|
843
855
|
//** Horizontal line color.
|
844
856
|
@hr-border: @gray-lighter;
|
845
|
-
|
846
|
-
|
@@ -1,7 +1,8 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
// in Sass 3.3
|
1
|
+
// When true, asset path helpers are used, otherwise the regular CSS `url()` is used.
|
2
|
+
// When there no function is defined, `fn('')` is parsed as string that equals the right hand side
|
3
|
+
// NB: in Sass 3.3 there is a native function: function-exists(twbs-font-path)
|
4
4
|
$bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")')) !default;
|
5
|
+
|
5
6
|
//
|
6
7
|
// Variables
|
7
8
|
// --------------------------------------------------
|
@@ -11,13 +12,14 @@ $bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")
|
|
11
12
|
//
|
12
13
|
//## Gray and brand colors for use across Bootstrap.
|
13
14
|
|
14
|
-
$gray-
|
15
|
-
$gray-
|
16
|
-
$gray:
|
17
|
-
$gray
|
18
|
-
$gray-
|
15
|
+
$gray-base: #000 !default;
|
16
|
+
$gray-darker: lighten($gray-base, 13.5%) !default; // #222
|
17
|
+
$gray-dark: lighten($gray-base, 20%) !default; // #333
|
18
|
+
$gray: lighten($gray-base, 33.5%) !default; // #555
|
19
|
+
$gray-light: lighten($gray-base, 46.7%) !default; // #777
|
20
|
+
$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
|
19
21
|
|
20
|
-
$brand-primary: #428bca !default;
|
22
|
+
$brand-primary: darken(#428bca, 6.5%) !default;
|
21
23
|
$brand-success: #5cb85c !default;
|
22
24
|
$brand-info: #5bc0de !default;
|
23
25
|
$brand-warning: #f0ad4e !default;
|
@@ -37,6 +39,8 @@ $text-color: $gray-dark !default;
|
|
37
39
|
$link-color: $brand-primary !default;
|
38
40
|
//** Link hover color set via `darken()` function.
|
39
41
|
$link-hover-color: darken($link-color, 15%) !default;
|
42
|
+
//** Link hover decoration.
|
43
|
+
$link-hover-decoration: underline !default;
|
40
44
|
|
41
45
|
|
42
46
|
//== Typography
|
@@ -77,7 +81,10 @@ $headings-color: inherit !default;
|
|
77
81
|
//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
|
78
82
|
|
79
83
|
//** Load fonts from this directory.
|
80
|
-
|
84
|
+
|
85
|
+
// [converter] Asset helpers such as Sprockets and Node.js Mincer do not resolve relative paths
|
86
|
+
$icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "bootstrap/") !default;
|
87
|
+
|
81
88
|
//** File name for all font files.
|
82
89
|
$icon-font-name: "glyphicons-halflings-regular" !default;
|
83
90
|
//** Element ID within SVG icon file.
|
@@ -185,13 +192,20 @@ $input-bg-disabled: $gray-lighter !default;
|
|
185
192
|
$input-color: $gray !default;
|
186
193
|
//** `<input>` border color
|
187
194
|
$input-border: #ccc !default;
|
188
|
-
|
195
|
+
|
196
|
+
// TODO: Rename `$input-border-radius` to `$input-border-radius-base` in v4
|
197
|
+
//** Default `.form-control` border radius
|
189
198
|
$input-border-radius: $border-radius-base !default;
|
199
|
+
//** Large `.form-control` border radius
|
200
|
+
$input-border-radius-large: $border-radius-large !default;
|
201
|
+
//** Small `.form-control` border radius
|
202
|
+
$input-border-radius-small: $border-radius-small !default;
|
203
|
+
|
190
204
|
//** Border color for inputs on focus
|
191
205
|
$input-border-focus: #66afe9 !default;
|
192
206
|
|
193
207
|
//** Placeholder text color
|
194
|
-
$input-color-placeholder:
|
208
|
+
$input-color-placeholder: #999 !default;
|
195
209
|
|
196
210
|
//** Default `.form-control` height
|
197
211
|
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
|
@@ -208,6 +222,9 @@ $input-group-addon-bg: $gray-lighter !default;
|
|
208
222
|
//** Border color for textual input addons
|
209
223
|
$input-group-addon-border-color: $input-border !default;
|
210
224
|
|
225
|
+
//** Disabled cursor for form controls and buttons.
|
226
|
+
$cursor-disabled: not-allowed !default;
|
227
|
+
|
211
228
|
|
212
229
|
//== Dropdowns
|
213
230
|
//
|
@@ -256,8 +273,7 @@ $zindex-dropdown: 1000 !default;
|
|
256
273
|
$zindex-popover: 1060 !default;
|
257
274
|
$zindex-tooltip: 1070 !default;
|
258
275
|
$zindex-navbar-fixed: 1030 !default;
|
259
|
-
$zindex-modal
|
260
|
-
$zindex-modal: 1050 !default;
|
276
|
+
$zindex-modal: 1040 !default;
|
261
277
|
|
262
278
|
|
263
279
|
//== Media queries breakpoints
|
@@ -319,17 +335,17 @@ $grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
|
|
319
335
|
//## Define the maximum width of `.container` for different screen sizes.
|
320
336
|
|
321
337
|
// Small screen / tablet
|
322
|
-
$container-tablet: (
|
338
|
+
$container-tablet: (720px + $grid-gutter-width) !default;
|
323
339
|
//** For `$screen-sm-min` and up.
|
324
340
|
$container-sm: $container-tablet !default;
|
325
341
|
|
326
342
|
// Medium screen / desktop
|
327
|
-
$container-desktop: (
|
343
|
+
$container-desktop: (940px + $grid-gutter-width) !default;
|
328
344
|
//** For `$screen-md-min` and up.
|
329
345
|
$container-md: $container-desktop !default;
|
330
346
|
|
331
347
|
// Large screen / wide desktop
|
332
|
-
$container-large-desktop: (
|
348
|
+
$container-large-desktop: (1140px + $grid-gutter-width) !default;
|
333
349
|
//** For `$screen-lg-min` and up.
|
334
350
|
$container-lg: $container-large-desktop !default;
|
335
351
|
|
@@ -372,12 +388,12 @@ $navbar-default-toggle-border-color: #ddd !default;
|
|
372
388
|
|
373
389
|
// Inverted navbar
|
374
390
|
// Reset inverted navbar basics
|
375
|
-
$navbar-inverse-color: $gray-light !default;
|
391
|
+
$navbar-inverse-color: lighten($gray-light, 15%) !default;
|
376
392
|
$navbar-inverse-bg: #222 !default;
|
377
393
|
$navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default;
|
378
394
|
|
379
395
|
// Inverted navbar links
|
380
|
-
$navbar-inverse-link-color: $gray-light !default;
|
396
|
+
$navbar-inverse-link-color: lighten($gray-light, 15%) !default;
|
381
397
|
$navbar-inverse-link-hover-color: #fff !default;
|
382
398
|
$navbar-inverse-link-hover-bg: transparent !default;
|
383
399
|
$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
|
@@ -407,8 +423,6 @@ $nav-link-hover-bg: $gray-lighter !default;
|
|
407
423
|
$nav-disabled-link-color: $gray-light !default;
|
408
424
|
$nav-disabled-link-hover-color: $gray-light !default;
|
409
425
|
|
410
|
-
$nav-open-link-hover-color: #fff !default;
|
411
|
-
|
412
426
|
//== Tabs
|
413
427
|
$nav-tabs-border-color: #ddd !default;
|
414
428
|
|
@@ -533,7 +547,7 @@ $popover-title-bg: darken($popover-bg, 3%) !default;
|
|
533
547
|
//** Popover arrow width
|
534
548
|
$popover-arrow-width: 10px !default;
|
535
549
|
//** Popover arrow color
|
536
|
-
$popover-arrow-color:
|
550
|
+
$popover-arrow-color: $popover-bg !default;
|
537
551
|
|
538
552
|
//** Popover outer arrow width
|
539
553
|
$popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
|
@@ -632,6 +646,8 @@ $alert-danger-border: $state-danger-border !default;
|
|
632
646
|
$progress-bg: #f5f5f5 !default;
|
633
647
|
//** Progress bar text color
|
634
648
|
$progress-bar-color: #fff !default;
|
649
|
+
//** Variable for setting rounded corners on progress bar.
|
650
|
+
$progress-border-radius: $border-radius-base !default;
|
635
651
|
|
636
652
|
//** Default progress bar color
|
637
653
|
$progress-bar-bg: $brand-primary !default;
|
@@ -846,5 +862,3 @@ $page-header-border-color: $gray-lighter !default;
|
|
846
862
|
$dl-horizontal-offset: $component-offset-horizontal !default;
|
847
863
|
//** Horizontal line color.
|
848
864
|
$hr-border: $gray-lighter !default;
|
849
|
-
|
850
|
-
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%%= form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal" }) do |f| %>
|
1
|
+
<%%= form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal", :role => "form" }) do |f| %>
|
2
2
|
<%% if @<%= singular_table_name %>.errors.any? %>
|
3
|
-
<div class="alert alert-danger alert-dismissable">
|
4
|
-
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
3
|
+
<div class="alert alert-danger alert-dismissable" role="alert">
|
4
|
+
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
5
5
|
<h4><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h4>
|
6
6
|
|
7
7
|
<ul>
|
@@ -1,7 +1,9 @@
|
|
1
|
-
= form_for @<%= singular_table_name %>, :html => { :class => "form-horizontal" } do |f|
|
1
|
+
= form_for @<%= singular_table_name %>, :html => { :class => "form-horizontal", :role => "form" } do |f|
|
2
2
|
-if @<%= singular_table_name %>.errors.any?
|
3
|
-
.alert.alert-danger.alert-dismissable
|
4
|
-
%button.close{
|
3
|
+
.alert.alert-danger.alert-dismissable{:role => "alert"}
|
4
|
+
%button.close{:type => "button", :data => {:dismiss => "alert"} }
|
5
|
+
span{:aria => {:hidden => "true"} } ×
|
6
|
+
span.sr-only Close
|
5
7
|
%h4= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
|
6
8
|
|
7
9
|
%ul
|
@@ -1,8 +1,11 @@
|
|
1
|
-
= form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal" }) do |f|
|
1
|
+
= form_for(@<%= singular_table_name %>, :html => { :class => "form-horizontal", :role => "form" }) do |f|
|
2
2
|
- if @<%= singular_table_name %>.errors.any?
|
3
|
-
.alert.alert-danger.alert-dismissable
|
4
|
-
button.close type="button" data-dismiss="alert"
|
5
|
-
|
3
|
+
.alert.alert-danger.alert-dismissable role="alert"
|
4
|
+
button.close type="button" data-dismiss="alert"
|
5
|
+
span aria-hidden="true"
|
6
|
+
| ×
|
7
|
+
span.sr-only
|
8
|
+
| Close
|
6
9
|
h4= "#{pluralize(@<%= singular_table_name %>.errors.count,"error")} prohibited this <%= singular_table_name %> from being saved:"
|
7
10
|
ul
|
8
11
|
- @<%= singular_table_name %>.errors.full_messages.each do |msg|
|