jekyll-bootstrap 4.0.0.pre.beta.2.1

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.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +46 -0
  4. data/_includes/footer.html +16 -0
  5. data/_includes/head.html +16 -0
  6. data/_includes/header.html +24 -0
  7. data/_layouts/default.html +9 -0
  8. data/_layouts/home.html +71 -0
  9. data/_layouts/page.html +11 -0
  10. data/_layouts/post.html +24 -0
  11. data/_sass/_alert.scss +49 -0
  12. data/_sass/_badge.scss +47 -0
  13. data/_sass/_breadcrumb.scss +38 -0
  14. data/_sass/_button-group.scss +207 -0
  15. data/_sass/_buttons.scss +136 -0
  16. data/_sass/_card.scss +259 -0
  17. data/_sass/_carousel.scss +191 -0
  18. data/_sass/_close.scss +29 -0
  19. data/_sass/_code.scss +64 -0
  20. data/_sass/_custom-forms.scss +257 -0
  21. data/_sass/_dropdown.scss +103 -0
  22. data/_sass/_forms.scss +358 -0
  23. data/_sass/_functions.scss +86 -0
  24. data/_sass/_grid.scss +52 -0
  25. data/_sass/_images.scss +43 -0
  26. data/_sass/_input-group.scss +186 -0
  27. data/_sass/_jumbotron.scss +16 -0
  28. data/_sass/_list-group.scss +114 -0
  29. data/_sass/_media.scss +8 -0
  30. data/_sass/_mixins.scss +42 -0
  31. data/_sass/_modal.scss +153 -0
  32. data/_sass/_nav.scss +118 -0
  33. data/_sass/_navbar.scss +306 -0
  34. data/_sass/_pagination.scss +64 -0
  35. data/_sass/_popover.scss +194 -0
  36. data/_sass/_print.scss +110 -0
  37. data/_sass/_progress.scss +30 -0
  38. data/_sass/_reboot.scss +504 -0
  39. data/_sass/_root.scss +19 -0
  40. data/_sass/_tables.scss +180 -0
  41. data/_sass/_tooltip.scss +107 -0
  42. data/_sass/_transitions.scss +36 -0
  43. data/_sass/_type.scss +125 -0
  44. data/_sass/_utilities.scss +14 -0
  45. data/_sass/_variables.scss +828 -0
  46. data/_sass/bootstrap-grid.scss +35 -0
  47. data/_sass/bootstrap-reboot.scss +12 -0
  48. data/_sass/bootstrap.scss +42 -0
  49. data/_sass/mixins/_alert.scss +13 -0
  50. data/_sass/mixins/_background-variant.scss +20 -0
  51. data/_sass/mixins/_badge.scss +12 -0
  52. data/_sass/mixins/_border-radius.scss +35 -0
  53. data/_sass/mixins/_box-shadow.scss +5 -0
  54. data/_sass/mixins/_breakpoints.scss +119 -0
  55. data/_sass/mixins/_buttons.scss +94 -0
  56. data/_sass/mixins/_caret.scss +35 -0
  57. data/_sass/mixins/_clearfix.scss +7 -0
  58. data/_sass/mixins/_float.scss +11 -0
  59. data/_sass/mixins/_forms.scss +108 -0
  60. data/_sass/mixins/_gradients.scss +45 -0
  61. data/_sass/mixins/_grid-framework.scss +69 -0
  62. data/_sass/mixins/_grid.scss +52 -0
  63. data/_sass/mixins/_hover.scss +61 -0
  64. data/_sass/mixins/_image.scss +36 -0
  65. data/_sass/mixins/_list-group.scss +24 -0
  66. data/_sass/mixins/_lists.scss +7 -0
  67. data/_sass/mixins/_nav-divider.scss +10 -0
  68. data/_sass/mixins/_navbar-align.scss +10 -0
  69. data/_sass/mixins/_pagination.scss +22 -0
  70. data/_sass/mixins/_reset-text.scss +17 -0
  71. data/_sass/mixins/_resize.scss +6 -0
  72. data/_sass/mixins/_screen-reader.scss +35 -0
  73. data/_sass/mixins/_size.scss +6 -0
  74. data/_sass/mixins/_table-row.scss +30 -0
  75. data/_sass/mixins/_text-emphasis.scss +14 -0
  76. data/_sass/mixins/_text-hide.scss +8 -0
  77. data/_sass/mixins/_text-truncate.scss +8 -0
  78. data/_sass/mixins/_transition.scss +9 -0
  79. data/_sass/mixins/_visibility.scss +7 -0
  80. data/_sass/syntax_highlight.scss +70 -0
  81. data/_sass/utilities/_align.scss +8 -0
  82. data/_sass/utilities/_background.scss +19 -0
  83. data/_sass/utilities/_borders.scss +54 -0
  84. data/_sass/utilities/_clearfix.scss +3 -0
  85. data/_sass/utilities/_display.scss +56 -0
  86. data/_sass/utilities/_embed.scss +52 -0
  87. data/_sass/utilities/_flex.scss +46 -0
  88. data/_sass/utilities/_float.scss +9 -0
  89. data/_sass/utilities/_position.scss +36 -0
  90. data/_sass/utilities/_screenreaders.scss +11 -0
  91. data/_sass/utilities/_sizing.scss +12 -0
  92. data/_sass/utilities/_spacing.scss +51 -0
  93. data/_sass/utilities/_text.scss +52 -0
  94. data/_sass/utilities/_visibility.scss +11 -0
  95. data/assets/css/main.scss +15 -0
  96. metadata +195 -0
