aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/scss/utilities
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/twbs/bootstrap/scss/utilities')
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_borders.scss18
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_display.scss24
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_embed.scss27
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_float.scss8
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_overflow.scss5
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_position.scss5
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_sizing.scss8
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_spacing.scss24
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_stretched-link.scss19
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_text.scss24
-rw-r--r--vendor/twbs/bootstrap/scss/utilities/_visibility.scss6
11 files changed, 113 insertions, 55 deletions
diff --git a/vendor/twbs/bootstrap/scss/utilities/_borders.scss b/vendor/twbs/bootstrap/scss/utilities/_borders.scss
index b8832ef72..302f6bf84 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_borders.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_borders.scss
@@ -1,4 +1,4 @@
-// stylelint-disable declaration-no-important
+// stylelint-disable property-blacklist, declaration-no-important
//
// Border
@@ -30,30 +30,46 @@
// Border-radius
//
+.rounded-sm {
+ border-radius: $border-radius-sm !important;
+}
+
.rounded {
border-radius: $border-radius !important;
}
+
.rounded-top {
border-top-left-radius: $border-radius !important;
border-top-right-radius: $border-radius !important;
}
+
.rounded-right {
border-top-right-radius: $border-radius !important;
border-bottom-right-radius: $border-radius !important;
}
+
.rounded-bottom {
border-bottom-right-radius: $border-radius !important;
border-bottom-left-radius: $border-radius !important;
}
+
.rounded-left {
border-top-left-radius: $border-radius !important;
border-bottom-left-radius: $border-radius !important;
}
+.rounded-lg {
+ border-radius: $border-radius-lg !important;
+}
+
.rounded-circle {
border-radius: 50% !important;
}
+.rounded-pill {
+ border-radius: $rounded-pill !important;
+}
+
.rounded-0 {
border-radius: 0 !important;
}
diff --git a/vendor/twbs/bootstrap/scss/utilities/_display.scss b/vendor/twbs/bootstrap/scss/utilities/_display.scss
index 20aeeb5f3..130367998 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_display.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_display.scss
@@ -8,15 +8,9 @@
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
- .d#{$infix}-none { display: none !important; }
- .d#{$infix}-inline { display: inline !important; }
- .d#{$infix}-inline-block { display: inline-block !important; }
- .d#{$infix}-block { display: block !important; }
- .d#{$infix}-table { display: table !important; }
- .d#{$infix}-table-row { display: table-row !important; }
- .d#{$infix}-table-cell { display: table-cell !important; }
- .d#{$infix}-flex { display: flex !important; }
- .d#{$infix}-inline-flex { display: inline-flex !important; }
+ @each $value in $displays {
+ .d#{$infix}-#{$value} { display: $value !important; }
+ }
}
}
@@ -26,13 +20,7 @@
//
@media print {
- .d-print-none { display: none !important; }
- .d-print-inline { display: inline !important; }
- .d-print-inline-block { display: inline-block !important; }
- .d-print-block { display: block !important; }
- .d-print-table { display: table !important; }
- .d-print-table-row { display: table-row !important; }
- .d-print-table-cell { display: table-cell !important; }
- .d-print-flex { display: flex !important; }
- .d-print-inline-flex { display: inline-flex !important; }
+ @each $value in $displays {
+ .d-print-#{$value} { display: $value !important; }
+ }
}
diff --git a/vendor/twbs/bootstrap/scss/utilities/_embed.scss b/vendor/twbs/bootstrap/scss/utilities/_embed.scss
index d3362b6fd..4497ac040 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_embed.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_embed.scss
@@ -27,26 +27,13 @@
}
}
-.embed-responsive-21by9 {
- &::before {
- padding-top: percentage(9 / 21);
- }
-}
-
-.embed-responsive-16by9 {
- &::before {
- padding-top: percentage(9 / 16);
- }
-}
-
-.embed-responsive-4by3 {
- &::before {
- padding-top: percentage(3 / 4);
- }
-}
+@each $embed-responsive-aspect-ratio in $embed-responsive-aspect-ratios {
+ $embed-responsive-aspect-ratio-x: nth($embed-responsive-aspect-ratio, 1);
+ $embed-responsive-aspect-ratio-y: nth($embed-responsive-aspect-ratio, 2);
-.embed-responsive-1by1 {
- &::before {
- padding-top: percentage(1 / 1);
+ .embed-responsive-#{$embed-responsive-aspect-ratio-x}by#{$embed-responsive-aspect-ratio-y} {
+ &::before {
+ padding-top: percentage($embed-responsive-aspect-ratio-y / $embed-responsive-aspect-ratio-x);
+ }
}
}
diff --git a/vendor/twbs/bootstrap/scss/utilities/_float.scss b/vendor/twbs/bootstrap/scss/utilities/_float.scss
index 01655e9a5..54250844f 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_float.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_float.scss
@@ -1,9 +1,11 @@
+// stylelint-disable declaration-no-important
+
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
- .float#{$infix}-left { @include float-left; }
- .float#{$infix}-right { @include float-right; }
- .float#{$infix}-none { @include float-none; }
+ .float#{$infix}-left { float: left !important; }
+ .float#{$infix}-right { float: right !important; }
+ .float#{$infix}-none { float: none !important; }
}
}
diff --git a/vendor/twbs/bootstrap/scss/utilities/_overflow.scss b/vendor/twbs/bootstrap/scss/utilities/_overflow.scss
new file mode 100644
index 000000000..8326c3064
--- /dev/null
+++ b/vendor/twbs/bootstrap/scss/utilities/_overflow.scss
@@ -0,0 +1,5 @@
+// stylelint-disable declaration-no-important
+
+@each $value in $overflows {
+ .overflow-#{$value} { overflow: $value !important; }
+}
diff --git a/vendor/twbs/bootstrap/scss/utilities/_position.scss b/vendor/twbs/bootstrap/scss/utilities/_position.scss
index 9ecdeeb9b..cdf6c115f 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_position.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_position.scss
@@ -1,11 +1,6 @@
// stylelint-disable declaration-no-important
// Common values
-
-// Sass list not in variables since it's not intended for customization.
-// stylelint-disable-next-line scss/dollar-variable-default
-$positions: static, relative, absolute, fixed, sticky;
-
@each $position in $positions {
.position-#{$position} { position: $position !important; }
}
diff --git a/vendor/twbs/bootstrap/scss/utilities/_sizing.scss b/vendor/twbs/bootstrap/scss/utilities/_sizing.scss
index e95a4db36..f37648802 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_sizing.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_sizing.scss
@@ -10,3 +10,11 @@
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }
+
+// Viewport additional helpers
+
+.min-vw-100 { min-width: 100vw !important; }
+.min-vh-100 { min-height: 100vh !important; }
+
+.vw-100 { width: 100vw !important; }
+.vh-100 { height: 100vh !important; }
diff --git a/vendor/twbs/bootstrap/scss/utilities/_spacing.scss b/vendor/twbs/bootstrap/scss/utilities/_spacing.scss
index b2e2354b1..351136790 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_spacing.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_spacing.scss
@@ -8,7 +8,6 @@
@each $prop, $abbrev in (margin: m, padding: p) {
@each $size, $length in $spacers {
-
.#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
.#{$abbrev}t#{$infix}-#{$size},
.#{$abbrev}y#{$infix}-#{$size} {
@@ -29,6 +28,29 @@
}
}
+ // Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`)
+ @each $size, $length in $spacers {
+ @if $size != 0 {
+ .m#{$infix}-n#{$size} { margin: -$length !important; }
+ .mt#{$infix}-n#{$size},
+ .my#{$infix}-n#{$size} {
+ margin-top: -$length !important;
+ }
+ .mr#{$infix}-n#{$size},
+ .mx#{$infix}-n#{$size} {
+ margin-right: -$length !important;
+ }
+ .mb#{$infix}-n#{$size},
+ .my#{$infix}-n#{$size} {
+ margin-bottom: -$length !important;
+ }
+ .ml#{$infix}-n#{$size},
+ .mx#{$infix}-n#{$size} {
+ margin-left: -$length !important;
+ }
+ }
+ }
+
// Some special margin utils
.m#{$infix}-auto { margin: auto !important; }
.mt#{$infix}-auto,
diff --git a/vendor/twbs/bootstrap/scss/utilities/_stretched-link.scss b/vendor/twbs/bootstrap/scss/utilities/_stretched-link.scss
new file mode 100644
index 000000000..fb5066bf5
--- /dev/null
+++ b/vendor/twbs/bootstrap/scss/utilities/_stretched-link.scss
@@ -0,0 +1,19 @@
+//
+// Stretched link
+//
+
+.stretched-link {
+ &::after {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1;
+ // Just in case `pointer-events: none` is set on a parent
+ pointer-events: auto;
+ content: "";
+ // IE10 bugfix, see https://stackoverflow.com/questions/16947967/ie10-hover-pseudo-class-doesnt-work-without-background-color
+ background-color: rgba(0, 0, 0, 0);
+ }
+}
diff --git a/vendor/twbs/bootstrap/scss/utilities/_text.scss b/vendor/twbs/bootstrap/scss/utilities/_text.scss
index 9d96c4656..589e5687a 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_text.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_text.scss
@@ -4,11 +4,12 @@
// Text
//
-.text-monospace { font-family: $font-family-monospace; }
+.text-monospace { font-family: $font-family-monospace !important; }
// Alignment
.text-justify { text-align: justify !important; }
+.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate { @include text-truncate; }
@@ -32,10 +33,12 @@
// Weight and italics
-.font-weight-light { font-weight: $font-weight-light !important; }
-.font-weight-normal { font-weight: $font-weight-normal !important; }
-.font-weight-bold { font-weight: $font-weight-bold !important; }
-.font-italic { font-style: italic !important; }
+.font-weight-light { font-weight: $font-weight-light !important; }
+.font-weight-lighter { font-weight: $font-weight-lighter !important; }
+.font-weight-normal { font-weight: $font-weight-normal !important; }
+.font-weight-bold { font-weight: $font-weight-bold !important; }
+.font-weight-bolder { font-weight: $font-weight-bolder !important; }
+.font-italic { font-style: italic !important; }
// Contextual colors
@@ -56,3 +59,14 @@
.text-hide {
@include text-hide($ignore-warning: true);
}
+
+.text-decoration-none { text-decoration: none !important; }
+
+.text-break {
+ word-break: break-word !important; // IE & < Edge 18
+ overflow-wrap: break-word !important;
+}
+
+// Reset
+
+.text-reset { color: inherit !important; }
diff --git a/vendor/twbs/bootstrap/scss/utilities/_visibility.scss b/vendor/twbs/bootstrap/scss/utilities/_visibility.scss
index 823406dc3..7756c3bfa 100644
--- a/vendor/twbs/bootstrap/scss/utilities/_visibility.scss
+++ b/vendor/twbs/bootstrap/scss/utilities/_visibility.scss
@@ -1,11 +1,13 @@
+// stylelint-disable declaration-no-important
+
//
// Visibility utilities
//
.visible {
- @include invisible(visible);
+ visibility: visible !important;
}
.invisible {
- @include invisible(hidden);
+ visibility: hidden !important;
}