anjlab-bootstrap-rails 2.0.4.4 → 2.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/README.md +21 -20
  2. data/Rakefile +39 -26
  3. data/lib/bootstrap-rails/engine.rb +3 -0
  4. data/lib/bootstrap-rails/version.rb +1 -1
  5. data/vendor/assets/images/{glyphicons-halflings-white.png → twitter/glyphicons-halflings-white.png} +0 -0
  6. data/vendor/assets/images/twitter/glyphicons-halflings.png +0 -0
  7. data/vendor/assets/javascripts/twitter/bootstrap.js +13 -0
  8. data/vendor/assets/javascripts/twitter/bootstrap/affix.js +104 -0
  9. data/vendor/assets/javascripts/{bootstrap-alert.js → twitter/bootstrap/alert.js} +1 -1
  10. data/vendor/assets/javascripts/{bootstrap-button.js → twitter/bootstrap/button.js} +1 -1
  11. data/vendor/assets/javascripts/{bootstrap-carousel.js → twitter/bootstrap/carousel.js} +12 -5
  12. data/vendor/assets/javascripts/{bootstrap-collapse.js → twitter/bootstrap/collapse.js} +4 -3
  13. data/vendor/assets/javascripts/{bootstrap-dropdown.js → twitter/bootstrap/dropdown.js} +66 -16
  14. data/vendor/assets/javascripts/{bootstrap-modal.js → twitter/bootstrap/modal.js} +95 -74
  15. data/vendor/assets/javascripts/{bootstrap-popover.js → twitter/bootstrap/popover.js} +9 -4
  16. data/vendor/assets/javascripts/{bootstrap-scrollspy.js → twitter/bootstrap/scrollspy.js} +9 -9
  17. data/vendor/assets/javascripts/{bootstrap-tab.js → twitter/bootstrap/tab.js} +2 -2
  18. data/vendor/assets/javascripts/{bootstrap-tooltip.js → twitter/bootstrap/tooltip.js} +15 -15
  19. data/vendor/assets/javascripts/{bootstrap-transition.js → twitter/bootstrap/transition.js} +2 -3
  20. data/vendor/assets/javascripts/{bootstrap-typeahead.js → twitter/bootstrap/typeahead.js} +50 -35
  21. data/vendor/assets/stylesheets/twitter/bootstrap-responsive.scss +1 -0
  22. data/vendor/assets/stylesheets/twitter/bootstrap.scss +1 -0
  23. data/vendor/frameworks/twitter/bootstrap.scss +1 -0
  24. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/accordion.scss +3 -2
  25. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/alerts.scss +15 -8
  26. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/bootstrap.scss +1 -1
  27. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/breadcrumbs.scss +10 -10
  28. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/button-groups.scss +76 -23
  29. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/buttons.scss +76 -56
  30. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/carousel.scss +13 -3
  31. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/close.scss +4 -2
  32. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/code.scss +6 -5
  33. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/component-animations.scss +5 -2
  34. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/dropdowns.scss +81 -14
  35. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/forms.scss +99 -46
  36. data/vendor/frameworks/twitter/bootstrap/grid.scss +21 -0
  37. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/hero-unit.scss +4 -2
  38. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/labels-badges.scss +19 -2
  39. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/layouts.scss +1 -2
  40. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/mixins.scss +105 -81
  41. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/modals.scss +9 -2
  42. data/vendor/frameworks/twitter/bootstrap/navbar.scss +468 -0
  43. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/navs.scss +38 -17
  44. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/pager.scss +5 -4
  45. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/pagination.scss +16 -8
  46. data/vendor/frameworks/twitter/bootstrap/popovers.scss +117 -0
  47. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/progress-bars.scss +18 -13
  48. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/reset.scss +6 -3
  49. data/vendor/frameworks/twitter/bootstrap/responsive-1200px-min.scss +28 -0
  50. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/responsive-767px-max.scss +83 -69
  51. data/vendor/frameworks/twitter/bootstrap/responsive-768px-979px.scss +19 -0
  52. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/responsive-navbar.scss +17 -4
  53. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/responsive-utilities.scss +17 -15
  54. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/responsive.scss +5 -5
  55. data/vendor/frameworks/twitter/bootstrap/scaffolding.scss +51 -0
  56. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/sprites.scss +17 -20
  57. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/tables.scss +60 -15
  58. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/thumbnails.scss +9 -4
  59. data/vendor/frameworks/twitter/bootstrap/tooltip.scss +70 -0
  60. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/type.scss +56 -83
  61. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/utilities.scss +9 -2
  62. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/variables.scss +109 -36
  63. data/vendor/{assets/stylesheets → frameworks/twitter/bootstrap}/wells.scss +7 -5
  64. metadata +63 -59
  65. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  66. data/vendor/assets/javascripts/bootstrap.js +0 -12
  67. data/vendor/assets/stylesheets/grid.scss +0 -5
  68. data/vendor/assets/stylesheets/navbar.scss +0 -358
  69. data/vendor/assets/stylesheets/popovers.scss +0 -49
  70. data/vendor/assets/stylesheets/responsive-1200px-min.scss +0 -26
  71. data/vendor/assets/stylesheets/responsive-768px-979px.scss +0 -17
  72. data/vendor/assets/stylesheets/scaffolding.scss +0 -29
  73. data/vendor/assets/stylesheets/tooltip.scss +0 -35
