bootstrap-sass 2.0.4.2 → 2.1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bootstrap-sass might be problematic. Click here for more details.

Files changed (57) hide show
  1. data/README.md +3 -6
  2. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  3. data/vendor/assets/javascripts/bootstrap-affix.js +104 -0
  4. data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
  5. data/vendor/assets/javascripts/bootstrap-button.js +1 -1
  6. data/vendor/assets/javascripts/bootstrap-carousel.js +12 -5
  7. data/vendor/assets/javascripts/bootstrap-collapse.js +4 -3
  8. data/vendor/assets/javascripts/bootstrap-dropdown.js +66 -16
  9. data/vendor/assets/javascripts/bootstrap-modal.js +95 -74
  10. data/vendor/assets/javascripts/bootstrap-popover.js +9 -4
  11. data/vendor/assets/javascripts/bootstrap-scrollspy.js +9 -9
  12. data/vendor/assets/javascripts/bootstrap-tab.js +2 -2
  13. data/vendor/assets/javascripts/bootstrap-tooltip.js +15 -15
  14. data/vendor/assets/javascripts/bootstrap-transition.js +2 -3
  15. data/vendor/assets/javascripts/bootstrap-typeahead.js +51 -36
  16. data/vendor/assets/javascripts/bootstrap.js +1 -0
  17. data/vendor/assets/stylesheets/_bootstrap-responsive.scss +15 -8
  18. data/vendor/assets/stylesheets/_bootstrap.scss +2 -2
  19. data/vendor/assets/stylesheets/bootstrap/_accordion.scss +3 -2
  20. data/vendor/assets/stylesheets/bootstrap/_alerts.scss +19 -10
  21. data/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +11 -11
  22. data/vendor/assets/stylesheets/bootstrap/_button-groups.scss +94 -28
  23. data/vendor/assets/stylesheets/bootstrap/_buttons.scss +94 -54
  24. data/vendor/assets/stylesheets/bootstrap/_carousel.scss +22 -7
  25. data/vendor/assets/stylesheets/bootstrap/_close.scss +5 -3
  26. data/vendor/assets/stylesheets/bootstrap/_code.scss +8 -6
  27. data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +7 -4
  28. data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +90 -17
  29. data/vendor/assets/stylesheets/bootstrap/_forms.scss +243 -90
  30. data/vendor/assets/stylesheets/bootstrap/_grid.scss +17 -2
  31. data/vendor/assets/stylesheets/bootstrap/_hero-unit.scss +4 -2
  32. data/vendor/assets/stylesheets/bootstrap/_labels-badges.scss +25 -5
  33. data/vendor/assets/stylesheets/bootstrap/_layouts.scss +1 -2
  34. data/vendor/assets/stylesheets/bootstrap/_mixins.scss +143 -134
  35. data/vendor/assets/stylesheets/bootstrap/_modals.scss +13 -6
  36. data/vendor/assets/stylesheets/bootstrap/_navbar.scss +263 -141
  37. data/vendor/assets/stylesheets/bootstrap/_navs.scss +75 -31
  38. data/vendor/assets/stylesheets/bootstrap/_pager.scss +7 -5
  39. data/vendor/assets/stylesheets/bootstrap/_pagination.scss +22 -11
  40. data/vendor/assets/stylesheets/bootstrap/_popovers.scss +101 -33
  41. data/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +23 -19
  42. data/vendor/assets/stylesheets/bootstrap/_reset.scss +35 -11
  43. data/vendor/assets/stylesheets/bootstrap/_responsive-1200px-min.scss +9 -7
  44. data/vendor/assets/stylesheets/bootstrap/_responsive-767px-max.scss +103 -72
  45. data/vendor/assets/stylesheets/bootstrap/_responsive-768px-979px.scss +8 -5
  46. data/vendor/assets/stylesheets/bootstrap/_responsive-navbar.scss +26 -9
  47. data/vendor/assets/stylesheets/bootstrap/_responsive-utilities.scss +17 -15
  48. data/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +26 -4
  49. data/vendor/assets/stylesheets/bootstrap/_sprites.scss +19 -9
  50. data/vendor/assets/stylesheets/bootstrap/_tables.scss +94 -23
  51. data/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +10 -7
  52. data/vendor/assets/stylesheets/bootstrap/_tooltip.scss +47 -12
  53. data/vendor/assets/stylesheets/bootstrap/_type.scss +71 -89
  54. data/vendor/assets/stylesheets/bootstrap/_utilities.scss +9 -2
  55. data/vendor/assets/stylesheets/bootstrap/_variables.scss +108 -68
  56. data/vendor/assets/stylesheets/bootstrap/_wells.scss +8 -6
  57. metadata +3 -2
