administrate-bootstrap-theme 0.2.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +64 -32
  3. data/app/assets/javascripts/administrate-bootstrap-theme/{bootstrap/bootstrap.bundle.js → bootstrap.bundle.js} +910 -857
  4. data/app/assets/stylesheets/administrate-bootstrap-theme/_base.scss +2 -14
  5. data/app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss +4 -0
  6. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_card.scss +7 -6
  7. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_carousel.scss +2 -2
  8. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_dropdown.scss +4 -4
  9. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_functions.scss +94 -3
  10. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_grid.scss +11 -0
  11. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_helpers.scss +2 -0
  12. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_images.scss +1 -1
  13. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_mixins.scss +1 -0
  14. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_modal.scss +5 -15
  15. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss +30 -1
  16. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss +8 -2
  17. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss +51 -0
  18. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss +10 -10
  19. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss +12 -8
  20. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_root.scss +39 -2
  21. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tables.scss +1 -1
  22. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_toasts.scss +3 -3
  23. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tooltip.scss +4 -4
  24. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_transitions.scss +6 -0
  25. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_utilities.scss +44 -8
  26. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables.scss +189 -24
  27. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-grid.scss +1 -1
  28. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-reboot.scss +1 -1
  29. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-utilities.scss +1 -1
  30. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap.scss +2 -1
  31. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_floating-labels.scss +3 -1
  32. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-check.scss +1 -1
  33. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-control.scss +1 -1
  34. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-range.scss +1 -1
  35. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-select.scss +3 -0
  36. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stacks.scss +15 -0
  37. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss +8 -0
  38. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_backdrop.scss +14 -0
  39. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_buttons.scss +1 -1
  40. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_grid.scss +33 -8
  41. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_utilities.scss +27 -6
  42. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss +55 -13
  43. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_autumn.scss +8 -0
  44. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_default.scss +8 -0
  45. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_forest.scss +9 -0
  46. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_industrial.scss +8 -0
  47. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_water.scss +8 -0
  48. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +21 -1
  49. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_header.scss +1 -1
  50. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss +2 -0
  51. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss +26 -3
  52. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss +1 -1
  53. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_lato.scss +5 -0
  54. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_montserrat.scss +5 -0
  55. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_open_sans.scss +5 -0
  56. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_roboto.scss +5 -0
  57. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_source_sans_pro.scss +5 -0
  58. data/app/assets/stylesheets/administrate-bootstrap-theme/theme.scss +10 -61
  59. data/lib/administrate-bootstrap-theme/version.rb +2 -1
  60. data/lib/generators/administrate_bootstrap_theme/install/USAGE +10 -0
  61. data/lib/generators/administrate_bootstrap_theme/install/install_generator.rb +33 -0
  62. data/package.json +2 -3
  63. metadata +38 -10
  64. data/app/assets/javascripts/administrate-bootstrap-theme/flatpickr/flatpickr.js +0 -2673
  65. data/app/assets/javascripts/administrate-bootstrap-theme/theme.js +0 -22
  66. data/app/assets/stylesheets/administrate-bootstrap-theme/flatpickr/flatpickr.scss +0 -791
@@ -10,11 +10,11 @@
10
10
  box-shadow: $toast-box-shadow;
11
11
  @include border-radius($toast-border-radius);
12
12
 
13
- &:not(.showing):not(.show) {
13
+ &.showing {
14
14
  opacity: 0;
15
15
  }
16
16
 
17
- &.hide {
17
+ &:not(.show) {
18
18
  display: none;
19
19
  }
20
20
  }
@@ -40,7 +40,7 @@
40
40
  @include border-top-radius(subtract($toast-border-radius, $toast-border-width));
41
41
 
42
42
  .btn-close {
43
- margin-right: $toast-padding-x / -2;
43
+ margin-right: $toast-padding-x * -.5;
44
44
  margin-left: $toast-padding-x;
45
45
  }
46
46
  }
@@ -37,7 +37,7 @@
37
37
 
38
38
  &::before {
39
39
  top: -1px;
40
- border-width: $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
40
+ border-width: $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
41
41
  border-top-color: $tooltip-arrow-color;
42
42
  }
