bootstrap-generators 2.0.4 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/README.md +211 -63
  2. data/lib/bootstrap/generators/version.rb +1 -1
  3. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +102 -28
  4. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +104 -31
  5. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  6. data/vendor/assets/javascripts/bootstrap-affix.js +104 -0
  7. data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
  8. data/vendor/assets/javascripts/bootstrap-button.js +2 -2
  9. data/vendor/assets/javascripts/bootstrap-carousel.js +12 -5
  10. data/vendor/assets/javascripts/bootstrap-collapse.js +4 -3
  11. data/vendor/assets/javascripts/bootstrap-dropdown.js +66 -16
  12. data/vendor/assets/javascripts/bootstrap-modal.js +95 -74
  13. data/vendor/assets/javascripts/bootstrap-popover.js +9 -4
  14. data/vendor/assets/javascripts/bootstrap-scrollspy.js +9 -9
  15. data/vendor/assets/javascripts/bootstrap-tab.js +2 -2
  16. data/vendor/assets/javascripts/bootstrap-tooltip.js +15 -15
  17. data/vendor/assets/javascripts/bootstrap-transition.js +2 -3
  18. data/vendor/assets/javascripts/bootstrap-typeahead.js +51 -36
  19. data/vendor/assets/javascripts/bootstrap.js +1 -1
  20. data/vendor/assets/stylesheets/bootstrap-responsive.css +1058 -0
  21. data/vendor/assets/stylesheets/bootstrap-responsive.min.css +9 -0
  22. data/vendor/assets/stylesheets/bootstrap.css +5774 -0
  23. data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
  24. data/vendor/twitter/bootstrap/less/accordion.less +3 -2
  25. data/vendor/twitter/bootstrap/less/alerts.less +16 -9
  26. data/vendor/twitter/bootstrap/less/bootstrap.less +1 -1
  27. data/vendor/twitter/bootstrap/less/breadcrumbs.less +10 -10
  28. data/vendor/twitter/bootstrap/less/button-groups.less +79 -25
  29. data/vendor/twitter/bootstrap/less/buttons.less +107 -67
  30. data/vendor/twitter/bootstrap/less/carousel.less +13 -3
  31. data/vendor/twitter/bootstrap/less/close.less +4 -2
  32. data/vendor/twitter/bootstrap/less/code.less +6 -5
  33. data/vendor/twitter/bootstrap/less/component-animations.less +4 -2
  34. data/vendor/twitter/bootstrap/less/dropdowns.less +82 -15
  35. data/vendor/twitter/bootstrap/less/forms.less +124 -57
  36. data/vendor/twitter/bootstrap/less/grid.less +17 -1
  37. data/vendor/twitter/bootstrap/less/hero-unit.less +4 -2
  38. data/vendor/twitter/bootstrap/less/labels-badges.less +19 -2
  39. data/vendor/twitter/bootstrap/less/layouts.less +1 -2
  40. data/vendor/twitter/bootstrap/less/mixins.less +112 -77
  41. data/vendor/twitter/bootstrap/less/modals.less +12 -4
  42. data/vendor/twitter/bootstrap/less/navbar.less +245 -128
  43. data/vendor/twitter/bootstrap/less/navs.less +38 -17
  44. data/vendor/twitter/bootstrap/less/pager.less +11 -7
  45. data/vendor/twitter/bootstrap/less/pagination.less +23 -15
  46. data/vendor/twitter/bootstrap/less/popovers.less +101 -33
  47. data/vendor/twitter/bootstrap/less/progress-bars.less +18 -13
  48. data/vendor/twitter/bootstrap/less/reset.less +10 -4
  49. data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +9 -7
  50. data/vendor/twitter/bootstrap/less/responsive-767px-max.less +95 -70
  51. data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +7 -5
  52. data/vendor/twitter/bootstrap/less/responsive-navbar.less +30 -6
  53. data/vendor/twitter/bootstrap/less/responsive-utilities.less +17 -15
  54. data/vendor/twitter/bootstrap/less/responsive.less +5 -5
  55. data/vendor/twitter/bootstrap/less/scaffolding.less +27 -4
  56. data/vendor/twitter/bootstrap/less/sprites.less +21 -19
  57. data/vendor/twitter/bootstrap/less/tables.less +81 -12
  58. data/vendor/twitter/bootstrap/less/thumbnails.less +9 -4
  59. data/vendor/twitter/bootstrap/less/tooltip.less +47 -12
  60. data/vendor/twitter/bootstrap/less/type.less +75 -86
  61. data/vendor/twitter/bootstrap/less/utilities.less +9 -2
  62. data/vendor/twitter/bootstrap/less/variables.less +104 -31
  63. data/vendor/twitter/bootstrap/less/wells.less +7 -5
  64. data/vendor/twitter/bootstrap/sass/_accordion.scss +3 -2
  65. data/vendor/twitter/bootstrap/sass/_alerts.scss +15 -8
  66. data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +10 -10
  67. data/vendor/twitter/bootstrap/sass/_button-groups.scss +77 -23
  68. data/vendor/twitter/bootstrap/sass/_buttons.scss +106 -66
  69. data/vendor/twitter/bootstrap/sass/_carousel.scss +13 -3
  70. data/vendor/twitter/bootstrap/sass/_close.scss +5 -3
  71. data/vendor/twitter/bootstrap/sass/_code.scss +7 -6
  72. data/vendor/twitter/bootstrap/sass/_component-animations.scss +5 -3
  73. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +85 -18
  74. data/vendor/twitter/bootstrap/sass/_forms.scss +121 -53
  75. data/vendor/twitter/bootstrap/sass/_grid.scss +17 -1
  76. data/vendor/twitter/bootstrap/sass/_hero-unit.scss +4 -2
  77. data/vendor/twitter/bootstrap/sass/_labels-badges.scss +29 -12
  78. data/vendor/twitter/bootstrap/sass/_layouts.scss +2 -3
  79. data/vendor/twitter/bootstrap/sass/_mixins.scss +163 -127
  80. data/vendor/twitter/bootstrap/sass/_modals.scss +12 -4
  81. data/vendor/twitter/bootstrap/sass/_navbar.scss +243 -127
  82. data/vendor/twitter/bootstrap/sass/_navs.scss +36 -15
  83. data/vendor/twitter/bootstrap/sass/_pager.scss +12 -8
  84. data/vendor/twitter/bootstrap/sass/_pagination.scss +23 -15
  85. data/vendor/twitter/bootstrap/sass/_popovers.scss +101 -33
  86. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +18 -13
  87. data/vendor/twitter/bootstrap/sass/_reset.scss +8 -3
  88. data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +9 -7
  89. data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +95 -70
  90. data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +8 -6
  91. data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +29 -5
  92. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +32 -15
  93. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +29 -4
  94. data/vendor/twitter/bootstrap/sass/_sprites.scss +21 -19
  95. data/vendor/twitter/bootstrap/sass/_tables.scss +79 -11
  96. data/vendor/twitter/bootstrap/sass/_thumbnails.scss +9 -4
  97. data/vendor/twitter/bootstrap/sass/_tooltip.scss +47 -12
  98. data/vendor/twitter/bootstrap/sass/_type.scss +74 -85
  99. data/vendor/twitter/bootstrap/sass/_utilities.scss +24 -2
  100. data/vendor/twitter/bootstrap/sass/_variables.scss +102 -28
  101. data/vendor/twitter/bootstrap/sass/_wells.scss +7 -5
  102. data/vendor/twitter/bootstrap/sass/bootstrap.scss +1 -1
  103. data/vendor/twitter/bootstrap/sass/responsive.scss +5 -5
  104. metadata +15 -10
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Generators
3
- VERSION = "2.0.4"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
@@ -1,10 +1,9 @@
1
+ //
1
2
  // Variables
