bootstrap-generators 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. data/.rvmrc +1 -0
  2. data/README.md +128 -22
  3. data/Rakefile +59 -0
  4. data/bootstrap-generators.gemspec +1 -1
  5. data/lib/bootstrap/generators/version.rb +1 -1
  6. data/lib/generators/bootstrap/install/install_generator.rb +1 -0
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.less +98 -0
  8. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +99 -0
  9. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +3 -100
  10. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +4 -4
  11. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +1 -0
  12. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +4 -100
  13. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +5 -4
  14. data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +23 -22
  15. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +4 -7
  16. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +4 -6
  17. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +3 -2
  18. data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +3 -2
  19. data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +15 -7
  20. data/lib/generators/bootstrap/install/templates/layouts/hero.html.haml +16 -10
  21. data/test/lib/generators/bootstrap/install_generator_test.rb +2 -0
  22. data/vendor/assets/javascripts/bootstrap-alert.js +8 -5
  23. data/vendor/assets/javascripts/bootstrap-button.js +5 -3
  24. data/vendor/assets/javascripts/bootstrap-carousel.js +5 -2
  25. data/vendor/assets/javascripts/bootstrap-collapse.js +2 -2
  26. data/vendor/assets/javascripts/bootstrap-dropdown.js +2 -2
  27. data/vendor/assets/javascripts/bootstrap-modal.js +6 -5
  28. data/vendor/assets/javascripts/bootstrap-popover.js +2 -2
  29. data/vendor/assets/javascripts/bootstrap-scrollspy.js +2 -2
  30. data/vendor/assets/javascripts/bootstrap-tab.js +2 -2
  31. data/vendor/assets/javascripts/bootstrap-tooltip.js +2 -2
  32. data/vendor/assets/javascripts/bootstrap-transition.js +3 -3
  33. data/vendor/assets/javascripts/bootstrap-typeahead.js +2 -2
  34. data/vendor/assets/stylesheets/less/bootstrap.less +1 -1
  35. data/vendor/assets/stylesheets/less/breadcrumbs.less +1 -1
  36. data/vendor/assets/stylesheets/less/button-groups.less +2 -1
  37. data/vendor/assets/stylesheets/less/buttons.less +25 -7
  38. data/vendor/assets/stylesheets/less/code.less +13 -0
  39. data/vendor/assets/stylesheets/less/dropdowns.less +1 -2
  40. data/vendor/assets/stylesheets/less/forms.less +48 -41
  41. data/vendor/assets/stylesheets/less/labels.less +23 -7
  42. data/vendor/assets/stylesheets/less/mixins.less +78 -25
  43. data/vendor/assets/stylesheets/less/modals.less +11 -0
  44. data/vendor/assets/stylesheets/less/navbar.less +11 -4
  45. data/vendor/assets/stylesheets/less/navs.less +20 -11
  46. data/vendor/assets/stylesheets/less/reset.less +1 -1
  47. data/vendor/assets/stylesheets/less/responsive.less +9 -5
  48. data/vendor/assets/stylesheets/less/sprites.less +7 -5
  49. data/vendor/assets/stylesheets/less/tables.less +14 -3
  50. data/vendor/assets/stylesheets/less/thumbnails.less +2 -2
  51. data/vendor/assets/stylesheets/less/type.less +3 -2
  52. data/vendor/assets/stylesheets/less/variables.less +15 -7
  53. data/vendor/assets/stylesheets/scss/accordion.scss +28 -0
  54. data/vendor/assets/stylesheets/scss/alerts.scss +70 -0
  55. data/vendor/assets/stylesheets/scss/bootstrap.scss +62 -0
  56. data/vendor/assets/stylesheets/scss/breadcrumbs.scss +22 -0
  57. data/vendor/assets/stylesheets/scss/button-groups.scss +148 -0
  58. data/vendor/assets/stylesheets/scss/buttons.scss +183 -0
  59. data/vendor/assets/stylesheets/scss/carousel.scss +121 -0
  60. data/vendor/assets/stylesheets/scss/close.scss +18 -0
  61. data/vendor/assets/stylesheets/scss/code.scss +57 -0
  62. data/vendor/assets/stylesheets/scss/component-animations.scss +18 -0
  63. data/vendor/assets/stylesheets/scss/dropdowns.scss +130 -0
  64. data/vendor/assets/stylesheets/scss/forms.scss +522 -0
  65. data/vendor/assets/stylesheets/scss/grid.scss +8 -0
  66. data/vendor/assets/stylesheets/scss/hero-unit.scss +20 -0
  67. data/vendor/assets/stylesheets/scss/labels.scss +32 -0
  68. data/vendor/assets/stylesheets/scss/layouts.scss +17 -0
  69. data/vendor/assets/stylesheets/scss/mixins.scss +579 -0
  70. data/vendor/assets/stylesheets/scss/modals.scss +83 -0
  71. data/vendor/assets/stylesheets/scss/navbar.scss +299 -0
  72. data/vendor/assets/stylesheets/scss/navs.scss +353 -0
  73. data/vendor/assets/stylesheets/scss/pager.scss +30 -0
  74. data/vendor/assets/stylesheets/scss/pagination.scss +55 -0
  75. data/vendor/assets/stylesheets/scss/popovers.scss +49 -0
  76. data/vendor/assets/stylesheets/scss/progress-bars.scss +95 -0
  77. data/vendor/assets/stylesheets/scss/reset.scss +126 -0
  78. data/vendor/assets/stylesheets/scss/responsive.scss +327 -0
  79. data/vendor/assets/stylesheets/scss/scaffolding.scss +29 -0
  80. data/vendor/assets/stylesheets/scss/sprites.scss +158 -0
  81. data/vendor/assets/stylesheets/scss/tables.scss +150 -0
  82. data/vendor/assets/stylesheets/scss/thumbnails.scss +35 -0
  83. data/vendor/assets/stylesheets/scss/tooltip.scss +35 -0
  84. data/vendor/assets/stylesheets/scss/type.scss +218 -0
  85. data/vendor/assets/stylesheets/scss/utilities.scss +23 -0
  86. data/vendor/assets/stylesheets/scss/variables.scss +107 -0
  87. data/vendor/assets/stylesheets/scss/wells.scss +17 -0
  88. metadata +49 -11
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use @bootstrap-generators
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Bootstrap Generators
2
2
 
