locomotivecms_wagon 2.0.0.rc2 → 2.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/generators/{bootstrap3 → bootstrap}/Gemfile.tt +0 -0
  4. data/generators/{bootstrap3 → bootstrap}/app/content_types/.empty_directory +0 -0
  5. data/generators/bootstrap/app/views/pages/404.liquid +18 -0
  6. data/generators/bootstrap/app/views/pages/404.liquid.haml +14 -0
  7. data/generators/bootstrap/app/views/pages/index.liquid +31 -0
  8. data/generators/bootstrap/app/views/pages/index.liquid.haml +25 -0
  9. data/generators/bootstrap/app/views/pages/layouts/default.liquid +31 -0
  10. data/generators/bootstrap/app/views/pages/layouts/default.liquid.haml +30 -0
  11. data/generators/bootstrap/app/views/pages/layouts/simple.liquid +36 -0
  12. data/generators/bootstrap/app/views/pages/layouts/simple.liquid.haml +29 -0
  13. data/generators/bootstrap/app/views/snippets/footer.liquid +5 -0
  14. data/generators/bootstrap/app/views/snippets/footer.liquid.haml +3 -0
  15. data/generators/bootstrap/app/views/snippets/nav.liquid +26 -0
  16. data/generators/bootstrap/app/views/snippets/nav.liquid.haml +19 -0
  17. data/generators/{bootstrap3 → bootstrap}/config/deploy.yml +0 -0
  18. data/generators/bootstrap/config/site.yml.tt +1 -6
  19. data/generators/{bootstrap3 → bootstrap}/config/translations.yml +0 -0
  20. data/generators/{bootstrap3 → bootstrap}/data/.empty_directory +0 -0
  21. data/generators/{bootstrap3 → bootstrap}/icon.png +0 -0
  22. data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  23. data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
  24. data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  25. data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  26. data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  27. data/generators/{bootstrap3/public/samples → bootstrap/public/images}/favicon.png +0 -0
  28. data/generators/bootstrap/public/javascripts/application.js +2 -0
  29. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/affix.js +60 -35
  30. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/alert.js +15 -9
  31. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/button.js +33 -20
  32. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/carousel.js +79 -47
  33. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/collapse.js +84 -43
  34. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/dropdown.js +64 -46
  35. data/generators/bootstrap/public/javascripts/bootstrap/modal.js +337 -0
  36. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/popover.js +12 -14
  37. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/scrollspy.js +57 -38
  38. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/tab.js +54 -24
  39. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/tooltip.js +202 -87
  40. data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/transition.js +19 -8
  41. data/generators/bootstrap/public/javascripts/bootstrap.min.js +7 -0
  42. data/generators/bootstrap/public/javascripts/jquery.min.js +5 -0
  43. data/generators/bootstrap/public/stylesheets/application.css +7 -0
  44. data/generators/bootstrap/public/stylesheets/application.scss +7 -0
  45. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_alerts.scss +9 -3
  46. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_badges.scss +26 -13
  47. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_breadcrumbs.scss +3 -1
  48. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_button-groups.scss +32 -14
  49. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_buttons.scss +22 -13
  50. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_carousel.scss +43 -6
  51. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_close.scss +1 -0
  52. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_code.scss +7 -1
  53. data/generators/bootstrap/public/stylesheets/bootstrap/_component-animations.scss +37 -0
  54. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_dropdowns.scss +12 -9
  55. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_forms.scss +240 -65
  56. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_glyphicons.scss +83 -9
  57. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_grid.scss +4 -4
  58. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_input-groups.scss +7 -2
  59. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_jumbotron.scss +12 -4
  60. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_labels.scss +11 -9
  61. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_list-group.scss +32 -12
  62. data/generators/bootstrap/public/stylesheets/bootstrap/_media.scss +66 -0
  63. data/generators/bootstrap/public/stylesheets/bootstrap/_mixins.scss +40 -0
  64. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_modals.scss +18 -7
  65. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_navbar.scss +75 -33
  66. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_navs.scss +4 -4
  67. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_normalize.scss +29 -28
  68. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_pager.scss +2 -3
  69. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_pagination.scss +4 -3
  70. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_panels.scss +40 -10
  71. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_popovers.scss +6 -8
  72. data/generators/bootstrap/public/stylesheets/bootstrap/_print.scss +101 -0
  73. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_progress-bars.scss +13 -6
  74. data/generators/bootstrap/public/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  75. data/generators/bootstrap/public/stylesheets/bootstrap/_responsive-utilities.scss +179 -0
  76. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_scaffolding.scss +31 -4
  77. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_tables.scss +17 -16
  78. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_theme.scss +57 -13
  79. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_thumbnails.scss +2 -2
  80. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_tooltip.scss +13 -7
  81. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_type.scss +38 -24
  82. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_utilities.scss +3 -4
  83. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_variables.scss +86 -47
  84. data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_wells.scss +0 -0
  85. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  86. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
  87. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  88. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_buttons.scss +68 -0
  89. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  90. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  91. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  92. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  93. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  94. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  95. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  96. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_image.scss +33 -0
  97. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  98. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_list-group.scss +32 -0
  99. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  100. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  101. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  102. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
  103. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  104. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  105. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  106. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
  107. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  108. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  109. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_size.scss +10 -0
  110. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  111. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  112. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
  113. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  114. data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  115. data/generators/bootstrap/public/stylesheets/bootstrap.css +5 -0
  116. data/generators/{bootstrap3/public/stylesheets/bootstrap.css.scss → bootstrap/public/stylesheets/bootstrap.scss} +16 -2
  117. data/lib/locomotive/wagon/cli.rb +3 -3
  118. data/lib/locomotive/wagon/commands/authenticate_command.rb +2 -1
  119. data/lib/locomotive/wagon/commands/concerns/spinner_concern.rb +29 -0
  120. data/lib/locomotive/wagon/commands/pull_command.rb +18 -3
  121. data/lib/locomotive/wagon/commands/push_command.rb +28 -4
  122. data/lib/locomotive/wagon/commands/sync_command.rb +21 -6
  123. data/lib/locomotive/wagon/commands/sync_sub_commands/sync_pages_command.rb +27 -3
  124. data/lib/locomotive/wagon/generators/site/{bootstrap3.rb → bootstrap.rb} +12 -6
  125. data/lib/locomotive/wagon/generators/site.rb +1 -1
  126. data/lib/locomotive/wagon/tools/listen.rb +1 -1
  127. data/lib/locomotive/wagon/version.rb +1 -1
  128. data/lib/locomotive/wagon.rb +2 -2
  129. data/locomotivecms_wagon.gemspec +3 -2
  130. data/spec/unit/decorators/theme_asset_decorator_spec.rb +10 -0
  131. metadata +124 -90
  132. data/generators/bootstrap3/app/views/pages/404.liquid +0 -13
  133. data/generators/bootstrap3/app/views/pages/404.liquid.haml +0 -10
  134. data/generators/bootstrap3/app/views/pages/index.liquid +0 -738
  135. data/generators/bootstrap3/app/views/pages/index.liquid.haml +0 -1018
  136. data/generators/bootstrap3/app/views/snippets/footer.liquid +0 -3
  137. data/generators/bootstrap3/app/views/snippets/footer.liquid.haml +0 -2
  138. data/generators/bootstrap3/config/site.yml.tt +0 -28
  139. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.eot +0 -0
  140. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.svg +0 -229
  141. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.ttf +0 -0
  142. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.woff +0 -0
  143. data/generators/bootstrap3/public/images/.empty_directory +0 -1
  144. data/generators/bootstrap3/public/javascripts/bootstrap/modal.js +0 -243
  145. data/generators/bootstrap3/public/javascripts/bootstrap.min.js +0 -12
  146. data/generators/bootstrap3/public/samples/apple-touch-icon-114x114-precomposed.png +0 -0
  147. data/generators/bootstrap3/public/samples/apple-touch-icon-144x144-precomposed.png +0 -0
  148. data/generators/bootstrap3/public/samples/apple-touch-icon-72x72-precomposed.png +0 -0
  149. data/generators/bootstrap3/public/samples/apple-touch-icon-precomposed.png +0 -0
  150. data/generators/bootstrap3/public/stylesheets/application.css +0 -1
  151. data/generators/bootstrap3/public/stylesheets/application.css.scss +0 -8
  152. data/generators/bootstrap3/public/stylesheets/bootstrap/_component-animations.scss +0 -29
  153. data/generators/bootstrap3/public/stylesheets/bootstrap/_media.scss +0 -56
  154. data/generators/bootstrap3/public/stylesheets/bootstrap/_mixins.scss +0 -947
  155. data/generators/bootstrap3/public/stylesheets/bootstrap/_print.scss +0 -101
  156. data/generators/bootstrap3/public/stylesheets/bootstrap/_responsive-utilities.scss +0 -74
  157. data/generators/bootstrap3/public/stylesheets/bootstrap/bootstrap.css.scss +0 -49
  158. data/generators/bootstrap3/public/stylesheets/bootstrap.css +0 -5784
  159. data/lib/locomotive/wagon/generators/site/bootstrap2.rb +0 -34