2
- // Variables to customize the look and feel of Bootstrap
3
- // -----------------------------------------------------
4
-
3
+ // --------------------------------------------------
5
4
 
6
5
 
7
- // GLOBAL VALUES
6
+ // Global values
8
7
  // --------------------------------------------------
9
8
 
10
9
 
@@ -47,18 +46,17 @@ $linkColorHover: darken($linkColor, 15%) !default;
47
46
  // -------------------------
48
47
  $sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
49
48
  $serifFontFamily: Georgia, "Times New Roman", Times, serif !default;
50
- $monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace !default;
49
+ $monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace !default;
51
50
 
52
- $baseFontSize: 13px !default;
51
+ $baseFontSize: 14px !default;
53
52
  $baseFontFamily: $sansFontFamily !default;
54
- $baseLineHeight: 18px !default;
53
+ $baseLineHeight: 20px !default;
55
54
  $altFontFamily: $serifFontFamily !default;
56
55
 
57
56
  $headingsFontFamily: inherit !default; // empty to use BS default, $baseFontFamily
58
57
  $headingsFontWeight: bold !default; // instead of browser default, bold
59
58
  $headingsColor: inherit !default; // empty to use BS default, $textColor
60
59
 
61
-
62
60
  // Tables
63
61
  // -------------------------
