anjlab-bootstrap-rails 2.2.1.2 → 2.2.2.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/Rakefile +1 -1
  2. data/lib/bootstrap-rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/twitter/bootstrap/affix.js +1 -1
  4. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +1 -1
  5. data/vendor/assets/javascripts/twitter/bootstrap/button.js +1 -1
  6. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +1 -1
  7. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +1 -1
  8. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +1 -1
  9. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +1 -1
  10. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +1 -1
  11. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -1
  12. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +1 -1
  13. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +1 -1
  14. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  15. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +1 -1
  16. data/vendor/frameworks/twitter/bootstrap/alerts.scss +4 -0
  17. data/vendor/frameworks/twitter/bootstrap/bootstrap.scss +1 -1
  18. data/vendor/frameworks/twitter/bootstrap/button-groups.scss +28 -42
  19. data/vendor/frameworks/twitter/bootstrap/buttons.scss +5 -11
  20. data/vendor/frameworks/twitter/bootstrap/carousel.scss +14 -14
  21. data/vendor/frameworks/twitter/bootstrap/code.scss +1 -0
  22. data/vendor/frameworks/twitter/bootstrap/dropdowns.scss +5 -9
  23. data/vendor/frameworks/twitter/bootstrap/forms.scss +8 -7
  24. data/vendor/frameworks/twitter/bootstrap/labels-badges.scss +8 -0
  25. data/vendor/frameworks/twitter/bootstrap/mixins.scss +3 -3
  26. data/vendor/frameworks/twitter/bootstrap/modals.scss +3 -3
  27. data/vendor/frameworks/twitter/bootstrap/navbar.scss +21 -6
  28. data/vendor/frameworks/twitter/bootstrap/popovers.scss +79 -7
  29. data/vendor/frameworks/twitter/bootstrap/reset.scss +82 -4
  30. data/vendor/frameworks/twitter/bootstrap/responsive.scss +1 -1
  31. data/vendor/frameworks/twitter/bootstrap/tables.scss +16 -20
  32. data/vendor/frameworks/twitter/bootstrap/type.scss +24 -16
  33. data/vendor/frameworks/twitter/bootstrap/variables.scss +2 -2
  34. metadata +31 -34
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ namespace :twitter do
5
5
 
6
6
  desc "Pulls Twitter's Bootstrap Scss"
7
7
  task :pull do
8
- if !system "git pull -s subtree twitter twb2"
8
+ if !system "git pull -s subtree twitter twb2rc"
9
9
  abort "Have to add twitter scss remote `git remote add -f twitter git@github.com:yury/bootstrap.git`"
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module Rails
3
- VERSION = "2.2.1.2"
3
+ VERSION = "2.2.2.rc"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-affix.js v2.2.1
2
+ * bootstrap-affix.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#affix
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-alert.js v2.2.1
2
+ * bootstrap-alert.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#alerts
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ============================================================
2
- * bootstrap-button.js v2.2.1
2
+ * bootstrap-button.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#buttons
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-carousel.js v2.2.1
2
+ * bootstrap-carousel.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#carousel
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-collapse.js v2.2.1
2
+ * bootstrap-collapse.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#collapse
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ============================================================
2
- * bootstrap-dropdown.js v2.2.1
2
+ * bootstrap-dropdown.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =========================================================
2
- * bootstrap-modal.js v2.2.1
2
+ * bootstrap-modal.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#modals
4
4
  * =========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ===========================================================
2
- * bootstrap-popover.js v2.2.1
2
+ * bootstrap-popover.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#popovers
4
4
  * ===========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-scrollspy.js v2.2.1
2
+ * bootstrap-scrollspy.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#scrollspy
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ========================================================
2
- * bootstrap-tab.js v2.2.1
2
+ * bootstrap-tab.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#tabs
4
4
  * ========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* ===========================================================
2
- * bootstrap-tooltip.js v2.2.1
2
+ * bootstrap-tooltip.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#tooltips
4
4
  * Inspired by the original jQuery.tipsy by Jason Frame
5
5
  * ===========================================================