@@ -4,7 +4,8 @@
4
4
 
5
5
 
6
6
  .jumbotron {
7
- padding: $jumbotron-padding;
7
+ padding-top: $jumbotron-padding;
8
+ padding-bottom: $jumbotron-padding;
8
9
  margin-bottom: $jumbotron-padding;
9
10
  color: $jumbotron-color;
10
11
  background-color: $jumbotron-bg;
@@ -13,13 +14,19 @@
13
14
  .h1 {
14
15
  color: $jumbotron-heading-color;
15
16
  }
17
+
16
18
  p {
17
19
  margin-bottom: ($jumbotron-padding / 2);
18
20
  font-size: $jumbotron-font-size;
19
21
  font-weight: 200;
20
22
  }
21
23
 
22
- .container & {
24
+ > hr {
25
+ border-top-color: darken($jumbotron-bg, 10%);
26
+ }
27
+
28
+ .container &,
29
+ .container-fluid & {
23
30
  border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container
24
31
  }
25
32
 
@@ -31,14 +38,15 @@
31
38
  padding-top: ($jumbotron-padding * 1.6);
32
39
  padding-bottom: ($jumbotron-padding * 1.6);
33
40
 
34
- .container & {
41
+ .container &,
42
+ .container-fluid & {
35
43
  padding-left: ($jumbotron-padding * 2);
36
44
  padding-right: ($jumbotron-padding * 2);
37
45
  }
38
46
 
39
47
  h1,
40
48
  .h1 {
41
- font-size: ($font-size-base * 4.5);
49
+ font-size: $jumbotron-heading-font-size;
42
50
  }
43
51
  }
44
52
  }
@@ -14,15 +14,7 @@
14
14
  vertical-align: baseline;
15
15
  border-radius: .25em;
16
16
 
17
- // Add hover effects, but only for links
18
- &[href] {
19
- &:hover,
20
- &:focus {
21
- color: $label-link-hover-color;
22
- text-decoration: none;
23
- cursor: pointer;
24
- }
25
- }
17
+ // [converter] extracted a& to a.label
26
18
 
27
19
  // Empty labels collapse automatically (not available in IE8)
28
20
  &:empty {
@@ -36,6 +28,16 @@
36
28
  }
37
29
  }