64
62
  $tableBackground: transparent !default; // overall background-color
@@ -66,15 +64,14 @@ $tableBackgroundAccent: #f9f9f9 !default; // for striping
66
64
  $tableBackgroundHover: #f5f5f5 !default; // for hover
67
65
  $tableBorder: #ddd !default; // table and cell border
68
66
 
69
-
70
67
  // Buttons
71
68
  // -------------------------
72
69
  $btnBackground: $white !default;
73
70
  $btnBackgroundHighlight: darken($white, 10%) !default;
74
- $btnBorder: #ccc !default;
71
+ $btnBorder: #bbb !default;
75
72
 
76
73
  $btnPrimaryBackground: $linkColor !default;
77
- $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%) !default;
74
+ $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 20%) !default;
78
75
 
79
76
  $btnInfoBackground: #5bc0de !default;
80
77
  $btnInfoBackgroundHighlight: #2f96b4 !default;
@@ -88,7 +85,7 @@ $btnWarningBackgroundHighlight: $orange !default;
88
85
  $btnDangerBackground: #ee5f5b !default;
89
86
  $btnDangerBackgroundHighlight: #bd362f !default;
90
87
 
91
- $btnInverseBackground: $gray !default;
88
+ $btnInverseBackground: #444 !default;
92
89
  $btnInverseBackgroundHighlight: $grayDarker !default;
93
90
 
94
91
 
@@ -104,9 +101,15 @@ $formActionsBackground: #f5f5f5 !default;
104
101
  // -------------------------
105
102
  $dropdownBackground: $white !default;
106
103
  $dropdownBorder: rgba(0,0,0,.2) !default;
104
+ $dropdownDividerTop: #e5e5e5 !default;
105
+ $dropdownDividerBottom: $white !default;
106
+
107
107
  $dropdownLinkColor: $grayDark !default;
108
108
  $dropdownLinkColorHover: $white !default;
109
- $dropdownLinkBackgroundHover: $linkColor !default;
109
+ $dropdownLinkColorActive: $dropdownLinkColor !default;
110
+
111
+ $dropdownLinkBackgroundActive: $linkColor !default;
112
+ $dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive !default;
110
113
 
111
114
 
112
115
 
@@ -119,7 +122,7 @@ $dropdownLinkBackgroundHover: $linkColor !default;
119
122
  // Try to avoid customizing these :)
120
123
  $zindexDropdown: 1000 !default;
121
124
  $zindexPopover: 1010 !default;
122
- $zindexTooltip: 1020 !default;
125
+ $zindexTooltip: 1030 !default;
123
126
  $zindexFixedNavbar: 1030 !default;
124
127
  $zindexModalBackdrop: 1040 !default;
125
128
  $zindexModal: 1050 !default;
@@ -141,25 +144,60 @@ $placeholderText: $grayLight !default;
141
144
  $hrBorder: $grayLighter !default;
142
145
 
143
146
 
147
+ // Horizontal forms & lists
148
+ // -------------------------
149
+ $horizontalComponentOffset: 180px;
150
+
151
+
152
+ // Wells
153
+ // -------------------------
154
+ $wellBackground: #f5f5f5 !default;
155
+
156
+
144
157
  // Navbar
145
158
  // -------------------------