@@ -1,5 +1,5 @@
1
1
  /* ===================================================
2
- * bootstrap-transition.js v2.2.1
2
+ * bootstrap-transition.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#transitions
4
4
  * ===================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-typeahead.js v2.2.1
2
+ * bootstrap-typeahead.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#typeahead
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -13,6 +13,10 @@
13
13
  background-color: $warningBackground;
14
14
  border: 1px solid $warningBorder;
15
15
  @include border-radius($baseBorderRadius);
16
+ }
17
+ .alert,
18
+ .alert h4 {
19
+ // Specified for the h4 to prevent conflicts of changing @headingsColor
16
20
  color: $warningText;
17
21
  }
18
22
  .alert h4 {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.2.1
2
+ * Bootstrap v2.2.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -24,9 +24,9 @@
24
24
  font-size: 0; // Hack to remove whitespace that results from using inline-block
25
25
  margin-top: $baseLineHeight / 2;
26
26
  margin-bottom: $baseLineHeight / 2;
27
- .btn + .btn,
28
- .btn-group + .btn,
29
- .btn + .btn-group {
27
+ > .btn + .btn,
28
+ > .btn-group + .btn,
29
+ > .btn + .btn-group {
30
30
  margin-left: 5px;
31
31
  }
32
32
  }
@@ -40,59 +40,44 @@
40
40
  margin-left: -1px;
41
41
  }
42
42
  .btn-group > .btn,
43
- .btn-group > .dropdown-menu {
43
+ .btn-group > .dropdown-menu,
44
+ .btn-group > .popover {
44
45
  font-size: $baseFontSize; // redeclare as part 2 of font-size inline-block hack
45
46
  }
46
47
 
47
48
  // Reset fonts for other sizes
48
49
  .btn-group > .btn-mini {
49
- font-size: 11px;
50
+ font-size: $fontSizeMini;
50
51
  }
51
52
  .btn-group > .btn-small {
52
- font-size: 12px;
53
+ font-size: $fontSizeSmall;
53
54
  }
54
55
  .btn-group > .btn-large {
55
- font-size: 16px;
56
+ font-size: $fontSizeLarge;
56
57
  }
57
58
 
58
59
  // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
59
60
  .btn-group > .btn:first-child {
60
61
  margin-left: 0;
61
- -webkit-border-top-left-radius: 4px;
62
- -moz-border-radius-topleft: 4px;
63
- border-top-left-radius: 4px;
64
- -webkit-border-bottom-left-radius: 4px;
65
- -moz-border-radius-bottomleft: 4px;
66
- border-bottom-left-radius: 4px;
62
+ @include border-top-left-radius($baseBorderRadius);
63
+ @include border-bottom-left-radius($baseBorderRadius);
67
64
  }
68
65
  // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
69
66
  .btn-group > .btn:last-child,
70
67
  .btn-group > .dropdown-toggle {
71
- -webkit-border-top-right-radius: 4px;
72
- -moz-border-radius-topright: 4px;
73
- border-top-right-radius: 4px;
74
- -webkit-border-bottom-right-radius: 4px;
75
- -moz-border-radius-bottomright: 4px;
76
- border-bottom-right-radius: 4px;
68
+ @include border-top-right-radius($baseBorderRadius);
69
+ @include border-bottom-right-radius($baseBorderRadius);
77
70
  }
78
71
  // Reset corners for large buttons
79
72
  .btn-group > .btn.large:first-child {
80
73
  margin-left: 0;
81
- -webkit-border-top-left-radius: 6px;
82
- -moz-border-radius-topleft: 6px;
83
- border-top-left-radius: 6px;
84
- -webkit-border-bottom-left-radius: 6px;
85
- -moz-border-radius-bottomleft: 6px;
86
- border-bottom-left-radius: 6px;
74
+ @include border-top-left-radius($borderRadiusLarge);
75
+ @include border-bottom-left-radius($borderRadiusLarge);
87
76
  }
88
77
  .btn-group > .btn.large:last-child,
89
78
  .btn-group > .large.dropdown-toggle {
90
- -webkit-border-top-right-radius: 6px;
91
- -moz-border-radius-topright: 6px;
92
- border-top-right-radius: 6px;
93
- -webkit-border-bottom-right-radius: 6px;
94
- -moz-border-radius-bottomright: 6px;
95
- border-bottom-right-radius: 6px;
79
+ @include border-top-right-radius($borderRadiusLarge);
80
+ @include border-bottom-right-radius($borderRadiusLarge);
96
81
  }
97
82
 
98
83
  // On hover/focus/active, bring the proper btn to front
@@ -218,25 +203,26 @@
218
203
  display: inline-block; // makes buttons only take up the width they need
219
204
  @include ie7-inline-block();
220
205
  }
221
- .btn-group-vertical .btn {
206
+ .btn-group-vertical > .btn {
222
207
  display: block;
223
208
  float: none;
224
- width: 100%;
209
+ max-width: 100%;
225
210
  @include border-radius(0);
226
211
  }
227
- .btn-group-vertical .btn + .btn {
212
+ .btn-group-vertical > .btn + .btn {
228
213
  margin-left: 0;
229
214
  margin-top: -1px;
230
215
  }
231
- .btn-group-vertical .btn:first-child {
232
- @include border-radius(4px 4px 0 0);
216
+
217
+ .btn-group-vertical > .btn:first-child {
218
+ @include border-radius($baseBorderRadius $baseBorderRadius 0 0);
233
219
  }
234
- .btn-group-vertical .btn:last-child {
235
- @include border-radius(0 0 4px 4px);
220
+ .btn-group-vertical > .btn:last-child {
221
+ @include border-radius(0 0 $baseBorderRadius $baseBorderRadius);
236
222
  }
237
- .btn-group-vertical .btn-large:first-child {
238
- @include border-radius(6px 6px 0 0);
223
+ .btn-group-vertical > .btn-large:first-child {
224
+ @include border-radius($borderRadiusLarge $borderRadiusLarge 0 0);
239
225
  }
240
- .btn-group-vertical .btn-large:last-child {
241
- @include border-radius(0 0 6px 6px);
226
+ .btn-group-vertical > .btn-large:last-child {
227
+ @include border-radius(0 0 $borderRadiusLarge $borderRadiusLarge);
242
228
  }
@@ -14,7 +14,6 @@
14
14
  margin-bottom: 0; // For input.btn
15
15
  font-size: $baseFontSize;
16
16
  line-height: $baseLineHeight;
17
- *line-height: $baseLineHeight;
18
17
  text-align: center;
19
18
  vertical-align: middle;
20
19
  cursor: pointer;
@@ -29,13 +28,11 @@
29
28
  // Hover state
30
29
  &:hover {
31
30
  color: $grayDark;
32
- text-decoration: none;
33
- background-color: darken($white, 10%);
34
- *background-color: darken($white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
35
- background-position: 0 -15px;
31
+ text-decoration: none;
32
+ background-position: 0 -15px;
36
33
 
37
- // transition is only when going to hover, otherwise the background
38
- // behind the gradient (there for IE<=9 fallback) gets mismatched
34
+ // transition is only when going to hover, otherwise the background
35
+ // behind the gradient (there for IE<=9 fallback) gets mismatched
39
36
  @include transition(background-position .1s linear);
40
37
  }
41
38
 
@@ -47,8 +44,6 @@
47
44
  // Active state
48
45
  &.active,
49
46
  &:active {
50
- background-color: darken($white, 10%);
51
- background-color: darken($white, 15%) \9;
52
47
  background-image: none;
53
48
  outline: 0;
54
49
  @include box-shadow((inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)));
@@ -58,7 +53,6 @@
58
53
  &.disabled,
59
54
  &[disabled] {
60
55
  cursor: default;
61
- background-color: darken($white, 10%);
62
56
  background-image: none;
63
57
  @include opacity(65);
64
58
  @include box-shadow(none);
@@ -79,7 +73,7 @@
79
73
  }
80
74
  .btn-large [class^="icon-"],
81
75
  .btn-large [class*=" icon-"] {
82
- margin-top: 2px;
76
+ margin-top: 4px;
83
77
  }
84
78
 
85
79
  // Small
@@ -17,48 +17,48 @@
17
17
 
18
18
  .carousel {
19
19
 
20
- .item {
20
+ > .item {
21
21
  display: none;
22
22
  position: relative;
23
23
  @include transition(.6s ease-in-out left);
24
24
  }
25
25
 
26
26
  // Account for jankitude on images
27
- .item > img {
27
+ > .item > img {
28
28
  display: block;
29
29
  line-height: 1;
30
30
  }
31
31
 
32
- .active,
33
- .next,
34
- .prev { display: block; }
32
+ > .active,
33
+ > .next,
34
+ > .prev { display: block; }
35
35
 
36
- .active {
36
+ > .active {
37
37
  left: 0;
38
38
  }
39
39
 
40
- .next,
41
- .prev {
40
+ > .next,
41
+ > .prev {
42
42
  position: absolute;
43
43
  top: 0;
44
44
  width: 100%;
45
45
  }
46
46
 
47
- .next {
47
+ > .next {
48
48
  left: 100%;
49
49
  }
50
- .prev {
50
+ > .prev {
51
51
  left: -100%;
52
52
  }
53
- .next.left,
54
- .prev.right {
53
+ > .next.left,
54
+ > .prev.right {
55
55
  left: 0;
56
56
  }
57
57
 
58
- .active.left {
58
+ > .active.left {
59
59
  left: -100%;
60
60
  }
61
- .active.right {
61
+ > .active.right {
62
62
  left: 100%;
63
63
  }
64
64
 
@@ -19,6 +19,7 @@ code {
19
19
  color: #d14;
20
20
  background-color: #f7f7f9;
21
21
  border: 1px solid #e1e1e8;
22
+ white-space: nowrap;
22
23
  }
23
24
 
24
25
  // Blocks of code
@@ -115,6 +115,7 @@
115
115
  text-decoration: none;
116
116
  background-color: transparent;
117
117
  background-image: none; // Remove CSS gradient
118
+ @include reset-filter();
118
119
  cursor: default;
119
120
  }
120
121
 
@@ -168,9 +169,7 @@
168
169
  left: 100%;
169
170
  margin-top: -6px;
170
171
  margin-left: -1px;
171
- -webkit-border-radius: 0 6px 6px 6px;
172
- -moz-border-radius: 0 6px 6px 6px;
173
- border-radius: 0 6px 6px 6px;
172
+ @include border-radius(0 6px 6px 6px);
174
173
  }
175
174
  .dropdown-submenu:hover > .dropdown-menu {
176
175
  display: block;
@@ -182,9 +181,7 @@
182
181
  bottom: 0;
183
182
  margin-top: 0;
184
183
  margin-bottom: -2px;
185
- -webkit-border-radius: 5px 5px 5px 0;
186
- -moz-border-radius: 5px 5px 5px 0;
187
- border-radius: 5px 5px 5px 0;
184
+ @include border-radius(5px 5px 5px 0);
188
185
  }
189
186
 
190
187
  // Caret to indicate there is a submenu
@@ -215,9 +212,7 @@
215
212
  > .dropdown-menu {
216
213
  left: -100%;
217
214
  margin-left: 10px;
218
- -webkit-border-radius: 6px 0 6px 6px;
219
- -moz-border-radius: 6px 0 6px 6px;
220
- border-radius: 6px 0 6px 6px;
215
+ @include border-radius(6px 0 6px 6px);
221
216
  }
222
217
  }
223
218
 
@@ -232,6 +227,7 @@
232
227
  // Typeahead
233
228
  // ---------
234
229
  .typeahead {
230
+ z-index: 1051;
235
231
  margin-top: 2px; // give it some space to breathe
236
232
  @include border-radius($baseBorderRadius);
237
233
  }
@@ -138,7 +138,6 @@ input[type="checkbox"] {
138
138
  *margin-top: 0; /* IE7 */