38
30
 
31
+ // Add hover effects, but only for links
32
+ a.label {
33
+ &:hover,
34
+ &:focus {
35
+ color: $label-link-hover-color;
36
+ text-decoration: none;
37
+ cursor: pointer;
38
+ }
39
+ }
40
+
39
41
  // Colors
40
42
  // Contextual variations (linked labels get darker on :hover)
41
43
 
@@ -35,23 +35,16 @@
35
35
  margin-bottom: 0;
36
36
  @include border-bottom-radius($list-group-border-radius);
37
37
  }
38
-
39
- // Align badges within list items
40
- > .badge {
41
- float: right;
42
- }
43
- > .badge + .badge {
44
- margin-right: 5px;
45
- }
46
38
  }
47
39
 
48
40
 
49
- // Linked list items
41
+ // Interactive list items
50
42
  //
51
- // Use anchor elements instead of `li`s or `div`s to create linked list items.
43
+ // Use anchor or button elements instead of `li`s or `div`s to create interactive items.
52
44
  // Includes an extra `.active` modifier class for showing selected items.
53
45
 
54
- a.list-group-item {
46
+ a.list-group-item,
47
+ button.list-group-item {
55
48
  color: $list-group-link-color;
56
49
 
57
50
  .list-group-item-heading {
@@ -62,8 +55,33 @@ a.list-group-item {
62
55
  &:hover,
63
56
  &:focus {
64
57
  text-decoration: none;
58
+ color: $list-group-link-hover-color;
65
59
  background-color: $list-group-hover-bg;
66
60
  }
61
+ }
62
+
63
+ button.list-group-item {
64
+ width: 100%;
65
+ text-align: left;
66
+ }
67
+
68
+ .list-group-item {
69
+ // Disabled state
70
+ &.disabled,
71
+ &.disabled:hover,
72
+ &.disabled:focus {
73
+ background-color: $list-group-disabled-bg;
74
+ color: $list-group-disabled-color;
75
+ cursor: $cursor-disabled;
76
+
77
+ // Force color to inherit for custom content
78
+ .list-group-item-heading {
79
+ color: inherit;
80
+ }
81
+ .list-group-item-text {
82
+ color: $list-group-disabled-text-color;
83
+ }
84
+ }
67
85
 
68
86
  // Active class on item itself, not parent
69
87
  &.active,
@@ -75,7 +93,9 @@ a.list-group-item {
75
93
  border-color: $list-group-active-border;
76
94
 
77
95
  // Force color to inherit for custom content
78
- .list-group-item-heading {
96
+ .list-group-item-heading,
97
+ .list-group-item-heading > small,
98
+ .list-group-item-heading > .small {
79
99
  color: inherit;
80
100
  }
81
101
  .list-group-item-text {
@@ -0,0 +1,66 @@
1
+ .media {
2
+ // Proper spacing between instances of .media
3
+ margin-top: 15px;
4
+
5
+ &:first-child {
6
+ margin-top: 0;
7
+ }
8
+ }
9
+
10
+ .media,
11
+ .media-body {
12
+ zoom: 1;
13
+ overflow: hidden;
14
+ }
15
+
16
+ .media-body {
17
+ width: 10000px;
18
+ }
19
+
20
+ .media-object {
21
+ display: block;
22
+
23
+ // Fix collapse in webkit from max-width: 100% and display: table-cell.
24
+ &.img-thumbnail {
25
+ max-width: none;
26
+ }
27
+ }
28
+
29
+ .media-right,
30
+ .media > .pull-right {
31
+ padding-left: 10px;
32
+ }
33
+
34
+ .media-left,
35
+ .media > .pull-left {
36
+ padding-right: 10px;
37
+ }
38
+
39
+ .media-left,
40
+ .media-right,
41
+ .media-body {
42
+ display: table-cell;
43
+ vertical-align: top;
44
+ }
45
+
46
+ .media-middle {
47
+ vertical-align: middle;
48
+ }
49
+
50
+ .media-bottom {
51
+ vertical-align: bottom;
52
+ }
53
+
54
+ // Reset margins on headings for tighter default spacing
55
+ .media-heading {
56
+ margin-top: 0;
57
+ margin-bottom: 5px;
58
+ }
59
+
60
+ // Media list variation
61
+ //
62
+ // Undo default ul/ol styles
63
+ .media-list {
64
+ padding-left: 0;
65
+ list-style: none;
66
+ }
@@ -0,0 +1,40 @@
1
+ // Mixins
2
+ // --------------------------------------------------
3
+
4
+ // Utilities
5
+ @import "mixins/hide-text";
6
+ @import "mixins/opacity";
7
+ @import "mixins/image";
8
+ @import "mixins/labels";
9
+ @import "mixins/reset-filter";
10
+ @import "mixins/resize";
11
+ @import "mixins/responsive-visibility";
12
+ @import "mixins/size";
13
+ @import "mixins/tab-focus";
14
+ @import "mixins/reset-text";
15
+ @import "mixins/text-emphasis";
16
+ @import "mixins/text-overflow";
17
+ @import "mixins/vendor-prefixes";
18
+
19
+ // Components
20
+ @import "mixins/alerts";
21
+ @import "mixins/buttons";
22
+ @import "mixins/panels";
23
+ @import "mixins/pagination";
24
+ @import "mixins/list-group";
25
+ @import "mixins/nav-divider";
26
+ @import "mixins/forms";
27
+ @import "mixins/progress-bar";
28
+ @import "mixins/table-row";
29
+
30
+ // Skins
31
+ @import "mixins/background-variant";
32
+ @import "mixins/border-radius";
33
+ @import "mixins/gradients";
34
+
35
+ // Layout
36
+ @import "mixins/clearfix";
37
+ @import "mixins/center-block";
38
+ @import "mixins/nav-vertical-align";
39
+ @import "mixins/grid-framework";
40
+ @import "mixins/grid";
@@ -15,8 +15,7 @@
15
15
  // Container that the modal scrolls within
16
16
  .modal {
17
17
  display: none;
18
- overflow: auto;
19
- overflow-y: scroll;
18
+ overflow: hidden;
20
19
  position: fixed;
21
20
  top: 0;
22
21
  right: 0;
@@ -34,7 +33,11 @@
34
33
  @include translate(0, -25%);
35
34
  @include transition-transform(0.3s ease-out);
36
35
  }
37
- &.in .modal-dialog { @include translate(0, 0)}
36
+ &.in .modal-dialog { @include translate(0, 0) }
37
+ }
38
+ .modal-open .modal {
39
+ overflow-x: hidden;
40
+ overflow-y: auto;
38
41
  }
39
42
 
40
43
  // Shell div to position the modal with bottom padding
@@ -54,7 +57,7 @@
54
57
  @include box-shadow(0 3px 9px rgba(0,0,0,.5));
55
58
  background-clip: padding-box;
56
59
  // Remove focus outline from opened modal
57
- outline: none;
60
+ outline: 0;
58
61
  }
59
62
 
60
63
  // Modal background
@@ -98,11 +101,10 @@
98
101
 
99
102
  // Footer (for actions)
100
103
  .modal-footer {
101
- margin-top: 15px;
102
- padding: ($modal-inner-padding - 1) $modal-inner-padding $modal-inner-padding;
104
+ padding: $modal-inner-padding;
103
105
  text-align: right; // right align buttons
104
106
  border-top: 1px solid $modal-footer-border-color;
105
- @include clearfix(); // clear it in case folks use .pull-* classes on buttons
107
+ @include clearfix; // clear it in case folks use .pull-* classes on buttons
106
108
 
107
109
  // Properly space out buttons
108
110
  .btn + .btn {
@@ -119,6 +121,15 @@
119
121
  }
120
122
  }
121
123
 
124
+ // Measure scrollbar width for padding body during modal show/hide
125
+ .modal-scrollbar-measure {
126
+ position: absolute;
127
+ top: -9999px;
128
+ width: 50px;
129
+ height: 50px;
130
+ overflow: scroll;
131
+ }
132
+
122
133
  // Scale up the modal
123
134
  @media (min-width: $screen-sm-min) {
124
135
  // Automatically set modal's width for larger viewports
@@ -15,7 +15,7 @@
15
15
  border: 1px solid transparent;
16
16
 
17
17
  // Prevent floats from breaking the navbar
18
- @include clearfix();
18
+ @include clearfix;
19
19
 
20
20
  @media (min-width: $grid-float-breakpoint) {
21
21
  border-radius: $navbar-border-radius;
@@ -29,7 +29,7 @@
29
29
  // styling of responsive aspects.
30
30
 
31
31
  .navbar-header {
32
- @include clearfix();
32
+ @include clearfix;
33
33
 
34
34
  @media (min-width: $grid-float-breakpoint) {
35
35
  float: left;
@@ -48,13 +48,12 @@
48
48
  // content for the user's viewport.
49
49
 
50
50
  .navbar-collapse {
51
- max-height: $navbar-collapse-max-height;
52
51
  overflow-x: visible;
53
52
  padding-right: $navbar-padding-horizontal;
54
53
  padding-left: $navbar-padding-horizontal;
55
54
  border-top: 1px solid transparent;
56
55
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
57
- @include clearfix();
56
+ @include clearfix;
58
57
  -webkit-overflow-scrolling: touch;
59
58
 
60
59
  &.in {
@@ -88,6 +87,17 @@
88
87
  }
89
88
  }
90
89
 
90
+ .navbar-fixed-top,
91
+ .navbar-fixed-bottom {
92
+ .navbar-collapse {
93
+ max-height: $navbar-collapse-max-height;
94
+
95
+ @media (max-device-width: $screen-xs-min) and (orientation: landscape) {
96
+ max-height: 200px;
97
+ }
98
+ }
99
+ }
100
+
91
101
 
92
102
  // Both navbar header and collapse
93
103
  //
@@ -162,6 +172,10 @@
162
172
  text-decoration: none;
163
173
  }
164
174
 
175
+ > img {
176
+ display: block;
177
+ }
178
+
165
179
  @media (min-width: $grid-float-breakpoint) {
166
180
  .navbar > .container &,
167
181
  .navbar > .container-fluid & {
@@ -190,7 +204,7 @@
190
204
  // We remove the `outline` here, but later compensate by attaching `:hover`
191
205
  // styles to `:focus`.
192
206
  &:focus {
193
- outline: none;
207
+ outline: 0;
194
208
  }
195
209
 
196
210
  // Bars
@@ -260,26 +274,6 @@
260
274
  padding-bottom: $navbar-padding-vertical;
261
275
  }
262
276
  }
263
-
264
- &.navbar-right:last-child {
265
- margin-right: -$navbar-padding-horizontal;
266
- }
267
- }
268
- }
269
-
270
-
271
- // Component alignment
272
- //
273
- // Repurpose the pull utilities as their own navbar utilities to avoid specificity
274
- // issues with parents and chaining. Only do this when the navbar is uncollapsed
275
- // though so that navbar contents properly stack and align in mobile.
276
-
277
- @media (min-width: $grid-float-breakpoint) {
278
- .navbar-left {
279
- float: left !important;
280
- }
281
- .navbar-right {
282
- float: right !important;
283
277
  }
284
278
  }
285
279
 
@@ -299,11 +293,15 @@
299
293
  @include box-shadow($shadow);
300
294
 
301
295
  // Mixin behavior for optimum display
302
- @extend .form-inline;
296
+ @include form-inline;
303
297
 
304
298
  .form-group {
305
299
  @media (max-width: $grid-float-breakpoint-max) {
306
300
  margin-bottom: 5px;
301
+
302
+ &:last-child {
303
+ margin-bottom: 0;
304
+ }
307
305
  }
308
306
  }
309
307
 
@@ -319,11 +317,6 @@
319
317
  padding-top: 0;
320
318
  padding-bottom: 0;
321
319
  @include box-shadow(none);
322
-
323
- // Outdent the form if last child to line up with content down the page
324
- &.navbar-right:last-child {
325
- margin-right: -$navbar-padding-horizontal;
326
- }
327
320
  }
328
321
  }
329
322
 
@@ -337,6 +330,8 @@
337
330
  }
338
331
  // Menu position and menu caret support for dropups via extra dropup class
339
332
  .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
333
+ margin-bottom: 0;
334
+ @include border-top-radius($navbar-border-radius);
340
335
  @include border-bottom-radius(0);
341
336
  }
342
337
 
@@ -368,14 +363,33 @@
368
363
  float: left;
369
364
  margin-left: $navbar-padding-horizontal;
370
365
  margin-right: $navbar-padding-horizontal;
366
+ }
367
+ }
368
+
371
369
 
