bootstrap-generators 2.0.1 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. data/README.md +258 -33
  2. data/Rakefile +0 -59
  3. data/lib/bootstrap/generators/engine.rb +6 -1
  4. data/lib/bootstrap/generators/version.rb +1 -1
  5. data/lib/generators/bootstrap/install/install_generator.rb +10 -2
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +120 -15
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +206 -0
  8. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css +2 -0
  9. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.less +5 -4
  10. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +3 -2
  11. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +2 -0
  12. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +5 -4
  13. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +3 -2
  14. data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +3 -0
  15. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +3 -3
  16. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +2 -2
  17. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +1 -1
  18. data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +1 -1
  19. data/test/fixtures/application.js +3 -0
  20. data/test/lib/generators/bootstrap/install_generator_test.rb +4 -3
  21. data/test/test_helper.rb +8 -1
  22. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  23. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  24. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  25. data/vendor/assets/javascripts/bootstrap-button.js +29 -33
  26. data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
  27. data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
  28. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  29. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  30. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  31. data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
  32. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  33. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  34. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  35. data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
  36. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/accordion.less +5 -0
  37. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/alerts.less +2 -14
  38. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/bootstrap.less +2 -2
  39. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/breadcrumbs.less +2 -0
  40. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/button-groups.less +76 -33
  41. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/buttons.less +32 -24
  42. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/carousel.less +0 -0
  43. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/close.less +12 -1
  44. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/code.less +6 -6
  45. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/component-animations.less +7 -5
  46. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/dropdowns.less +58 -45
  47. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/forms.less +205 -144
  48. data/vendor/twitter/bootstrap/less/grid.less +5 -0
  49. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/hero-unit.less +3 -1
  50. data/vendor/twitter/bootstrap/less/labels-badges.less +55 -0
  51. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/layouts.less +1 -1
  52. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/mixins.less +235 -179
  53. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/modals.less +13 -6
  54. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/navbar.less +131 -72
  55. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/navs.less +53 -43
  56. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/pager.less +6 -0
  57. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/pagination.less +1 -0
  58. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/popovers.less +0 -0
  59. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/progress-bars.less +27 -5
  60. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/reset.less +8 -3
  61. data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +26 -0
  62. data/vendor/twitter/bootstrap/less/responsive-767px-max.less +149 -0
  63. data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +17 -0
  64. data/vendor/twitter/bootstrap/less/responsive-navbar.less +153 -0
  65. data/vendor/twitter/bootstrap/less/responsive-utilities.less +41 -0
  66. data/vendor/twitter/bootstrap/less/responsive.less +48 -0
  67. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/scaffolding.less +4 -4
  68. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/sprites.less +42 -9
  69. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/tables.less +46 -20
  70. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/thumbnails.less +14 -2
  71. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/tooltip.less +0 -0
  72. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/type.less +27 -13
  73. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/utilities.less +0 -0
  74. data/vendor/twitter/bootstrap/less/variables.less +206 -0
  75. data/vendor/{assets/stylesheets → twitter/bootstrap}/less/wells.less +10 -0
  76. data/vendor/{assets/stylesheets/scss/accordion.scss → twitter/bootstrap/sass/_accordion.scss} +5 -0
  77. data/vendor/{assets/stylesheets/scss/alerts.scss → twitter/bootstrap/sass/_alerts.scss} +3 -15
  78. data/vendor/{assets/stylesheets/scss/breadcrumbs.scss → twitter/bootstrap/sass/_breadcrumbs.scss} +2 -0
  79. data/vendor/{assets/stylesheets/scss/button-groups.scss → twitter/bootstrap/sass/_button-groups.scss} +76 -33
  80. data/vendor/{assets/stylesheets/scss/buttons.scss → twitter/bootstrap/sass/_buttons.scss} +33 -25
  81. data/vendor/{assets/stylesheets/scss/carousel.scss → twitter/bootstrap/sass/_carousel.scss} +1 -1
  82. data/vendor/{assets/stylesheets/scss/close.scss → twitter/bootstrap/sass/_close.scss} +12 -1
  83. data/vendor/{assets/stylesheets/scss/code.scss → twitter/bootstrap/sass/_code.scss} +7 -7
  84. data/vendor/{assets/stylesheets/scss/component-animations.scss → twitter/bootstrap/sass/_component-animations.scss} +9 -7
  85. data/vendor/{assets/stylesheets/scss/dropdowns.scss → twitter/bootstrap/sass/_dropdowns.scss} +58 -45
  86. data/vendor/{assets/stylesheets/scss/forms.scss → twitter/bootstrap/sass/_forms.scss} +205 -145
  87. data/vendor/twitter/bootstrap/sass/_grid.scss +5 -0
  88. data/vendor/{assets/stylesheets/scss/hero-unit.scss → twitter/bootstrap/sass/_hero-unit.scss} +3 -1
  89. data/vendor/twitter/bootstrap/sass/_labels-badges.scss +52 -0
  90. data/vendor/{assets/stylesheets/scss/layouts.scss → twitter/bootstrap/sass/_layouts.scss} +2 -2
  91. data/vendor/{assets/stylesheets/scss/mixins.scss → twitter/bootstrap/sass/_mixins.scss} +246 -182
  92. data/vendor/{assets/stylesheets/scss/modals.scss → twitter/bootstrap/sass/_modals.scss} +14 -7
  93. data/vendor/{assets/stylesheets/scss/navbar.scss → twitter/bootstrap/sass/_navbar.scss} +132 -73
  94. data/vendor/{assets/stylesheets/scss/navs.scss → twitter/bootstrap/sass/_navs.scss} +53 -43
  95. data/vendor/{assets/stylesheets/scss/pager.scss → twitter/bootstrap/sass/_pager.scss} +6 -0
  96. data/vendor/{assets/stylesheets/scss/pagination.scss → twitter/bootstrap/sass/_pagination.scss} +1 -0
  97. data/vendor/{assets/stylesheets/scss/popovers.scss → twitter/bootstrap/sass/_popovers.scss} +0 -0
  98. data/vendor/{assets/stylesheets/scss/progress-bars.scss → twitter/bootstrap/sass/_progress-bars.scss} +27 -5
  99. data/vendor/{assets/stylesheets/scss/reset.scss → twitter/bootstrap/sass/_reset.scss} +8 -3
  100. data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +26 -0
  101. data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +149 -0
  102. data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +17 -0
  103. data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +153 -0
  104. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +41 -0
  105. data/vendor/{assets/stylesheets/scss/scaffolding.scss → twitter/bootstrap/sass/_scaffolding.scss} +4 -4
  106. data/vendor/{assets/stylesheets/scss/sprites.scss → twitter/bootstrap/sass/_sprites.scss} +40 -7
  107. data/vendor/{assets/stylesheets/scss/tables.scss → twitter/bootstrap/sass/_tables.scss} +37 -32
  108. data/vendor/{assets/stylesheets/scss/thumbnails.scss → twitter/bootstrap/sass/_thumbnails.scss} +14 -2
  109. data/vendor/{assets/stylesheets/scss/tooltip.scss → twitter/bootstrap/sass/_tooltip.scss} +1 -1
  110. data/vendor/{assets/stylesheets/scss/type.scss → twitter/bootstrap/sass/_type.scss} +27 -13
  111. data/vendor/{assets/stylesheets/scss/utilities.scss → twitter/bootstrap/sass/_utilities.scss} +0 -0
  112. data/vendor/twitter/bootstrap/sass/_variables.scss +204 -0
  113. data/vendor/{assets/stylesheets/scss/wells.scss → twitter/bootstrap/sass/_wells.scss} +10 -0
  114. data/vendor/{assets/stylesheets/scss → twitter/bootstrap/sass}/bootstrap.scss +3 -3
  115. data/vendor/twitter/bootstrap/sass/responsive.scss +48 -0
  116. metadata +93 -84
  117. data/lib/generators/bootstrap/install/templates/assets/javascripts/bootstrap-generators.js +0 -1
  118. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.less +0 -98
  119. data/vendor/assets/stylesheets/bootstrap.css +0 -3363
  120. data/vendor/assets/stylesheets/less/grid.less +0 -8
  121. data/vendor/assets/stylesheets/less/labels.less +0 -32
  122. data/vendor/assets/stylesheets/less/responsive.less +0 -327
  123. data/vendor/assets/stylesheets/less/variables.less +0 -107
  124. data/vendor/assets/stylesheets/scss/grid.scss +0 -8
  125. data/vendor/assets/stylesheets/scss/labels.scss +0 -32
  126. data/vendor/assets/stylesheets/scss/responsive.scss +0 -327
  127. data/vendor/assets/stylesheets/scss/variables.scss +0 -107
