diff options
author | Mario <mario@mariovavti.com> | 2021-07-29 09:31:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-07-29 09:31:47 +0000 |
commit | cb57c4ea188b982119f515f043a72f037f943025 (patch) | |
tree | 11144c1107f16047ed37f543fc34859d0c649e08 /vendor/twbs/bootstrap/scss/helpers | |
parent | c6133d2558ce29e44342fa7be8bb65e0059aea02 (diff) | |
parent | b7ffec6fbe77eff3c550a922f50bd79321b293ed (diff) | |
download | volse-hubzilla-cb57c4ea188b982119f515f043a72f037f943025.tar.gz volse-hubzilla-cb57c4ea188b982119f515f043a72f037f943025.tar.bz2 volse-hubzilla-cb57c4ea188b982119f515f043a72f037f943025.zip |
Merge branch 'bs5' into 'dev'
Update to bootstrap 5 and implement next generation app menu (work in progress)
See merge request hubzilla/core!1980
Diffstat (limited to 'vendor/twbs/bootstrap/scss/helpers')
7 files changed, 101 insertions, 0 deletions
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(); +} |