@@ -0,0 +1,358 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ //
4
+ // Textual form controls
5
+ //
6
+
7
+ .form-control {
8
+ display: block;
9
+ width: 100%;
10
+ padding: $input-btn-padding-y $input-btn-padding-x;
11
+ font-size: $font-size-base;
12
+ line-height: $input-btn-line-height;
13
+ color: $input-color;
14
+ background-color: $input-bg;
15
+ // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214.
16
+ background-image: none;
17
+ background-clip: padding-box;
18
+ border: $input-btn-border-width solid $input-border-color;
19
+
20
+ // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
21
+ @if $enable-rounded {
22
+ // Manually use the if/else instead of the mixin to account for iOS override
23
+ border-radius: $input-border-radius;
24
+ } @else {
25
+ // Otherwise undo the iOS default
26
+ border-radius: 0;
27
+ }
28
+
29
+ @include box-shadow($input-box-shadow);
30
+ @include transition($input-transition);
31
+
32
+ // Unstyle the caret on `<select>`s in IE10+.
33
+ &::-ms-expand {
34
+ background-color: transparent;
35
+ border: 0;
36
+ }
37
+
38
+ // Customize the `:focus` state to imitate native WebKit styles.
39
+ @include form-control-focus();
40
+
41
+ // Placeholder
42
+ &::placeholder {
43
+ color: $input-placeholder-color;
44
+ // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
45
+ opacity: 1;
46
+ }
47
+
48
+ // Disabled and read-only inputs
49
+ //
50
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
51
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
52
+ // don't honor that edge case; we style them as disabled anyway.
53
+ &:disabled,
54
+ &[readonly] {
55
+ background-color: $input-disabled-bg;
56
+ // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
57
+ opacity: 1;
58
+ }
59
+ }
60
+
61
+ select.form-control {
62
+ &:not([size]):not([multiple]) {
63
+ height: $input-height;
64
+ }
65
+
66
+ &:focus::-ms-value {
67
+ // Suppress the nested default white text on blue background highlight given to
68
+ // the selected option text when the (still closed) <select> receives focus
69
+ // in IE and (under certain conditions) Edge, as it looks bad and cannot be made to
70
+ // match the appearance of the native widget.
71
+ // See https://github.com/twbs/bootstrap/issues/19398.
72
+ color: $input-color;
73
+ background-color: $input-bg;
74
+ }
75
+ }
76
+
77
+ // Make file inputs better match text inputs by forcing them to new lines.
78
+ .form-control-file,
79
+ .form-control-range {
80
+ display: block;
81
+ }
82
+
83
+
84
+ //
85
+ // Labels
86
+ //
87
+
88
+ // For use with horizontal and inline forms, when you need the label text to
89
+ // align with the form controls.
90
+ .col-form-label {
91
+ padding-top: calc(#{$input-btn-padding-y} + #{$input-btn-border-width});
92
+ padding-bottom: calc(#{$input-btn-padding-y} + #{$input-btn-border-width});
93
+ margin-bottom: 0; // Override the `<label>` default
94
+ line-height: $input-btn-line-height;
95
+ }
96
+
97
+ .col-form-label-lg {
98
+ padding-top: calc(#{$input-btn-padding-y-lg} + #{$input-btn-border-width});
99
+ padding-bottom: calc(#{$input-btn-padding-y-lg} + #{$input-btn-border-width});
100
+ font-size: $font-size-lg;
101
+ line-height: $input-btn-line-height-lg;
102
+ }
103
+
104
+ .col-form-label-sm {
105
+ padding-top: calc(#{$input-btn-padding-y-sm} + #{$input-btn-border-width});
106
+ padding-bottom: calc(#{$input-btn-padding-y-sm} + #{$input-btn-border-width});
107
+ font-size: $font-size-sm;
108
+ line-height: $input-btn-line-height-sm;
109
+ }
110
+
111
+
112
+ //
113
+ // Legends
114
+ //
115
+
116
+ // For use with horizontal and inline forms, when you need the legend text to
117
+ // be the same size as regular labels, and to align with the form controls.
118
+ .col-form-legend {
119
+ padding-top: $input-btn-padding-y;
120
+ padding-bottom: $input-btn-padding-y;
121
+ margin-bottom: 0;
122
+ font-size: $font-size-base;
123
+ }
124
+
125
+
126
+ // Readonly controls as plain text
127
+ //
128
+ // Apply class to a readonly input to make it appear like regular plain
129
+ // text (without any border, background color, focus indicator)
130
+
131
+ .form-control-plaintext {
132
+ padding-top: $input-btn-padding-y;
133
+ padding-bottom: $input-btn-padding-y;
134
+ margin-bottom: 0; // match inputs if this class comes on inputs with default margins
135
+ line-height: $input-btn-line-height;
136
+ background-color: transparent;
137
+ border: solid transparent;
138
+ border-width: $input-btn-border-width 0;
139
+
140
+ &.form-control-sm,
141
+ &.form-control-lg {
142
+ padding-right: 0;
143
+ padding-left: 0;
144
+ }
145
+ }
146
+
147
+
148
+ // Form control sizing
149
+ //
150
+ // Build on `.form-control` with modifier classes to decrease or increase the
151
+ // height and font-size of form controls.
152
+ //
153
+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
154
+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
155
+
156
+ .form-control-sm {
157
+ padding: $input-btn-padding-y-sm $input-btn-padding-x-sm;
158
+ font-size: $font-size-sm;
159
+ line-height: $input-btn-line-height-sm;
160
+ @include border-radius($input-border-radius-sm);
161
+ }
162
+
163
+ select.form-control-sm {
164
+ &:not([size]):not([multiple]) {
165
+ height: $input-height-sm;
166
+ }
167
+ }
168
+
169
+ .form-control-lg {
170
+ padding: $input-btn-padding-y-lg $input-btn-padding-x-lg;
171
+ font-size: $font-size-lg;
172
+ line-height: $input-btn-line-height-lg;
173
+ @include border-radius($input-border-radius-lg);
174
+ }
175
+
176
+ select.form-control-lg {
177
+ &:not([size]):not([multiple]) {
178
+ height: $input-height-lg;
179
+ }
180
+ }
181
+
182
+
183
+ // Form groups
184
+ //
185
+ // Designed to help with the organization and spacing of vertical forms. For
186
+ // horizontal forms, use the predefined grid classes.
187
+
188
+ .form-group {
189
+ margin-bottom: $form-group-margin-bottom;
190
+ }
191
+
192
+ .form-text {
193
+ display: block;
194
+ margin-top: $form-text-margin-top;
195
+ }
196
+
197
+
198
+ // Form grid
199
+ //
200
+ // Special replacement for our grid system's `.row` for tighter form layouts.
201
+
202
+ .form-row {
203
+ display: flex;
204
+ flex-wrap: wrap;
205
+ margin-right: -5px;
206
+ margin-left: -5px;
207
+
208
+ > .col,
209
+ > [class*="col-"] {
210
+ padding-right: 5px;
211
+ padding-left: 5px;
212
+ }
213
+ }
214
+
215
+
216
+ // Checkboxes and radios
217
+ //
218
+ // Indent the labels to position radios/checkboxes as hanging controls.
219
+
220
+ .form-check {
221
+ position: relative;
222
+ display: block;
223
+ margin-bottom: $form-check-margin-bottom;
224
+
225
+ &.disabled {
226
+ .form-check-label {
227
+ color: $text-muted;
228
+ }
229
+ }
230
+ }
231
+
232
+ .form-check-label {
233
+ padding-left: $form-check-input-gutter;
234
+ margin-bottom: 0; // Override default `<label>` bottom margin
235
+ }
236
+
237
+ .form-check-input {
238
+ position: absolute;
239
+ margin-top: $form-check-input-margin-y;
240
+ margin-left: -$form-check-input-gutter;
241
+ }
242
+
243
+ // Radios and checkboxes on same line
244
+ .form-check-inline {
245
+ display: inline-block;
246
+ margin-right: $form-check-inline-margin-x;
247
+
248
+ .form-check-label {
249
+ vertical-align: middle;
250
+ }
251
+ }
252
+
253
+
254
+ // Form validation
255
+ //
256
+ // Provide feedback to users when form field values are valid or invalid. Works
257
+ // primarily for client-side validation via scoped `:invalid` and `:valid`
258
+ // pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
259
+ // server side validation.
260
+
261
+ @include form-validation-state("valid", $form-feedback-valid-color);
262
+ @include form-validation-state("invalid", $form-feedback-invalid-color);
263
+
264
+ // Inline forms
265
+ //
266
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
267
+ // forms begin stacked on extra small (mobile) devices and then go inline when
268
+ // viewports reach <768px.
269
+ //
270
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
271
+ // default HTML form controls and our custom form controls (e.g., input groups).
272
+
273
+ .form-inline {
274
+ display: flex;
275
+ flex-flow: row wrap;
276
+ align-items: center; // Prevent shorter elements from growing to same height as others (e.g., small buttons growing to normal sized button height)
277
+
278
+ // Because we use flex, the initial sizing of checkboxes is collapsed and
279
+ // doesn't occupy the full-width (which is what we want for xs grid tier),
280
+ // so we force that here.
281
+ .form-check {
282
+ width: 100%;
283
+ }
284
+
285
+ // Kick in the inline
286
+ @include media-breakpoint-up(sm) {
287
+ label {
288
+ display: flex;
289
+ align-items: center;
290
+ justify-content: center;
291
+ margin-bottom: 0;
292
+ }
293
+
294
+ // Inline-block all the things for "inline"
295
+ .form-group {
296
+ display: flex;
297
+ flex: 0 0 auto;
298
+ flex-flow: row wrap;
299
+ align-items: center;
300
+ margin-bottom: 0;
301
+ }
302
+
303
+ // Allow folks to *not* use `.form-group`
304
+ .form-control {
305
+ display: inline-block;
306
+ width: auto; // Prevent labels from stacking above inputs in `.form-group`
307
+ vertical-align: middle;
308
+ }
309
+
310
+ // Make static controls behave like regular ones
311
+ .form-control-plaintext {
312
+ display: inline-block;
313
+ }
314
+
315
+ .input-group {
316
+ width: auto;
317
+ }
318
+
319
+ // Remove default margin on radios/checkboxes that were used for stacking, and
320
+ // then undo the floating of radios and checkboxes to match.
321
+ .form-check {
322
+ display: flex;
323
+ align-items: center;
324
+ justify-content: center;
325
+ width: auto;
326
+ margin-top: 0;
327
+ margin-bottom: 0;
328
+ }
329
+ .form-check-label {
330
+ padding-left: 0;
331
+ }
332
+ .form-check-input {
333
+ position: relative;
334
+ margin-top: 0;
335
+ margin-right: $form-check-input-margin-x;
336
+ margin-left: 0;
337
+ }
338
+
339
+ // Custom form controls
340
+ .custom-control {
341
+ display: flex;
342
+ align-items: center;
343
+ justify-content: center;
344
+ padding-left: 0;
345
+ }
346
+ .custom-control-indicator {
347
+ position: static;
348
+ display: inline-block;
349
+ margin-right: $form-check-input-margin-x; // Flexbox alignment means we lose our HTML space here, so we compensate.
350
+ vertical-align: text-bottom;
351
+ }
352
+
353
+ // Re-override the feedback icon.
354
+ .has-feedback .form-control-feedback {
355
+ top: 0;
356
+ }
357
+ }
358
+ }
@@ -0,0 +1,86 @@
1
+ // Bootstrap functions
2
+ //
3
+ // Utility mixins and functions for evalutating source code across our variables, maps, and mixins.
4
+
5
+ // Ascending
6
+ // Used to evaluate Sass maps like our grid breakpoints.
7
+ @mixin _assert-ascending($map, $map-name) {
8
+ $prev-key: null;
9
+ $prev-num: null;
10
+ @each $key, $num in $map {
11
+ @if $prev-num == null {
12
+ // Do nothing
13
+ } @else if not comparable($prev-num, $num) {
14
+ @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
15
+ } @else if $prev-num >= $num {
16
+ @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
17
+ }
18
+ $prev-key: $key;
19
+ $prev-num: $num;
20
+ }
21
+ }
22
+
23
+ // Starts at zero
24
+ // Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0.
25
+ @mixin _assert-starts-at-zero($map) {
26
+ $values: map-values($map);
27
+ $first-value: nth($values, 1);
28
+ @if $first-value != 0 {
29
+ @warn "First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}.";
30
+ }
31
+ }
32
+
33
+ // Replace `$search` with `$replace` in `$string`
34
+ // Used on our SVG icon backgrounds for custom forms.
35
+ //
36
+ // @author Hugo Giraudel
37
+ // @param {String} $string - Initial string
38
+ // @param {String} $search - Substring to replace
39
+ // @param {String} $replace ('') - New value
40
+ // @return {String} - Updated string
41
+ @function str-replace($string, $search, $replace: "") {
42
+ $index: str-index($string, $search);
43
+
44
+ @if $index {
45
+ @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
46
+ }
47
+
48
+ @return $string;
49
+ }
50
+
51
+ // Color contrast
52
+ @function color-yiq($color) {
53
+ $r: red($color);
54
+ $g: green($color);
55
+ $b: blue($color);
56
+
57
+ $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
58
+
59
+ @if ($yiq >= 150) {
60
+ @return #111;
61
+ } @else {
62
+ @return #fff;
63
+ }
64
+ }
65
+
66
+ // Retreive color Sass maps
67
+ @function color($key: "blue") {
68
+ @return map-get($colors, $key);
69
+ }
70
+
71
+ @function theme-color($key: "primary") {
72
+ @return map-get($theme-colors, $key);
73
+ }
74
+
75
+ @function gray($key: "100") {
76
+ @return map-get($grays, $key);
77
+ }
78
+
79
+ // Request a theme color level
80
+ @function theme-color-level($color-name: "primary", $level: 0) {
81
+ $color: theme-color($color-name);
82
+ $color-base: if($level > 0, #000, #fff);
83
+ $level: abs($level);
84
+
85
+ @return mix($color-base, $color, $level * $theme-color-interval);
86
+ }
@@ -0,0 +1,52 @@
1
+ // Container widths
2
+ //
3
+ // Set the container width, and override it for fixed navbars in media queries.
4
+
5
+ @if $enable-grid-classes {
6
+ .container {
7
+ @include make-container();
8
+ @include make-container-max-widths();
9
+ }
10
+ }
11
+
12
+ // Fluid container
13
+ //
14
+ // Utilizes the mixin meant for fixed width containers, but with 100% width for
15
+ // fluid, full width layouts.
16
+
17
+ @if $enable-grid-classes {
18
+ .container-fluid {
19
+ @include make-container();
20
+ }
21
+ }
22
+
23
+ // Row
24
+ //
25
+ // Rows contain and clear the floats of your columns.
26
+
27
+ @if $enable-grid-classes {
28
+ .row {
29
+ @include make-row();
30
+ }
31
+
32
+ // Remove the negative margin from default .row, then the horizontal padding
33
+ // from all immediate children columns (to prevent runaway style inheritance).
34
+ .no-gutters {
35
+ margin-right: 0;
36
+ margin-left: 0;
37
+
38
+ > .col,
39
+ > [class*="col-"] {
40
+ padding-right: 0;
41
+ padding-left: 0;
42
+ }
43
+ }
44
+ }
45
+
46
+ // Columns
47
+ //
48
+ // Common styles for small and large grid columns
49
+
50
+ @if $enable-grid-classes {
51
+ @include make-grid-columns();
52
+ }