owasp-td-jekyll 0.1.0

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 (129) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +202 -0
  3. data/README.md +212 -0
  4. data/_includes/head.html +11 -0
  5. data/_includes/navbar.html +33 -0
  6. data/_includes/sidebar.html +55 -0
  7. data/_layouts/default.html +15 -0
  8. data/_layouts/page.html +11 -0
  9. data/_layouts/post.html +5 -0
  10. data/_sass/bootstrap-theme.scss +15 -0
  11. data/_sass/bootstrap/LICENSE +22 -0
  12. data/_sass/bootstrap/_alert.scss +52 -0
  13. data/_sass/bootstrap/_badge.scss +54 -0
  14. data/_sass/bootstrap/_breadcrumb.scss +44 -0
  15. data/_sass/bootstrap/_button-group.scss +163 -0
  16. data/_sass/bootstrap/_buttons.scss +142 -0
  17. data/_sass/bootstrap/_card.scss +286 -0
  18. data/_sass/bootstrap/_carousel.scss +197 -0
  19. data/_sass/bootstrap/_close.scss +40 -0
  20. data/_sass/bootstrap/_code.scss +48 -0
  21. data/_sass/bootstrap/_custom-forms.scss +524 -0
  22. data/_sass/bootstrap/_dropdown.scss +192 -0
  23. data/_sass/bootstrap/_forms.scss +347 -0
  24. data/_sass/bootstrap/_functions.scss +144 -0
  25. data/_sass/bootstrap/_grid.scss +73 -0
  26. data/_sass/bootstrap/_images.scss +42 -0
  27. data/_sass/bootstrap/_input-group.scss +192 -0
  28. data/_sass/bootstrap/_jumbotron.scss +17 -0
  29. data/_sass/bootstrap/_list-group.scss +154 -0
  30. data/_sass/bootstrap/_media.scss +8 -0
  31. data/_sass/bootstrap/_mixins.scss +47 -0
  32. data/_sass/bootstrap/_modal.scss +240 -0
  33. data/_sass/bootstrap/_nav.scss +123 -0
  34. data/_sass/bootstrap/_navbar.scss +324 -0
  35. data/_sass/bootstrap/_pagination.scss +74 -0
  36. data/_sass/bootstrap/_popover.scss +170 -0
  37. data/_sass/bootstrap/_print.scss +141 -0
  38. data/_sass/bootstrap/_progress.scss +47 -0
  39. data/_sass/bootstrap/_reboot.scss +484 -0
  40. data/_sass/bootstrap/_root.scss +20 -0
  41. data/_sass/bootstrap/_spinners.scss +56 -0
  42. data/_sass/bootstrap/_tables.scss +185 -0
  43. data/_sass/bootstrap/_toasts.scss +46 -0
  44. data/_sass/bootstrap/_tooltip.scss +115 -0
  45. data/_sass/bootstrap/_transitions.scss +20 -0
  46. data/_sass/bootstrap/_type.scss +125 -0
  47. data/_sass/bootstrap/_utilities.scss +18 -0
  48. data/_sass/bootstrap/_variables.scss +1142 -0
  49. data/_sass/bootstrap/bootstrap-grid.scss +29 -0
  50. data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
  51. data/_sass/bootstrap/bootstrap.scss +44 -0
  52. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  53. data/_sass/bootstrap/mixins/_background-variant.scss +23 -0
  54. data/_sass/bootstrap/mixins/_badge.scss +17 -0
  55. data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
  56. data/_sass/bootstrap/mixins/_box-shadow.scss +20 -0
  57. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  58. data/_sass/bootstrap/mixins/_buttons.scss +110 -0
  59. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  60. data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
  61. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  62. data/_sass/bootstrap/mixins/_float.scss +14 -0
  63. data/_sass/bootstrap/mixins/_forms.scss +178 -0
  64. data/_sass/bootstrap/mixins/_gradients.scss +45 -0
  65. data/_sass/bootstrap/mixins/_grid-framework.scss +80 -0
  66. data/_sass/bootstrap/mixins/_grid.scss +69 -0
  67. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  68. data/_sass/bootstrap/mixins/_image.scss +36 -0
  69. data/_sass/bootstrap/mixins/_list-group.scss +21 -0
  70. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  71. data/_sass/bootstrap/mixins/_nav-divider.scss +11 -0
  72. data/_sass/bootstrap/mixins/_pagination.scss +22 -0
  73. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  74. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  75. data/_sass/bootstrap/mixins/_screen-reader.scss +34 -0
  76. data/_sass/bootstrap/mixins/_size.scss +7 -0
  77. data/_sass/bootstrap/mixins/_table-row.scss +39 -0
  78. data/_sass/bootstrap/mixins/_text-emphasis.scss +17 -0
  79. data/_sass/bootstrap/mixins/_text-hide.scss +11 -0
  80. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  81. data/_sass/bootstrap/mixins/_transition.scss +26 -0
  82. data/_sass/bootstrap/mixins/_visibility.scss +8 -0
  83. data/_sass/bootstrap/utilities/_align.scss +8 -0
  84. data/_sass/bootstrap/utilities/_background.scss +19 -0
  85. data/_sass/bootstrap/utilities/_borders.scss +75 -0
  86. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  87. data/_sass/bootstrap/utilities/_display.scss +26 -0
  88. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  89. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  90. data/_sass/bootstrap/utilities/_float.scss +11 -0
  91. data/_sass/bootstrap/utilities/_interactions.scss +5 -0
  92. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  93. data/_sass/bootstrap/utilities/_position.scss +32 -0
  94. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  95. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  96. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  97. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  98. data/_sass/bootstrap/utilities/_stretched-link.scss +19 -0
  99. data/_sass/bootstrap/utilities/_text.scss +72 -0
  100. data/_sass/bootstrap/utilities/_visibility.scss +13 -0
  101. data/_sass/bootstrap/vendor/_rfs.scss +204 -0
  102. data/_sass/colors.scss +6 -0
  103. data/_sass/layout.scss +13 -0
  104. data/_sass/navbar.scss +20 -0
  105. data/_sass/sidebar.scss +62 -0
  106. data/assets/css/bootstrap.scss +5 -0
  107. data/assets/css/fontawesome.min.css +5 -0
  108. data/assets/css/style.scss +5 -0
  109. data/assets/images/favicon.ico +0 -0
  110. data/assets/js/bootstrap.bundle.min.js +7 -0
  111. data/assets/js/bootstrap.bundle.min.js.map +1 -0
  112. data/assets/js/jquery.min.js +2 -0
  113. data/assets/js/sidebar.js +25 -0
  114. data/assets/webfonts/fa-brands-400.eot +0 -0
  115. data/assets/webfonts/fa-brands-400.svg +3717 -0
  116. data/assets/webfonts/fa-brands-400.ttf +0 -0
  117. data/assets/webfonts/fa-brands-400.woff +0 -0
  118. data/assets/webfonts/fa-brands-400.woff2 +0 -0
  119. data/assets/webfonts/fa-regular-400.eot +0 -0
  120. data/assets/webfonts/fa-regular-400.svg +801 -0
  121. data/assets/webfonts/fa-regular-400.ttf +0 -0
  122. data/assets/webfonts/fa-regular-400.woff +0 -0
  123. data/assets/webfonts/fa-regular-400.woff2 +0 -0
  124. data/assets/webfonts/fa-solid-900.eot +0 -0
  125. data/assets/webfonts/fa-solid-900.svg +5034 -0
  126. data/assets/webfonts/fa-solid-900.ttf +0 -0
  127. data/assets/webfonts/fa-solid-900.woff +0 -0
  128. data/assets/webfonts/fa-solid-900.woff2 +0 -0
  129. metadata +184 -0
