From 2a1341b910dfb1187dd9fceebd2b3be14e825e28 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 28 Apr 2023 19:02:23 +0000 Subject: update bootstrap --- .../twbs/bootstrap/site/layouts/_default/docs.html | 13 ++-- .../bootstrap/site/layouts/_default/examples.html | 77 +++++++++++++++++++++- .../partials/callouts/danger-async-methods.md | 6 +- .../layouts/partials/callouts/info-npm-starter.md | 2 +- .../warning-color-assistive-technologies.md | 4 +- .../partials/callouts/warning-input-support.md | 4 +- .../site/layouts/partials/docs-navbar.html | 13 ++-- .../bootstrap/site/layouts/partials/footer.html | 4 +- .../partials/home/components-utilities.html | 10 +-- .../site/layouts/partials/home/css-variables.html | 4 +- .../site/layouts/partials/home/customize.html | 5 +- .../site/layouts/partials/home/get-started.html | 16 ++--- .../site/layouts/partials/home/icons.html | 4 +- .../site/layouts/partials/home/masthead.html | 6 +- .../site/layouts/partials/home/plugins.html | 22 +++---- .../site/layouts/partials/home/themes.html | 4 +- .../bootstrap/site/layouts/partials/icons.html | 4 +- .../partials/icons/bootstrap-logo-solid.svg | 1 - .../site/layouts/partials/icons/bootstrap.svg | 1 - .../site/layouts/partials/icons/cloud-fill.svg | 3 - .../bootstrap/site/layouts/partials/icons/code.svg | 3 - .../site/layouts/partials/icons/collapse.svg | 4 -- .../site/layouts/partials/icons/expand.svg | 4 -- .../site/layouts/partials/icons/homepage-hero.svg | 1 - .../bootstrap/site/layouts/partials/icons/list.svg | 3 - .../bootstrap/site/layouts/partials/icons/menu.svg | 1 - .../site/layouts/partials/js-data-attributes.md | 2 + .../bootstrap/site/layouts/partials/social.html | 28 +++++--- .../bootstrap/site/layouts/shortcodes/example.html | 4 +- .../site/layouts/shortcodes/js-dismiss.html | 4 +- .../site/layouts/shortcodes/placeholder.html | 4 +- .../site/layouts/shortcodes/scss-docs.html | 35 +++++++++- 32 files changed, 196 insertions(+), 100 deletions(-) delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap-logo-solid.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/cloud-fill.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/code.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/collapse.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/expand.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/homepage-hero.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/list.svg delete mode 100644 vendor/twbs/bootstrap/site/layouts/partials/icons/menu.svg (limited to 'vendor/twbs/bootstrap/site/layouts') diff --git a/vendor/twbs/bootstrap/site/layouts/_default/docs.html b/vendor/twbs/bootstrap/site/layouts/_default/docs.html index 2ad46376f..cbf06a554 100644 --- a/vendor/twbs/bootstrap/site/layouts/_default/docs.html +++ b/vendor/twbs/bootstrap/site/layouts/_default/docs.html @@ -1,3 +1,4 @@ +{{ define "body_override" }}{{ end }} {{ define "main" }}
@@ -32,14 +32,14 @@ {{ highlight (printf ` `) "html" "" }}

Learn more about our JavaScript as modules and using the programmatic API.

@@ -54,7 +54,7 @@ {{- end }} diff --git a/vendor/twbs/bootstrap/site/layouts/partials/home/themes.html b/vendor/twbs/bootstrap/site/layouts/partials/home/themes.html index e832f2c63..3e286f267 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/home/themes.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/home/themes.html @@ -8,9 +8,9 @@ Take Bootstrap to the next level with premium themes from the official Bootstrap Themes marketplace. Themes are built on Bootstrap as their own extended frameworks, rich with new components and plugins, documentation, and powerful build tools.

- + Browse Bootstrap Themes - +

diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons.html b/vendor/twbs/bootstrap/site/layouts/partials/icons.html index 9d078f9e7..e181d8b25 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons.html @@ -1,6 +1,6 @@ - - + + diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap-logo-solid.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap-logo-solid.svg deleted file mode 100644 index 59bed369b..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap-logo-solid.svg +++ /dev/null @@ -1 +0,0 @@ -{{ with .title }}{{ . }}{{ else }}Bootstrap{{ end }} diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap.svg deleted file mode 100644 index 1b57d335e..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap.svg +++ /dev/null @@ -1 +0,0 @@ -{{ with .title }}{{ . }}{{ else }}Bootstrap{{ end }} \ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/cloud-fill.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/cloud-fill.svg deleted file mode 100644 index 4ca9276eb..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/cloud-fill.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/code.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/code.svg deleted file mode 100644 index 73156851a..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/code.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/collapse.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/collapse.svg deleted file mode 100644 index ede702d68..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/collapse.svg +++ /dev/null @@ -1,4 +0,0 @@ - - {{ with .title }}{{ . }}{{ else }}Collapse{{ end }} - - diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/expand.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/expand.svg deleted file mode 100644 index d14315175..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/expand.svg +++ /dev/null @@ -1,4 +0,0 @@ - - {{ with .title }}{{ . }}{{ else }}Expand{{ end }} - - diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/homepage-hero.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/homepage-hero.svg deleted file mode 100644 index 538045ad9..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/homepage-hero.svg +++ /dev/null @@ -1 +0,0 @@ -{{ with .title }}{{ . }}{{ else }}Bootstrap{{ end }} \ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/list.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/list.svg deleted file mode 100644 index a801c2262..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/list.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/menu.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/menu.svg deleted file mode 100644 index 70eaccec7..000000000 --- a/vendor/twbs/bootstrap/site/layouts/partials/icons/menu.svg +++ /dev/null @@ -1 +0,0 @@ -{{ with .title }}{{ . }}{{ else }}Menu{{ end }} \ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/js-data-attributes.md b/vendor/twbs/bootstrap/site/layouts/partials/js-data-attributes.md index e99ff7112..3b3696ed8 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/js-data-attributes.md +++ b/vendor/twbs/bootstrap/site/layouts/partials/js-data-attributes.md @@ -1,3 +1,5 @@ As options can be passed via data attributes or JavaScript, you can append an option name to `data-bs-`, as in `data-bs-animation="{value}"`. Make sure to change the case type of the option name from "_camelCase_" to "_kebab-case_" when passing the options via data attributes. For example, use `data-bs-custom-class="beautifier"` instead of `data-bs-customClass="beautifier"`. As of Bootstrap 5.2.0, all components support an **experimental** reserved data attribute `data-bs-config` that can house simple component configuration as a JSON string. When an element has `data-bs-config='{"delay":0, "title":123}'` and `data-bs-title="456"` attributes, the final `title` value will be `456` and the separate data attributes will override values given on `data-bs-config`. In addition, existing data attributes are able to house JSON values like `data-bs-delay='{"show":0,"hide":150}'`. + +The final configuration object is the merged result of `data-bs-config`, `data-bs-`, and `js object` where the latest given key-value overrides the others. diff --git a/vendor/twbs/bootstrap/site/layouts/partials/social.html b/vendor/twbs/bootstrap/site/layouts/partials/social.html index 2226c386c..f4f556e5a 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/social.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/social.html @@ -1,15 +1,27 @@ +{{- $pageTitle := .Title | markdownify -}} +{{- $pageDescription := .Page.Params.description | default .Site.Params.description | markdownify -}} +{{- $socialImagePath := printf "/docs/%s/assets" .Site.Params.docs_version -}} + +{{- if .Page.Params.thumbnail -}} + {{- $socialImagePath = path.Join $socialImagePath "img/" .Page.Params.thumbnail -}} +{{- else -}} + {{- $socialImagePath = path.Join $socialImagePath "brand/bootstrap-social.png" -}} +{{- end -}} + - - - + + + - - + + + - - - +{{ with (imageConfig (path.Join "site/static" $socialImagePath)) -}} + + +{{- end }} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html index 8a9cdff0c..ab183e0a3 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html @@ -28,8 +28,8 @@ {{- if eq $show_markup true -}} {{- if eq $show_preview true -}} -
- {{- $lang -}} +
+ {{- $lang -}}
``` -or on a button **outside the {{ $name }}** using the `data-bs-target` as demonstrated below: +or on a button **outside the {{ $name }}** using the additional `data-bs-target` as demonstrated below: ```html diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html index 7c65bf00b..6a6a02033 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html @@ -32,8 +32,8 @@ {{- if eq $markup "img" -}} {{ $title }} : {{ $text }} {{- else -}}
+
+ + {{- $file -}} + +
+ +
+
+ {{- $unindent := 0 -}} + {{- $found := false -}} + {{- $first_line:= index (split $match "\n") 0 -}} + {{- range $char := split $first_line "" -}} + {{- if and (eq $char " ") (not $found) -}} + {{- $unindent = add $unindent 1 -}} + {{- else -}} + {{- $found = true -}} + {{- end -}} + {{- end -}} + {{- $output := "" -}} + {{- if (gt $unindent 0) -}} + {{- $prefix := (strings.Repeat $unindent " ") -}} + {{- range $line := split $match "\n" -}} + {{- $line = strings.TrimPrefix $prefix $line -}} + {{ $output = printf "%s%s\n" $output $line }} + {{- end -}} + {{- $output = chomp $output -}} + {{- else -}} + {{- $output = $match -}} + {{- end -}} + {{- highlight $output "scss" "" -}} +
{{- end -}} -- cgit v1.2.3