@@ -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
 
@@ -170,10 +171,10 @@
170
171
  @include border-radius(0);
171
172
  }
172
173
  .nav-tabs.nav-stacked > li:first-child > a {
173
- @include border-radius(4px 4px 0 0);
174
+ @include border-top-radius(4px);
174
175
  }
175
176
  .nav-tabs.nav-stacked > li:last-child > a {
176
- @include border-radius(0 0 4px 4px);
177
+ @include border-bottom-radius(4px);
177
178
  }
178
179
  .nav-tabs.nav-stacked > li > a:hover {
179
180
  border-color: #ddd;
@@ -194,39 +195,43 @@
194
195
  // ---------
195
196
 
196
197
  .nav-tabs .dropdown-menu {
197
- @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
198
199
  }
199
200
  .nav-pills .dropdown-menu {
200
- @include border-radius(4px); // make rounded corners match the pills
201
+ @include border-radius(6px); // make rounded corners match the pills
201
202
  }
202
203
 
203
204
  // Default dropdown links
204
205
  // -------------------------
205
206
  // Make carets use linkColor to start
206
- .nav-tabs .dropdown-toggle .caret,
207
- .nav-pills .dropdown-toggle .caret {
207
+ .nav .dropdown-toggle .caret {
208
208
  border-top-color: $linkColor;
209
209
  border-bottom-color: $linkColor;
210
210
  margin-top: 6px;
211
211
  }
212
- .nav-tabs .dropdown-toggle:hover .caret,
213
- .nav-pills .dropdown-toggle:hover .caret {
212
+ .nav .dropdown-toggle:hover .caret {
214
213
  border-top-color: $linkColorHover;
215
214
  border-bottom-color: $linkColorHover;
216
215
  }
216
+ /* move down carets for tabs */
217
+ .nav-tabs .dropdown-toggle .caret {
218
+ margin-top: 8px;
219
+ }
217
220
 
218
221
  // Active dropdown links
219
222
  // -------------------------
220
- .nav-tabs .active .dropdown-toggle .caret,
221
- .nav-pills .active .dropdown-toggle .caret {
222
- border-top-color: $grayDark;
223
- 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;
224
230
  }
225
231
 
226
232
  // Active:hover dropdown links
227
233
  // -------------------------
228
234
  .nav > .dropdown.active > a:hover {
229
- color: $black;
230
235
  cursor: pointer;
231
236
  }
232
237
 
@@ -361,3 +366,19 @@
361
366
  border-color: #ddd #ddd #ddd transparent;
362
367
  *border-left-color: $white;
363
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();
@@ -1,5 +1,7 @@
1
- // PAGINATION
2
- // ----------
1
+ //
2
+ // Pagination (multiple pages)
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .pagination {
5
7
  height: $baseLineHeight * 2;
@@ -16,19 +18,23 @@
16
18
  .pagination li {
17
19
  display: inline;
18
20
  }
19
- .pagination a {
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
31
  .pagination a:hover,
28
- .pagination .active a {
32
+ .pagination .active a,
33
+ .pagination .active span {
29
34
  background-color: #f5f5f5;
30
35
  }
31
- .pagination .active a {
36
+ .pagination .active a,
37
+ .pagination .active span {
32
38
  color: $grayLight;
33
39
  cursor: default;
34
40
  }
@@ -39,11 +45,13 @@
39
45
  background-color: transparent;
40
46
  cursor: default;
41
47
  }
42
- .pagination li:first-child a {
48
+ .pagination li:first-child a,
49
+ .pagination li:first-child span {
43
50
  border-left-width: 1px;
44
51
  @include border-radius(3px 0 0 3px);
45
52
  }
46
- .pagination li:last-child a {
53
+ .pagination li:last-child a,
54
+ .pagination li:last-child span {
47
55
  @include border-radius(0 3px 3px 0);
48
56
  }
49
57
 
@@ -0,0 +1,117 @@
1
+ //
2
+ // Popovers
3
+ // --------------------------------------------------
4
+
5
+
6
+ .popover {
7
+ position: absolute;
8
+ top: 0;
9
+ left: 0;
10
+ z-index: $zindexPopover;
11
+ display: none;
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);
20
+ @include border-radius(6px);
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
+
29
+ }
30
+
31
+ .popover-title {
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
+ }
41
+
42
+ .popover-content {
43
+ padding: 9px 14px;
44
+ p, ul, ol {
45
+ margin-bottom: 0;
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
+ }
117
+ }
@@ -1,5 +1,6 @@
1
- // PROGRESS BARS
2
- // -------------
1
+ //
2
+ // Progress bars
3
+ // --------------------------------------------------
3
4
 
4
5
 
5
6
  // ANIMATIONS
@@ -43,8 +44,8 @@
43
44
  // Outer container
44
45
  .progress {
45
46
  overflow: hidden;
46
- height: 18px;
47
- margin-bottom: 18px;
47
+ height: $baseLineHeight;
48
+ margin-bottom: $baseLineHeight;
48
49
  @include gradient-vertical(#f5f5f5, #f9f9f9);
49
50
  @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
50
51
  @include border-radius(4px);
@@ -53,8 +54,9 @@
53
54
  // Bar of progress
54
55
  .progress .bar {
55
56
  width: 0%;
56
- height: 18px;
57
+ height: 100%;
57
58
  color: $white;
59
+ float: left;
58
60
  font-size: 12px;
59
61
  text-align: center;
60
62
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
@@ -63,6 +65,9 @@
63
65
  @include box-sizing(border-box);
64
66
  @include transition(width .6s ease);
65
67
  }
68
+ .progress .bar + .bar {
69
+ @include box-shadow((inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15)));
70
+ }
66
71
 
67
72
  // Striped bars
68
73
  .progress-striped .bar {
@@ -85,33 +90,33 @@
85
90
  // ------
86
91
 
87
92
  // Danger (red)
88
- .progress-danger .bar {
93
+ .progress-danger .bar, .progress .bar-danger {
89
94
  @include gradient-vertical(#ee5f5b, #c43c35);
90
95
  }
91
- .progress-danger.progress-striped .bar {
96
+ .progress-danger.progress-striped .bar, .progress-striped .bar-danger {
92
97
  @include gradient-striped(#ee5f5b);
93
98
  }
94
99
 
95
100
  // Success (green)
96
- .progress-success .bar {
101
+ .progress-success .bar, .progress .bar-success {
97
102
  @include gradient-vertical(#62c462, #57a957);
98
103
  }
99
- .progress-success.progress-striped .bar {
104
+ .progress-success.progress-striped .bar, .progress-striped .bar-success {
100
105
  @include gradient-striped(#62c462);
101
106
  }
102
107
 
103
108
  // Info (teal)
104
- .progress-info .bar {
109
+ .progress-info .bar, .progress .bar-info {
105
110
  @include gradient-vertical(#5bc0de, #339bb9);
106
111
  }
107
- .progress-info.progress-striped .bar {
112
+ .progress-info.progress-striped .bar, .progress-striped .bar-info {
108
113
  @include gradient-striped(#5bc0de);
109
114
  }
110
115
 
111
116
  // Warning (orange)
112
- .progress-warning .bar {
117
+ .progress-warning .bar, .progress .bar-warning {
113
118
  @include gradient-vertical(lighten($orange, 15%), $orange);
114
119
  }
115
- .progress-warning.progress-striped .bar {
120
+ .progress-warning.progress-striped .bar, .progress-striped .bar-warning {
116
121
  @include gradient-striped(lighten($orange, 15%));
117
122
  }
@@ -1,6 +1,8 @@
1
- // Reset.less
2
- // Adapted from Normalize.css http://github.com/necolas/normalize.css
3
- // ------------------------------------------------------------------------
1
+ //
2
+ // Modals
3
+ // Adapted from http://github.com/necolas/normalize.css
4
+ // --------------------------------------------------
5
+
4
6
 
5
7
  // Display in IE6-9 and FF3
6
8
  // -------------------------
@@ -76,6 +78,7 @@ sub {
76
78
 
77
79
  img {
78
80
  max-width: 100%; // Make images inherently responsive
81
+ height: auto; // Make images inherently responsive
79
82
  vertical-align: middle;
80
83
  border: 0;
81
84
  -ms-interpolation-mode: bicubic;
@@ -0,0 +1,28 @@
1
+ //
2
+ // Responsive: Large desktop and up
3
+ // --------------------------------------------------
4
+
5
+
6
+ @media (min-width: 1200px) {
7
+
8
+ // Fixed grid
9
+ @include grid-core($gridColumnWidth1200, $gridGutterWidth1200);
10
+
11
+ // Fluid grid
12
+ @include grid-fluid($fluidGridColumnWidth1200, $fluidGridGutterWidth1200);
13
+
14
+ // Input grid
15
+ @include grid-input($gridColumnWidth1200, $gridGutterWidth1200);
16
+
17
+ // Thumbnails
18
+ .thumbnails {
19
+ margin-left: -$gridGutterWidth1200;
20
+ }
21
+ .thumbnails > li {
22
+ margin-left: $gridGutterWidth1200;
23
+ }
24
+ .row-fluid .thumbnails {
25
+ margin-left: 0;
26
+ }
27
+
28
+ }
@@ -1,72 +1,3 @@
1
- // UP TO LANDSCAPE PHONE
2
- // ---------------------
3
-
4
- @media (max-width: 480px) {
5
-
6
- // Smooth out the collapsing/expanding nav
7
- .nav-collapse {
8
- -webkit-transform: translate3d(0, 0, 0); // activate the GPU
9
- }
10
-
11
- // Block level the page header small tag for readability
12
- .page-header h1 small {
13
- display: block;
14
- line-height: $baseLineHeight;
15
- }
16
-
17
- // Update checkboxes for iOS
18
- input[type="checkbox"],
19
- input[type="radio"] {
20
- border: 1px solid #ccc;
21
- }
22
-
23
- // Remove the horizontal form styles
24
- .form-horizontal .control-group > label {
25
- float: none;
26
- width: auto;
27
- padding-top: 0;
28
- text-align: left;
29
- }
30
- // Move over all input controls and content
31
- .form-horizontal .controls {
32
- margin-left: 0;
33
- }
34
- // Move the options list down to align with labels
35
- .form-horizontal .control-list {
36
- padding-top: 0; // has to be padding because margin collaspes
37
- }
38
- // Move over buttons in .form-actions to align with .controls
39
- .form-horizontal .form-actions {
40
- padding-left: 10px;
41
- padding-right: 10px;
42
- }
43
-
44
- // Modals
45
- .modal {
46
- position: absolute;
47
- top: 10px;
48
- left: 10px;
49
- right: 10px;
50
- width: auto;
51
- margin: 0;
52
- &.fade.in { top: auto; }
53
- }
54
- .modal-header .close {
55
- padding: 10px;
56
- margin: -10px;
57
- }
58
-
59
- // Carousel
60
- .carousel-caption {
61
- position: static;
62
- }
63
-
64
- }
65
-
66
-
67
-
68
- // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
69
- // --------------------------------------------------
70
1
 
71
2
  @media (max-width: 767px) {
72
3
 
@@ -116,6 +47,10 @@
116
47
  .thumbnails {
117
48
  margin-left: 0;
118
49
  }
50
+ .thumbnails > li {
51
+ float: none;
52
+ margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
53
+ }
119
54
  // Make all grid-sized elements block level again
120
55
  [class*="span"],
121
56
  .row-fluid [class*="span"] {
@@ -124,6 +59,11 @@
124
59
  width: auto;
125
60
  margin-left: 0;
126
61
  }
62
+ .span12,
63
+ .row-fluid .span12 {
64
+ width: 100%;
65
+ @include box-sizing(border-box);
66
+ }
127
67
 
128
68
  // FORM FIELDS
129
69
  // -----------
@@ -146,4 +86,78 @@
146
86
  width: auto;
147
87
  }
148
88
 
89
+ // Modals
90
+ .modal {
91
+ position: fixed;
92
+ top: 20px;
93
+ left: 20px;
94
+ right: 20px;
95
+ width: auto;
96
+ margin: 0;
97
+ &.fade.in { top: auto; }
98
+ }
99
+
100
+ }
101
+
102
+
103
+
104
+ // UP TO LANDSCAPE PHONE
105
+ // ---------------------
106
+
107
+ @media (max-width: 480px) {
108
+
109
+ // Smooth out the collapsing/expanding nav
110
+ .nav-collapse {
111
+ -webkit-transform: translate3d(0, 0, 0); // activate the GPU
112
+ }
113
+
114
+ // Block level the page header small tag for readability
115
+ .page-header h1 small {
116
+ display: block;
117
+ line-height: $baseLineHeight;
118
+ }
119
+
120
+ // Update checkboxes for iOS
121
+ input[type="checkbox"],
122
+ input[type="radio"] {
123
+ border: 1px solid #ccc;
124
+ }
125
+
126
+ // Remove the horizontal form styles
127
+ .form-horizontal .control-group > label {
128
+ float: none;
129
+ width: auto;
130
+ padding-top: 0;
131
+ text-align: left;
132
+ }
133
+ // Move over all input controls and content
134
+ .form-horizontal .controls {
135
+ margin-left: 0;
136
+ }
137
+ // Move the options list down to align with labels
138
+ .form-horizontal .control-list {
139
+ padding-top: 0; // has to be padding because margin collaspes
140
+ }
141
+ // Move over buttons in .form-actions to align with .controls
142
+ .form-horizontal .form-actions {
143
+ padding-left: 10px;
144
+ padding-right: 10px;
145
+ }
146
+
147
+ // Modals
148
+ .modal {
149
+ top: 10px;
150
+ left: 10px;
151
+ right: 10px;
152
+ }
153
+ .modal-header .close {
154
+ padding: 10px;
155
+ margin: -10px;
156
+ }
157
+
158
+ // Carousel
159
+ .carousel-caption {
160
+ position: static;
161
+ }
162
+
149
163
  }