@@ -0,0 +1,192 @@
1
+ // The dropdown wrapper (`<div>`)
2
+ .dropup,
3
+ .dropright,
4
+ .dropdown,
5
+ .dropleft {
6
+ position: relative;
7
+ }
8
+
9
+ .dropdown-toggle {
10
+ white-space: nowrap;
11
+
12
+ // Generate the caret automatically
13
+ @include caret();
14
+ }
15
+
16
+ // The dropdown menu
17
+ .dropdown-menu {
18
+ position: absolute;
19
+ top: 100%;
20
+ left: 0;
21
+ z-index: $zindex-dropdown;
22
+ display: none; // none by default, but block on "open" of the menu
23
+ float: left;
24
+ min-width: $dropdown-min-width;
25
+ padding: $dropdown-padding-y $dropdown-padding-x;
26
+ margin: $dropdown-spacer 0 0; // override default ul
27
+ @include font-size($dropdown-font-size);
28
+ color: $dropdown-color;
29
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
30
+ list-style: none;
31
+ background-color: $dropdown-bg;
32
+ background-clip: padding-box;
33
+ border: $dropdown-border-width solid $dropdown-border-color;
34
+ @include border-radius($dropdown-border-radius);
35
+ @include box-shadow($dropdown-box-shadow);
36
+ }
37
+
38
+ @each $breakpoint in map-keys($grid-breakpoints) {
39
+ @include media-breakpoint-up($breakpoint) {
40
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
41
+
42
+ .dropdown-menu#{$infix}-left {
43
+ right: auto;
44
+ left: 0;
45
+ }
46
+
47
+ .dropdown-menu#{$infix}-right {
48
+ right: 0;
49
+ left: auto;
50
+ }
51
+ }
52
+ }
53
+
54
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
55
+ // Just add .dropup after the standard .dropdown class and you're set.
56
+ .dropup {
57
+ .dropdown-menu {
58
+ top: auto;
59
+ bottom: 100%;
60
+ margin-top: 0;
61
+ margin-bottom: $dropdown-spacer;
62
+ }
63
+
64
+ .dropdown-toggle {
65
+ @include caret(up);
66
+ }
67
+ }
68
+
69
+ .dropright {
70
+ .dropdown-menu {
71
+ top: 0;
72
+ right: auto;
73
+ left: 100%;
74
+ margin-top: 0;
75
+ margin-left: $dropdown-spacer;
76
+ }
77
+
78
+ .dropdown-toggle {
79
+ @include caret(right);
80
+ &::after {
81
+ vertical-align: 0;
82
+ }
83
+ }
84
+ }
85
+
86
+ .dropleft {
87
+ .dropdown-menu {
88
+ top: 0;
89
+ right: 100%;
90
+ left: auto;
91
+ margin-top: 0;
92
+ margin-right: $dropdown-spacer;
93
+ }
94
+
95
+ .dropdown-toggle {
96
+ @include caret(left);
97
+ &::before {
98
+ vertical-align: 0;
99
+ }
100
+ }
101
+ }
102
+
103
+ // When enabled Popper.js, reset basic dropdown position
104
+ // stylelint-disable-next-line no-duplicate-selectors
105
+ .dropdown-menu {
106
+ &[x-placement^="top"],
107
+ &[x-placement^="right"],
108
+ &[x-placement^="bottom"],
109
+ &[x-placement^="left"] {
110
+ right: auto;
111
+ bottom: auto;
112
+ }
113
+ }
114
+
115
+ // Dividers (basically an `<hr>`) within the dropdown
116
+ .dropdown-divider {
117
+ @include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y, true);
118
+ }
119
+
120
+ // Links, buttons, and more within the dropdown menu
121
+ //
122
+ // `<button>`-specific styles are denoted with `// For <button>s`
123
+ .dropdown-item {
124
+ display: block;
125
+ width: 100%; // For `<button>`s
126
+ padding: $dropdown-item-padding-y $dropdown-item-padding-x;
127
+ clear: both;
128
+ font-weight: $font-weight-normal;
129
+ color: $dropdown-link-color;
130
+ text-align: inherit; // For `<button>`s
131
+ text-decoration: if($link-decoration == none, null, none);
132
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
133
+ background-color: transparent; // For `<button>`s
134
+ border: 0; // For `<button>`s
135
+
136
+ // Prevent dropdown overflow if there's no padding
137
+ // See https://github.com/twbs/bootstrap/pull/27703
138
+ @if $dropdown-padding-y == 0 {
139
+ &:first-child {
140
+ @include border-top-radius($dropdown-inner-border-radius);
141
+ }
142
+
143
+ &:last-child {
144
+ @include border-bottom-radius($dropdown-inner-border-radius);
145
+ }
146
+ }
147
+
148
+ @include hover-focus() {
149
+ color: $dropdown-link-hover-color;
150
+ text-decoration: none;
151
+ @include gradient-bg($dropdown-link-hover-bg);
152
+ }
153
+
154
+ &.active,
155
+ &:active {
156
+ color: $dropdown-link-active-color;
157
+ text-decoration: none;
158
+ @include gradient-bg($dropdown-link-active-bg);
159
+ }
160
+
161
+ &.disabled,
162
+ &:disabled {
163
+ color: $dropdown-link-disabled-color;
164
+ pointer-events: none;
165
+ background-color: transparent;
166
+ // Remove CSS gradients if they're enabled
167
+ @if $enable-gradients {
168
+ background-image: none;
169
+ }
170
+ }
171
+ }
172
+
173
+ .dropdown-menu.show {
174
+ display: block;
175
+ }
176
+
177
+ // Dropdown section headers
178
+ .dropdown-header {
179
+ display: block;
180
+ padding: $dropdown-header-padding;
181
+ margin-bottom: 0; // for use with heading elements
182
+ @include font-size($font-size-sm);
183
+ color: $dropdown-header-color;
184
+ white-space: nowrap; // as with > li > a
185
+ }
186
+
187
+ // Dropdown text
188
+ .dropdown-item-text {
189
+ display: block;
190
+ padding: $dropdown-item-padding-y $dropdown-item-padding-x;
191
+ color: $dropdown-link-color;
192
+ }
@@ -0,0 +1,347 @@
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
+ height: $input-height;
11
+ padding: $input-padding-y $input-padding-x;
12
+ font-family: $input-font-family;
13
+ @include font-size($input-font-size);
14
+ font-weight: $input-font-weight;
15
+ line-height: $input-line-height;
16
+ color: $input-color;
17
+ background-color: $input-bg;
18
+ background-clip: padding-box;
19
+ border: $input-border-width solid $input-border-color;
20
+
21
+ // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
22
+ @include border-radius($input-border-radius, 0);
23
+
24
+ @include box-shadow($input-box-shadow);
25
+ @include transition($input-transition);
26
+
27
+ // Unstyle the caret on `<select>`s in IE10+.
28
+ &::-ms-expand {
29
+ background-color: transparent;
30
+ border: 0;
31
+ }
32
+
33
+ // Remove select outline from select box in FF
34
+ &:-moz-focusring {
35
+ color: transparent;
36
+ text-shadow: 0 0 0 $input-color;
37
+ }
38
+
39
+ // Customize the `:focus` state to imitate native WebKit styles.
40
+ @include form-control-focus($ignore-warning: true);
41
+
42
+ // Placeholder
43
+ &::placeholder {
44
+ color: $input-placeholder-color;
45
+ // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
46
+ opacity: 1;
47
+ }
48
+
49
+ // Disabled and read-only inputs
50
+ //
51
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
52
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
53
+ // don't honor that edge case; we style them as disabled anyway.
54
+ &:disabled,
55
+ &[readonly] {
56
+ background-color: $input-disabled-bg;
57
+ // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
58
+ opacity: 1;
59
+ }
60
+ }
61
+
62
+ input[type="date"],
63
+ input[type="time"],
64
+ input[type="datetime-local"],
65
+ input[type="month"] {
66
+ &.form-control {
67
+ appearance: none; // Fix appearance for date inputs in Safari
68
+ }
69
+ }
70
+
71
+ select.form-control {
72
+ &:focus::-ms-value {
73
+ // Suppress the nested default white text on blue background highlight given to
74
+ // the selected option text when the (still closed) <select> receives focus
75
+ // in IE and (under certain conditions) Edge, as it looks bad and cannot be made to
76
+ // match the appearance of the native widget.
77
+ // See https://github.com/twbs/bootstrap/issues/19398.
78
+ color: $input-color;
79
+ background-color: $input-bg;
80
+ }
81
+ }
82
+
83
+ // Make file inputs better match text inputs by forcing them to new lines.
84
+ .form-control-file,
85
+ .form-control-range {
86
+ display: block;
87
+ width: 100%;
88
+ }
89
+
90
+
91
+ //
92
+ // Labels
93
+ //
94
+
95
+ // For use with horizontal and inline forms, when you need the label (or legend)
96
+ // text to align with the form controls.
97
+ .col-form-label {
98
+ padding-top: add($input-padding-y, $input-border-width);
99
+ padding-bottom: add($input-padding-y, $input-border-width);
100
+ margin-bottom: 0; // Override the `<label>/<legend>` default
101
+ @include font-size(inherit); // Override the `<legend>` default
102
+ line-height: $input-line-height;
103
+ }
104
+
105
+ .col-form-label-lg {
106
+ padding-top: add($input-padding-y-lg, $input-border-width);
107
+ padding-bottom: add($input-padding-y-lg, $input-border-width);
108
+ @include font-size($input-font-size-lg);
109
+ line-height: $input-line-height-lg;
110
+ }
111
+
112
+ .col-form-label-sm {
113
+ padding-top: add($input-padding-y-sm, $input-border-width);
114
+ padding-bottom: add($input-padding-y-sm, $input-border-width);
115
+ @include font-size($input-font-size-sm);
116
+ line-height: $input-line-height-sm;
117
+ }
118
+
119
+
120
+ // Readonly controls as plain text
121
+ //
122
+ // Apply class to a readonly input to make it appear like regular plain
123
+ // text (without any border, background color, focus indicator)
124
+
125
+ .form-control-plaintext {
126
+ display: block;
127
+ width: 100%;
128
+ padding: $input-padding-y 0;
129
+ margin-bottom: 0; // match inputs if this class comes on inputs with default margins
130
+ @include font-size($input-font-size);
131
+ line-height: $input-line-height;
132
+ color: $input-plaintext-color;
133
+ background-color: transparent;
134
+ border: solid transparent;
135
+ border-width: $input-border-width 0;
136
+
137
+ &.form-control-sm,
138
+ &.form-control-lg {
139
+ padding-right: 0;
140
+ padding-left: 0;
141
+ }
142
+ }
143
+
144
+
145
+ // Form control sizing
146
+ //
147
+ // Build on `.form-control` with modifier classes to decrease or increase the
148
+ // height and font-size of form controls.
149
+ //
150
+ // Repeated in `_input_group.scss` to avoid Sass extend issues.
151
+
152
+ .form-control-sm {
153
+ height: $input-height-sm;
154
+ padding: $input-padding-y-sm $input-padding-x-sm;
155
+ @include font-size($input-font-size-sm);
156
+ line-height: $input-line-height-sm;
157
+ @include border-radius($input-border-radius-sm);
158
+ }
159
+
160
+ .form-control-lg {
161
+ height: $input-height-lg;
162
+ padding: $input-padding-y-lg $input-padding-x-lg;
163
+ @include font-size($input-font-size-lg);
164
+ line-height: $input-line-height-lg;
165
+ @include border-radius($input-border-radius-lg);
166
+ }
167
+
168
+ // stylelint-disable-next-line no-duplicate-selectors
169
+ select.form-control {
170
+ &[size],
171
+ &[multiple] {
172
+ height: auto;
173
+ }
174
+ }
175
+
176
+ textarea.form-control {
177
+ height: auto;
178
+ }
179
+
180
+ // Form groups
181
+ //
182
+ // Designed to help with the organization and spacing of vertical forms. For
183
+ // horizontal forms, use the predefined grid classes.
184
+
185
+ .form-group {
186
+ margin-bottom: $form-group-margin-bottom;
187
+ }
188
+
189
+ .form-text {
190
+ display: block;
191
+ margin-top: $form-text-margin-top;
192
+ }
193
+
194
+
195
+ // Form grid
196
+ //
197
+ // Special replacement for our grid system's `.row` for tighter form layouts.
198
+
199
+ .form-row {
200
+ display: flex;
201
+ flex-wrap: wrap;
202
+ margin-right: -$form-grid-gutter-width / 2;
203
+ margin-left: -$form-grid-gutter-width / 2;
204
+
205
+ > .col,
206
+ > [class*="col-"] {
207
+ padding-right: $form-grid-gutter-width / 2;
208
+ padding-left: $form-grid-gutter-width / 2;
209
+ }
210
+ }
211
+
212
+
213
+ // Checkboxes and radios
214
+ //
215
+ // Indent the labels to position radios/checkboxes as hanging controls.
216
+
217
+ .form-check {
218
+ position: relative;
219
+ display: block;
220
+ padding-left: $form-check-input-gutter;
221
+ }
222
+
223
+ .form-check-input {
224
+ position: absolute;
225
+ margin-top: $form-check-input-margin-y;
226
+ margin-left: -$form-check-input-gutter;
227
+
228
+ // Use [disabled] and :disabled for workaround https://github.com/twbs/bootstrap/issues/28247
229
+ &[disabled] ~ .form-check-label,
230
+ &:disabled ~ .form-check-label {
231
+ color: $text-muted;
232
+ }
233
+ }
234
+
235
+ .form-check-label {
236
+ margin-bottom: 0; // Override default `<label>` bottom margin
237
+ }
238
+
239
+ .form-check-inline {
240
+ display: inline-flex;
241
+ align-items: center;
242
+ padding-left: 0; // Override base .form-check
243
+ margin-right: $form-check-inline-margin-x;
244
+
245
+ // Undo .form-check-input defaults and add some `margin-right`.
246
+ .form-check-input {
247
+ position: static;
248
+ margin-top: 0;
249
+ margin-right: $form-check-inline-input-margin-x;
250
+ margin-left: 0;
251
+ }
252
+ }
253
+
254
+
255
+ // Form validation
256
+ //
257
+ // Provide feedback to users when form field values are valid or invalid. Works
258
+ // primarily for client-side validation via scoped `:invalid` and `:valid`
259
+ // pseudo-classes but also includes `.is-invalid` and `.is-valid` classes for
260
+ // server side validation.
261
+
262
+ @each $state, $data in $form-validation-states {
263
+ @include form-validation-state($state, map-get($data, color), map-get($data, icon));
264
+ }
265
+
266
+ // Inline forms
267
+ //
268
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
269
+ // forms begin stacked on extra small (mobile) devices and then go inline when
270
+ // viewports reach <768px.
271
+ //
272
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
273
+ // default HTML form controls and our custom form controls (e.g., input groups).
274
+
275
+ .form-inline {
276
+ display: flex;
277
+ flex-flow: row wrap;
278
+ align-items: center; // Prevent shorter elements from growing to same height as others (e.g., small buttons growing to normal sized button height)
279
+
280
+ // Because we use flex, the initial sizing of checkboxes is collapsed and
281
+ // doesn't occupy the full-width (which is what we want for xs grid tier),
282
+ // so we force that here.
283
+ .form-check {
284
+ width: 100%;
285
+ }
286
+
287
+ // Kick in the inline
288
+ @include media-breakpoint-up(sm) {
289
+ label {
290
+ display: flex;
291
+ align-items: center;
292
+ justify-content: center;
293
+ margin-bottom: 0;
294
+ }
295
+
296
+ // Inline-block all the things for "inline"
297
+ .form-group {
298
+ display: flex;
299
+ flex: 0 0 auto;
300
+ flex-flow: row wrap;
301
+ align-items: center;
302
+ margin-bottom: 0;
303
+ }
304
+
305
+ // Allow folks to *not* use `.form-group`
306
+ .form-control {
307
+ display: inline-block;
308
+ width: auto; // Prevent labels from stacking above inputs in `.form-group`
309
+ vertical-align: middle;
310
+ }
311
+
312
+ // Make static controls behave like regular ones
313
+ .form-control-plaintext {
314
+ display: inline-block;
315
+ }
316
+
317
+ .input-group,
318
+ .custom-select {
319
+ width: auto;
320
+ }
321
+
322
+ // Remove default margin on radios/checkboxes that were used for stacking, and
323
+ // then undo the floating of radios and checkboxes to match.
324
+ .form-check {
325
+ display: flex;
326
+ align-items: center;
327
+ justify-content: center;
328
+ width: auto;
329
+ padding-left: 0;
330
+ }
331
+ .form-check-input {
332
+ position: relative;
333
+ flex-shrink: 0;
334
+ margin-top: 0;
335
+ margin-right: $form-check-input-margin-x;
336
+ margin-left: 0;
337
+ }
338
+
339
+ .custom-control {
340
+ align-items: center;
341
+ justify-content: center;
342
+ }
343
+ .custom-control-label {
344
+ margin-bottom: 0;
345
+ }
346
+ }
347
+ }