146
- $navbarHeight: 40px !default;
147
- $navbarBackground: $grayDarker !default;
148
- $navbarBackgroundHighlight: $grayDark !default;
159
+ $navbarCollapseWidth: 979px !default;
149
160
 
150
- $navbarText: $grayLight !default;
151
- $navbarLinkColor: $grayLight !default;
152
- $navbarLinkColorHover: $white !default;
153
- $navbarLinkColorActive: $navbarLinkColorHover !default;
161
+ $navbarHeight: 40px !default;
162
+ $navbarBackgroundHighlight: #ffffff !default;
163
+ $navbarBackground: darken($navbarBackgroundHighlight, 5%) !default;
164
+ $navbarBorder: darken($navbarBackground, 12%) !default;
165
+
166
+ $navbarText: #777 !default;
167
+ $navbarLinkColor: #777 !default;
168
+ $navbarLinkColorHover: $grayDark !default;
169
+ $navbarLinkColorActive: $gray !default;
154
170
  $navbarLinkBackgroundHover: transparent !default;
155
- $navbarLinkBackgroundActive: $navbarBackground !default;
171
+ $navbarLinkBackgroundActive: darken($navbarBackground, 5.25%) !default;
156
172
 
157
- $navbarSearchBackground: lighten($navbarBackground, 25%) !default;
158
- $navbarSearchBackgroundFocus: $white !default;
159
- $navbarSearchBorder: darken($navbarSearchBackground, 30%) !default;
160
- $navbarSearchPlaceholderColor: #ccc !default;
161
173
  $navbarBrandColor: $navbarLinkColor !default;
162
174
 
175
+ // Inverted navbar
176
+ $navbarInverseBackground: #111111 !default;
177
+ $navbarInverseBackgroundHighlight: #222222 !default;
178
+ $navbarInverseBorder: #252525 !default;
179
+
180
+ $navbarInverseText: $grayLight !default;
181
+ $navbarInverseLinkColor: $grayLight !default;
182
+ $navbarInverseLinkColorHover: $white !default;
183
+ $navbarInverseLinkColorActive: $navbarInverseLinkColorHover !default;
184
+ $navbarInverseLinkBackgroundHover: transparent !default;
185
+ $navbarInverseLinkBackgroundActive: $navbarInverseBackground !default;
186
+
187
+ $navbarInverseSearchBackground: lighten($navbarInverseBackground, 25%) !default;
188
+ $navbarInverseSearchBackgroundFocus: $white !default;
189
+ $navbarInverseSearchBorder: $navbarInverseBackground !default;
190
+ $navbarInverseSearchPlaceholderColor: #ccc !default;
191
+
192
+ $navbarInverseBrandColor: $navbarInverseLinkColor !default;
193
+
194
+
195
+ // Pagination
196
+ // -------------------------
197
+ $paginationBackground: #fff !default;
198
+ $paginationBorder: #ddd !default;
199
+ $paginationActiveBackground: #f5f5f5 !default;
200
+
163
201
 
164
202
  // Hero unit
165
203
  // -------------------------
@@ -187,6 +225,23 @@ $infoBackground: #d9edf7 !default;
187
225
  $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
188
226
 
189
227
 
228
+ // Tooltips and popovers
229
+ // -------------------------
230
+ $tooltipColor: #fff !default;
231
+ $tooltipBackground: #000 !default;
232
+ $tooltipArrowWidth: 5px !default;
233
+ $tooltipArrowColor: $tooltipBackground !default;
234
+
235
+ $popoverBackground: #fff !default;
236
+ $popoverArrowWidth: 10px !default;
237
+ $popoverArrowColor: #fff !default;
238
+ $popoverTitleBackground: darken($popoverBackground, 3%) !default;
239
+
240
+ // Special enhancement for popovers
241
+ $popoverArrowOuterWidth: $popoverArrowWidth + 1 !default;
242
+ $popoverArrowOuterColor: rgba(0,0,0,.25) !default;
243
+
244
+
190
245
 
191
246
  // GRID
192
247
  // --------------------------------------------------
@@ -198,7 +253,26 @@ $gridColumnWidth: 60px !default;
198
253
  $gridGutterWidth: 20px !default;
