locomotivecms_wagon 2.0.0.rc2 → 2.0.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/generators/{bootstrap3 → bootstrap}/Gemfile.tt +0 -0
- data/generators/{bootstrap3 → bootstrap}/app/content_types/.empty_directory +0 -0
- data/generators/bootstrap/app/views/pages/404.liquid +18 -0
- data/generators/bootstrap/app/views/pages/404.liquid.haml +14 -0
- data/generators/bootstrap/app/views/pages/index.liquid +31 -0
- data/generators/bootstrap/app/views/pages/index.liquid.haml +25 -0
- data/generators/bootstrap/app/views/pages/layouts/default.liquid +31 -0
- data/generators/bootstrap/app/views/pages/layouts/default.liquid.haml +30 -0
- data/generators/bootstrap/app/views/pages/layouts/simple.liquid +36 -0
- data/generators/bootstrap/app/views/pages/layouts/simple.liquid.haml +29 -0
- data/generators/bootstrap/app/views/snippets/footer.liquid +5 -0
- data/generators/bootstrap/app/views/snippets/footer.liquid.haml +3 -0
- data/generators/bootstrap/app/views/snippets/nav.liquid +26 -0
- data/generators/bootstrap/app/views/snippets/nav.liquid.haml +19 -0
- data/generators/{bootstrap3 → bootstrap}/config/deploy.yml +0 -0
- data/generators/bootstrap/config/site.yml.tt +1 -6
- data/generators/{bootstrap3 → bootstrap}/config/translations.yml +0 -0
- data/generators/{bootstrap3 → bootstrap}/data/.empty_directory +0 -0
- data/generators/{bootstrap3 → bootstrap}/icon.png +0 -0
- data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/generators/bootstrap/public/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/generators/{bootstrap3/public/samples → bootstrap/public/images}/favicon.png +0 -0
- data/generators/bootstrap/public/javascripts/application.js +2 -0
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/affix.js +60 -35
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/alert.js +15 -9
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/button.js +33 -20
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/carousel.js +79 -47
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/collapse.js +84 -43
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/dropdown.js +64 -46
- data/generators/bootstrap/public/javascripts/bootstrap/modal.js +337 -0
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/popover.js +12 -14
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/scrollspy.js +57 -38
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/tab.js +54 -24
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/tooltip.js +202 -87
- data/generators/{bootstrap3 → bootstrap}/public/javascripts/bootstrap/transition.js +19 -8
- data/generators/bootstrap/public/javascripts/bootstrap.min.js +7 -0
- data/generators/bootstrap/public/javascripts/jquery.min.js +5 -0
- data/generators/bootstrap/public/stylesheets/application.css +7 -0
- data/generators/bootstrap/public/stylesheets/application.scss +7 -0
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_alerts.scss +9 -3
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_badges.scss +26 -13
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_breadcrumbs.scss +3 -1
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_button-groups.scss +32 -14
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_buttons.scss +22 -13
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_carousel.scss +43 -6
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_close.scss +1 -0
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_code.scss +7 -1
- data/generators/bootstrap/public/stylesheets/bootstrap/_component-animations.scss +37 -0
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_dropdowns.scss +12 -9
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_forms.scss +240 -65
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_glyphicons.scss +83 -9
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_grid.scss +4 -4
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_input-groups.scss +7 -2
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_jumbotron.scss +12 -4
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_labels.scss +11 -9
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_list-group.scss +32 -12
- data/generators/bootstrap/public/stylesheets/bootstrap/_media.scss +66 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/_mixins.scss +40 -0
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_modals.scss +18 -7
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_navbar.scss +75 -33
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_navs.scss +4 -4
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_normalize.scss +29 -28
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_pager.scss +2 -3
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_pagination.scss +4 -3
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_panels.scss +40 -10
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_popovers.scss +6 -8
- data/generators/bootstrap/public/stylesheets/bootstrap/_print.scss +101 -0
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_progress-bars.scss +13 -6
- data/generators/bootstrap/public/stylesheets/bootstrap/_responsive-embed.scss +35 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/_responsive-utilities.scss +179 -0
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_scaffolding.scss +31 -4
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_tables.scss +17 -16
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_theme.scss +57 -13
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_thumbnails.scss +2 -2
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_tooltip.scss +13 -7
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_type.scss +38 -24
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_utilities.scss +3 -4
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_variables.scss +86 -47
- data/generators/{bootstrap3 → bootstrap}/public/stylesheets/bootstrap/_wells.scss +0 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_buttons.scss +68 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_forms.scss +88 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_image.scss +33 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_list-group.scss +32 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_panels.scss +24 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/generators/bootstrap/public/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/generators/bootstrap/public/stylesheets/bootstrap.css +5 -0
- data/generators/{bootstrap3/public/stylesheets/bootstrap.css.scss → bootstrap/public/stylesheets/bootstrap.scss} +16 -2
- data/lib/locomotive/wagon/cli.rb +3 -3
- data/lib/locomotive/wagon/commands/authenticate_command.rb +2 -1
- data/lib/locomotive/wagon/commands/concerns/spinner_concern.rb +29 -0
- data/lib/locomotive/wagon/commands/pull_command.rb +18 -3
- data/lib/locomotive/wagon/commands/push_command.rb +28 -4
- data/lib/locomotive/wagon/commands/sync_command.rb +21 -6
- data/lib/locomotive/wagon/commands/sync_sub_commands/sync_pages_command.rb +27 -3
- data/lib/locomotive/wagon/generators/site/{bootstrap3.rb → bootstrap.rb} +12 -6
- data/lib/locomotive/wagon/generators/site.rb +1 -1
- data/lib/locomotive/wagon/tools/listen.rb +1 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/lib/locomotive/wagon.rb +2 -2
- data/locomotivecms_wagon.gemspec +3 -2
- data/spec/unit/decorators/theme_asset_decorator_spec.rb +10 -0
- metadata +124 -90
- data/generators/bootstrap3/app/views/pages/404.liquid +0 -13
- data/generators/bootstrap3/app/views/pages/404.liquid.haml +0 -10
- data/generators/bootstrap3/app/views/pages/index.liquid +0 -738
- data/generators/bootstrap3/app/views/pages/index.liquid.haml +0 -1018
- data/generators/bootstrap3/app/views/snippets/footer.liquid +0 -3
- data/generators/bootstrap3/app/views/snippets/footer.liquid.haml +0 -2
- data/generators/bootstrap3/config/site.yml.tt +0 -28
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.eot +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.svg +0 -229
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.woff +0 -0
- data/generators/bootstrap3/public/images/.empty_directory +0 -1
- data/generators/bootstrap3/public/javascripts/bootstrap/modal.js +0 -243
- data/generators/bootstrap3/public/javascripts/bootstrap.min.js +0 -12
- data/generators/bootstrap3/public/samples/apple-touch-icon-114x114-precomposed.png +0 -0
- data/generators/bootstrap3/public/samples/apple-touch-icon-144x144-precomposed.png +0 -0
- data/generators/bootstrap3/public/samples/apple-touch-icon-72x72-precomposed.png +0 -0
- data/generators/bootstrap3/public/samples/apple-touch-icon-precomposed.png +0 -0
- data/generators/bootstrap3/public/stylesheets/application.css +0 -1
- data/generators/bootstrap3/public/stylesheets/application.css.scss +0 -8
- data/generators/bootstrap3/public/stylesheets/bootstrap/_component-animations.scss +0 -29
- data/generators/bootstrap3/public/stylesheets/bootstrap/_media.scss +0 -56
- data/generators/bootstrap3/public/stylesheets/bootstrap/_mixins.scss +0 -947
- data/generators/bootstrap3/public/stylesheets/bootstrap/_print.scss +0 -101
- data/generators/bootstrap3/public/stylesheets/bootstrap/_responsive-utilities.scss +0 -74
- data/generators/bootstrap3/public/stylesheets/bootstrap/bootstrap.css.scss +0 -49
- data/generators/bootstrap3/public/stylesheets/bootstrap.css +0 -5784
- data/lib/locomotive/wagon/generators/site/bootstrap2.rb +0 -34
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
.jumbotron {
|
|
7
|
-
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
|
-
|
|
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:
|
|
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
|
-
//
|
|
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
|
-
//
|
|
41
|
+
// Interactive list items
|
|
50
42
|
//
|
|
51
|
-
// Use anchor elements instead of `li`s or `div`s to create
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
|
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:
|
|
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
|
-
@
|
|
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
|
-
|
|
373
|
-
|
|
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:
|
|
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
|
-
|
|
165
|
+
> a {
|
|
166
166
|
text-align: center;
|
|
167
167
|
margin-bottom: 5px;
|
|
168
168
|
}
|