@@ -1,5 +1,10 @@
1
1
  module Bootstrap
2
2
  module Generators
3
- class Engine < ::Rails::Engine; end
3
+ class Engine < ::Rails::Engine
4
+ initializer 'bootstrap-generators.after.load_config_initializers', :after => :load_config_initializers do |app|
5
+ app.config.less.paths << File.join(config.root, 'vendor', 'twitter', 'bootstrap', 'less') if app.config.respond_to?(:less)
6
+ app.config.sass.load_paths << File.join(config.root, 'vendor', 'twitter', 'bootstrap', 'sass') if app.config.respond_to?(:sass)
7
+ end
8
+ end
4
9
  end
5
10
  end
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Generators
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.4"
4
4
  end
5
5
  end
@@ -33,16 +33,24 @@ module Bootstrap
33
33
  template "layouts/#{options[:layout]}.html.#{options[:template_engine]}", "app/views/layouts/application.html.#{options[:template_engine]}"
34
34
  end
35
35
 
36
- def create_assets
36
+ def create_stylesheets
37
37
  if options[:stylesheet_engine].nil? || options[:stylesheet_engine].to_sym == :css
38
38
  stylesheet_extension = 'css'
39
+ elsif options[:stylesheet_engine].to_sym == :less
40
+ stylesheet_extension = "css.#{options[:stylesheet_engine]}"
41
+ copy_file "assets/stylesheets/bootstrap-variables.less", "app/assets/stylesheets/bootstrap-variables.less"
39
42
  else
