aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/assets
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-22 06:38:27 +0000
committerMario <mario@mariovavti.com>2021-09-22 06:38:27 +0000
commit89e4006b2d84d398e34d407a019854823b1dd37d (patch)
treeeed215c505af2395952b474917a92584f9e1866a /vendor/twbs/bootstrap/site/assets
parent26ac452c96ce499c140bcbae78643b8fe39b4243 (diff)
downloadvolse-hubzilla-89e4006b2d84d398e34d407a019854823b1dd37d.tar.gz
volse-hubzilla-89e4006b2d84d398e34d407a019854823b1dd37d.tar.bz2
volse-hubzilla-89e4006b2d84d398e34d407a019854823b1dd37d.zip
composer update bootstrap to version 5.1.1
Diffstat (limited to 'vendor/twbs/bootstrap/site/assets')
-rw-r--r--vendor/twbs/bootstrap/site/assets/js/application.js27
-rw-r--r--vendor/twbs/bootstrap/site/assets/scss/_component-examples.scss26
-rw-r--r--vendor/twbs/bootstrap/site/assets/scss/docs.scss6
3 files changed, 48 insertions, 11 deletions
diff --git a/vendor/twbs/bootstrap/site/assets/js/application.js b/vendor/twbs/bootstrap/site/assets/js/application.js
index 6ff316056..dd9162e40 100644
--- a/vendor/twbs/bootstrap/site/assets/js/application.js
+++ b/vendor/twbs/bootstrap/site/assets/js/application.js
@@ -58,6 +58,22 @@
})
}
+ var alertPlaceholder = document.getElementById('liveAlertPlaceholder')
+ var alertTrigger = document.getElementById('liveAlertBtn')
+
+ function alert(message, type) {
+ var wrapper = document.createElement('div')
+ wrapper.innerHTML = '<div class="alert alert-' + type + ' alert-dismissible" role="alert">' + message + '<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>'
+
+ alertPlaceholder.append(wrapper)
+ }
+
+ if (alertTrigger) {
+ alertTrigger.addEventListener('click', function () {
+ alert('Nice, you triggered this alert message!', 'success')
+ })
+ }
+
// Demos within modals
document.querySelectorAll('.tooltip-test')
.forEach(function (tooltip) {
@@ -101,17 +117,6 @@
})
}
- // Activate animated progress bar
- var btnToggleAnimatedProgress = document.getElementById('btnToggleAnimatedProgress')
- if (btnToggleAnimatedProgress) {
- btnToggleAnimatedProgress.addEventListener('click', function () {
- btnToggleAnimatedProgress.parentNode
- .querySelector('.progress-bar-striped')
- .classList
- .toggle('progress-bar-animated')
- })
- }
-
// Insert copy to clipboard button before .highlight
var btnHtml = '<div class="bd-clipboard"><button type="button" class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'
document.querySelectorAll('div.highlight')
diff --git a/vendor/twbs/bootstrap/site/assets/scss/_component-examples.scss b/vendor/twbs/bootstrap/site/assets/scss/_component-examples.scss
index e831b1609..f93f1ee98 100644
--- a/vendor/twbs/bootstrap/site/assets/scss/_component-examples.scss
+++ b/vendor/twbs/bootstrap/site/assets/scss/_component-examples.scss
@@ -23,6 +23,21 @@
background-color: rgba(255, 0, 0, .1);
}
+.bd-example-cssgrid {
+ text-align: center;
+
+ .grid + .grid {
+ margin-top: 1rem;
+ }
+
+ .grid > * {
+ padding-top: .75rem;
+ padding-bottom: .75rem;
+ background-color: rgba(255, 0, 255, .1);
+ border: 1px solid rgba(255, 0, 255, .25);
+ }
+}
+
.bd-highlight {
background-color: rgba($bd-purple, .15);
border: 1px solid rgba($bd-purple, .15);
@@ -277,6 +292,17 @@
}
}
+// Placeholders
+.bd-example-placeholder-cards {
+ &::after {
+ display: none;
+ }
+
+ .card {
+ width: 18rem;
+ }
+}
+
// Toasts
.bd-example-toasts {
min-height: 240px;
diff --git a/vendor/twbs/bootstrap/site/assets/scss/docs.scss b/vendor/twbs/bootstrap/site/assets/scss/docs.scss
index e3066ed2e..8b7bc99a1 100644
--- a/vendor/twbs/bootstrap/site/assets/scss/docs.scss
+++ b/vendor/twbs/bootstrap/site/assets/scss/docs.scss
@@ -28,6 +28,12 @@
@import "../../../scss/variables";
@import "../../../scss/mixins";
+// fusv-disable
+$enable-grid-classes: false; // stylelint-disable-line scss/dollar-variable-default
+$enable-cssgrid: true; // stylelint-disable-line scss/dollar-variable-default
+// fusv-enable
+@import "../../../scss/grid";
+
// Load docs components
@import "variables";
@import "navbar";