139
139
  margin-top: 1px \9; /* IE8-9 */
140
140
  line-height: normal;
141
- cursor: pointer;
142
141
  }
143
142
 
144
143
  // Reset width of input images, buttons, radios, checkboxes
@@ -367,9 +366,9 @@ input[type="checkbox"][readonly] {
367
366
 
368
367
  // HTML5 invalid states
369
368
  // Shares styles with the .control-group.error above
370
- input:focus:required:invalid,
371
- textarea:focus:required:invalid,
372
- select:focus:required:invalid {
369
+ input:focus:invalid,
370
+ textarea:focus:invalid,
371
+ select:focus:invalid {
373
372
  color: #b94a48;
374
373
  border-color: #ee5f5b;
375
374
  &:focus {
@@ -463,7 +462,8 @@ select:focus:required:invalid {
463
462
  border: 1px solid #ccc;
464
463
  }
465
464
  .add-on,
466
- .btn {
465
+ .btn,
466
+ .btn-group > .dropdown-toggle {
467
467
  vertical-align: top;
468
468
  @include border-radius(0);
469
469
  }
@@ -490,7 +490,7 @@ select:focus:required:invalid {
490
490
  select,
491
491
  .uneditable-input {
492
492
  @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
493
- + .btn-group .btn {
493
+ + .btn-group .btn:last-child {
494
494
  @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
495
495
  }
496
496
  }
@@ -500,7 +500,8 @@ select:focus:required:invalid {
500
500
  margin-left: -1px;
501
501
  }
502
502
  .add-on:last-child,
503
- .btn:last-child {
503
+ .btn:last-child,
504
+ .btn-group:last-child > .dropdown-toggle {
504
505
  @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
505
506
  }
506
507
  }
@@ -27,6 +27,14 @@
27
27
  @include border-radius(9px);
28
28
  }
29
29
 
30
+ // Empty labels/badges collapse
31
+ .label,
32
+ .badge {
33
+ &:empty {
34
+ display: none;
35
+ }
36
+ }
37
+
30
38
  // Hover state, but only for links
31
39
  a {
32
40
  &.label:hover,
@@ -187,7 +187,7 @@
187
187
  // Mixin for form field states
188
188
  @mixin form-field-state($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
189
189
  // Set the text color
190
- > label,
190
+ .control-label,
191
191
  .help-block,
192
192
  .help-inline {
193
193
  color: $textColor;
@@ -419,7 +419,7 @@
419
419
  background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
420
420
  background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
421
421
  background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
422
- background-image: linear-gradient(left, $startColor, $endColor); // Standard, IE10
422
+ background-image: linear-gradient(to right, $startColor, $endColor); // Standard, IE10
423
423
  background-repeat: repeat-x;
424
424
  $ieStartColor: ie_hex_str($startColor);
425
425
  $ieEndColor: ie_hex_str($endColor);
@@ -431,7 +431,7 @@
431
431
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
432
432
  background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
433
433
  background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
434
- background-image: linear-gradient(top, $startColor, $endColor); // Standard, IE10
434
+ background-image: linear-gradient(to bottom, $startColor, $endColor); // Standard, IE10
435
435
  background-repeat: repeat-x;
436
436
  $ieStartColor: ie_hex_str($startColor);
437
437
  $ieEndColor: ie_hex_str($endColor);
@@ -23,11 +23,11 @@
23
23
  // Base modal
24
24
  .modal {
25
25
  position: fixed;
26
- top: 50%;
26
+ top: 10%;
27
27
  left: 50%;
28
28
  z-index: $zindexModal;
29
29
  width: 560px;
30
- margin: -250px 0 0 -280px;
30
+ margin-left: -280px;
31
31
  background-color: $white;
32
32
  border: 1px solid #999;
33
33
  border: 1px solid rgba(0,0,0,.3);
@@ -42,7 +42,7 @@
42
42
  @include transition(#{'opacity .3s linear, top .3s ease-out'});
43
43
  top: -25%;
44
44
  }
45
- &.fade.in { top: 50%; }
45
+ &.fade.in { top: 10%; }
46
46
  }
47
47
  .modal-header {
48
48
  padding: 9px 15px;
@@ -10,7 +10,6 @@
10
10
  .navbar {
11
11
  overflow: visible;
12
12
  margin-bottom: $baseLineHeight;
13
- color: $navbarText;
14
13
 
15
14
  // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
16
15
  *position: relative;
@@ -67,6 +66,7 @@
67
66
  .navbar-text {
68
67
  margin-bottom: 0;
69
68
  line-height: $navbarHeight;
69
+ color: $navbarText;
70
70
  }
71
71
 
72
72
  // Janky solution for now to account for links outside the .nav
@@ -123,7 +123,7 @@
123
123
  }
124
124
  .input-append,
125
125
  .input-prepend {
126
- margin-top: 6px;
126
+ margin-top: 5px;
127
127
  white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
128
128
  input {
129
129
  margin-top: 0; // remove the margin on top since it's on the parent
@@ -245,6 +245,7 @@
245
245
  }
246
246
  .navbar .nav .dropdown-toggle .caret {
247
247
  margin-top: 8px;
248
+
248
249
  }
249
250
 
250
251
  // Hover
@@ -334,6 +335,12 @@
334
335
  }
335
336
  }
336
337
 
338
+ // Caret should match text color on hover
339
+ .navbar .nav li.dropdown > a:hover .caret {
340
+ border-top-color: $navbarLinkColorActive;
341
+ border-bottom-color: $navbarLinkColorActive;
342
+ }
343
+
337
344
  // Remove background color from open dropdown
338
345
  .navbar .nav li.dropdown.open > .dropdown-toggle,
339
346
  .navbar .nav li.dropdown.active > .dropdown-toggle,
@@ -378,7 +385,6 @@
378
385
  // -------------------------
379
386
 
380
387
  .navbar-inverse {
381
- color: $navbarInverseText;
382
388
 
383
389
  .navbar-inner {
384
390
  @include gradient-vertical($navbarInverseBackgroundHighlight, $navbarInverseBackground);
@@ -394,6 +400,14 @@
394
400
  }
395
401
  }
396
402
 
403
+ .brand {
404
+ color: $navbarInverseBrandColor;
405
+ }
406
+
407
+ .navbar-text {
408
+ color: $navbarInverseText;
409
+ }
410
+
397
411
  .nav > li > a:focus,
398
412
  .nav > li > a:hover {
399
413
  background-color: $navbarInverseLinkBackgroundHover;
@@ -428,6 +442,10 @@
428
442
  background-color: $navbarInverseLinkBackgroundActive;
429
443
  color: $navbarInverseLinkColorActive;
430
444
  }
445
+ .nav li.dropdown > a:hover .caret {
446
+ border-top-color: $navbarInverseLinkColorActive;
447
+ border-bottom-color: $navbarInverseLinkColorActive;
448
+ }
431
449
  .nav li.dropdown > .dropdown-toggle .caret {
432
450
  border-top-color: $navbarInverseLinkColor;
433
451
  border-bottom-color: $navbarInverseLinkColor;
@@ -469,6 +487,3 @@
469
487
  }
470
488
 
471
489
  }
472
-
473
-
474
-
@@ -20,12 +20,14 @@
20
20
  @include border-radius(6px);
21
21
  @include box-shadow(0 5px 10px rgba(0,0,0,.2));
22
22
 
23
+ // Overrides for proper insertion
24
+ white-space: normal;
25
+
23
26
  // Offset the popover to account for the popover arrow
24
27
  &.top { margin-top: -10px; }
25
28
  &.right { margin-left: 10px; }
26
29
  &.bottom { margin-top: 10px; }
27
30
  &.left { margin-left: -10px; }
28
-
29
31
  }
30
32
 
31
33
  .popover-title {
@@ -47,31 +49,101 @@
47
49
  }
48
50
 
49
51
  // Arrows
52
+ //
53
+ // .arrow is outer, .arrow:after is inner
54
+
50
55
  .popover .arrow,
51
56
  .popover .arrow:after {
52
57
  position: absolute;
53
- display: inline-block;
58
+ display: block;
54
59
  width: 0;
55
60
  height: 0;
56
61
  border-color: transparent;
57
62
  border-style: solid;
58
63
  }
64
+ .popover .arrow {
65
+ border-width: $popoverArrowOuterWidth;
66
+ }
59
67
  .popover .arrow:after {
68
+ border-width: $popoverArrowWidth;
60
69
  content: "";
61
- z-index: -1;
62
70
  }
63
71
 
64
72
  .popover {
73
+ &.top .arrow {
74
+ left: 50%;
75
+ margin-left: -$popoverArrowOuterWidth;
76
+ border-bottom-width: 0;
77
+ border-top-color: #999; // IE8 fallback
78
+ border-top-color: $popoverArrowOuterColor;
79
+ bottom: -$popoverArrowOuterWidth;
80
+ &:after {
81
+ bottom: 1px;
82
+ margin-left: -$popoverArrowWidth;
83
+ border-bottom-width: 0;
84
+ border-top-color: $popoverArrowColor;
85
+ }
86
+ }
87
+ &.right .arrow {
88
+ top: 50%;
89
+ left: -$popoverArrowOuterWidth;
90
+ margin-top: -$popoverArrowOuterWidth;
91
+ border-left-width: 0;
92
+ border-right-color: #999; // IE8 fallback
93
+ border-right-color: $popoverArrowOuterColor;
94
+ &:after {
95
+ left: 1px;
96
+ bottom: -$popoverArrowWidth;
97
+ border-left-width: 0;
98
+ border-right-color: $popoverArrowColor;
99
+ }
100
+ }
101
+ &.bottom .arrow {
102
+ left: 50%;
103
+ margin-left: -$popoverArrowOuterWidth;
104
+ border-top-width: 0;
105
+ border-bottom-color: #999; // IE8 fallback
106
+ border-bottom-color: $popoverArrowOuterColor;
107
+ top: -$popoverArrowOuterWidth;
108
+ &:after {
109
+ top: 1px;
110
+ margin-left: -$popoverArrowWidth;
111
+ border-top-width: 0;
112
+ border-bottom-color: $popoverArrowColor;
113
+ }
114
+ }
115
+
116
+ &.left .arrow {
117
+ top: 50%;
118
+ right: -$popoverArrowOuterWidth;
119
+ margin-top: -$popoverArrowOuterWidth;
120
+ border-right-width: 0;
121
+ border-left-color: #999; // IE8 fallback
122
+ border-left-color: $popoverArrowOuterColor;
123
+ &:after {
124
+ right: 1px;
125
+ border-right-width: 0;
126
+ border-left-color: $popoverArrowColor;
127
+ bottom: -$popoverArrowWidth;
128
+ }
129
+ }
130
+
131
+
132
+
133
+ /*
65
134
  &.top .arrow {
66
135
  bottom: -$popoverArrowWidth;
67
136
  left: 50%;
68
137
  margin-left: -$popoverArrowWidth;
69
138
  border-width: $popoverArrowWidth $popoverArrowWidth 0;
70
- border-top-color: $popoverArrowColor;
139
+ //border-top-color: $popoverArrowColor;
140
+ border-top-color: blue;
71
141
  &:after {
72
142
  border-width: $popoverArrowOuterWidth $popoverArrowOuterWidth 0;
73
- border-top-color: $popoverArrowOuterColor;
74
- bottom: -1px;
143
+ //border-top-color: $popoverArrowOuterColor;
144
+ border-top-color: red;
145
+ top: -$popoverArrowWidth;
146
+ //bottom: -1px;
75
147
  left: -$popoverArrowOuterWidth;
76
148
  }
77
149
  }
@@ -113,5 +185,5 @@
113
185
  bottom: -$popoverArrowOuterWidth;
114
186
  right: -1px;
115
187
  }
116
- }
188
+ }*/
117
189
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Modals
2
+ // Reset CSS
3
3
  // Adapted from http://github.com/necolas/normalize.css
4
4
  // --------------------------------------------------
5
5
 
@@ -122,10 +122,18 @@ input[type="submit"] {
122
122
  -webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
123
123
  cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
124
124
  }
125
+ label,
126
+ select,
127
+ button,
128
+ input[type="button"],
129
+ input[type="reset"],
130
+ input[type="submit"],
131
+ input[type="radio"],
132
+ input[type="checkbox"] {
133
+ cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
134
+ }
125
135
  input[type="search"] { // Appearance in Safari/Chrome
126
- -webkit-box-sizing: content-box;
127
- -moz-box-sizing: content-box;
128
- box-sizing: content-box;
136
+ @include box-sizing(content-box);
129
137
  -webkit-appearance: textfield;
130
138
  }
131
139
  input[type="search"]::-webkit-search-decoration,
@@ -136,3 +144,73 @@ textarea {
136
144
  overflow: auto; // Remove vertical scrollbar in IE6-9
137
145
  vertical-align: top; // Readability and alignment cross-browser
138
146
  }
147
+
148
+
149
+ // Printing
150
+ // -------------------------
151
+ // Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
152
+
153
+ @media print {
154
+
155
+ * {
156
+ text-shadow: none !important;
157
+ color: #000 !important; // Black prints faster: h5bp.com/s
158
+ background: transparent !important;
159
+ box-shadow: none !important;
160
+ }
161
+
162
+ a,
163
+ a:visited {
164
+ text-decoration: underline;
165
+ }
166
+
167
+ a[href]:after {
168
+ content: " (" attr(href) ")";
169
+ }
170
+
171
+ abbr[title]:after {
172
+ content: " (" attr(title) ")";
173
+ }
174
+
175
+ // Don't show links for images, or javascript/internal links
176
+ .ir a:after,
177
+ a[href^="javascript:"]:after,
178
+ a[href^="#"]:after {
179
+ content: "";
180
+ }
181
+
182
+ pre,
183
+ blockquote {
184
+ border: 1px solid #999;
185
+ page-break-inside: avoid;
186
+ }
187
+
188
+ thead {
189
+ display: table-header-group; // h5bp.com/t
190
+ }
191
+
192
+ tr,
193
+ img {
194
+ page-break-inside: avoid;
195
+ }
196
+
197
+ img {
198
+ max-width: 100% !important;
199
+ }
200
+
201
+ @page {
202
+ margin: 0.5cm;
203
+ }
204
+
205
+ p,
206
+ h2,
207
+ h3 {
208
+ orphans: 3;
209
+ widows: 3;
210
+ }
211
+
212
+ h2,
213
+ h3 {
214
+ page-break-after: avoid;
215
+ }
216
+ }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.2.1
2
+ * Bootstrap Responsive v2.2.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -91,49 +91,45 @@ table {
91
91
  // For first th or td in the first row in the first thead or tbody
92
92
  thead:first-child tr:first-child th:first-child,
93
93
  tbody:first-child tr:first-child td:first-child {
94
- -webkit-border-top-left-radius: 4px;
95
- border-top-left-radius: 4px;
96
- -moz-border-radius-topleft: 4px;
94
+ @include border-top-left-radius($baseBorderRadius);
97
95
  }
98
96
  thead:first-child tr:first-child th:last-child,
99
97
  tbody:first-child tr:first-child td:last-child {
100
- -webkit-border-top-right-radius: 4px;
101
- border-top-right-radius: 4px;
102
- -moz-border-radius-topright: 4px;
98
+ @include border-top-right-radius($baseBorderRadius);
103
99
  }
104
- // For first th or td in the first row in the first thead or tbody
100
+ // For first th or td in the last row in the last thead or tbody
105
101
  thead:last-child tr:last-child th:first-child,
106
102
  tbody:last-child tr:last-child td:first-child,
107
103
  tfoot:last-child tr:last-child td:first-child {
108
- @include border-radius(0 0 0 4px);
109
- -webkit-border-bottom-left-radius: 4px;
110
- border-bottom-left-radius: 4px;
111
- -moz-border-radius-bottomleft: 4px;
104
+ @include border-bottom-left-radius($baseBorderRadius);
112
105
  }
113
106
  thead:last-child tr:last-child th:last-child,
114
107
  tbody:last-child tr:last-child td:last-child,
115
108
  tfoot:last-child tr:last-child td:last-child {
116
- -webkit-border-bottom-right-radius: 4px;
117
- border-bottom-right-radius: 4px;
118
- -moz-border-radius-bottomright: 4px;
109
+ @include border-bottom-right-radius($baseBorderRadius);
110
+ }
111
+
112
+ // Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
113
+ tfoot + tbody:last-child tr:last-child td:first-child {
114
+ @include border-bottom-left-radius(0);
119
115
  }
116
+ tfoot + tbody:last-child tr:last-child td:last-child {
117
+ @include border-bottom-right-radius(0);
118
+ }
119
+
120
120
 
121
121
  // Special fixes to round the left border on the first td/th
122
122
  caption + thead tr:first-child th:first-child,
123
123
  caption + tbody tr:first-child td:first-child,
124
124
  colgroup + thead tr:first-child th:first-child,
125
125
  colgroup + tbody tr:first-child td:first-child {
126
- -webkit-border-top-left-radius: 4px;
127
- border-top-left-radius: 4px;
128
- -moz-border-radius-topleft: 4px;
126
+ @include border-top-left-radius($baseBorderRadius);
129
127
  }
130
128
  caption + thead tr:first-child th:last-child,
131
129
  caption + tbody tr:first-child td:last-child,
132
130
  colgroup + thead tr:first-child th:last-child,
133
131
  colgroup + tbody tr:first-child td:last-child {
134
- -webkit-border-top-right-radius: 4px;
135
- border-top-right-radius: 4px;
136
- -moz-border-radius-topright: 4px;
132
+ @include border-top-right-radius($baseBorderRadius);
137
133
  }
138
134
 
139
135
  }
@@ -20,24 +20,18 @@ p {
20
20
  // Emphasis & misc
21
21
  // -------------------------
22
22
 
23
- small {
24
- font-size: 85%; // Ex: 14px base font * 85% = about 12px
25
- }
26
- strong {
27
- font-weight: bold;
28
- }
29
- em {
30
- font-style: italic;
31
- }
32
- cite {
33
- font-style: normal;
34
- }
23
+ // Ex: 14px base font * 85% = about 12px
24
+ small { font-size: 85%; }
25
+
26
+ strong { font-weight: bold; }
27
+ em { font-style: italic; }
28
+ cite { font-style: normal; }
35
29
 
36
30
  // Utility classes
37
- .muted {
38
- color: $grayLight;
39
- }
40
- .text-warning { color: $warningText; }
31
+ .muted { color: $grayLight; }
32
+ a.muted:hover { color: darken($grayLight, 10%); }
33
+
34
+ .text-warning { color: $warningText; }
41
35
  a.text-warning:hover { color: darken($warningText, 10%); }
42
36
 
43
37
  .text-error { color: $errorText; }
@@ -111,12 +105,26 @@ ol ul {
111
105
  li {
112
106
  line-height: $baseLineHeight;
113
107
  }
108
+
109
+ // Remove default list styles
114
110
  ul.unstyled,
115
111
  ol.unstyled {
116
112
  margin-left: 0;
117
113
  list-style: none;
118
114
  }
119
115
 
116
+ // Single-line list items
117
+ ul.inline,
118
+ ol.inline {
119
+ margin-left: 0;
120
+ list-style: none;
121
+ & > li {
122
+ display: inline-block;
123
+ padding-left: 5px;
124
+ padding-right: 5px;
125
+ }
126
+ }
127
+
120
128
  // Description Lists
121
129
  dl {
122
130
  margin-bottom: $baseLineHeight;
@@ -68,7 +68,7 @@ $fontSizeMini: $baseFontSize * 0.75 !default; // ~11px
68
68
 
69
69
  $paddingLarge: 11px 19px !default; // 44px
70
70
  $paddingSmall: 2px 10px !default; // 26px
71
- $paddingMini: 1px 6px !default; // 24px
71
+ $paddingMini: 0 6px !default; // 22px
72
72
 
73
73
  $baseBorderRadius: 4px !default;
74
74
  $borderRadiusLarge: 6px !default;
@@ -126,7 +126,7 @@ $dropdownDividerBottom: $white !default;
126
126
 
127
127
  $dropdownLinkColor: $grayDark !default;
128
128
  $dropdownLinkColorHover: $white !default;
129
- $dropdownLinkColorActive: $dropdownLinkColor !default;
129
+ $dropdownLinkColorActive: $white !default;
130
130
 
131
131
  $dropdownLinkBackgroundActive: $linkColor !default;
132
132
  $dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive !default;
metadata CHANGED
@@ -1,80 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anjlab-bootstrap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1.2
5
- prerelease:
4
+ prerelease: 6
5
+ version: 2.2.2.rc
6
6
  platform: ruby
7
7
  authors:
8
8
  - Yury Korolev
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-14 00:00:00.000000000 Z
12
+ date: 2012-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ none: false
21
+ prerelease: false
15
22
  name: railties
16
23
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
24
  requirements:
19
25
  - - ! '>='
20
26
  - !ruby/object:Gem::Version
21
27
  version: '3.0'
28
+ none: false
22
29
  type: :runtime
23
- prerelease: false
30
+ - !ruby/object:Gem::Dependency
24
31
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
32
  requirements:
27
33
  - - ! '>='
28
34
  - !ruby/object:Gem::Version
29
- version: '3.0'
30
- - !ruby/object:Gem::Dependency
35
+ version: '3.2'
36
+ none: false
37
+ prerelease: false
31
38
  name: sass
32
39
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
40
  requirements:
35
41
  - - ! '>='
36
42
  - !ruby/object:Gem::Version
37
43
  version: '3.2'
44
+ none: false
38
45
  type: :runtime
39
- prerelease: false
46
+ - !ruby/object:Gem::Dependency
40
47
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
48
  requirements:
43
49
  - - ! '>='
44
50
  - !ruby/object:Gem::Version
45
- version: '3.2'
46
- - !ruby/object:Gem::Dependency
51
+ version: '1.0'
52
+ none: false
53
+ prerelease: false
47
54
  name: bundler
48
55
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
56
  requirements:
51
57
  - - ! '>='
52
58
  - !ruby/object:Gem::Version
53
59
  version: '1.0'
60
+ none: false
54
61
  type: :development
55
- prerelease: false
62
+ - !ruby/object:Gem::Dependency
56
63
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
64
  requirements:
59
65
  - - ! '>='
60
66
  - !ruby/object:Gem::Version
61
- version: '1.0'
62
- - !ruby/object:Gem::Dependency
67
+ version: '3.1'
68
+ none: false
69
+ prerelease: false
63
70
  name: rails
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
73
  - - ! '>='
68
74
  - !ruby/object:Gem::Version
69
75
  version: '3.1'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
76
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '3.1'
77
+ type: :development
78
78
  description: Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3
79
79
  projects
80
80
  email:
@@ -162,23 +162,20 @@ rdoc_options: []
162
162
  require_paths:
163
163
  - lib
164
164
  required_ruby_version: !ruby/object:Gem::Requirement
165
- none: false
166
165
  requirements:
167
166
  - - ! '>='
168
167
  - !ruby/object:Gem::Version
169
168
  version: '0'
170
169
  segments:
171
170
  - 0
172
- hash: -2656521750584710512
173
- required_rubygems_version: !ruby/object:Gem::Requirement
171
+ hash: -1093427819150500241
174
172
  none: false
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
174
  requirements:
176
- - - ! '>='
175
+ - - ! '>'
177
176
  - !ruby/object:Gem::Version
178
- version: '0'
179
- segments:
180
- - 0
181
- hash: -2656521750584710512
177
+ version: 1.3.1
178
+ none: false
182
179
  requirements: []
183
180
  rubyforge_project:
184
181
  rubygems_version: 1.8.24