40
43
  stylesheet_extension = "css.#{options[:stylesheet_engine]}"
41
44
  copy_file "assets/stylesheets/bootstrap-variables.#{stylesheet_extension}", "app/assets/stylesheets/bootstrap-variables.#{stylesheet_extension}"
42
45
  end
43
46
 
44
47
  copy_file "assets/stylesheets/#{options[:layout]}.#{stylesheet_extension}", "app/assets/stylesheets/bootstrap-generators.#{stylesheet_extension}"
45
- copy_file 'assets/javascripts/bootstrap-generators.js', 'app/assets/javascripts/bootstrap-generators.js'
48
+ end
49
+
50
+ def inject_backbone
51
+ inject_into_file "app/assets/javascripts/application.js", :before => "//= require_tree" do
52
+ "//= require bootstrap\n"
53
+ end
46
54
  end
47
55
  end
48
56
  end
@@ -1,4 +1,4 @@
1
- // Variables.less
1
+ // Variables
2
2
  // Variables to customize the look and feel of Bootstrap
3
3
  // -----------------------------------------------------
4
4
 
@@ -7,11 +7,9 @@
7
7
  // GLOBAL VALUES
8
8
  // --------------------------------------------------
9
9
 
10
- // Links
11
- $linkColor: #08c !default;
12
- $linkColorHover: darken($linkColor, 15%) !default;
13
10
 
14
11
  // Grays
12
+ // -------------------------
15
13
  $black: #000 !default;
16
14
  $grayDarker: #222 !default;
17
15
  $grayDark: #333 !default;
@@ -20,7 +18,9 @@ $grayLight: #999 !default;
20
18
  $grayLighter: #eee !default;
21
19
  $white: #fff !default;
22
20
 
21
+
23
22
  // Accent colors
23
+ // -------------------------
24
24
  $blue: #049cdb !default;
25
25
  $blueDark: #0064cd !default;
26
26
  $green: #46a546 !default;
@@ -30,14 +30,83 @@ $orange: #f89406 !default;
30
30
  $pink: #c3325f !default;
31
31
  $purple: #7a43b6 !default;
32
32
 
33
+
34
+ // Scaffolding
35
+ // -------------------------
36
+ $bodyBackground: $white !default;
37
+ $textColor: $grayDark !default;
38
+
39
+
40
+ // Links
41
+ // -------------------------
42
+ $linkColor: #08c !default;
43
+ $linkColorHover: darken($linkColor, 15%) !default;
44
+
45
+
33
46
  // Typography
47
+ // -------------------------
48
+ $sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
49
+ $serifFontFamily: Georgia, "Times New Roman", Times, serif !default;
50
+ $monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace !default;
51
+
34
52
  $baseFontSize: 13px !default;
35
- $baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
53
+ $baseFontFamily: $sansFontFamily !default;
36
54
  $baseLineHeight: 18px !default;
