From 7bc06b03596d85452e9c57500192b36ad4e4ce82 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 28 Apr 2021 01:25:48 -0400 Subject: [PATCH] Update to bootstrap 5 --- src/assets/images/icons/close.png | Bin 0 -> 1163 bytes src/assets/styles/bootstrap/_accordion.scss | 116 ++ src/assets/styles/bootstrap/_alert.scss | 25 +- src/assets/styles/bootstrap/_badge.scss | 31 +- src/assets/styles/bootstrap/_breadcrumb.scss | 24 +- .../styles/bootstrap/_button-group.scss | 66 +- src/assets/styles/bootstrap/_buttons.scss | 96 +- src/assets/styles/bootstrap/_card.scss | 116 +- src/assets/styles/bootstrap/_carousel.scss | 96 +- src/assets/styles/bootstrap/_close.scss | 68 +- src/assets/styles/bootstrap/_code.scss | 48 - src/assets/styles/bootstrap/_containers.scss | 41 + .../styles/bootstrap/_custom-forms.scss | 524 ------- src/assets/styles/bootstrap/_dropdown.scss | 128 +- src/assets/styles/bootstrap/_forms.scss | 356 +---- src/assets/styles/bootstrap/_functions.scss | 107 +- src/assets/styles/bootstrap/_grid.scss | 57 +- src/assets/styles/bootstrap/_helpers.scss | 7 + src/assets/styles/bootstrap/_input-group.scss | 192 --- src/assets/styles/bootstrap/_jumbotron.scss | 17 - src/assets/styles/bootstrap/_list-group.scss | 36 +- src/assets/styles/bootstrap/_media.scss | 8 - src/assets/styles/bootstrap/_mixins.scss | 20 +- src/assets/styles/bootstrap/_modal.scss | 89 +- src/assets/styles/bootstrap/_nav.scss | 56 +- src/assets/styles/bootstrap/_navbar.scss | 120 +- src/assets/styles/bootstrap/_offcanvas.scss | 77 + src/assets/styles/bootstrap/_pagination.scss | 30 +- src/assets/styles/bootstrap/_popover.scss | 42 +- src/assets/styles/bootstrap/_print.scss | 141 -- src/assets/styles/bootstrap/_progress.scss | 11 +- src/assets/styles/bootstrap/_reboot.scss | 511 ++++--- src/assets/styles/bootstrap/_root.scss | 14 +- src/assets/styles/bootstrap/_spinners.scss | 19 +- src/assets/styles/bootstrap/_tables.scss | 191 +-- src/assets/styles/bootstrap/_toasts.scss | 37 +- src/assets/styles/bootstrap/_tooltip.scss | 34 +- src/assets/styles/bootstrap/_transitions.scss | 3 +- src/assets/styles/bootstrap/_type.scss | 101 +- src/assets/styles/bootstrap/_utilities.scss | 612 +++++++- src/assets/styles/bootstrap/_variables.scss | 1357 ++++++++++------- .../styles/bootstrap/bootstrap-grid.scss | 70 +- .../styles/bootstrap/bootstrap-reboot.scss | 9 +- .../styles/bootstrap/bootstrap-utilities.scss | 18 + src/assets/styles/bootstrap/bootstrap.scss | 28 +- .../bootstrap/forms/_floating-labels.scss | 61 + .../styles/bootstrap/forms/_form-check.scss | 152 ++ .../styles/bootstrap/forms/_form-control.scss | 219 +++ .../styles/bootstrap/forms/_form-range.scss | 91 ++ .../styles/bootstrap/forms/_form-select.scss | 67 + .../styles/bootstrap/forms/_form-text.scss | 11 + .../styles/bootstrap/forms/_input-group.scss | 121 ++ .../styles/bootstrap/forms/_labels.scss | 36 + .../styles/bootstrap/forms/_validation.scss | 12 + .../{utilities => helpers}/_clearfix.scss | 0 .../bootstrap/helpers/_colored-links.scss | 12 + .../styles/bootstrap/helpers/_position.scss | 30 + .../styles/bootstrap/helpers/_ratio.scss | 26 + .../bootstrap/helpers/_stretched-link.scss | 15 + .../bootstrap/helpers/_text-truncation.scss | 7 + .../bootstrap/helpers/_visually-hidden.scss | 8 + .../styles/bootstrap/mixins/_alert.scss | 8 +- .../bootstrap/mixins/_background-variant.scss | 23 - .../styles/bootstrap/mixins/_badge.scss | 17 - .../bootstrap/mixins/_border-radius.scss | 18 +- .../styles/bootstrap/mixins/_box-shadow.scss | 16 +- .../styles/bootstrap/mixins/_breakpoints.scss | 24 +- .../styles/bootstrap/mixins/_buttons.scss | 155 +- .../styles/bootstrap/mixins/_caret.scss | 18 +- .../styles/bootstrap/mixins/_clearfix.scss | 2 + .../styles/bootstrap/mixins/_container.scss | 9 + .../styles/bootstrap/mixins/_float.scss | 14 - .../styles/bootstrap/mixins/_forms.scss | 122 +- .../styles/bootstrap/mixins/_gradients.scss | 24 +- .../bootstrap/mixins/_grid-framework.scss | 80 - src/assets/styles/bootstrap/mixins/_grid.scss | 115 +- .../styles/bootstrap/mixins/_hover.scss | 37 - .../styles/bootstrap/mixins/_image.scss | 22 +- .../styles/bootstrap/mixins/_list-group.scss | 7 +- .../styles/bootstrap/mixins/_lists.scss | 2 +- .../styles/bootstrap/mixins/_nav-divider.scss | 11 - .../styles/bootstrap/mixins/_pagination.scss | 25 +- .../styles/bootstrap/mixins/_reset-text.scss | 4 +- .../bootstrap/mixins/_screen-reader.scss | 34 - src/assets/styles/bootstrap/mixins/_size.scss | 7 - .../styles/bootstrap/mixins/_table-row.scss | 39 - .../bootstrap/mixins/_table-variants.scss | 21 + .../bootstrap/mixins/_text-emphasis.scss | 17 - .../styles/bootstrap/mixins/_text-hide.scss | 11 - .../styles/bootstrap/mixins/_transition.scss | 2 +- .../styles/bootstrap/mixins/_utilities.scss | 68 + .../styles/bootstrap/mixins/_visibility.scss | 8 - .../bootstrap/mixins/_visually-hidden.scss | 29 + .../styles/bootstrap/utilities/_align.scss | 8 - .../styles/bootstrap/utilities/_api.scss | 47 + .../bootstrap/utilities/_background.scss | 19 - .../styles/bootstrap/utilities/_borders.scss | 75 - .../styles/bootstrap/utilities/_display.scss | 26 - .../styles/bootstrap/utilities/_embed.scss | 39 - .../styles/bootstrap/utilities/_flex.scss | 51 - .../styles/bootstrap/utilities/_float.scss | 11 - .../bootstrap/utilities/_interactions.scss | 5 - .../styles/bootstrap/utilities/_overflow.scss | 5 - .../styles/bootstrap/utilities/_position.scss | 32 - .../bootstrap/utilities/_screenreaders.scss | 11 - .../styles/bootstrap/utilities/_shadows.scss | 6 - .../styles/bootstrap/utilities/_sizing.scss | 20 - .../styles/bootstrap/utilities/_spacing.scss | 73 - .../bootstrap/utilities/_stretched-link.scss | 19 - .../styles/bootstrap/utilities/_text.scss | 72 - .../bootstrap/utilities/_visibility.scss | 13 - src/assets/styles/bootstrap/vendor/_rfs.scss | 364 +++-- src/assets/styles/fonts.scss | 24 + src/assets/styles/index.scss | 1 + src/assets/styles/utils.scss | 4 + src/index.scss | 5 +- 116 files changed, 4459 insertions(+), 4077 deletions(-) create mode 100644 src/assets/images/icons/close.png create mode 100644 src/assets/styles/bootstrap/_accordion.scss delete mode 100644 src/assets/styles/bootstrap/_code.scss create mode 100644 src/assets/styles/bootstrap/_containers.scss delete mode 100644 src/assets/styles/bootstrap/_custom-forms.scss create mode 100644 src/assets/styles/bootstrap/_helpers.scss delete mode 100644 src/assets/styles/bootstrap/_input-group.scss delete mode 100644 src/assets/styles/bootstrap/_jumbotron.scss delete mode 100644 src/assets/styles/bootstrap/_media.scss create mode 100644 src/assets/styles/bootstrap/_offcanvas.scss delete mode 100644 src/assets/styles/bootstrap/_print.scss create mode 100644 src/assets/styles/bootstrap/bootstrap-utilities.scss create mode 100644 src/assets/styles/bootstrap/forms/_floating-labels.scss create mode 100644 src/assets/styles/bootstrap/forms/_form-check.scss create mode 100644 src/assets/styles/bootstrap/forms/_form-control.scss create mode 100644 src/assets/styles/bootstrap/forms/_form-range.scss create mode 100644 src/assets/styles/bootstrap/forms/_form-select.scss create mode 100644 src/assets/styles/bootstrap/forms/_form-text.scss create mode 100644 src/assets/styles/bootstrap/forms/_input-group.scss create mode 100644 src/assets/styles/bootstrap/forms/_labels.scss create mode 100644 src/assets/styles/bootstrap/forms/_validation.scss rename src/assets/styles/bootstrap/{utilities => helpers}/_clearfix.scss (100%) create mode 100644 src/assets/styles/bootstrap/helpers/_colored-links.scss create mode 100644 src/assets/styles/bootstrap/helpers/_position.scss create mode 100644 src/assets/styles/bootstrap/helpers/_ratio.scss create mode 100644 src/assets/styles/bootstrap/helpers/_stretched-link.scss create mode 100644 src/assets/styles/bootstrap/helpers/_text-truncation.scss create mode 100644 src/assets/styles/bootstrap/helpers/_visually-hidden.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_background-variant.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_badge.scss create mode 100644 src/assets/styles/bootstrap/mixins/_container.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_float.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_grid-framework.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_hover.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_nav-divider.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_screen-reader.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_size.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_table-row.scss create mode 100644 src/assets/styles/bootstrap/mixins/_table-variants.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_text-emphasis.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_text-hide.scss create mode 100644 src/assets/styles/bootstrap/mixins/_utilities.scss delete mode 100644 src/assets/styles/bootstrap/mixins/_visibility.scss create mode 100644 src/assets/styles/bootstrap/mixins/_visually-hidden.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_align.scss create mode 100644 src/assets/styles/bootstrap/utilities/_api.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_background.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_borders.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_display.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_embed.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_flex.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_float.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_interactions.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_overflow.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_position.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_screenreaders.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_shadows.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_sizing.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_spacing.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_stretched-link.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_text.scss delete mode 100644 src/assets/styles/bootstrap/utilities/_visibility.scss create mode 100644 src/assets/styles/fonts.scss diff --git a/src/assets/images/icons/close.png b/src/assets/images/icons/close.png new file mode 100644 index 0000000000000000000000000000000000000000..a723b3eac2c27b2fee149515c421619c3de11fe2 GIT binary patch literal 1163 zcmV;61a$j}P)q-fI4Nv=jka4qIH!l_dHX@P_hjw6G%f$+P2ZmLe*F4> zp7YTM$jUH`m#CdKswW>apip$6jata4zCzU6n8{*fD1W5Zl#E1>j6A^j$ftKA!h(UI% z6|Gx5sD#F^-#|*&MgPd9%V>C^QS@!O0T=uO87P|-9ow6+`Hk063Ax6`@atdGNNGBy z&@ehiMpuGyC|NC=J$SaxiS+$NR6@_y)`~sHX8&7}*EX}khNj`+KS5Me8&n2cx9x!C z>1UuSF|V#(X->&tHSK#)H+TxpBVMIV>|O7Od5)vqP*F)>w)T$v!nW4e;5^Y=$~4sM z-493C;Y@$`9woSvNQI*2c+YAXol9hgtCAcOEDxq8>R*Skj}B2&i8xsZt^FGj`MM~(hKv5 zp9&y-Z3bll6L8B*wCEtTt5>9R?3|NBP0rP1Lsb~|Jk(GC#=-(hmD24ZL2$Y$+)m25 zfqbGDD&zPFIW-FvDS`1O{L9U9j>9UAC#RPCKY~7W1*%d46Pr<36Q7SjyL@rYacN5Q z<)MJGQ#skN4zY8|ufO6qOmXWlJ0Bk!MEdqT)+-4tMbF7-B3X3erhRXjLa{9ME;x>P z5k2z-;^AiZm{N|} z8XC~leVp36(z%3*Gn?Alv6bFRd7i42z&r;JlUp)Wj9!th_Vr+KVgfSUZfqMKRfa1W ztjTNcR4f=o(ASS8f}8rV2Y1e&lg2#t@+$;)8f68`h0k+He)w|k{5$-Ka4h#dNI7-q z{BMxqUR83gD46TTts;D@7v!9pqVPSKoRDCH^#8#;tnHKzWqP|{H*TH%N!t9+?qgV- zoG_gu;7-cUaoFd7`59#a%Q^7>ci)QdiJM`J?|akqDlAmS(GPGp3l|GcWAadE(Rn$Q zeCMB`T+*Tu+UQ)-`%`s. The `::before` pseudo-element generates an element - // *within* the .breadcrumb-item and thereby inherits the `text-decoration`. - // - // To trick IE into suppressing the underline, we give the pseudo-element an - // underline and then immediately remove it. - + .breadcrumb-item:hover::before { - text-decoration: underline; - } - // stylelint-disable-next-line no-duplicate-selectors - + .breadcrumb-item:hover::before { - text-decoration: none; - } - &.active { color: $breadcrumb-active-color; } diff --git a/src/assets/styles/bootstrap/_button-group.scss b/src/assets/styles/bootstrap/_button-group.scss index da02d793..13aa0569 100644 --- a/src/assets/styles/bootstrap/_button-group.scss +++ b/src/assets/styles/bootstrap/_button-group.scss @@ -1,5 +1,3 @@ -// stylelint-disable selector-no-qualifying-type - // Make the div behave like a button .btn-group, .btn-group-vertical { @@ -10,17 +8,17 @@ > .btn { position: relative; flex: 1 1 auto; + } - // Bring the hover, focused, and "active" buttons to the front to overlay - // the borders properly - @include hover() { - z-index: 1; - } - &:focus, - &:active, - &.active { - z-index: 1; - } + // Bring the hover, focused, and "active" buttons to the front to overlay + // the borders properly + > .btn-check:checked + .btn, + > .btn-check:focus + .btn, + > .btn:hover, + > .btn:focus, + > .btn:active, + > .btn.active { + z-index: 1; } } @@ -45,12 +43,17 @@ // Reset rounded corners > .btn:not(:last-child):not(.dropdown-toggle), > .btn-group:not(:last-child) > .btn { - @include border-right-radius(0); + @include border-end-radius(0); } - > .btn:not(:first-child), + // The left radius should be 0 if the button is: + // - the "third or more" child + // - the second child and the previous element isn't `.btn-check` (making it the first child visually) + // - part of a btn-group which isn't the first child + > .btn:nth-child(n + 3), + > :not(.btn-check) + .btn, > .btn-group:not(:first-child) > .btn { - @include border-left-radius(0); + @include border-start-radius(0); } } @@ -72,11 +75,11 @@ &::after, .dropup &::after, - .dropright &::after { + .dropend &::after { margin-left: 0; } - .dropleft &::before { + .dropstart &::before { margin-right: 0; } } @@ -129,35 +132,8 @@ @include border-bottom-radius(0); } - > .btn:not(:first-child), + > .btn ~ .btn, > .btn-group:not(:first-child) > .btn { @include border-top-radius(0); } } - - -// Checkbox and radio options -// -// In order to support the browser's form validation feedback, powered by the -// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use -// `display: none;` or `visibility: hidden;` as that also hides the popover. -// Simply visually hiding the inputs via `opacity` would leave them clickable in -// certain cases which is prevented by using `clip` and `pointer-events`. -// This way, we ensure a DOM element is visible to position the popover from. -// -// See https://github.com/twbs/bootstrap/pull/12794 and -// https://github.com/twbs/bootstrap/pull/14559 for more information. - -.btn-group-toggle { - > .btn, - > .btn-group > .btn { - margin-bottom: 0; // Override default `