199
254
  $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1)) !default;
200
255
 
256
+ // 1200px min
257
+ $gridColumnWidth1200: 70px !default;
258
+ $gridGutterWidth1200: 30px !default;
259
+ $gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1)) !default;
260
+
261
+ // 768px-979px
262
+ $gridColumnWidth768: 42px !default;
263
+ $gridGutterWidth768: 20px !default;
264
+ $gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1)) !default;
265
+
266
+
201
267
  // Fluid grid
202
268
  // -------------------------
203
- $fluidGridColumnWidth: 6.382978723% !default;
204
- $fluidGridGutterWidth: 2.127659574% !default;
269
+ $fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth) !default;
270
+ $fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth) !default;
271
+
272
+ // 1200px min
273
+ $fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200) !default;
274
+ $fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200) !default;
275
+
276
+ // 768px-979px
277
+ $fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768) !default;
278
+ $fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768) !default;
@@ -1,10 +1,9 @@
1
- // Variables.less
2
- // Variables to customize the look and feel of Bootstrap
3
- // -----------------------------------------------------
4
-
1
+ //
2
+ // Variables
3
+ // --------------------------------------------------
5
4
 
6
5
 
7
- // GLOBAL VALUES
6
+ // Global values
8
7
  // --------------------------------------------------
9
8
 
10
9
 
@@ -47,18 +46,17 @@
47
46
  // -------------------------
48
47
  @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
49
48
  @serifFontFamily: Georgia, "Times New Roman", Times, serif;
50
- @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
49
+ @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
51
50
 
52
- @baseFontSize: 13px;
51
+ @baseFontSize: 14px;
53
52
  @baseFontFamily: @sansFontFamily;
54
- @baseLineHeight: 18px;
53
+ @baseLineHeight: 20px;
55
54
  @altFontFamily: @serifFontFamily;
56
55
 
57
56
  @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
58
57
  @headingsFontWeight: bold; // instead of browser default, bold
59
58
  @headingsColor: inherit; // empty to use BS default, @textColor
60
59
 
61
-
62
60
  // Tables
63
61
  // -------------------------
64
62
  @tableBackground: transparent; // overall background-color
@@ -66,15 +64,14 @@
66
64
  @tableBackgroundHover: #f5f5f5; // for hover
67
65
  @tableBorder: #ddd; // table and cell border
68
66
 
69
-
70
67
  // Buttons
71
68
  // -------------------------
72
69
  @btnBackground: @white;
73
70
  @btnBackgroundHighlight: darken(@white, 10%);
74
- @btnBorder: #ccc;
71
+ @btnBorder: #bbb;
75
72
 
76
73
  @btnPrimaryBackground: @linkColor;
77
- @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
74
+ @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
78
75
 
79
76
  @btnInfoBackground: #5bc0de;
80
77
  @btnInfoBackgroundHighlight: #2f96b4;
@@ -88,7 +85,7 @@
88
85
  @btnDangerBackground: #ee5f5b;
89
86
  @btnDangerBackgroundHighlight: #bd362f;
90
87
 
91
- @btnInverseBackground: @gray;
88
+ @btnInverseBackground: #444;
92
89
  @btnInverseBackgroundHighlight: @grayDarker;
93
90
 
94
91
 
@@ -104,12 +101,16 @@
104
101
  // -------------------------
105
102
  @dropdownBackground: @white;
106
103
  @dropdownBorder: rgba(0,0,0,.2);
107
- @dropdownLinkColor: @grayDark;
108
- @dropdownLinkColorHover: @white;
109
- @dropdownLinkBackgroundHover: @linkColor;
110
104
  @dropdownDividerTop: #e5e5e5;
111
105
  @dropdownDividerBottom: @white;
112
106
 
107
+ @dropdownLinkColor: @grayDark;
108
+ @dropdownLinkColorHover: @white;
109
+ @dropdownLinkColorActive: @dropdownLinkColor;
110
+
111
+ @dropdownLinkBackgroundActive: @linkColor;
112
+ @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
113
+
113
114
 
114
115
 
115
116
  // COMPONENT VARIABLES