43
43
  }
@@ -53,7 +53,7 @@
53
53
 
54
54
  &::before {
55
55
  right: -1px;
56
- border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
56
+ border-width: ($tooltip-arrow-width * .5) $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
57
57
  border-right-color: $tooltip-arrow-color;
58
58
  }
59
59
  }
@@ -67,7 +67,7 @@
67
67
 
68
68
  &::before {
69
69
  bottom: -1px;
70
- border-width: 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
70
+ border-width: 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
71
71
  border-bottom-color: $tooltip-arrow-color;
72
72
  }
73
73
  }
@@ -83,7 +83,7 @@
83
83
 
84
84
  &::before {
85
85
  left: -1px;
86
- border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
86
+ border-width: ($tooltip-arrow-width * .5) 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
87
87
  border-left-color: $tooltip-arrow-color;
88
88
  }
89
89
  }
@@ -17,5 +17,11 @@
17
17
  height: 0;
18
18
  overflow: hidden;
19
19
  @include transition($transition-collapse);
20
+
21
+ &.collapse-horizontal {
22
+ width: 0;
23
+ height: auto;
24
+ @include transition($transition-collapse-width);
25
+ }
20
26
  }
21
27
  // scss-docs-end collapse-classes
@@ -24,6 +24,19 @@ $utilities: map-merge(
24
24
  )
25
25
  ),
26
26
  // scss-docs-end utils-float
27
+ // Opacity utilities
28
+ // scss-docs-start utils-opacity
29
+ "opacity": (
30
+ property: opacity,
31
+ values: (
32
+ 0: 0,
33
+ 25: .25,
34
+ 50: .5,
35
+ 75: .75,
36
+ 100: 1,
37
+ )
38
+ ),
39
+ // scss-docs-end utils-opacity
27
40
  // scss-docs-start utils-overflow