37
- $textColor: $grayDark !default;
55
+ $altFontFamily: $serifFontFamily !default;
56
+
57
+ $headingsFontFamily: inherit !default; // empty to use BS default, $baseFontFamily
58
+ $headingsFontWeight: bold !default; // instead of browser default, bold
59
+ $headingsColor: inherit !default; // empty to use BS default, $textColor
60
+
61
+
62
+ // Tables
63
+ // -------------------------
64
+ $tableBackground: transparent !default; // overall background-color
65
+ $tableBackgroundAccent: #f9f9f9 !default; // for striping
66
+ $tableBackgroundHover: #f5f5f5 !default; // for hover
67
+ $tableBorder: #ddd !default; // table and cell border
68
+
38
69
 
39
70
  // Buttons
40
- $primaryButtonBackground: $linkColor !default;
71
+ // -------------------------
72
+ $btnBackground: $white !default;
73
+ $btnBackgroundHighlight: darken($white, 10%) !default;
74
+ $btnBorder: #ccc !default;
75
+
76
+ $btnPrimaryBackground: $linkColor !default;
77
+ $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%) !default;
78
+
79
+ $btnInfoBackground: #5bc0de !default;
80
+ $btnInfoBackgroundHighlight: #2f96b4 !default;
81
+
82
+ $btnSuccessBackground: #62c462 !default;
83
+ $btnSuccessBackgroundHighlight: #51a351 !default;
84
+
85
+ $btnWarningBackground: lighten($orange, 15%) !default;
86
+ $btnWarningBackgroundHighlight: $orange !default;
87
+
88
+ $btnDangerBackground: #ee5f5b !default;
89
+ $btnDangerBackgroundHighlight: #bd362f !default;
90
+
91
+ $btnInverseBackground: $gray !default;
92
+ $btnInverseBackgroundHighlight: $grayDarker !default;
93
+
94
+
95
+ // Forms
96
+ // -------------------------
97
+ $inputBackground: $white !default;
98
+ $inputBorder: #ccc !default;
99
+ $inputBorderRadius: 3px !default;
100
+ $inputDisabledBackground: $grayLighter !default;
101
+ $formActionsBackground: #f5f5f5 !default;
102
+
103
+ // Dropdowns
104
+ // -------------------------
105
+ $dropdownBackground: $white !default;
106
+ $dropdownBorder: rgba(0,0,0,.2) !default;
107
+ $dropdownLinkColor: $grayDark !default;
108
+ $dropdownLinkColorHover: $white !default;
109
+ $dropdownLinkBackgroundHover: $linkColor !default;
41
110
 
42
111
 
43
112
 
@@ -45,19 +114,35 @@ $primaryButtonBackground: $linkColor !default;
45
114
  // --------------------------------------------------
46
115
 
47
116
  // Z-index master list
117
+ // -------------------------
48
118
  // Used for a bird's eye view of components dependent on the z-axis
49
119
  // Try to avoid customizing these :)
50
- $zindexDropdown: 1000;
51
- $zindexPopover: 1010;
52
- $zindexTooltip: 1020;
53
- $zindexFixedNavbar: 1030;
54
- $zindexModalBackdrop: 1040;
55
- $zindexModal: 1050;
120
+ $zindexDropdown: 1000 !default;
121
+ $zindexPopover: 1010 !default;
122
+ $zindexTooltip: 1020 !default;
123
+ $zindexFixedNavbar: 1030 !default;
124
+ $zindexModalBackdrop: 1040 !default;
125
+ $zindexModal: 1050 !default;
126
+
127
+
128
+ // Sprite icons path
129
+ // -------------------------
130
+ $iconSpritePath: "glyphicons-halflings.png" !default;
131
+ $iconWhiteSpritePath: "glyphicons-halflings-white.png" !default;
132
+
56
133
 
57
134
  // Input placeholder text color
58
- $placeholderText: $grayLight !default;
135
+ // -------------------------
136
+ $placeholderText: $grayLight !default;
137
+
138
+
139
+ // Hr border color
140
+ // -------------------------
141
+ $hrBorder: $grayLighter !default;
142
+
59
143
 
60
144
  // Navbar
145
+ // -------------------------
61
146
  $navbarHeight: 40px !default;
62
147
  $navbarBackground: $grayDarker !default;
63
148
  $navbarBackgroundHighlight: $grayDark !default;
@@ -65,8 +150,26 @@ $navbarBackgroundHighlight: $grayDark !default;
65
150
  $navbarText: $grayLight !default;
66
151
  $navbarLinkColor: $grayLight !default;
67
152
  $navbarLinkColorHover: $white !default;