@@ -121,7 +122,7 @@
121
122
  // Try to avoid customizing these :)
122
123
  @zindexDropdown: 1000;
123
124
  @zindexPopover: 1010;
124
- @zindexTooltip: 1020;
125
+ @zindexTooltip: 1030;
125
126
  @zindexFixedNavbar: 1030;
126
127
  @zindexModalBackdrop: 1040;
127
128
  @zindexModal: 1050;
@@ -143,25 +144,60 @@
143
144
  @hrBorder: @grayLighter;
144
145
 
145
146
 
147
+ // Horizontal forms & lists
148
+ // -------------------------
149
+ @horizontalComponentOffset: 180px;
150
+
151
+
152
+ // Wells
153
+ // -------------------------
154
+ @wellBackground: #f5f5f5;
155
+
156
+
146
157
  // Navbar
147
158
  // -------------------------
148
- @navbarHeight: 40px;
149
- @navbarBackground: @grayDarker;
150
- @navbarBackgroundHighlight: @grayDark;
159
+ @navbarCollapseWidth: 979px;
151
160
 
152
- @navbarText: @grayLight;
153
- @navbarLinkColor: @grayLight;
154
- @navbarLinkColorHover: @white;
155
- @navbarLinkColorActive: @navbarLinkColorHover;
161
+ @navbarHeight: 40px;
162
+ @navbarBackgroundHighlight: #ffffff;
163
+ @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
164
+ @navbarBorder: darken(@navbarBackground, 12%);
165
+
166
+ @navbarText: #777;
167
+ @navbarLinkColor: #777;
168
+ @navbarLinkColorHover: @grayDark;
169
+ @navbarLinkColorActive: @gray;
156
170
  @navbarLinkBackgroundHover: transparent;
157
- @navbarLinkBackgroundActive: @navbarBackground;
171
+ @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
158
172
 
159
- @navbarSearchBackground: lighten(@navbarBackground, 25%);
160
- @navbarSearchBackgroundFocus: @white;
161
- @navbarSearchBorder: darken(@navbarSearchBackground, 30%);
162
- @navbarSearchPlaceholderColor: #ccc;
163
173
  @navbarBrandColor: @navbarLinkColor;
164
174
 
175
+ // Inverted navbar
176
+ @navbarInverseBackground: #111111;
177
+ @navbarInverseBackgroundHighlight: #222222;
178
+ @navbarInverseBorder: #252525;
179
+
180
+ @navbarInverseText: @grayLight;
181
+ @navbarInverseLinkColor: @grayLight;
182
+ @navbarInverseLinkColorHover: @white;
183
+ @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
184
+ @navbarInverseLinkBackgroundHover: transparent;
185
+ @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
186
+
187
+ @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
188
+ @navbarInverseSearchBackgroundFocus: @white;
189
+ @navbarInverseSearchBorder: @navbarInverseBackground;
190
+ @navbarInverseSearchPlaceholderColor: #ccc;
191
+
192
+ @navbarInverseBrandColor: @navbarInverseLinkColor;
193
+
194
+
195
+ // Pagination
196
+ // -------------------------
197
+ @paginationBackground: #fff;
198
+ @paginationBorder: #ddd;
199
+ @paginationActiveBackground: #f5f5f5;
200
+
165
201
 
166
202
  // Hero unit
167
203
  // -------------------------
@@ -189,10 +225,28 @@
189
225
  @infoBorder: darken(spin(@infoBackground, -10), 7%);
190
226
 
191
227
 
228
+ // Tooltips and popovers
229
+ // -------------------------
230
+ @tooltipColor: #fff;
231
+ @tooltipBackground: #000;
232
+ @tooltipArrowWidth: 5px;
233
+ @tooltipArrowColor: @tooltipBackground;
234
+
235
+ @popoverBackground: #fff;
236
+ @popoverArrowWidth: 10px;
237
+ @popoverArrowColor: #fff;
238
+ @popoverTitleBackground: darken(@popoverBackground, 3%);
239
+
240
+ // Special enhancement for popovers
241
+ @popoverArrowOuterWidth: @popoverArrowWidth + 1;
242
+ @popoverArrowOuterColor: rgba(0,0,0,.25);
243
+
244
+
192
245
 
