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
|
@@ -62,7 +62,7 @@ p {
|
|
|
62
62
|
.lead {
|
|
63
63
|
margin-bottom: $line-height-computed;
|
|
64
64
|
font-size: floor(($font-size-base * 1.15));
|
|
65
|
-
font-weight:
|
|
65
|
+
font-weight: 300;
|
|
66
66
|
line-height: 1.4;
|
|
67
67
|
|
|
68
68
|
@media (min-width: $screen-sm-min) {
|
|
@@ -74,18 +74,29 @@ p {
|
|
|
74
74
|
// Emphasis & misc
|
|
75
75
|
// -------------------------
|
|
76
76
|
|
|
77
|
-
// Ex: 14px base font *
|
|
77
|
+
// Ex: (12px small font / 14px base font) * 100% = about 85%
|
|
78
78
|
small,
|
|
79
|
-
.small
|
|
79
|
+
.small {
|
|
80
|
+
font-size: floor((100% * $font-size-small / $font-size-base));
|
|
81
|
+
}
|
|
80
82
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
mark,
|
|
84
|
+
.mark {
|
|
85
|
+
background-color: $state-warning-bg;
|
|
86
|
+
padding: .2em;
|
|
87
|
+
}
|
|
83
88
|
|
|
84
89
|
// Alignment
|
|
85
90
|
.text-left { text-align: left; }
|
|
86
91
|
.text-right { text-align: right; }
|
|
87
92
|
.text-center { text-align: center; }
|
|
88
93
|
.text-justify { text-align: justify; }
|
|
94
|
+
.text-nowrap { white-space: nowrap; }
|
|
95
|
+
|
|
96
|
+
// Transformation
|
|
97
|
+
.text-lowercase { text-transform: lowercase; }
|
|
98
|
+
.text-uppercase { text-transform: uppercase; }
|
|
99
|
+
.text-capitalize { text-transform: capitalize; }
|
|
89
100
|
|
|
90
101
|
// Contextual colors
|
|
91
102
|
.text-muted {
|
|
@@ -132,7 +143,7 @@ cite { font-style: normal; }
|
|
|
132
143
|
|
|
133
144
|
|
|
134
145
|
// Lists
|
|
135
|
-
//
|
|
146
|
+
// -------------------------
|
|
136
147
|
|
|
137
148
|
// Unordered and Ordered lists
|
|
138
149
|
ul,
|
|
@@ -147,15 +158,20 @@ ol {
|
|
|
147
158
|
|
|
148
159
|
// List options
|
|
149
160
|
|
|
150
|
-
//
|
|
151
|
-
|
|
161
|
+
// [converter] extracted from `.list-unstyled` for libsass compatibility
|
|
162
|
+
@mixin list-unstyled {
|
|
152
163
|
padding-left: 0;
|
|
153
164
|
list-style: none;
|
|
154
165
|
}
|
|
166
|
+
// [converter] extracted as `@mixin list-unstyled` for libsass compatibility
|
|
167
|
+
.list-unstyled {
|
|
168
|
+
@include list-unstyled;
|
|
169
|
+
}
|
|
170
|
+
|
|
155
171
|
|
|
156
172
|
// Inline turns list items into inline-block
|
|
157
173
|
.list-inline {
|
|
158
|
-
@
|
|
174
|
+
@include list-unstyled;
|
|
159
175
|
margin-left: -5px;
|
|
160
176
|
|
|
161
177
|
> li {
|
|
@@ -186,24 +202,28 @@ dd {
|
|
|
186
202
|
// Defaults to being stacked without any of the below styles applied, until the
|
|
187
203
|
// grid breakpoint is reached (default of ~768px).
|
|
188
204
|
|
|
189
|
-
|
|
190
|
-
|
|
205
|
+
.dl-horizontal {
|
|
206
|
+
dd {
|
|
207
|
+
@include clearfix; // Clear the floated `dt` if an empty `dd` is present
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
191
211
|
dt {
|
|
192
212
|
float: left;
|
|
193
|
-
width: ($
|
|
213
|
+
width: ($dl-horizontal-offset - 20);
|
|
194
214
|
clear: left;
|
|
195
215
|
text-align: right;
|
|
196
|
-
@include text-overflow
|
|
216
|
+
@include text-overflow;
|
|
197
217
|
}
|
|
198
218
|
dd {
|
|
199
|
-
margin-left: $
|
|
200
|
-
@include clearfix(); // Clear the floated `dt` if an empty `dd` is present
|
|
219
|
+
margin-left: $dl-horizontal-offset;
|
|
201
220
|
}
|
|
202
221
|
}
|
|
203
222
|
}
|
|
204
223
|
|
|
205
|
-
|
|
206
|
-
//
|
|
224
|
+
|
|
225
|
+
// Misc
|
|
226
|
+
// -------------------------
|
|
207
227
|
|
|
208
228
|
// Abbreviations and acronyms
|
|
209
229
|
abbr[title],
|
|
@@ -214,7 +234,7 @@ abbr[data-original-title] {
|
|
|
214
234
|
}
|
|
215
235
|
.initialism {
|
|
216
236
|
font-size: 90%;
|
|
217
|
-
text-
|
|
237
|
+
@extend .text-uppercase;
|
|
218
238
|
}
|
|
219
239
|
|
|
220
240
|
// Blockquotes
|
|
@@ -270,12 +290,6 @@ blockquote.pull-right {
|
|
|
270
290
|
}
|
|
271
291
|
}
|
|
272
292
|
|
|
273
|
-
// Quotes
|
|
274
|
-
blockquote:before,
|
|
275
|
-
blockquote:after {
|
|
276
|
-
content: "";
|
|
277
|
-
}
|
|
278
|
-
|
|
279
293
|
// Addresses
|
|
280
294
|
address {
|
|
281
295
|
margin-bottom: $line-height-computed;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
// -------------------------
|
|
8
8
|
|
|
9
9
|
.clearfix {
|
|
10
|
-
@include clearfix
|
|
10
|
+
@include clearfix;
|
|
11
11
|
}
|
|
12
12
|
.center-block {
|
|
13
|
-
@include center-block
|
|
13
|
+
@include center-block;
|
|
14
14
|
}
|
|
15
15
|
.pull-right {
|
|
16
16
|
float: right !important;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
visibility: hidden;
|
|
35
35
|
}
|
|
36
36
|
.text-hide {
|
|
37
|
-
@include text-hide
|
|
37
|
+
@include text-hide;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
|
|
45
45
|
.hidden {
|
|
46
46
|
display: none !important;
|
|
47
|
-
visibility: hidden !important;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// defaults to true if twbs-font-path function is present (no function => twbs-font-path('') parsed as string == right side)
|
|
3
|
-
// in Sass 3.3 this can be improved with: function-exists(twbs-font-path)
|
|
4
|
-
$bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")')) !default;
|
|
1
|
+
$bootstrap-sass-asset-helper: false !default;
|
|
5
2
|
//
|
|
6
3
|
// Variables
|
|
7
4
|
// --------------------------------------------------
|
|
@@ -11,13 +8,14 @@ $bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")
|
|
|
11
8
|
//
|
|
12
9
|
//## Gray and brand colors for use across Bootstrap.
|
|
13
10
|
|
|
14
|
-
$gray-
|
|
15
|
-
$gray-
|
|
16
|
-
$gray:
|
|
17
|
-
$gray
|
|
18
|
-
$gray-
|
|
11
|
+
$gray-base: #000 !default;
|
|
12
|
+
$gray-darker: lighten($gray-base, 13.5%) !default; // #222
|
|
13
|
+
$gray-dark: lighten($gray-base, 20%) !default; // #333
|
|
14
|
+
$gray: lighten($gray-base, 33.5%) !default; // #555
|
|
15
|
+
$gray-light: lighten($gray-base, 46.7%) !default; // #777
|
|
16
|
+
$gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
|
|
19
17
|
|
|
20
|
-
$brand-primary: #428bca !default;
|
|
18
|
+
$brand-primary: darken(#428bca, 6.5%) !default; // #337ab7
|
|
21
19
|
$brand-success: #5cb85c !default;
|
|
22
20
|
$brand-info: #5bc0de !default;
|
|
23
21
|
$brand-warning: #f0ad4e !default;
|
|
@@ -26,7 +24,7 @@ $brand-danger: #d9534f !default;
|
|
|
26
24
|
|
|
27
25
|
//== Scaffolding
|
|
28
26
|
//
|
|
29
|
-
|
|
27
|
+
//## Settings for some of the most global styles.
|
|
30
28
|
|
|
31
29
|
//** Background color for `<body>`.
|
|
32
30
|
$body-bg: #fff !default;
|
|
@@ -37,6 +35,8 @@ $text-color: $gray-dark !default;
|
|
|
37
35
|
$link-color: $brand-primary !default;
|
|
38
36
|
//** Link hover color set via `darken()` function.
|
|
39
37
|
$link-hover-color: darken($link-color, 15%) !default;
|
|
38
|
+
//** Link hover decoration.
|
|
39
|
+
$link-hover-decoration: underline !default;
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
//== Typography
|
|
@@ -72,14 +72,22 @@ $headings-line-height: 1.1 !default;
|
|
|
72
72
|
$headings-color: inherit !default;
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
//== Iconography
|
|
76
76
|
//
|
|
77
|
-
//## Specify custom
|
|
77
|
+
//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
//** Load fonts from this directory.
|
|
80
|
+
|
|
81
|
+
// [converter] If $bootstrap-sass-asset-helper if used, provide path relative to the assets load path.
|
|
82
|
+
// [converter] This is because some asset helpers, such as Sprockets, do not work with file-relative paths.
|
|
83
|
+
$icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "../fonts/bootstrap/") !default;
|
|
84
|
+
|
|
85
|
+
//** File name for all font files.
|
|
80
86
|
$icon-font-name: "glyphicons-halflings-regular" !default;
|
|
87
|
+
//** Element ID within SVG icon file.
|
|
81
88
|
$icon-font-svg-id: "glyphicons_halflingsregular" !default;
|
|
82
89
|
|
|
90
|
+
|
|
83
91
|
//== Components
|
|
84
92
|
//
|
|
85
93
|
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
|
@@ -96,7 +104,7 @@ $padding-small-horizontal: 10px !default;
|
|
|
96
104
|
$padding-xs-vertical: 1px !default;
|
|
97
105
|
$padding-xs-horizontal: 5px !default;
|
|
98
106
|
|
|
99
|
-
$line-height-large: 1.
|
|
107
|
+
$line-height-large: 1.3333333 !default; // extra decimals for Win 8.1 Chrome
|
|
100
108
|
$line-height-small: 1.5 !default;
|
|
101
109
|
|
|
102
110
|
$border-radius-base: 4px !default;
|
|
@@ -167,6 +175,11 @@ $btn-danger-border: darken($btn-danger-bg, 5%) !default;
|
|
|
167
175
|
|
|
168
176
|
$btn-link-disabled-color: $gray-light !default;
|
|
169
177
|
|
|
178
|
+
// Allows for customizing button radius independently from global border radius
|
|
179
|
+
$btn-border-radius-base: $border-radius-base !default;
|
|
180
|
+
$btn-border-radius-large: $border-radius-large !default;
|
|
181
|
+
$btn-border-radius-small: $border-radius-small !default;
|
|
182
|
+
|
|
170
183
|
|
|
171
184
|
//== Forms
|
|
172
185
|
//
|
|
@@ -181,13 +194,21 @@ $input-bg-disabled: $gray-lighter !default;
|
|
|
181
194
|
$input-color: $gray !default;
|
|
182
195
|
//** `<input>` border color
|
|
183
196
|
$input-border: #ccc !default;
|
|
184
|
-
|
|
197
|
+
|
|
198
|
+
// TODO: Rename `$input-border-radius` to `$input-border-radius-base` in v4
|
|
199
|
+
//** Default `.form-control` border radius
|
|
200
|
+
// This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
|
185
201
|
$input-border-radius: $border-radius-base !default;
|
|
202
|
+
//** Large `.form-control` border radius
|
|
203
|
+
$input-border-radius-large: $border-radius-large !default;
|
|
204
|
+
//** Small `.form-control` border radius
|
|
205
|
+
$input-border-radius-small: $border-radius-small !default;
|
|
206
|
+
|
|
186
207
|
//** Border color for inputs on focus
|
|
187
208
|
$input-border-focus: #66afe9 !default;
|
|
188
209
|
|
|
189
210
|
//** Placeholder text color
|
|
190
|
-
$input-color-placeholder:
|
|
211
|
+
$input-color-placeholder: #999 !default;
|
|
191
212
|
|
|
192
213
|
//** Default `.form-control` height
|
|
193
214
|
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
|
|
@@ -196,6 +217,9 @@ $input-height-large: (ceil($font-size-large * $line-height-large) +
|
|
|
196
217
|
//** Small `.form-control` height
|
|
197
218
|
$input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
|
|
198
219
|
|
|
220
|
+
//** `.form-group` margin
|
|
221
|
+
$form-group-margin-bottom: 15px !default;
|
|
222
|
+
|
|
199
223
|
$legend-color: $gray-dark !default;
|
|
200
224
|
$legend-border-color: #e5e5e5 !default;
|
|
201
225
|
|
|
@@ -204,6 +228,9 @@ $input-group-addon-bg: $gray-lighter !default;
|
|
|
204
228
|
//** Border color for textual input addons
|
|
205
229
|
$input-group-addon-border-color: $input-border !default;
|
|
206
230
|
|
|
231
|
+
//** Disabled cursor for form controls and buttons.
|
|
232
|
+
$cursor-disabled: not-allowed !default;
|
|
233
|
+
|
|
207
234
|
|
|
208
235
|
//== Dropdowns
|
|
209
236
|
//
|
|
@@ -236,7 +263,7 @@ $dropdown-link-disabled-color: $gray-light !default;
|
|
|
236
263
|
//** Text color for headers within dropdown menus.
|
|
237
264
|
$dropdown-header-color: $gray-light !default;
|
|
238
265
|
|
|
239
|
-
|
|
266
|
+
//** Deprecated `$dropdown-caret-color` as of v3.1.0
|
|
240
267
|
$dropdown-caret-color: #000 !default;
|
|
241
268
|
|
|
242
269
|
|
|
@@ -249,8 +276,8 @@ $dropdown-caret-color: #000 !default;
|
|
|
249
276
|
|
|
250
277
|
$zindex-navbar: 1000 !default;
|
|
251
278
|
$zindex-dropdown: 1000 !default;
|
|
252
|
-
$zindex-popover:
|
|
253
|
-
$zindex-tooltip:
|
|
279
|
+
$zindex-popover: 1060 !default;
|
|
280
|
+
$zindex-tooltip: 1070 !default;
|
|
254
281
|
$zindex-navbar-fixed: 1030 !default;
|
|
255
282
|
$zindex-modal-background: 1040 !default;
|
|
256
283
|
$zindex-modal: 1050 !default;
|
|
@@ -261,27 +288,32 @@ $zindex-modal: 1050 !default;
|
|
|
261
288
|
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
|
|
262
289
|
|
|
263
290
|
// Extra small screen / phone
|
|
264
|
-
|
|
291
|
+
//** Deprecated `$screen-xs` as of v3.0.1
|
|
265
292
|
$screen-xs: 480px !default;
|
|
293
|
+
//** Deprecated `$screen-xs-min` as of v3.2.0
|
|
266
294
|
$screen-xs-min: $screen-xs !default;
|
|
295
|
+
//** Deprecated `$screen-phone` as of v3.0.1
|
|
267
296
|
$screen-phone: $screen-xs-min !default;
|
|
268
297
|
|
|
269
298
|
// Small screen / tablet
|
|
270
|
-
|
|
299
|
+
//** Deprecated `$screen-sm` as of v3.0.1
|
|
271
300
|
$screen-sm: 768px !default;
|
|
272
301
|
$screen-sm-min: $screen-sm !default;
|
|
302
|
+
//** Deprecated `$screen-tablet` as of v3.0.1
|
|
273
303
|
$screen-tablet: $screen-sm-min !default;
|
|
274
304
|
|
|
275
305
|
// Medium screen / desktop
|
|
276
|
-
|
|
306
|
+
//** Deprecated `$screen-md` as of v3.0.1
|
|
277
307
|
$screen-md: 992px !default;
|
|
278
308
|
$screen-md-min: $screen-md !default;
|
|
309
|
+
//** Deprecated `$screen-desktop` as of v3.0.1
|
|
279
310
|
$screen-desktop: $screen-md-min !default;
|
|
280
311
|
|
|
281
312
|
// Large screen / wide desktop
|
|
282
|
-
|
|
313
|
+
//** Deprecated `$screen-lg` as of v3.0.1
|
|
283
314
|
$screen-lg: 1200px !default;
|
|
284
315
|
$screen-lg-min: $screen-lg !default;
|
|
316
|
+
//** Deprecated `$screen-lg-desktop` as of v3.0.1
|
|
285
317
|
$screen-lg-desktop: $screen-lg-min !default;
|
|
286
318
|
|
|
287
319
|
// So media queries don't overlap when required, provide a maximum
|
|
@@ -310,17 +342,17 @@ $grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
|
|
|
310
342
|
//## Define the maximum width of `.container` for different screen sizes.
|
|
311
343
|
|
|
312
344
|
// Small screen / tablet
|
|
313
|
-
$container-tablet: (
|
|
345
|
+
$container-tablet: (720px + $grid-gutter-width) !default;
|
|
314
346
|
//** For `$screen-sm-min` and up.
|
|
315
347
|
$container-sm: $container-tablet !default;
|
|
316
348
|
|
|
317
349
|
// Medium screen / desktop
|
|
318
|
-
$container-desktop: (
|
|
350
|
+
$container-desktop: (940px + $grid-gutter-width) !default;
|
|
319
351
|
//** For `$screen-md-min` and up.
|
|
320
352
|
$container-md: $container-desktop !default;
|
|
321
353
|
|
|
322
354
|
// Large screen / wide desktop
|
|
323
|
-
$container-large-desktop: (
|
|
355
|
+
$container-large-desktop: (1140px + $grid-gutter-width) !default;
|
|
324
356
|
//** For `$screen-lg-min` and up.
|
|
325
357
|
$container-lg: $container-large-desktop !default;
|
|
326
358
|
|
|
@@ -361,14 +393,14 @@ $navbar-default-toggle-icon-bar-bg: #888 !default;
|
|
|
361
393
|
$navbar-default-toggle-border-color: #ddd !default;
|
|
362
394
|
|
|
363
395
|
|
|
364
|
-
|
|
396
|
+
//=== Inverted navbar
|
|
365
397
|
// Reset inverted navbar basics
|
|
366
|
-
$navbar-inverse-color: $gray-light !default;
|
|
398
|
+
$navbar-inverse-color: lighten($gray-light, 15%) !default;
|
|
367
399
|
$navbar-inverse-bg: #222 !default;
|
|
368
400
|
$navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default;
|
|
369
401
|
|
|
370
402
|
// Inverted navbar links
|
|
371
|
-
$navbar-inverse-link-color: $gray-light !default;
|
|
403
|
+
$navbar-inverse-link-color: lighten($gray-light, 15%) !default;
|
|
372
404
|
$navbar-inverse-link-hover-color: #fff !default;
|
|
373
405
|
$navbar-inverse-link-hover-bg: transparent !default;
|
|
374
406
|
$navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
|
|
@@ -398,8 +430,6 @@ $nav-link-hover-bg: $gray-lighter !default;
|
|
|
398
430
|
$nav-disabled-link-color: $gray-light !default;
|
|
399
431
|
$nav-disabled-link-hover-color: $gray-light !default;
|
|
400
432
|
|
|
401
|
-
$nav-open-link-hover-color: #fff !default;
|
|
402
|
-
|
|
403
433
|
//== Tabs
|
|
404
434
|
$nav-tabs-border-color: #ddd !default;
|
|
405
435
|
|
|
@@ -464,6 +494,7 @@ $jumbotron-color: inherit !default;
|
|
|
464
494
|
$jumbotron-bg: $gray-lighter !default;
|
|
465
495
|
$jumbotron-heading-color: inherit !default;
|
|
466
496
|
$jumbotron-font-size: ceil(($font-size-base * 1.5)) !default;
|
|
497
|
+
$jumbotron-heading-font-size: ceil(($font-size-base * 4.5)) !default;
|
|
467
498
|
|
|
468
499
|
|
|
469
500
|
//== Form states and alerts
|
|
@@ -524,12 +555,12 @@ $popover-title-bg: darken($popover-bg, 3%) !default;
|
|
|
524
555
|
//** Popover arrow width
|
|
525
556
|
$popover-arrow-width: 10px !default;
|
|
526
557
|
//** Popover arrow color
|
|
527
|
-
$popover-arrow-color:
|
|
558
|
+
$popover-arrow-color: $popover-bg !default;
|
|
528
559
|
|
|
529
560
|
//** Popover outer arrow width
|
|
530
561
|
$popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
|
|
531
562
|
//** Popover outer arrow color
|
|
532
|
-
$popover-arrow-outer-color:
|
|
563
|
+
$popover-arrow-outer-color: fade_in($popover-border-color, 0.05) !default;
|
|
533
564
|
//** Popover outer arrow fallback color
|
|
534
565
|
$popover-arrow-outer-fallback-color: darken($popover-fallback-border-color, 20%) !default;
|
|
535
566
|
|
|
@@ -562,7 +593,7 @@ $label-link-hover-color: #fff !default;
|
|
|
562
593
|
//##
|
|
563
594
|
|
|
564
595
|
//** Padding applied to the modal body
|
|
565
|
-
$modal-inner-padding:
|
|
596
|
+
$modal-inner-padding: 15px !default;
|
|
566
597
|
|
|
567
598
|
//** Padding applied to the modal title
|
|
568
599
|
$modal-title-padding: 15px !default;
|
|
@@ -623,6 +654,8 @@ $alert-danger-border: $state-danger-border !default;
|
|
|
623
654
|
$progress-bg: #f5f5f5 !default;
|
|
624
655
|
//** Progress bar text color
|
|
625
656
|
$progress-bar-color: #fff !default;
|
|
657
|
+
//** Variable for setting rounded corners on progress bar.
|
|
658
|
+
$progress-border-radius: $border-radius-base !default;
|
|
626
659
|
|
|
627
660
|
//** Default progress bar color
|
|
628
661
|
$progress-bar-bg: $brand-primary !default;
|
|
@@ -647,17 +680,26 @@ $list-group-border: #ddd !default;
|
|
|
647
680
|
//** List group border radius
|
|
648
681
|
$list-group-border-radius: $border-radius-base !default;
|
|
649
682
|
|
|
650
|
-
//** Background color of single list
|
|
683
|
+
//** Background color of single list items on hover
|
|
651
684
|
$list-group-hover-bg: #f5f5f5 !default;
|
|
652
|
-
//** Text color of active list
|
|
685
|
+
//** Text color of active list items
|
|
653
686
|
$list-group-active-color: $component-active-color !default;
|
|
654
|
-
//** Background color of active list
|
|
687
|
+
//** Background color of active list items
|
|
655
688
|
$list-group-active-bg: $component-active-bg !default;
|
|
656
689
|
//** Border color of active list elements
|
|
657
690
|
$list-group-active-border: $list-group-active-bg !default;
|
|
691
|
+
//** Text color for content within active list items
|
|
658
692
|
$list-group-active-text-color: lighten($list-group-active-bg, 40%) !default;
|
|
659
693
|
|
|
694
|
+
//** Text color of disabled list items
|
|
695
|
+
$list-group-disabled-color: $gray-light !default;
|
|
696
|
+
//** Background color of disabled list items
|
|
697
|
+
$list-group-disabled-bg: $gray-lighter !default;
|
|
698
|
+
//** Text color for content within disabled list items
|
|
699
|
+
$list-group-disabled-text-color: $list-group-disabled-color !default;
|
|
700
|
+
|
|
660
701
|
$list-group-link-color: #555 !default;
|
|
702
|
+
$list-group-link-hover-color: $list-group-link-color !default;
|
|
661
703
|
$list-group-link-heading-color: #333 !default;
|
|
662
704
|
|
|
663
705
|
|
|
@@ -667,6 +709,8 @@ $list-group-link-heading-color: #333 !default;
|
|
|
667
709
|
|
|
668
710
|
$panel-bg: #fff !default;
|
|
669
711
|
$panel-body-padding: 15px !default;
|
|
712
|
+
$panel-heading-padding: 10px 15px !default;
|
|
713
|
+
$panel-footer-padding: $panel-heading-padding !default;
|
|
670
714
|
$panel-border-radius: $border-radius-base !default;
|
|
671
715
|
|
|
672
716
|
//** Border color for elements within panels
|
|
@@ -806,6 +850,8 @@ $pre-scrollable-max-height: 340px !default;
|
|
|
806
850
|
//
|
|
807
851
|
//##
|
|
808
852
|
|
|
853
|
+
//** Horizontal offset for forms and lists.
|
|
854
|
+
$component-offset-horizontal: 180px !default;
|
|
809
855
|
//** Text muted color
|
|
810
856
|
$text-muted: $gray-light !default;
|
|
811
857
|
//** Abbreviations and acronyms border color
|
|
@@ -820,14 +866,7 @@ $blockquote-font-size: ($font-size-base * 1.25) !default;
|
|
|
820
866
|
$blockquote-border-color: $gray-lighter !default;
|
|
821
867
|
//** Page header border color
|
|
822
868
|
$page-header-border-color: $gray-lighter !default;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
//== Miscellaneous
|
|
826
|
-
//
|
|
827
|
-
//##
|
|
828
|
-
|
|
869
|
+
//** Width of horizontal description list titles
|
|
870
|
+
$dl-horizontal-offset: $component-offset-horizontal !default;
|
|
829
871
|
//** Horizontal line color.
|
|
830
872
|
$hr-border: $gray-lighter !default;
|
|
831
|
-
|
|
832
|
-
//** Horizontal offset for forms and lists.
|
|
833
|
-
$component-offset-horizontal: 180px !default;
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Alerts
|
|
2
|
+
|
|
3
|
+
@mixin alert-variant($background, $border, $text-color) {
|
|
4
|
+
background-color: $background;
|
|
5
|
+
border-color: $border;
|
|
6
|
+
color: $text-color;
|
|
7
|
+
|
|
8
|
+
hr {
|
|
9
|
+
border-top-color: darken($border, 5%);
|
|
10
|
+
}
|
|
11
|
+
.alert-link {
|
|
12
|
+
color: darken($text-color, 10%);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Single side border-radius
|
|
2
|
+
|
|
3
|
+
@mixin border-top-radius($radius) {
|
|
4
|
+
border-top-right-radius: $radius;
|
|
5
|
+
border-top-left-radius: $radius;
|
|
6
|
+
}
|
|
7
|
+
@mixin border-right-radius($radius) {
|
|
8
|
+
border-bottom-right-radius: $radius;
|
|
9
|
+
border-top-right-radius: $radius;
|
|
10
|
+
}
|
|
11
|
+
@mixin border-bottom-radius($radius) {
|
|
12
|
+
border-bottom-right-radius: $radius;
|
|
13
|
+
border-bottom-left-radius: $radius;
|
|
14
|
+
}
|
|
15
|
+
@mixin border-left-radius($radius) {
|
|
16
|
+
border-bottom-left-radius: $radius;
|
|
17
|
+
border-top-left-radius: $radius;
|
|
18
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Button variants
|
|
2
|
+
//
|
|
3
|
+
// Easily pump out default styles, as well as :hover, :focus, :active,
|
|
4
|
+
// and disabled options for all buttons
|
|
5
|
+
|
|
6
|
+
@mixin button-variant($color, $background, $border) {
|
|
7
|
+
color: $color;
|
|
8
|
+
background-color: $background;
|
|
9
|
+
border-color: $border;
|
|
10
|
+
|
|
11
|
+
&:focus,
|
|
12
|
+
&.focus {
|
|
13
|
+
color: $color;
|
|
14
|
+
background-color: darken($background, 10%);
|
|
15
|
+
border-color: darken($border, 25%);
|
|
16
|
+
}
|
|
17
|
+
&:hover {
|
|
18
|
+
color: $color;
|
|
19
|
+
background-color: darken($background, 10%);
|
|
20
|
+
border-color: darken($border, 12%);
|
|
21
|
+
}
|
|
22
|
+
&:active,
|
|
23
|
+
&.active,
|
|
24
|
+
.open > &.dropdown-toggle {
|
|
25
|
+
color: $color;
|
|
26
|
+
background-color: darken($background, 10%);
|
|
27
|
+
border-color: darken($border, 12%);
|
|
28
|
+
|
|
29
|
+
&:hover,
|
|
30
|
+
&:focus,
|
|
31
|
+
&.focus {
|
|
32
|
+
color: $color;
|
|
33
|
+
background-color: darken($background, 17%);
|
|
34
|
+
border-color: darken($border, 25%);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&:active,
|
|
38
|
+
&.active,
|
|
39
|
+
.open > &.dropdown-toggle {
|
|
40
|
+
background-image: none;
|
|
41
|
+
}
|
|
42
|
+
&.disabled,
|
|
43
|
+
&[disabled],
|
|
44
|
+
fieldset[disabled] & {
|
|
45
|
+
&,
|
|
46
|
+
&:hover,
|
|
47
|
+
&:focus,
|
|
48
|
+
&.focus,
|
|
49
|
+
&:active,
|
|
50
|
+
&.active {
|
|
51
|
+
background-color: $background;
|
|
52
|
+
border-color: $border;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.badge {
|
|
57
|
+
color: $background;
|
|
58
|
+
background-color: $color;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Button sizes
|
|
63
|
+
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
|
64
|
+
padding: $padding-vertical $padding-horizontal;
|
|
65
|
+
font-size: $font-size;
|
|
66
|
+
line-height: $line-height;
|
|
67
|
+
border-radius: $border-radius;
|
|
68
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Clearfix
|
|
2
|
+
//
|
|
3
|
+
// For modern browsers
|
|
4
|
+
// 1. The space content is one way to avoid an Opera bug when the
|
|
5
|
+
// contenteditable attribute is included anywhere else in the document.
|
|
6
|
+
// Otherwise it causes space to appear at the top and bottom of elements
|
|
7
|
+
// that are clearfixed.
|
|
8
|
+
// 2. The use of `table` rather than `block` is only necessary if using
|
|
9
|
+
// `:before` to contain the top-margins of child elements.
|
|
10
|
+
//
|
|
11
|
+
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
|
12
|
+
|
|
13
|
+
@mixin clearfix() {
|
|
14
|
+
&:before,
|
|
15
|
+
&:after {
|
|
16
|
+
content: " "; // 1
|
|
17
|
+
display: table; // 2
|
|
18
|
+
}
|
|
19
|
+
&:after {
|
|
20
|
+
clear: both;
|
|
21
|
+
}
|
|
22
|
+
}
|