153
+ $navbarLinkColorActive: $navbarLinkColorHover !default;
154
+ $navbarLinkBackgroundHover: transparent !default;
155
+ $navbarLinkBackgroundActive: $navbarBackground !default;
156
+
157
+ $navbarSearchBackground: lighten($navbarBackground, 25%) !default;
158
+ $navbarSearchBackgroundFocus: $white !default;
159
+ $navbarSearchBorder: darken($navbarSearchBackground, 30%) !default;
160
+ $navbarSearchPlaceholderColor: #ccc !default;
161
+ $navbarBrandColor: $navbarLinkColor !default;
162
+
163
+
164
+ // Hero unit
165
+ // -------------------------
166
+ $heroUnitBackground: $grayLighter !default;
167
+ $heroUnitHeadingColor: inherit !default;
168
+ $heroUnitLeadColor: inherit !default;
169
+
68
170
 
69
171
  // Form states and alerts
172
+ // -------------------------
70
173
  $warningText: #c09853 !default;
71
174
  $warningBackground: #fcf8e3 !default;
72
175
  $warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default;
@@ -89,11 +192,13 @@ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
89
192
  // --------------------------------------------------
90
193
 
91
194
  // Default 940px grid
195
+ // -------------------------
92
196
  $gridColumns: 12 !default;
93
197
  $gridColumnWidth: 60px !default;
94
198
  $gridGutterWidth: 20px !default;
95
- $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
199
+ $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1)) !default;
96
200
 
97
201
  // Fluid grid
202
+ // -------------------------
98
203
  $fluidGridColumnWidth: 6.382978723% !default;
99
204
  $fluidGridGutterWidth: 2.127659574% !default;