28
41
  "overflow": (
29
42
  property: overflow,
@@ -501,32 +514,55 @@ $utilities: map-merge(
501
514
  "color": (
502
515
  property: color,
503
516
  class: text,
517
+ local-vars: (
518
+ "text-opacity": 1
519
+ ),
504
520
  values: map-merge(
505
- $theme-colors,
521
+ $utilities-text-colors,
506
522
  (
507
- "white": $white,
508
- "body": $body-color,
509
523
  "muted": $text-muted,
510
- "black-50": rgba($black, .5),
511
- "white-50": rgba($white, .5),
524
+ "black-50": rgba($black, .5), // deprecated
525
+ "white-50": rgba($white, .5), // deprecated
512
526
  "reset": inherit,
513
527
  )
514
528
  )
515
529
  ),
530
+ "text-opacity": (
531
+ css-var: true,
532
+ class: text-opacity,
533
+ values: (
534
+ 25: .25,
535
+ 50: .5,
536
+ 75: .75,
537
+ 100: 1
538
+ )
539
+ ),
516
540
  // scss-docs-end utils-color
517
541
  // scss-docs-start utils-bg-color
518
542
  "background-color": (
519
543
  property: background-color,
520
544
  class: bg,
545
+ local-vars: (
546
+ "bg-opacity": 1
547
+ ),
521
548
  values: map-merge(
522
- $theme-colors,
549
+ $utilities-bg-colors,
523
550
  (
524
- "body": $body-bg,
525
- "white": $white,
526
551
  "transparent": transparent
527
552
  )
528
553
  )
529
554
  ),
555
+ "bg-opacity": (
556
+ css-var: true,
557
+ class: bg-opacity,
558
+ values: (
559
+ 10: .1,
560
+ 25: .25,
561
+ 50: .5,
562
+ 75: .75,
563
+ 100: 1
564
+ )
565
+ ),
530
566
  // scss-docs-end utils-bg-color
531
567
  "gradient": (
532
568
  property: background-image,
@@ -90,6 +90,10 @@ $theme-colors: (
90
90
  ) !default;
91
91
  // scss-docs-end theme-colors-map
92
92
 
93
+ // scss-docs-start theme-colors-rgb
94
+ $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value") !default;
95
+ // scss-docs-end theme-colors-rgb
96
+
93
97
  // The contrast ratio to reach against white, to determine if color changes from "light" to "dark". Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
94
98
  // See https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast
95
99
  $min-contrast-ratio: 4.5 !default;
@@ -198,6 +202,126 @@ $cyan-600: shade-color($cyan, 20%) !default;
198
202
  $cyan-700: shade-color($cyan, 40%) !default;
199
203
  $cyan-800: shade-color($cyan, 60%) !default;
200
204
  $cyan-900: shade-color($cyan, 80%) !default;
205
+
206
+ $blues: (
207
+ "blue-100": $blue-100,
208
+ "blue-200": $blue-200,
209
+ "blue-300": $blue-300,
210
+ "blue-400": $blue-400,
211
+ "blue-500": $blue-500,
212
+ "blue-600": $blue-600,
213
+ "blue-700": $blue-700,
214
+ "blue-800": $blue-800,
215
+ "blue-900": $blue-900
216
+ ) !default;
217
+
218
+ $indigos: (
219
+ "indigo-100": $indigo-100,
220
+ "indigo-200": $indigo-200,
221
+ "indigo-300": $indigo-300,
222
+ "indigo-400": $indigo-400,
223
+ "indigo-500": $indigo-500,
224
+ "indigo-600": $indigo-600,
225
+ "indigo-700": $indigo-700,
226
+ "indigo-800": $indigo-800,
227
+ "indigo-900": $indigo-900
228
+ ) !default;
229
+
230
+ $purples: (
231
+ "purple-100": $purple-200,
232
+ "purple-200": $purple-100,
233
+ "purple-300": $purple-300,
234
+ "purple-400": $purple-400,
235
+ "purple-500": $purple-500,
236
+ "purple-600": $purple-600,
237
+ "purple-700": $purple-700,
238
+ "purple-800": $purple-800,
239
+ "purple-900": $purple-900
240
+ ) !default;
241
+
242
+ $pinks: (
243
+ "pink-100": $pink-100,
244
+ "pink-200": $pink-200,
245
+ "pink-300": $pink-300,
246
+ "pink-400": $pink-400,
247
+ "pink-500": $pink-500,
248
+ "pink-600": $pink-600,
249
+ "pink-700": $pink-700,
250
+ "pink-800": $pink-800,
251
+ "pink-900": $pink-900
252
+ ) !default;
253
+
254
+ $reds: (
255
+ "red-100": $red-100,
256
+ "red-200": $red-200,
257
+ "red-300": $red-300,
258
+ "red-400": $red-400,
259
+ "red-500": $red-500,
260
+ "red-600": $red-600,
261
+ "red-700": $red-700,
262
+ "red-800": $red-800,
263
+ "red-900": $red-900
264
+ ) !default;
265
+
266
+ $oranges: (
267
+ "orange-100": $orange-100,
268
+ "orange-200": $orange-200,
269
+ "orange-300": $orange-300,
270
+ "orange-400": $orange-400,
271
+ "orange-500": $orange-500,
272
+ "orange-600": $orange-600,
273
+ "orange-700": $orange-700,
274
+ "orange-800": $orange-800,
275
+ "orange-900": $orange-900
276
+ ) !default;
277
+
278
+ $yellows: (
279
+ "yellow-100": $yellow-100,
280
+ "yellow-200": $yellow-200,
281
+ "yellow-300": $yellow-300,
282
+ "yellow-400": $yellow-400,
283
+ "yellow-500": $yellow-500,
284
+ "yellow-600": $yellow-600,
285
+ "yellow-700": $yellow-700,
286
+ "yellow-800": $yellow-800,
287
+ "yellow-900": $yellow-900
288
+ ) !default;
289
+
290
+ $greens: (
291
+ "green-100": $green-100,
292
+ "green-200": $green-200,
293
+ "green-300": $green-300,
294
+ "green-400": $green-400,
295
+ "green-500": $green-500,
296
+ "green-600": $green-600,
297
+ "green-700": $green-700,
298
+ "green-800": $green-800,
299
+ "green-900": $green-900
300
+ ) !default;
301
+
302
+ $teals: (
303
+ "teal-100": $teal-100,
304
+ "teal-200": $teal-200,
305
+ "teal-300": $teal-300,
306
+ "teal-400": $teal-400,
307
+ "teal-500": $teal-500,
308
+ "teal-600": $teal-600,
309
+ "teal-700": $teal-700,
310
+ "teal-800": $teal-800,
311
+ "teal-900": $teal-900
312
+ ) !default;
313
+
314
+ $cyans: (
315
+ "cyan-100": $cyan-100,
316
+ "cyan-200": $cyan-200,
317
+ "cyan-300": $cyan-300,
318
+ "cyan-400": $cyan-400,
319
+ "cyan-500": $cyan-500,
320
+ "cyan-600": $cyan-600,
321
+ "cyan-700": $cyan-700,
322
+ "cyan-800": $cyan-800,
323
+ "cyan-900": $cyan-900
324
+ ) !default;
201
325
  // fusv-enable
202
326
 
203
327
  // Characters which are escaped by the escape-svg function
@@ -221,6 +345,7 @@ $enable-transitions: true !default;
221
345
  $enable-reduced-motion: true !default;
222
346
  $enable-smooth-scroll: true !default;
223
347
  $enable-grid-classes: true !default;
348
+ $enable-cssgrid: false !default;
224
349
  $enable-button-pointers: true !default;
225
350
  $enable-rfs: true !default;
226
351
  $enable-validation-icons: true !default;
@@ -250,8 +375,8 @@ $gradient: linear-gradient(180deg, rgba($white, .15), rgba($white, 0)) !default;
250
375
  $spacer: 1rem !default;
251
376
  $spacers: (
252
377
  0: 0,
253
- 1: $spacer / 4,
254
- 2: $spacer / 2,
378
+ 1: $spacer * .25,
379
+ 2: $spacer * .5,
255
380
  3: $spacer,
256
381
  4: $spacer * 1.5,
257
382
  5: $spacer * 3,
@@ -280,6 +405,28 @@ $body-bg: $white !default;
280
405
  $body-color: $gray-900 !default;
281
406
  $body-text-align: null !default;
282
407
 
408
+ // Utilities maps
409
+ //
410
+ // Extends the default `$theme-colors` maps to help create our utilities.
411
+
412
+ // scss-docs-start utilities-colors
413
+ $utilities-colors: map-merge(
414
+ $theme-colors-rgb,
415
+ (
416
+ "black": to-rgb($black),
417
+ "white": to-rgb($white),
418
+ "body": to-rgb($body-color)
419
+ )
420
+ ) !default;
421
+ // scss-docs-end utilities-colors
422
+
423
+ // scss-docs-start utilities-text-colors
424
+ $utilities-text-colors: map-loop($utilities-colors, rgba-css-var, "$key", "text") !default;
425
+ // scss-docs-end utilities-text-colors
426
+
427
+ // scss-docs-start utilities-bg-colors
428
+ $utilities-bg-colors: map-loop($utilities-colors, rgba-css-var, "$key", "bg") !default;
429
+ // scss-docs-end utilities-bg-colors
283
430
 
284
431
  // Links
285
432
  //
@@ -350,7 +497,7 @@ $gutters: $spacers !default;
350
497
 
351
498
  // Container padding
352
499
 
353
- $container-padding-x: $grid-gutter-width / 2 !default;
500
+ $container-padding-x: $grid-gutter-width * .5 !default;
354
501
 
355
502
 
356
503
  // Components
@@ -397,6 +544,7 @@ $transition-base: all .2s ease-in-out !default;
397
544
  $transition-fade: opacity .15s linear !default;
398
545
  // scss-docs-start collapse-transition
399
546
  $transition-collapse: height .35s ease !default;
547
+ $transition-collapse-width: width .35s ease !default;
400
548
  // scss-docs-end collapse-transition
401
549
 
402
550
  // stylelint-disable function-disallowed-list
@@ -422,8 +570,8 @@ $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberati
422
570
  $font-family-base: var(--#{$variable-prefix}font-sans-serif) !default;
423
571
  $font-family-code: var(--#{$variable-prefix}font-monospace) !default;
424
572
 
425
- // $font-size-root effects the value of `rem`, which is used for as well font sizes, paddings and margins
426
- // $font-size-base effects the font size of the body text
573
+ // $font-size-root affects the value of `rem`, which is used for as well font sizes, paddings, and margins
574
+ // $font-size-base affects the font size of the body text
427
575
  $font-size-root: null !default;
428
576
  $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
429
577
  $font-size-sm: $font-size-base * .875 !default;
@@ -461,7 +609,7 @@ $font-sizes: (
461
609
  // scss-docs-end font-sizes
462
610
 
463
611
  // scss-docs-start headings-variables
464
- $headings-margin-bottom: $spacer / 2 !default;
612
+ $headings-margin-bottom: $spacer * .5 !default;
465
613
  $headings-font-family: null !default;
466
614
  $headings-font-style: null !default;
467
615
  $headings-font-weight: 500 !default;
@@ -535,6 +683,7 @@ $table-cell-vertical-align: top !default;
535
683
 
536
684
  $table-color: $body-color !default;
537
685
  $table-bg: transparent !default;
686
+ $table-accent-bg: transparent !default;
538
687
 
539
688
  $table-th-font-weight: null !default;
540
689
 
@@ -691,7 +840,7 @@ $input-padding-y-lg: $input-btn-padding-y-lg !default;
691
840
  $input-padding-x-lg: $input-btn-padding-x-lg !default;
692
841
  $input-font-size-lg: $input-btn-font-size-lg !default;
693
842
 
694
- $input-bg: $white !default;
843
+ $input-bg: $body-bg !default;
695
844
  $input-disabled-bg: $gray-200 !default;
696
845
  $input-disabled-border-color: null !default;
697
846
 
@@ -717,13 +866,15 @@ $input-height-border: $input-border-width * 2 !default;
717
866
 
718
867
  $input-height-inner: add($input-line-height * 1em, $input-padding-y * 2) !default;
719
868
  $input-height-inner-half: add($input-line-height * .5em, $input-padding-y) !default;
720
- $input-height-inner-quarter: add($input-line-height * .25em, $input-padding-y / 2) !default;
869
+ $input-height-inner-quarter: add($input-line-height * .25em, $input-padding-y * .5) !default;
721
870
 
722
871
  $input-height: add($input-line-height * 1em, add($input-padding-y * 2, $input-height-border, false)) !default;
723
872
  $input-height-sm: add($input-line-height * 1em, add($input-padding-y-sm * 2, $input-height-border, false)) !default;
724
873
  $input-height-lg: add($input-line-height * 1em, add($input-padding-y-lg * 2, $input-height-border, false)) !default;
725
874
 
726
875
  $input-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
876
+
877
+ $form-color-width: 3rem !default;
727
878
  // scss-docs-end form-input-variables
728
879
 
729
880
  // scss-docs-start form-check-variables
@@ -825,6 +976,8 @@ $form-select-font-size-sm: $input-font-size-sm !default;
825
976
  $form-select-padding-y-lg: $input-padding-y-lg !default;
826
977
  $form-select-padding-x-lg: $input-padding-x-lg !default;
827
978
  $form-select-font-size-lg: $input-font-size-lg !default;
979
+
980
+ $form-select-transition: $input-transition !default;
828
981
  // scss-docs-end form-select-variables
829
982
 
830
983
  // scss-docs-start form-range-variables
@@ -856,6 +1009,7 @@ $form-file-button-hover-bg: shade-color($form-file-button-bg, 5%) !default
856
1009
 
857
1010
  // scss-docs-start form-floating-variables
858
1011
  $form-floating-height: add(3.5rem, $input-height-border) !default;
1012
+ $form-floating-line-height: 1.25 !default;
859
1013
  $form-floating-padding-x: $input-padding-x !default;
860
1014
  $form-floating-padding-y: 1rem !default;
861
1015
  $form-floating-input-padding-t: 1.625rem !default;
@@ -902,9 +1056,10 @@ $form-validation-states: (
902
1056
  $zindex-dropdown: 1000 !default;
903
1057
  $zindex-sticky: 1020 !default;
904
1058
  $zindex-fixed: 1030 !default;
905
- $zindex-modal-backdrop: 1040 !default;
906
- $zindex-offcanvas: 1050 !default;
907
- $zindex-modal: 1060 !default;
1059
+ $zindex-offcanvas-backdrop: 1040 !default;
1060
+ $zindex-offcanvas: 1045 !default;
1061
+ $zindex-modal-backdrop: 1050 !default;
1062
+ $zindex-modal: 1055 !default;
908
1063
  $zindex-popover: 1070 !default;
909
1064
  $zindex-tooltip: 1080 !default;
910
1065
  // scss-docs-end zindex-stack
@@ -939,7 +1094,7 @@ $nav-pills-link-active-bg: $component-active-bg !default;
939
1094
  // Navbar
940
1095
 
941
1096
  // scss-docs-start navbar-variables
942
- $navbar-padding-y: $spacer / 2 !default;
1097
+ $navbar-padding-y: $spacer * .5 !default;
943
1098
  $navbar-padding-x: null !default;
944
1099
 
945
1100
  $navbar-nav-link-padding-x: .5rem !default;
@@ -948,7 +1103,7 @@ $navbar-brand-font-size: $font-size-lg !default;
948
1103
  // Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
949
1104
  $nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;
950
1105
  $navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;
951
- $navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) / 2 !default;
1106
+ $navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) * .5 !default;
952
1107
  $navbar-brand-margin-end: 1rem !default;
953
1108
 
954
1109
  $navbar-toggler-padding-y: .25rem !default;
@@ -998,7 +1153,7 @@ $dropdown-border-radius: $border-radius !default;
998
1153
  $dropdown-border-width: $border-width !default;
999
1154
  $dropdown-inner-border-radius: subtract($dropdown-border-radius, $dropdown-border-width) !default;
1000
1155
  $dropdown-divider-bg: $dropdown-border-color !default;
1001
- $dropdown-divider-margin-y: $spacer / 2 !default;
1156
+ $dropdown-divider-margin-y: $spacer * .5 !default;
1002
1157
  $dropdown-box-shadow: $box-shadow !default;
1003
1158
 
1004
1159
  $dropdown-link-color: $gray-900 !default;
@@ -1010,7 +1165,7 @@ $dropdown-link-active-bg: $component-active-bg !default;
1010
1165
 
1011
1166
  $dropdown-link-disabled-color: $gray-500 !default;
1012
1167
 
1013
- $dropdown-item-padding-y: $spacer / 4 !default;
1168
+ $dropdown-item-padding-y: $spacer * .25 !default;
1014
1169
  $dropdown-item-padding-x: $spacer !default;
1015
1170
 
1016
1171
  $dropdown-header-color: $gray-600 !default;
@@ -1074,17 +1229,25 @@ $pagination-border-radius-lg: $border-radius-lg !default;
1074
1229
  // scss-docs-end pagination-variables
1075
1230
 
1076
1231
 
1232
+ // Placeholders
1233
+
1234
+ // scss-docs-start placeholders
1235
+ $placeholder-opacity-max: .5 !default;
1236
+ $placeholder-opacity-min: .2 !default;
1237
+ // scss-docs-end placeholders
1238
+
1077
1239
  // Cards
1078
1240
 
1079
1241
  // scss-docs-start card-variables
1080
1242
  $card-spacer-y: $spacer !default;
1081
1243
  $card-spacer-x: $spacer !default;
1082
- $card-title-spacer-y: $spacer / 2 !default;
1244
+ $card-title-spacer-y: $spacer * .5 !default;
1083
1245
  $card-border-width: $border-width !default;
1084
- $card-border-radius: $border-radius !default;
1085
1246
  $card-border-color: rgba($black, .125) !default;
1247
+ $card-border-radius: $border-radius !default;
1248
+ $card-box-shadow: null !default;
1086
1249
  $card-inner-border-radius: subtract($card-border-radius, $card-border-width) !default;
1087
- $card-cap-padding-y: $card-spacer-y / 2 !default;
1250
+ $card-cap-padding-y: $card-spacer-y * .5 !default;
1088
1251
  $card-cap-padding-x: $card-spacer-x !default;
1089
1252
  $card-cap-bg: rgba($black, .03) !default;
1090
1253
  $card-cap-color: null !default;
@@ -1092,7 +1255,7 @@ $card-height: null !default;
1092
1255
  $card-color: null !default;
1093
1256
  $card-bg: $white !default;
1094
1257
  $card-img-overlay-padding: $spacer !default;
1095
- $card-group-margin: $grid-gutter-width / 2 !default;
1258
+ $card-group-margin: $grid-gutter-width * .5 !default;
1096
1259
  // scss-docs-end card-variables
1097
1260
 
1098
1261
  // Accordion
@@ -1122,7 +1285,7 @@ $accordion-button-focus-border-color: $input-focus-border-color !default;
1122
1285
  $accordion-button-focus-box-shadow: $btn-focus-box-shadow !default;
1123
1286
 
1124
1287
  $accordion-icon-width: 1.25rem !default;
1125
- $accordion-icon-color: $accordion-color !default;
1288
+ $accordion-icon-color: $accordion-button-color !default;
1126
1289
  $accordion-icon-active-color: $accordion-button-active-color !default;
1127
1290
  $accordion-icon-transition: transform .2s ease-in-out !default;
1128
1291
  $accordion-icon-transform: rotate(-180deg) !default;
@@ -1140,8 +1303,8 @@ $tooltip-color: $white !default;
1140
1303
  $tooltip-bg: $black !default;
1141
1304
  $tooltip-border-radius: $border-radius !default;
1142
1305
  $tooltip-opacity: .9 !default;
1143
- $tooltip-padding-y: $spacer / 4 !default;
1144
- $tooltip-padding-x: $spacer / 2 !default;
1306
+ $tooltip-padding-y: $spacer * .25 !default;
1307
+ $tooltip-padding-x: $spacer * .5 !default;
1145
1308
  $tooltip-margin: 0 !default;
1146
1309
 
1147
1310
  $tooltip-arrow-width: .8rem !default;
@@ -1157,7 +1320,7 @@ $form-feedback-tooltip-font-size: $tooltip-font-size !default;
1157
1320
  $form-feedback-tooltip-line-height: null !default;
1158
1321
  $form-feedback-tooltip-opacity: $tooltip-opacity !default;
1159
1322
  $form-feedback-tooltip-border-radius: $tooltip-border-radius !default;
1160
- // scss-docs-start tooltip-feedback-variables
1323
+ // scss-docs-end tooltip-feedback-variables
1161
1324
 
1162
1325
 
1163
1326
  // Popovers
@@ -1307,7 +1470,7 @@ $list-group-border-color: rgba($black, .125) !default;
1307
1470
  $list-group-border-width: $border-width !default;
1308
1471
  $list-group-border-radius: $border-radius !default;
1309
1472
 
1310
- $list-group-item-padding-y: $spacer / 2 !default;
1473
+ $list-group-item-padding-y: $spacer * .5 !default;
1311
1474
  $list-group-item-padding-x: $spacer !default;
1312
1475
  $list-group-item-bg-scale: -80% !default;
1313
1476
  $list-group-item-color-scale: 40% !default;
@@ -1448,6 +1611,8 @@ $offcanvas-title-line-height: $modal-title-line-height !default;
1448
1611
  $offcanvas-bg-color: $modal-content-bg !default;
1449
1612
  $offcanvas-color: $modal-content-color !default;
1450
1613
  $offcanvas-box-shadow: $modal-content-box-shadow-xs !default;
1614
+ $offcanvas-backdrop-bg: $modal-backdrop-bg !default;
1615
+ $offcanvas-backdrop-opacity: $modal-backdrop-opacity !default;
1451
1616
  // scss-docs-end offcanvas-variables
1452
1617
 
1453
1618
  // Code
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Grid v5.0.1 (https://getbootstrap.com/)
2
+ * Bootstrap Grid v5.1.0 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2021 The Bootstrap Authors
4
4
  * Copyright 2011-2021 Twitter, Inc.
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Reboot v5.0.1 (https://getbootstrap.com/)
2
+ * Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2021 The Bootstrap Authors
4
4
  * Copyright 2011-2021 Twitter, Inc.
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Utilities v5.0.1 (https://getbootstrap.com/)
2
+ * Bootstrap Utilities v5.1.0 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2021 The Bootstrap Authors
4
4
  * Copyright 2011-2021 Twitter, Inc.
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v5.0.1 (https://getbootstrap.com/)
2
+ * Bootstrap v5.1.0 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2021 The Bootstrap Authors
4
4
  * Copyright 2011-2021 Twitter, Inc.
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -43,6 +43,7 @@
43
43
  @import "carousel";
44
44
  @import "spinners";
45
45
  @import "offcanvas";
46
+ @import "placeholders";
46
47
 
47
48
  // Helpers
48
49
  @import "helpers";
@@ -4,7 +4,7 @@
4
4
  > .form-control,
5
5
  > .form-select {
6
6
  height: $form-floating-height;
7
- padding: $form-floating-padding-y $form-floating-padding-x;
7
+ line-height: $form-floating-line-height;
8
8
  }
9
9
 
10
10
  > label {
@@ -21,6 +21,8 @@
21
21
 
22
22
  // stylelint-disable no-duplicate-selectors
23
23
  > .form-control {
24
+ padding: $form-floating-padding-y $form-floating-padding-x;
25
+
24
26
  &::placeholder {
25
27
  color: transparent;
26
28
  }
@@ -17,7 +17,7 @@
17
17
  .form-check-input {
18
18
  width: $form-check-input-width;
19
19
  height: $form-check-input-width;
20
- margin-top: ($line-height-base - $form-check-input-width) / 2; // line-height minus check height
20
+ margin-top: ($line-height-base - $form-check-input-width) * .5; // line-height minus check height
21
21
  vertical-align: top;
22
22
  background-color: $form-check-input-bg;
23
23
  background-repeat: no-repeat;
@@ -199,7 +199,7 @@ textarea {
199
199
  // stylelint-enable selector-no-qualifying-type
200
200
 
201
201
  .form-control-color {
202
- max-width: 3rem;
202
+ width: $form-color-width;
203
203
  height: auto; // Override fixed browser height
204
204
  padding: $input-padding-y;
205
205
 
@@ -27,7 +27,7 @@
27
27
  &::-webkit-slider-thumb {
28
28
  width: $form-range-thumb-width;
29
29
  height: $form-range-thumb-height;
30
- margin-top: ($form-range-track-height - $form-range-thumb-height) / 2; // Webkit specific
30
+ margin-top: ($form-range-track-height - $form-range-thumb-height) * .5; // Webkit specific
31
31
  @include gradient-bg($form-range-thumb-bg);
32
32
  border: $form-range-thumb-border;
33
33
  @include border-radius($form-range-thumb-border-radius);
@@ -7,6 +7,8 @@
7
7
  display: block;
8
8
  width: 100%;
9
9
  padding: $form-select-padding-y $form-select-indicator-padding $form-select-padding-y $form-select-padding-x;
10
+ // stylelint-disable-next-line property-no-vendor-prefix
11
+ -moz-padding-start: subtract($form-select-padding-x, 3px); // See https://github.com/twbs/bootstrap/issues/32636
10
12
  font-family: $form-select-font-family;
11
13
  @include font-size($form-select-font-size);
12
14
  font-weight: $form-select-font-weight;
@@ -20,6 +22,7 @@
20
22
  border: $form-select-border-width solid $form-select-border-color;
21
23
  @include border-radius($form-select-border-radius, 0);
22
24
  @include box-shadow($form-select-box-shadow);
25
+ @include transition($form-select-transition);
23
26
  appearance: none;
24
27
 
25
28
  &:focus {
@@ -0,0 +1,15 @@
1
+ // scss-docs-start stacks
2
+ .hstack {
3
+ display: flex;
4
+ flex-direction: row;
5
+ align-items: center;
6
+ align-self: stretch;
7
+ }
8
+
9
+ .vstack {
10
+ display: flex;
11
+ flex: 1 1 auto;
12
+ flex-direction: column;
13
+ align-self: stretch;
14
+ }
15
+ // scss-docs-end stacks