372
- // Outdent the form if last child to line up with content down the page
373
- &.navbar-right:last-child {
370
+ // Component alignment
371
+ //
372
+ // Repurpose the pull utilities as their own navbar utilities to avoid specificity
373
+ // issues with parents and chaining. Only do this when the navbar is uncollapsed
374
+ // though so that navbar contents properly stack and align in mobile.
375
+ //
376
+ // Declared after the navbar components to ensure more specificity on the margins.
377
+
378
+ @media (min-width: $grid-float-breakpoint) {
379
+ .navbar-left {
380
+ float: left !important;
381
+ }
382
+ .navbar-right {
383
+ float: right !important;
384
+ margin-right: -$navbar-padding-horizontal;
385
+
386
+ ~ .navbar-right {
374
387
  margin-right: 0;
375
388
  }
376
389
  }
377
390
  }
378
391
 
392
+
379
393
  // Alternate navbars
380
394
  // --------------------------------------------------
381
395
 
@@ -496,6 +510,20 @@
496
510
  }
497
511
  }
498
512
 
513
+ .btn-link {
514
+ color: $navbar-default-link-color;
515
+ &:hover,
516
+ &:focus {
517
+ color: $navbar-default-link-hover-color;
518
+ }
519
+ &[disabled],
520
+ fieldset[disabled] & {
521
+ &:hover,
522
+ &:focus {
523
+ color: $navbar-default-link-disabled-color;
524
+ }
525
+ }
526
+ }
499
527
  }