@@ -0,0 +1,206 @@
1
+ // Variables.less
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+
6
+
7
+ // GLOBAL VALUES
8
+ // --------------------------------------------------
9
+
10
+
11
+ // Grays
12
+ // -------------------------
13
+ @black: #000;
14
+ @grayDarker: #222;
15
+ @grayDark: #333;
16
+ @gray: #555;
17
+ @grayLight: #999;
18
+ @grayLighter: #eee;
19
+ @white: #fff;
20
+
21
+
22
+ // Accent colors
23
+ // -------------------------
24
+ @blue: #049cdb;
25
+ @blueDark: #0064cd;
26
+ @green: #46a546;
27
+ @red: #9d261d;
28
+ @yellow: #ffc40d;
29
+ @orange: #f89406;
30
+ @pink: #c3325f;
31
+ @purple: #7a43b6;
32
+
33
+
34
+ // Scaffolding
35
+ // -------------------------
36
+ @bodyBackground: @white;
37
+ @textColor: @grayDark;
38
+
39
+
40
+ // Links
41
+ // -------------------------
42
+ @linkColor: #08c;
43
+ @linkColorHover: darken(@linkColor, 15%);
44
+
45
+
46
+ // Typography
47
+ // -------------------------
48
+ @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
49
+ @serifFontFamily: Georgia, "Times New Roman", Times, serif;
50
+ @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
51
+
52
+ @baseFontSize: 13px;
53
+ @baseFontFamily: @sansFontFamily;
54
+ @baseLineHeight: 18px;
55
+ @altFontFamily: @serifFontFamily;
56
+
57
+ @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
58
+ @headingsFontWeight: bold; // instead of browser default, bold
59
+ @headingsColor: inherit; // empty to use BS default, @textColor
60
+
61
+
62
+ // Tables
63
+ // -------------------------
64
+ @tableBackground: transparent; // overall background-color
65
+ @tableBackgroundAccent: #f9f9f9; // for striping
66
+ @tableBackgroundHover: #f5f5f5; // for hover
67
+ @tableBorder: #ddd; // table and cell border
68
+
69
+
70
+ // Buttons
71
+ // -------------------------
72
+ @btnBackground: @white;
73
+ @btnBackgroundHighlight: darken(@white, 10%);
74
+ @btnBorder: #ccc;
75
+
76
+ @btnPrimaryBackground: @linkColor;
77
+ @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
78
+
79
+ @btnInfoBackground: #5bc0de;
80
+ @btnInfoBackgroundHighlight: #2f96b4;
81
+
82
+ @btnSuccessBackground: #62c462;
83
+ @btnSuccessBackgroundHighlight: #51a351;
84
+
85
+ @btnWarningBackground: lighten(@orange, 15%);
86
+ @btnWarningBackgroundHighlight: @orange;
87
+
88
+ @btnDangerBackground: #ee5f5b;
89
+ @btnDangerBackgroundHighlight: #bd362f;
90
+
91
+ @btnInverseBackground: @gray;
92
+ @btnInverseBackgroundHighlight: @grayDarker;
93
+
94
+
95
+ // Forms
96
+ // -------------------------
97
+ @inputBackground: @white;
98
+ @inputBorder: #ccc;
99
+ @inputBorderRadius: 3px;
100
+ @inputDisabledBackground: @grayLighter;
101
+ @formActionsBackground: #f5f5f5;
102
+
103
+ // Dropdowns
104
+ // -------------------------
105
+ @dropdownBackground: @white;
106
+ @dropdownBorder: rgba(0,0,0,.2);
107
+ @dropdownLinkColor: @grayDark;
108
+ @dropdownLinkColorHover: @white;
109
+ @dropdownLinkBackgroundHover: @linkColor;
110
+ @dropdownDividerTop: #e5e5e5;
111
+ @dropdownDividerBottom: @white;
112
+
113
+
114
+
115
+ // COMPONENT VARIABLES
116
+ // --------------------------------------------------
117
+
118
+ // Z-index master list
119
+ // -------------------------
120
+ // Used for a bird's eye view of components dependent on the z-axis
121
+ // Try to avoid customizing these :)
122
+ @zindexDropdown: 1000;
123
+ @zindexPopover: 1010;
124
+ @zindexTooltip: 1020;
125
+ @zindexFixedNavbar: 1030;
126
+ @zindexModalBackdrop: 1040;
127
+ @zindexModal: 1050;
128
+
129
+
130
+ // Sprite icons path
131
+ // -------------------------
132
+ @iconSpritePath: "glyphicons-halflings.png";
133
+ @iconWhiteSpritePath: "glyphicons-halflings-white.png";
134
+
135
+
136
+ // Input placeholder text color
137
+ // -------------------------
138
+ @placeholderText: @grayLight;
139
+
140
+
141
+ // Hr border color
142
+ // -------------------------
143
+ @hrBorder: @grayLighter;
144
+
145
+
146
+ // Navbar
147
+ // -------------------------
148
+ @navbarHeight: 40px;
149
+ @navbarBackground: @grayDarker;
150
+ @navbarBackgroundHighlight: @grayDark;
151
+
152
+ @navbarText: @grayLight;
153
+ @navbarLinkColor: @grayLight;
154
+ @navbarLinkColorHover: @white;
155
+ @navbarLinkColorActive: @navbarLinkColorHover;
156
+ @navbarLinkBackgroundHover: transparent;
157
+ @navbarLinkBackgroundActive: @navbarBackground;
158
+
159
+ @navbarSearchBackground: lighten(@navbarBackground, 25%);
160
+ @navbarSearchBackgroundFocus: @white;
161
+ @navbarSearchBorder: darken(@navbarSearchBackground, 30%);
162
+ @navbarSearchPlaceholderColor: #ccc;
163
+ @navbarBrandColor: @navbarLinkColor;
164
+
165
+
166
+ // Hero unit
167
+ // -------------------------
168
+ @heroUnitBackground: @grayLighter;
169
+ @heroUnitHeadingColor: inherit;
170
+ @heroUnitLeadColor: inherit;
171
+
172
+
173
+ // Form states and alerts
174
+ // -------------------------
175
+ @warningText: #c09853;
176
+ @warningBackground: #fcf8e3;
177
+ @warningBorder: darken(spin(@warningBackground, -10), 3%);
178
+
179
+ @errorText: #b94a48;
180
+ @errorBackground: #f2dede;
181
+ @errorBorder: darken(spin(@errorBackground, -10), 3%);
182
+
183
+ @successText: #468847;
184
+ @successBackground: #dff0d8;
185
+ @successBorder: darken(spin(@successBackground, -10), 5%);
186
+
187
+ @infoText: #3a87ad;
188
+ @infoBackground: #d9edf7;
189
+ @infoBorder: darken(spin(@infoBackground, -10), 7%);
190
+
191
+
192
+
193
+ // GRID
194
+ // --------------------------------------------------
195
+
196
+ // Default 940px grid
197
+ // -------------------------
198
+ @gridColumns: 12;
199
+ @gridColumnWidth: 60px;
200
+ @gridGutterWidth: 20px;
201
+ @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
202
+
203
+ // Fluid grid
204
+ // -------------------------
205
+ @fluidGridColumnWidth: 6.382978723%;
206
+ @fluidGridGutterWidth: 2.127659574%;