From d459dfac74e90c29950d49a82edc19fd913d435e Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Jul 2021 08:25:05 +0000 Subject: update to bootstrap 5.0.2 --- vendor/twbs/bootstrap/scss/helpers/_clearfix.scss | 3 +++ .../bootstrap/scss/helpers/_colored-links.scss | 12 +++++++++ vendor/twbs/bootstrap/scss/helpers/_position.scss | 30 ++++++++++++++++++++++ vendor/twbs/bootstrap/scss/helpers/_ratio.scss | 26 +++++++++++++++++++ .../bootstrap/scss/helpers/_stretched-link.scss | 15 +++++++++++ .../bootstrap/scss/helpers/_text-truncation.scss | 7 +++++ .../bootstrap/scss/helpers/_visually-hidden.scss | 8 ++++++ 7 files changed, 101 insertions(+) create mode 100644 vendor/twbs/bootstrap/scss/helpers/_clearfix.scss create mode 100644 vendor/twbs/bootstrap/scss/helpers/_colored-links.scss create mode 100644 vendor/twbs/bootstrap/scss/helpers/_position.scss create mode 100644 vendor/twbs/bootstrap/scss/helpers/_ratio.scss create mode 100644 vendor/twbs/bootstrap/scss/helpers/_stretched-link.scss create mode 100644 vendor/twbs/bootstrap/scss/helpers/_text-truncation.scss create mode 100644 vendor/twbs/bootstrap/scss/helpers/_visually-hidden.scss (limited to 'vendor/twbs/bootstrap/scss/helpers') diff --git a/vendor/twbs/bootstrap/scss/helpers/_clearfix.scss b/vendor/twbs/bootstrap/scss/helpers/_clearfix.scss new file mode 100644 index 000000000..e92522a94 --- /dev/null +++ b/vendor/twbs/bootstrap/scss/helpers/_clearfix.scss @@ -0,0 +1,3 @@ +.clearfix { + @include clearfix(); +} diff --git a/vendor/twbs/bootstrap/scss/helpers/_colored-links.scss b/vendor/twbs/bootstrap/scss/helpers/_colored-links.scss new file mode 100644 index 000000000..8c167dedf --- /dev/null +++ b/vendor/twbs/bootstrap/scss/helpers/_colored-links.scss @@ -0,0 +1,12 @@ +@each $color, $value in $theme-colors { + .link-#{$color} { + color: $value; + + @if $link-shade-percentage != 0 { + &:hover, + &:focus { + color: if(color-contrast($value) == $color-contrast-light, shade-color($value, $link-shade-percentage), tint-color($value, $link-shade-percentage)); + } + } + } +} diff --git a/vendor/twbs/bootstrap/scss/helpers/_position.scss b/vendor/twbs/bootstrap/scss/helpers/_position.scss new file mode 100644 index 000000000..31851eb72 --- /dev/null +++ b/vendor/twbs/bootstrap/scss/helpers/_position.scss @@ -0,0 +1,30 @@ +// Shorthand + +.fixed-top { + position: fixed; + top: 0; + right: 0; + left: 0; + z-index: $zindex-fixed; +} + +.fixed-bottom { + position: fixed; + right: 0; + bottom: 0; + left: 0; + z-index: $zindex-fixed; +} + +// Responsive sticky top +@each $breakpoint in map-keys($grid-breakpoints) { + @include media-breakpoint-up($breakpoint) { + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + + .sticky#{$infix}-top { + position: sticky; + top: 0; + z-index: $zindex-sticky; + } + } +} diff --git a/vendor/twbs/bootstrap/scss/helpers/_ratio.scss b/vendor/twbs/bootstrap/scss/helpers/_ratio.scss new file mode 100644 index 000000000..2390ee339 --- /dev/null +++ b/vendor/twbs/bootstrap/scss/helpers/_ratio.scss @@ -0,0 +1,26 @@ +// Credit: Nicolas Gallagher and SUIT CSS. + +.ratio { + position: relative; + width: 100%; + + &::before { + display: block; + padding-top: var(--#{$variable-prefix}aspect-ratio); + content: ""; + } + + > * { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } +} + +@each $key, $ratio in $aspect-ratios { + .ratio-#{$key} { + --#{$variable-prefix}aspect-ratio: #{$ratio}; + } +} diff --git a/vendor/twbs/bootstrap/scss/helpers/_stretched-link.scss b/vendor/twbs/bootstrap/scss/helpers/_stretched-link.scss new file mode 100644 index 000000000..71a1c755a --- /dev/null +++ b/vendor/twbs/bootstrap/scss/helpers/_stretched-link.scss @@ -0,0 +1,15 @@ +// +// Stretched link +// + +.stretched-link { + &::#{$stretched-link-pseudo-element} { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: $stretched-link-z-index; + content: ""; + } +} diff --git a/vendor/twbs/bootstrap/scss/helpers/_text-truncation.scss b/vendor/twbs/bootstrap/scss/helpers/_text-truncation.scss new file mode 100644 index 000000000..6421dac9a --- /dev/null +++ b/vendor/twbs/bootstrap/scss/helpers/_text-truncation.scss @@ -0,0 +1,7 @@ +// +// Text truncation +// + +.text-truncate { + @include text-truncate(); +} diff --git a/vendor/twbs/bootstrap/scss/helpers/_visually-hidden.scss b/vendor/twbs/bootstrap/scss/helpers/_visually-hidden.scss new file mode 100644 index 000000000..4760ff03d --- /dev/null +++ b/vendor/twbs/bootstrap/scss/helpers/_visually-hidden.scss @@ -0,0 +1,8 @@ +// +// Visually hidden +// + +.visually-hidden, +.visually-hidden-focusable:not(:focus):not(:focus-within) { + @include visually-hidden(); +} -- cgit v1.2.3