500
528
 
501
529
  // Inverse navbar
@@ -617,4 +645,18 @@
617
645
  }
618
646
  }
619
647
 
648
+ .btn-link {
649
+ color: $navbar-inverse-link-color;
650
+ &:hover,
651
+ &:focus {
652
+ color: $navbar-inverse-link-hover-color;
653
+ }
654
+ &[disabled],
655
+ fieldset[disabled] & {
656
+ &:hover,
657
+ &:focus {
658
+ color: $navbar-inverse-link-disabled-color;
659
+ }
660
+ }
661
+ }
620
662
  }
@@ -10,7 +10,7 @@
10
10
  margin-bottom: 0;
11
11
  padding-left: 0; // Override default ul/ol
12
12
  list-style: none;
13
- @include clearfix();
13
+ @include clearfix;
14
14
 
15
15
  > li {
16
16
  position: relative;
@@ -36,7 +36,7 @@
36
36
  color: $nav-disabled-link-hover-color;
37
37
  text-decoration: none;
38
38
  background-color: transparent;
39
- cursor: not-allowed;
39
+ cursor: $cursor-disabled;
40
40
  }
41
41
  }
42
42
  }
@@ -57,7 +57,7 @@
57
57
  // we missed it. We don't currently support this anywhere, but in the interest
58
58
  // of maintaining backward compatibility in case you use it, it's deprecated.
59
59
  .nav-divider {
60
- @include nav-divider();
60
+ @include nav-divider;
61
61
  }
62
62
 
63
63
  // Prevent IE8 from misplacing imgs
@@ -162,7 +162,7 @@
162
162
 
163
163
  > li {
164
164
  float: none;
165
- > a {
165
+ > a {
166
166
  text-align: center;
167
167
  margin-bottom: 5px;
168
168
  }