193
246
  // GRID
194
247
  // --------------------------------------------------
195
248
 
249
+
196
250
  // Default 940px grid
197
251
  // -------------------------
198
252
  @gridColumns: 12;
@@ -200,7 +254,26 @@
200
254
  @gridGutterWidth: 20px;
201
255
  @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
202
256
 
257
+ // 1200px min
258
+ @gridColumnWidth1200: 70px;
259
+ @gridGutterWidth1200: 30px;
260
+ @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
261
+
262
+ // 768px-979px
263
+ @gridColumnWidth768: 42px;
264
+ @gridGutterWidth768: 20px;
265
+ @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
266
+
267
+
203
268
  // Fluid grid
204
269
  // -------------------------
205
- @fluidGridColumnWidth: 6.382978723%;
206
- @fluidGridGutterWidth: 2.127659574%;
270
+ @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
271
+ @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
272
+
273
+ // 1200px min
274
+ @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
275
+ @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
276
+
277
+ // 768px-979px
278
+ @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
279
+ @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
@@ -0,0 +1,104 @@
1
+ /* ==========================================================
2
+ * bootstrap-affix.js v2.1.1
3
+ * http://twitter.github.com/bootstrap/javascript.html#affix
4
+ * ==========================================================
5
+ * Copyright 2012 Twitter, Inc.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * ========================================================== */
19
+
20
+
21
+ !function ($) {
22
+
23
+ "use strict"; // jshint ;_;
24
+
25
+
26
+ /* AFFIX CLASS DEFINITION
27
+ * ====================== */
28
+
29
+ var Affix = function (element, options) {
30
+ this.options = $.extend({}, $.fn.affix.defaults, options)
31
+ this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
32
+ this.$element = $(element)
33
+ this.checkPosition()
34
+ }
35
+
36
+ Affix.prototype.checkPosition = function () {
37
+ if (!this.$element.is(':visible')) return
38
+
39
+ var scrollHeight = $(document).height()
40
+ , scrollTop = this.$window.scrollTop()
41
+ , position = this.$element.offset()
42
+ , offset = this.options.offset
43
+ , offsetBottom = offset.bottom
44
+ , offsetTop = offset.top
45
+ , reset = 'affix affix-top affix-bottom'
46
+ , affix
47
+
48
+ if (typeof offset != 'object') offsetBottom = offsetTop = offset
49
+ if (typeof offsetTop == 'function') offsetTop = offset.top()
50
+ if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
51
+
52
+ affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ?
53
+ false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ?
54
+ 'bottom' : offsetTop != null && scrollTop <= offsetTop ?
55
+ 'top' : false
56
+
57
+ if (this.affixed === affix) return
58
+
59
+ this.affixed = affix
60
+ this.unpin = affix == 'bottom' ? position.top - scrollTop : null
61
+
62
+ this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : ''))
63
+ }
64
+
65
+
66
+ /* AFFIX PLUGIN DEFINITION
67
+ * ======================= */
68
+
69
+ $.fn.affix = function (option) {
70
+ return this.each(function () {
71
+ var $this = $(this)
72
+ , data = $this.data('affix')
73
+ , options = typeof option == 'object' && option
74
+ if (!data) $this.data('affix', (data = new Affix(this, options)))
75
+ if (typeof option == 'string') data[option]()
76
+ })
77
+ }
78
+
79
+ $.fn.affix.Constructor = Affix
80
+
81
+ $.fn.affix.defaults = {
82
+ offset: 0
83
+ }
84
+
85
+
86
+ /* AFFIX DATA-API
87
+ * ============== */
88
+
89
+ $(window).on('load', function () {
90
+ $('[data-spy="affix"]').each(function () {
91
+ var $spy = $(this)
92
+ , data = $spy.data()
93
+
94
+ data.offset = data.offset || {}
95
+
96
+ data.offsetBottom && (data.offset.bottom = data.offsetBottom)
97
+ data.offsetTop && (data.offset.top = data.offsetTop)
98
+
99
+ $spy.affix(data)
100
+ })
101
+ })
102
+
103
+
104
+ }(window.jQuery);