3
- Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1. Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. Checkout http://twitter.github.com/bootstrap.
3
+ Bootstrap-generators provides [Twitter Bootstrap](http://twitter.github.com/bootstrap/) generators for Rails 3.1. Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. Checkout http://decioferreira.github.com/bootstrap-generators.
4
4
 
5
5
  ## Installing Gem
6
6
 
@@ -12,22 +12,14 @@ Or you can install from latest build:
12
12
 
13
13
  gem 'bootstrap-generators', '~> 2.0', :git => 'git://github.com/decioferreira/bootstrap-generators.git'
14
14
 
15
- By default Bootstrap Generators requires SimpleForm. Add the dependency on your Gemfile:
15
+ By default Bootstrap Generators requires [SimpleForm 2.0.0.rc](https://github.com/plataformatec/simple_form). Add the dependency on your Gemfile:
16
16
 
17
- gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
17
+ gem 'simple_form', '2.0.0.rc'
18
18
 
19
19
  If you don't want to use SimpleForm, just pass the `--form_builder=form_builder` option:
20
20
 
21
21
  rails generate bootstrap:install --form_builder=form_builder
22
22
 
23
- We recommended you to use LESS as the stylesheet engine, so that you can [customize][] and extend Bootstrap to take advantage of the variables, mixins, and more. Add the dependency on your Gemfile:
24
-
25
- gem 'less-rails'
26
-
27
- Then you just have to pass `--stylesheet-engine==less` option:
28
-
29
- rails generate bootstrap:install --stylesheet-engine==less
30
-
31
23
  Run bundle install:
32
24
 
33
25
  bundle install
@@ -44,6 +36,8 @@ Once you've done that, any time you generate a controller or scaffold, you'll ge
44
36
 
45
37
  rails generate scaffold post title:string body:text published:boolean
46
38
 
39
+ You can easily [customize colors, grid system, fonts, and much more](http://decioferreira.github.com/bootstrap-generators) with Bootstrap-generators and LESS or SCSS. Visit http://decioferreira.github.com/bootstrap-generators.
40
+
47
41
  ## Usage
48
42
 
49
43
  To print the options and usage run the command `rails generate bootstrap:install --help`
@@ -83,9 +77,9 @@ To select one of these layouts just pass the option `--layout=LAYOUT` to the ins
83
77
 
84
78
  * SimpleForm
85
79
 
86
- By default Bootstrap Generators requires SimpleForm. Add the dependency on your Gemfile:
80
+ By default Bootstrap Generators requires SimpleForm 2.0.0.rc. Add the dependency on your Gemfile:
87
81
 
88
- gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'
82
+ gem 'simple_form', '2.0.0.rc'
89
83
 
90
84
  And then run:
91
85
 
@@ -116,7 +110,21 @@ And then run:
116
110
 
117
111
  Supported stylesheet engines:
118
112
 
119
- * LESS (recommended)
113
+ * CSS
114
+ * SCSS
115
+ * LESS
116
+
117
+ Make sure you have `sass-rails` dependency on your Gemfile:
118
+
119
+ gem 'sass-rails'
120
+
121
+ And then run:
122
+
123
+ rails generate bootstrap:install --stylesheet-engine=scss
124
+
125
+ Now you can [customize](http://decioferreira.github.com/bootstrap-generators/) the look and feel of Bootstrap.
126
+
127
+ * LESS
120
128
 
121
129
  Add the dependency on your Gemfile:
122
130
 
@@ -124,22 +132,19 @@ Add the dependency on your Gemfile:
124
132
 
125
133
  And then run:
126
134
 
127
- rails generate bootstrap:install --template-engine=haml
135
+ rails generate bootstrap:install --stylesheet-engine=less
128
136
 
129
- Now you can [customize][] the look and feel of Bootstrap.
130
-
131
- * CSS
132
- * SCSS
137
+ Now you can [customize](http://decioferreira.github.com/bootstrap-generators/) the look and feel of Bootstrap.
133
138
 
134
139
  ## Assets
135
140
 
136
141
  <a name="customize"></a>
137
142
 
138
- ### Customize and extend Bootstrap with LESS
143
+ ### Customize and extend Bootstrap
139
144
 
140
- Customize and extend Bootstrap with [LESS](http://lesscss.org/), a CSS preprocessor, to take advantage of the variables, mixins, and more used to build Bootstrap's CSS.
145
+ If you select LESS or SCSS as your stylesheet engine, you will get an `app/assets/stylesheets/bootstrap-variables.css.[less|scss]` file with all of the [default variables](http://twitter.github.com/bootstrap/less.html#variables) of Bootstrap. This way you can [customize](http://decioferreira.github.com/bootstrap-generators/) the look and feel of Bootstrap without having to download any extra file:
141
146
 
142
- If you select LESS as your stylesheet engine, you will get an `app/assets/stylesheets/bootstrap-generators.css.less` file with all of the [default variables](http://twitter.github.com/bootstrap/less.html#variables) of Bootstrap. This way you can [customize](http://twitter.github.com/bootstrap/download.html#variables) the look and feel of Bootstrap without having to download any extra file:
147
+ LESS version:
143
148
 
144
149
  // Variables to customize the look and feel of Bootstrap
145
150
  // -----------------------------------------------------
@@ -240,6 +245,107 @@ If you select LESS as your stylesheet engine, you will get an `app/assets/styles
240
245
  @fluidGridColumnWidth: 6.382978723%;
241
246
  @fluidGridGutterWidth: 2.127659574%;
242
247
 
248
+ SCSS version:
249
+
250
+ // Variables.less
251
+ // Variables to customize the look and feel of Bootstrap
252
+ // -----------------------------------------------------
253
+
254
+
255
+
256
+ // GLOBAL VALUES
257
+ // --------------------------------------------------
258
+
259
+ // Links
260
+ $linkColor: #08c !default;
261
+ $linkColorHover: darken($linkColor, 15%) !default;
262
+
263
+ // Grays
264
+ $black: #000 !default;
265
+ $grayDarker: #222 !default;
266
+ $grayDark: #333 !default;
267
+ $gray: #555 !default;
268
+ $grayLight: #999 !default;
269
+ $grayLighter: #eee !default;
270
+ $white: #fff !default;
271
+
272
+ // Accent colors
273
+ $blue: #049cdb !default;
274
+ $blueDark: #0064cd !default;
275
+ $green: #46a546 !default;
276
+ $red: #9d261d !default;
277
+ $yellow: #ffc40d !default;
278
+ $orange: #f89406 !default;
279
+ $pink: #c3325f !default;
280
+ $purple: #7a43b6 !default;
281
+
282
+ // Typography
283
+ $baseFontSize: 13px !default;
284
+ $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
285
+ $baseLineHeight: 18px !default;
286
+ $textColor: $grayDark !default;
287
+
288
+ // Buttons
289
+ $primaryButtonBackground: $linkColor !default;
290
+
291
+
292
+
293
+ // COMPONENT VARIABLES
294
+ // --------------------------------------------------
295
+
296
+ // Z-index master list
297
+ // Used for a bird's eye view of components dependent on the z-axis
298
+ // Try to avoid customizing these :)
299
+ $zindexDropdown: 1000;
300
+ $zindexPopover: 1010;
301
+ $zindexTooltip: 1020;
302
+ $zindexFixedNavbar: 1030;
303
+ $zindexModalBackdrop: 1040;
304
+ $zindexModal: 1050;
305
+
306
+ // Input placeholder text color
307
+ $placeholderText: $grayLight !default;
308
+
309
+ // Navbar
310
+ $navbarHeight: 40px !default;
311
+ $navbarBackground: $grayDarker !default;
312
+ $navbarBackgroundHighlight: $grayDark !default;
313
+
314
+ $navbarText: $grayLight !default;
315
+ $navbarLinkColor: $grayLight !default;
316
+ $navbarLinkColorHover: $white !default;
317
+
318
+ // Form states and alerts
319
+ $warningText: #c09853 !default;
320
+ $warningBackground: #fcf8e3 !default;
321
+ $warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default;
322
+
323
+ $errorText: #b94a48 !default;
324
+ $errorBackground: #f2dede !default;
325
+ $errorBorder: darken(adjust-hue($errorBackground, -10), 3%) !default;
326
+
327
+ $successText: #468847 !default;
328
+ $successBackground: #dff0d8 !default;
329
+ $successBorder: darken(adjust-hue($successBackground, -10), 5%) !default;
330
+
331
+ $infoText: #3a87ad !default;
332
+ $infoBackground: #d9edf7 !default;
333
+ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
334
+
335
+
336
+
337
+ // GRID
338
+ // --------------------------------------------------
339
+
340
+ // Default 940px grid
341
+ $gridColumns: 12 !default;
342
+ $gridColumnWidth: 60px !default;
343
+ $gridGutterWidth: 20px !default;
344
+ $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
345
+
346
+ // Fluid grid
347
+ $fluidGridColumnWidth: 6.382978723% !default;
348
+ $fluidGridGutterWidth: 2.127659574% !default;
243
349
 
244
350
  ### Javascript
245
351
 
data/Rakefile CHANGED
@@ -8,3 +8,62 @@ Rake::TestTask.new do |t|
8
8
  end
9
9
 
10
10
  task :default => :test
11
+
12
+ desc "Converts LESS stylesheets to SCSS"
13
+ task :less_to_scss do
14
+ Dir.glob('vendor/assets/stylesheets/less/*.less') do |less_file|
15
+ tree = []; level = 0
16
+ input_file = File.new(less_file, "r")
17
+
18
+ scss_file = File.basename(less_file, ".less")
19
+ output_file = File.new("vendor/assets/stylesheets/scss/#{scss_file}.scss", "w")
20
+
21
+ while(line = input_file.gets)
22
+ # IDs
23
+ if line.match(/^\s*#(\w+) {/)
24
+ tree.push(line.match(/^\s*#(\w+) {/)[1])
25
+ end
26
+
27
+ # Less extensions
28
+ line.gsub!(/\.less/, '')
29
+
30
+ # Level
31
+ if line.match(/{/)
32
+ level += 1
33
+ end
34
+
35
+ if line.match(/}/)
36
+ level -= 1
37
+ tree = tree.first(level)
38
+ end
39
+
40
+ # Variables
41
+ line.gsub!(/@(\w+)/) do |s|
42
+ ['@media', '@import', '@keyframes'].include?(s) ? s : s.gsub(/@(\w+)/, '$\1')
43
+ end
44
+
45
+ # Includes
46
+ line.gsub!(/(#(\w+) > )*\.(\S+\(.*\)\s*;)/) do |s|
47
+ s.gsub(/ > (#|\.)/, '-').gsub(/(#|\.)(.*;)/, '@include \2')
48
+ end
49
+
50
+ line.gsub!(/(#(\w+) > )+\.(\S+(\(.*\))?\s*;)/) do |s|
51
+ s.gsub(/ > (#|\.)/, '-').gsub(/(#|\.)(.*;)/, '@include \2')
52
+ end
53
+
54
+ # Mixins
55
+ line.gsub!(/\s*\.(\S+\(.*\)\s*{)/) do |s|
56
+ "@mixin #{[tree, s.match(/\.(\S+\(.*\)\s*{)/)[1]].flatten.join('-')}"
57
+ end
58
+
59
+ # Functions
60
+ line.gsub!(/spin\(/, 'adjust-hue(') # spin to adjust-hue
61
+ line.gsub!(/[:\( ]e\(([^\)]*)\)/, ' #{\1}')
62
+
63
+ output_file.puts line
64
+ end
65
+
66
+ input_file.close
67
+ output_file.close
68
+ end
69
+ end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Bootstrap::Generators::VERSION
8
8
  s.authors = ["Décio Ferreira"]
9
9
  s.email = ["decio.ferreira@decioferreira.com"]
10
- s.homepage = "https://github.com/decioferreira/bootstrap-generators"
10
+ s.homepage = "http://decioferreira.github.com/bootstrap-generators/"
11
11
  s.summary = %q{Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1.}
12
12
  s.description = %q{Bootstrap-generators provides Twitter Bootstrap generators for Rails 3.1. Checkout http://twitter.github.com/bootstrap.}
13
13
 
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Generators
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -38,6 +38,7 @@ module Bootstrap
38
38
  stylesheet_extension = 'css'
39
39
  else
40
40
  stylesheet_extension = "css.#{options[:stylesheet_engine]}"
41
+ copy_file "assets/stylesheets/bootstrap-variables.#{stylesheet_extension}", "app/assets/stylesheets/bootstrap-variables.#{stylesheet_extension}"
41
42
  end
42
43
 
43
44
  copy_file "assets/stylesheets/#{options[:layout]}.#{stylesheet_extension}", "app/assets/stylesheets/bootstrap-generators.#{stylesheet_extension}"
@@ -0,0 +1,98 @@
1
+ // Variables to customize the look and feel of Bootstrap
2
+ // -----------------------------------------------------
3
+
4
+
5
+
6
+ // GLOBAL VALUES
7
+ // --------------------------------------------------
8
+
9
+ // Links
10
+ @linkColor: #08c;
11
+ @linkColorHover: darken(@linkColor, 15%);
12
+
13
+ // Grays
14
+ @black: #000;
15
+ @grayDarker: #222;
16
+ @grayDark: #333;
17
+ @gray: #555;
18
+ @grayLight: #999;
19
+ @grayLighter: #eee;
20
+ @white: #fff;
21
+
22
+ // Accent colors
23
+ @blue: #049cdb;
24
+ @blueDark: #0064cd;
25
+ @green: #46a546;
26
+ @red: #9d261d;
27
+ @yellow: #ffc40d;
28
+ @orange: #f89406;
29
+ @pink: #c3325f;
30
+ @purple: #7a43b6;
31
+
32
+ // Typography
33
+ @baseFontSize: 13px;
34
+ @baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
35
+ @baseLineHeight: 18px;
36
+ @textColor: @grayDark;
37
+
38
+ // Buttons
39
+ @primaryButtonBackground: @linkColor;
40
+
41
+
42
+
43
+ // COMPONENT VARIABLES
44
+ // --------------------------------------------------
45
+
46
+ // Z-index master list
47
+ // Used for a bird's eye view of components dependent on the z-axis
48
+ // Try to avoid customizing these :)
49
+ @zindexDropdown: 1000;
50
+ @zindexPopover: 1010;
51
+ @zindexTooltip: 1020;
52
+ @zindexFixedNavbar: 1030;
53
+ @zindexModalBackdrop: 1040;
54
+ @zindexModal: 1050;
55
+
56
+ // Input placeholder text color
57
+ @placeholderText: @grayLight;
58
+
59
+ // Navbar
60
+ @navbarHeight: 40px;
61
+ @navbarBackground: @grayDarker;
62
+ @navbarBackgroundHighlight: @grayDark;
63
+
64
+ @navbarText: @grayLight;
65
+ @navbarLinkColor: @grayLight;
66
+ @navbarLinkColorHover: @white;
67
+
68
+ // Form states and alerts
69
+ @warningText: #c09853;
70
+ @warningBackground: #fcf8e3;
71
+ @warningBorder: darken(spin(@warningBackground, -10), 3%);
72
+
73
+ @errorText: #b94a48;
74
+ @errorBackground: #f2dede;
75
+ @errorBorder: darken(spin(@errorBackground, -10), 3%);
76
+
77
+ @successText: #468847;
78
+ @successBackground: #dff0d8;
79
+ @successBorder: darken(spin(@successBackground, -10), 5%);
80
+
81
+ @infoText: #3a87ad;
82
+ @infoBackground: #d9edf7;
83
+ @infoBorder: darken(spin(@infoBackground, -10), 7%);
84
+
85
+
86
+
87
+ // GRID
88
+ // --------------------------------------------------
89
+
90
+ // Default 940px grid
91
+ @gridColumns: 12;
92
+ @gridColumnWidth: 60px;
93
+ @gridGutterWidth: 20px;
94
+ @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
95
+
96
+ // Fluid grid
97
+ @fluidGridColumnWidth: 6.382978723%;
98
+ @fluidGridGutterWidth: 2.127659574%;
@@ -0,0 +1,99 @@
1
+ // Variables.less
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+
6
+
7
+ // GLOBAL VALUES
8
+ // --------------------------------------------------
9
+
10
+ // Links
11
+ $linkColor: #08c !default;
12
+ $linkColorHover: darken($linkColor, 15%) !default;
13
+
14
+ // Grays
15
+ $black: #000 !default;
16
+ $grayDarker: #222 !default;
17
+ $grayDark: #333 !default;
18
+ $gray: #555 !default;
19
+ $grayLight: #999 !default;
20
+ $grayLighter: #eee !default;
21
+ $white: #fff !default;
22
+
23
+ // Accent colors
24
+ $blue: #049cdb !default;
25
+ $blueDark: #0064cd !default;
26
+ $green: #46a546 !default;
27
+ $red: #9d261d !default;
28
+ $yellow: #ffc40d !default;
29
+ $orange: #f89406 !default;
30
+ $pink: #c3325f !default;
31
+ $purple: #7a43b6 !default;
32
+
33
+ // Typography
34
+ $baseFontSize: 13px !default;
35
+ $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
36
+ $baseLineHeight: 18px !default;
37
+ $textColor: $grayDark !default;
38
+
39
+ // Buttons
40
+ $primaryButtonBackground: $linkColor !default;
41
+
42
+
43
+
44
+ // COMPONENT VARIABLES
45
+ // --------------------------------------------------
46
+
47
+ // Z-index master list
48
+ // Used for a bird's eye view of components dependent on the z-axis
49
+ // Try to avoid customizing these :)
50
+ $zindexDropdown: 1000;
51
+ $zindexPopover: 1010;
52
+ $zindexTooltip: 1020;
53
+ $zindexFixedNavbar: 1030;
54
+ $zindexModalBackdrop: 1040;
55
+ $zindexModal: 1050;
56
+
57
+ // Input placeholder text color
58
+ $placeholderText: $grayLight !default;
59
+
60
+ // Navbar
61
+ $navbarHeight: 40px !default;
62
+ $navbarBackground: $grayDarker !default;
63
+ $navbarBackgroundHighlight: $grayDark !default;
64
+
65
+ $navbarText: $grayLight !default;
66
+ $navbarLinkColor: $grayLight !default;
67
+ $navbarLinkColorHover: $white !default;
68
+
69
+ // Form states and alerts
70
+ $warningText: #c09853 !default;
71
+ $warningBackground: #fcf8e3 !default;
72
+ $warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default;
73
+
74
+ $errorText: #b94a48 !default;
75
+ $errorBackground: #f2dede !default;
76
+ $errorBorder: darken(adjust-hue($errorBackground, -10), 3%) !default;
77
+
78
+ $successText: #468847 !default;
79
+ $successBackground: #dff0d8 !default;
80
+ $successBorder: darken(adjust-hue($successBackground, -10), 5%) !default;
81
+
82
+ $infoText: #3a87ad !default;
83
+ $infoBackground: #d9edf7 !default;
84
+ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
85
+
86
+
87
+
88
+ // GRID
89
+ // --------------------------------------------------
90
+
91
+ // Default 940px grid
92
+ $gridColumns: 12 !default;
93
+ $gridColumnWidth: 60px !default;
94
+ $gridGutterWidth: 20px !default;
95
+ $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
96
+
97
+ // Fluid grid
98
+ $fluidGridColumnWidth: 6.382978723% !default;
99
+ $fluidGridGutterWidth: 2.127659574% !default;