@@ -1,6 +1,6 @@
1
- // NAVIGATIONS
2
- // -----------
3
-
1
+ //
2
+ // Navs
3
+ // --------------------------------------------------
4
4
 
5
5
 
6
6
  // BASE CLASS
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  // Nav headers (for dropdowns and lists)
30
- .nav .nav-header {
30
+ .nav-header {
31
31
  display: block;
32
32
  padding: 3px 15px;
33
33
  font-size: 11px;
@@ -43,6 +43,7 @@
43
43
  }
44
44
 
45
45
 
46
+
46
47
  // NAV LIST
47
48
  // --------
48
49
 
@@ -51,7 +52,8 @@
51
52
  padding-right: 15px;
52
53
  margin-bottom: 0;
53
54
  }
54
- .nav-list > li > a, .nav-list .nav-header {
55
+ .nav-list > li > a,
56
+ .nav-list .nav-header {
55
57
  margin-left: -15px;
56
58
  margin-right: -15px;
57
59
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
@@ -59,7 +61,8 @@
59
61
  .nav-list > li > a {
60
62
  padding: 3px 15px;
61
63
  }
62
- .nav-list > .active > a, .nav-list > .active > a:hover {
64
+ .nav-list > .active > a,
65
+ .nav-list > .active > a:hover {
63
66
  color: $white;
64
67
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
65
68
  background-color: $linkColor;
@@ -78,13 +81,16 @@
78
81
  // -------------
79
82
 
80
83
  // Common styles
81
- .nav-tabs, .nav-pills {
84
+ .nav-tabs,
85
+ .nav-pills {
82
86
  @include clearfix();
83
87
  }
84
- .nav-tabs > li, .nav-pills > li {
88
+ .nav-tabs > li,
89
+ .nav-pills > li {
85
90
  float: left;
86
91
  }
87
- .nav-tabs > li > a, .nav-pills > li > a {
92
+ .nav-tabs > li > a,
93
+ .nav-pills > li > a {
88
94
  padding-right: 12px;
89
95
  padding-left: 12px;
90
96
  margin-right: 2px;
@@ -114,7 +120,8 @@
114
120
  }
115
121
  }
116
122
  // Active state, and it's :hover to override normal :hover
117
- .nav-tabs > .active > a, .nav-tabs > .active > a:hover {
123
+ .nav-tabs > .active > a,
124
+ .nav-tabs > .active > a:hover {
118
125
  color: $gray;
119
126
  background-color: $white;
120
127
  border: 1px solid #ddd;
@@ -136,7 +143,8 @@
136
143
  }
137
144
 
138
145
  // Active state
139
- .nav-pills .active > a, .nav-pills .active > a:hover {
146
+ .nav-pills > .active > a,
147
+ .nav-pills > .active > a:hover {
140
148
  color: $white;
141
149
  background-color: $linkColor;
142
150
  }
@@ -163,10 +171,10 @@
163
171
  @include border-radius(0);
164
172
  }
165
173
  .nav-tabs.nav-stacked > li:first-child > a {
166
- @include border-radius(4px 4px 0 0);
174
+ @include border-top-radius(4px);
167
175
  }
168
176
  .nav-tabs.nav-stacked > li:last-child > a {
169
- @include border-radius(0 0 4px 4px);
177
+ @include border-bottom-radius(4px);
170
178
  }
171
179
  .nav-tabs.nav-stacked > li > a:hover {
172
180
  border-color: #ddd;
@@ -187,47 +195,58 @@
187
195
  // ---------
188
196
 
189
197
  .nav-tabs .dropdown-menu {
190
- @include border-radius(0 0 5px 5px); // remove the top rounded corners here since there is a hard edge above the menu
198
+ @include border-radius(0 0 6px 6px); // remove the top rounded corners here since there is a hard edge above the menu
191
199
  }
192
200
  .nav-pills .dropdown-menu {
193
- @include border-radius(4px); // make rounded corners match the pills
201
+ @include border-radius(6px); // make rounded corners match the pills
194
202
  }
195
203
 
196
204
  // Default dropdown links
197
205
  // -------------------------
198
206
  // Make carets use linkColor to start
199
- .nav-tabs .dropdown-toggle .caret, .nav-pills .dropdown-toggle .caret {
207
+ .nav .dropdown-toggle .caret {
200
208
  border-top-color: $linkColor;
201
209
  border-bottom-color: $linkColor;
202
210
  margin-top: 6px;
203
211
  }
204
- .nav-tabs .dropdown-toggle:hover .caret, .nav-pills .dropdown-toggle:hover .caret {
212
+ .nav .dropdown-toggle:hover .caret {
205
213
  border-top-color: $linkColorHover;
206
214
  border-bottom-color: $linkColorHover;
207
215
  }
216
+ /* move down carets for tabs */
217
+ .nav-tabs .dropdown-toggle .caret {
218
+ margin-top: 8px;
219
+ }
208
220
 
209
221
  // Active dropdown links
210
222
  // -------------------------
211
- .nav-tabs .active .dropdown-toggle .caret, .nav-pills .active .dropdown-toggle .caret {
212
- border-top-color: $grayDark;
213
- border-bottom-color: $grayDark;
223
+ .nav .active .dropdown-toggle .caret {
224
+ border-top-color: #fff;
225
+ border-bottom-color: #fff;
226
+ }
227
+ .nav-tabs .active .dropdown-toggle .caret {
228
+ border-top-color: $gray;
229
+ border-bottom-color: $gray;
214
230
  }
215
231
 
216
232
  // Active:hover dropdown links
217
233
  // -------------------------
218
234
  .nav > .dropdown.active > a:hover {
219
- color: $black;
220
235
  cursor: pointer;
221
236
  }
222
237
 
223
238
  // Open dropdowns
224
239
  // -------------------------
225
- .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > li.dropdown.open.active > a:hover {
240
+ .nav-tabs .open .dropdown-toggle,
241
+ .nav-pills .open .dropdown-toggle,
242
+ .nav > li.dropdown.open.active > a:hover {
226
243
  color: $white;
227
244
  background-color: $grayLight;
228
245
  border-color: $grayLight;
229
246
  }
230
- .nav li.dropdown.open .caret, .nav li.dropdown.open.active .caret, .nav li.dropdown.open a:hover .caret {
247
+ .nav li.dropdown.open .caret,
248
+ .nav li.dropdown.open.active .caret,
249
+ .nav li.dropdown.open a:hover .caret {
231
250
  border-top-color: $white;
232
251
  border-bottom-color: $white;
233
252
  @include opacity(1);
@@ -256,15 +275,19 @@
256
275
  }
257
276
 
258
277
  // Remove border on bottom, left, right
259
- .tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left > .nav-tabs {
278
+ .tabs-below > .nav-tabs,
279
+ .tabs-right > .nav-tabs,
280
+ .tabs-left > .nav-tabs {
260
281
  border-bottom: 0;
261
282
  }
262
283
 
263
284
  // Show/hide tabbable areas
264
- .tab-content > .tab-pane, .pill-content > .pill-pane {
285
+ .tab-content > .tab-pane,
286
+ .pill-content > .pill-pane {
265
287
  display: none;
266
288
  }
267
- .tab-content > .active, .pill-content > .active {
289
+ .tab-content > .active,
290
+ .pill-content > .active {
268
291
  display: block;
269
292
  }
270
293
 
@@ -286,7 +309,8 @@
286
309
  border-top-color: #ddd;
287
310
  }
288
311
  }
289
- .tabs-below > .nav-tabs > .active > a, .tabs-below > .nav-tabs > .active > a:hover {
312
+ .tabs-below > .nav-tabs > .active > a,
313
+ .tabs-below > .nav-tabs > .active > a:hover {
290
314
  border-color: transparent #ddd #ddd #ddd;
291
315
  }
292
316
 
@@ -294,10 +318,12 @@
294
318
  // ------------
295
319
 
296
320
  // Common styles
297
- .tabs-left > .nav-tabs > li, .tabs-right > .nav-tabs > li {
321
+ .tabs-left > .nav-tabs > li,
322
+ .tabs-right > .nav-tabs > li {
298
323
  float: none;
299
324
  }
300
- .tabs-left > .nav-tabs > li > a, .tabs-right > .nav-tabs > li > a {
325
+ .tabs-left > .nav-tabs > li > a,
326
+ .tabs-right > .nav-tabs > li > a {
301
327
  min-width: 74px;
302
328
  margin-right: 0;
303
329
  margin-bottom: 3px;
@@ -316,7 +342,8 @@
316
342
  .tabs-left > .nav-tabs > li > a:hover {
317
343
  border-color: $grayLighter #ddd $grayLighter $grayLighter;
318
344
  }
319
- .tabs-left > .nav-tabs .active > a, .tabs-left > .nav-tabs .active > a:hover {
345
+ .tabs-left > .nav-tabs .active > a,
346
+ .tabs-left > .nav-tabs .active > a:hover {
320
347
  border-color: #ddd transparent #ddd #ddd;
321
348
  *border-right-color: $white;
322
349
  }
@@ -334,7 +361,24 @@
334
361
  .tabs-right > .nav-tabs > li > a:hover {
335
362
  border-color: $grayLighter $grayLighter $grayLighter #ddd;
336
363
  }
337
- .tabs-right > .nav-tabs .active > a, .tabs-right > .nav-tabs .active > a:hover {
364
+ .tabs-right > .nav-tabs .active > a,
365
+ .tabs-right > .nav-tabs .active > a:hover {
338
366
  border-color: #ddd #ddd #ddd transparent;
339
367
  *border-left-color: $white;
340
368
  }
369
+
370
+
371
+
372
+ // DISABLED STATES
373
+ // ---------------
374
+
375
+ // Gray out text
376
+ .nav > .disabled > a {
377
+ color: $grayLight;
378
+ }
379
+ // Nuke hover effects
380
+ .nav > .disabled > a:hover {
381
+ text-decoration: none;
382
+ background-color: transparent;
383
+ cursor: default;
384
+ }
@@ -1,9 +1,10 @@
1
- // PAGER
2
- // -----
1
+ //
2
+ // Pager pagination
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .pager {
5
- margin-left: 0;
6
- margin-bottom: $baseLineHeight;
7
+ margin: $baseLineHeight 0;
7
8
  list-style: none;
8
9
  text-align: center;
9
10
  @include clearfix();
@@ -28,7 +29,8 @@
28
29
  .pager .previous a {
29
30
  float: left;
30
31
  }
31
- .pager .disabled a, .pager .disabled a:hover {
32
+ .pager .disabled a,
33
+ .pager .disabled a:hover {
32
34
  color: $grayLight;
33
35
  background-color: #fff;
34
36
  cursor: default;
@@ -1,5 +1,7 @@
1
- // PAGINATION
2
- // ----------
1
+ //
2
+ // Pagination (multiple pages)
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .pagination {
5
7
  height: $baseLineHeight * 2;
@@ -14,33 +16,42 @@
14
16
  @include box-shadow(0 1px 2px rgba(0,0,0,.05));
15
17
  }
16
18
  .pagination li {
17
- display: inline;
18
- }
19
- .pagination a {
19
+ display: inline;
20
+ }
21
+ .pagination a,
22
+ .pagination span {
20
23
  float: left;
21
24
  padding: 0 14px;
22
25
  line-height: ($baseLineHeight * 2) - 2;
23
26
  text-decoration: none;
24
- border: 1px solid #ddd;
27
+ background-color: $paginationBackground;
28
+ border: 1px solid $paginationBorder;
25
29
  border-left-width: 0;
26
30
  }
27
- .pagination a:hover, .pagination .active a {
31
+ .pagination a:hover,
32
+ .pagination .active a,
33
+ .pagination .active span {
28
34
  background-color: #f5f5f5;
29
35
  }
30
- .pagination .active a {
36
+ .pagination .active a,
37
+ .pagination .active span {
31
38
  color: $grayLight;
32
39
  cursor: default;
33
40
  }
34
- .pagination .disabled span, .pagination .disabled a, .pagination .disabled a:hover {
41
+ .pagination .disabled span,
42
+ .pagination .disabled a,
43
+ .pagination .disabled a:hover {
35
44
  color: $grayLight;
36
45
  background-color: transparent;
37
46
  cursor: default;
38
47
  }
39
- .pagination li:first-child a {
48
+ .pagination li:first-child a,
49
+ .pagination li:first-child span {
40
50
  border-left-width: 1px;
41
51
  @include border-radius(3px 0 0 3px);
42
52
  }
43
- .pagination li:last-child a {
53
+ .pagination li:last-child a,
54
+ .pagination li:last-child span {
44
55
  @include border-radius(0 3px 3px 0);
45
56
  }
46
57
 
@@ -1,5 +1,7 @@
1
- // POPOVERS
2
- // --------
1
+ //
2
+ // Popovers
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .popover {
5
7
  position: absolute;
@@ -7,43 +9,109 @@
7
9
  left: 0;
8
10
  z-index: $zindexPopover;
9
11
  display: none;
10
- padding: 5px;
11
- &.top { margin-top: -5px; }
12
- &.right { margin-left: 5px; }
13
- &.bottom { margin-top: 5px; }
14
- &.left { margin-left: -5px; }
15
- &.top .arrow { @include popoverArrowTop(); }
16
- &.right .arrow { @include popoverArrowRight(); }
17
- &.bottom .arrow { @include popoverArrowBottom(); }
18
- &.left .arrow { @include popoverArrowLeft(); }
19
- .arrow {
20
- position: absolute;
21
- width: 0;
22
- height: 0;
23
- }
24
- }
25
- .popover-inner {
26
- padding: 3px;
27
- width: 280px;
28
- overflow: hidden;
29
- background: $black; // has to be full background declaration for IE fallback
30
- background: rgba(0,0,0,.8);
12
+ width: 236px;
13
+ padding: 1px;
14
+ background-color: $popoverBackground;
15
+ -webkit-background-clip: padding-box;
16
+ -moz-background-clip: padding;
17
+ background-clip: padding-box;
18
+ border: 1px solid #ccc;
19
+ border: 1px solid rgba(0,0,0,.2);
31
20
  @include border-radius(6px);
32
- @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
21
+ @include box-shadow(0 5px 10px rgba(0,0,0,.2));
22
+
23
+ // Offset the popover to account for the popover arrow
24
+ &.top { margin-bottom: 10px; }
25
+ &.right { margin-left: 10px; }
26
+ &.bottom { margin-top: 10px; }
27
+ &.left { margin-right: 10px; }
28
+
33
29
  }
30
+
34
31
  .popover-title {
35
- padding: 9px 15px;
36
- line-height: 1;
37
- background-color: #f5f5f5;
38
- border-bottom:1px solid #eee;
39
- @include border-radius(3px 3px 0 0);
32
+ margin: 0; // reset heading margin
33
+ padding: 8px 14px;
34
+ font-size: 14px;
35
+ font-weight: normal;
36
+ line-height: 18px;
37
+ background-color: $popoverTitleBackground;
38
+ border-bottom: 1px solid darken($popoverTitleBackground, 5%);
39
+ @include border-radius(5px 5px 0 0);
40
40
  }
41
+
41
42
  .popover-content {
42
- padding: 14px;
43
- background-color: $white;
44
- @include border-radius(0 0 3px 3px);
45
- @include background-clip(padding-box);
43
+ padding: 9px 14px;
46
44
  p, ul, ol {
47
45
  margin-bottom: 0;
48
46
  }
47
+ }
48
+
49
+ // Arrows
50
+ .popover .arrow,
51
+ .popover .arrow:after {
52
+ position: absolute;
53
+ display: inline-block;
54
+ width: 0;
55
+ height: 0;
56
+ border-color: transparent;
57
+ border-style: solid;
58
+ }
59
+ .popover .arrow:after {
60
+ content: "";
61
+ z-index: -1;
62
+ }
63
+
64
+ .popover {
65
+ &.top .arrow {
66
+ bottom: -$popoverArrowWidth;
67
+ left: 50%;
68
+ margin-left: -$popoverArrowWidth;
69
+ border-width: $popoverArrowWidth $popoverArrowWidth 0;
70
+ border-top-color: $popoverArrowColor;
71
+ &:after {
72
+ border-width: $popoverArrowOuterWidth $popoverArrowOuterWidth 0;
73
+ border-top-color: $popoverArrowOuterColor;
74
+ bottom: -1px;
75
+ left: -$popoverArrowOuterWidth;
76
+ }
77
+ }
78
+ &.right .arrow {
79
+ top: 50%;
80
+ left: -$popoverArrowWidth;
81
+ margin-top: -$popoverArrowWidth;
82
+ border-width: $popoverArrowWidth $popoverArrowWidth $popoverArrowWidth 0;
83
+ border-right-color: $popoverArrowColor;
84
+ &:after {
85
+ border-width: $popoverArrowOuterWidth $popoverArrowOuterWidth $popoverArrowOuterWidth 0;
86
+ border-right-color: $popoverArrowOuterColor;
87
+ bottom: -$popoverArrowOuterWidth;
88
+ left: -1px;
89
+ }
90
+ }
91
+ &.bottom .arrow {
92
+ top: -$popoverArrowWidth;
93
+ left: 50%;
94
+ margin-left: -$popoverArrowWidth;
95
+ border-width: 0 $popoverArrowWidth $popoverArrowWidth;
96
+ border-bottom-color: $popoverArrowColor;
97
+ &:after {
98
+ border-width: 0 $popoverArrowOuterWidth $popoverArrowOuterWidth;
99
+ border-bottom-color: $popoverArrowOuterColor;
100
+ top: -1px;
101
+ left: -$popoverArrowOuterWidth;
102
+ }
103
+ }
104
+ &.left .arrow {
105
+ top: 50%;
106
+ right: -$popoverArrowWidth;
107
+ margin-top: -$popoverArrowWidth;
108
+ border-width: $popoverArrowWidth 0 $popoverArrowWidth $popoverArrowWidth;
109
+ border-left-color: $popoverArrowColor;
110
+ &:after {
111
+ border-width: $popoverArrowOuterWidth 0 $popoverArrowOuterWidth $popoverArrowOuterWidth;
112
+ border-left-color: $popoverArrowOuterColor;
113
+ bottom: -$popoverArrowOuterWidth;
114
+ right: -1px;
115
+ }
116
+ }
49
117
  }