diff options
author | Mario <mario@mariovavti.com> | 2021-09-23 08:33:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-09-23 08:33:36 +0000 |
commit | a451449766d581978068a5b8f8c1e27f50386ea7 (patch) | |
tree | 17388d0d116d3c3a3e14745397b5b3278e933d74 /vendor/twbs/bootstrap/site/layouts | |
parent | 3347fab105a01f38800a907e7d6281d835a29f5c (diff) | |
download | volse-hubzilla-a451449766d581978068a5b8f8c1e27f50386ea7.tar.gz volse-hubzilla-a451449766d581978068a5b8f8c1e27f50386ea7.tar.bz2 volse-hubzilla-a451449766d581978068a5b8f8c1e27f50386ea7.zip |
Revert "composer update bootstrap to version 5.1.1"
This reverts commit 89e4006b2d84d398e34d407a019854823b1dd37d.
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts')
15 files changed, 58 insertions, 87 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/partials/docs-versions.html b/vendor/twbs/bootstrap/site/layouts/partials/docs-versions.html index a38a81823..4415e550d 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/docs-versions.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/docs-versions.html @@ -3,7 +3,7 @@ <span class="d-none d-lg-inline">Bootstrap</span> v{{ .Site.Params.docs_version }} </button> <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-versions"> - <li><a class="dropdown-item current" aria-current="true" href="/docs/{{ .Site.Params.docs_version }}/">Latest ({{ .Site.Params.docs_version }}.x)</a></li> + <li><a class="dropdown-item current" aria-current="true" href="/docs/{{ .Site.Params.docs_version }}/">Latest (5.0.x)</a></li> <li><hr class="dropdown-divider"></li> <li><a class="dropdown-item" href="https://getbootstrap.com/docs/4.6/">v4.6.x</a></li> <li><a class="dropdown-item" href="https://getbootstrap.com/docs/3.4/">v3.4.1</a></li> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/footer.html b/vendor/twbs/bootstrap/site/layouts/partials/footer.html index e3d0f13e4..5e0f88229 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/footer.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/footer.html @@ -18,7 +18,7 @@ <li class="mb-2"><a href="/">Home</a></li> <li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/">Docs</a></li> <li class="mb-2"><a href="/docs/{{ .Site.Params.docs_version }}/examples/">Examples</a></li> - <li class="mb-2"><a href="{{ .Site.Params.themes }}">Themes</a></li> + <li class="mb-2"><a href="{{ .Site.Params.opencollective }}">Themes</a></li> <li class="mb-2"><a href="{{ .Site.Params.blog }}">Blog</a></li> </ul> </div> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/home/masthead.html b/vendor/twbs/bootstrap/site/layouts/partials/home/masthead.html index e5661d9b3..a8a465fed 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/home/masthead.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/home/masthead.html @@ -23,6 +23,6 @@ </p> </div> </div> - {{ partial "ads" . }} + {{ partial "ads.html" . }} </div> </div> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/scripts.html b/vendor/twbs/bootstrap/site/layouts/partials/scripts.html index d25add3ff..d7c694641 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/scripts.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/scripts.html @@ -10,7 +10,7 @@ {{- $vendor := resources.Match "js/vendor/*.js" -}} {{- $js := resources.Match "js/*.js" -}} -{{- $targetDocsJSPath := path.Join "/docs" .Site.Params.docs_version "assets/js/docs.js" -}} +{{- $targetDocsJSPath := printf "/docs/%s/assets/js/docs.js" .Site.Params.docs_version -}} {{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}} {{- if eq hugo.Environment "production" -}} diff --git a/vendor/twbs/bootstrap/site/layouts/partials/stylesheet.html b/vendor/twbs/bootstrap/site/layouts/partials/stylesheet.html index cc4473383..83b30f452 100644 --- a/vendor/twbs/bootstrap/site/layouts/partials/stylesheet.html +++ b/vendor/twbs/bootstrap/site/layouts/partials/stylesheet.html @@ -10,7 +10,7 @@ {{- end }} {{- if (ne .Page.Layout "examples") }} -{{- $targetDocsCssPath := path.Join "/docs" .Site.Params.docs_version "assets/css/docs.css" -}} +{{- $targetDocsCssPath := printf "/docs/%s/assets/css/docs.css" .Site.Params.docs_version -}} {{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}} {{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html index 42a18d578..40b9b8ce5 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/bs-table.html @@ -1,5 +1,6 @@ {{- /* - Usage: `bs-table "class class-foo"`, where class can be any string + Usage: `bs-table "class class-foo"`, + where class can be anything */ -}} {{- $css_class := .Get 0 | default "table" -}} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/callout.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/callout.html index 86683ecf4..007f8a8e8 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/callout.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/callout.html @@ -1,5 +1,6 @@ {{- /* - Usage: `callout "type"`, where `type` is one of info (default), danger, or warning + Usage: `callout "type"`, + where type is one of info (default), danger, warning */ -}} {{- $css_class := .Get 0 | default "info" -}} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/docsref.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/docsref.html index 2379de2b1..88e43d172 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/docsref.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/docsref.html @@ -1 +1 @@ -{{- relref . ((path.Join "docs" $.Site.Params.docs_version (.Get 0)) | relURL) -}} +{{- relref . ((printf "docs/%s%s" $.Site.Params.docs_version (.Get 0)) | relURL) -}} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html index 0592adc6b..fd20839cb 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/example.html @@ -1,28 +1,26 @@ {{- /* - Usage: `example args` + Usage: `example [args]` - `args` are all optional and can be one of the following: - * id: the `div`'s id - default: "" - * class: any extra class(es) to be added to the `div` - default: "" - * show_preview: if the preview should be output in the HTML - default: `true` - * show_markup: if the markup should be output in the HTML - default: `true` + `args` are optional and can be one of the following: + id: the `div`'s id - default: "" + class: any extra class(es) to be added to the `div` - default "" + show_preview: if the preview should be output in the HTML - default: `true` + show_markup: if the markup should be output in the HTML - default: `true` */ -}} -{{- $id := .Get "id" -}} -{{- $class := .Get "class" -}} {{- $lang := .Get "lang" | default "html" -}} {{- $show_preview := .Get "show_preview" | default true -}} {{- $show_markup := .Get "show_markup" | default true -}} {{- $input := .Inner -}} {{- if eq $show_preview true -}} -<div{{ with $id }} id="{{ . }}"{{ end }} class="bd-example{{ with $class }} {{ . }}{{ end }}"> +<div{{ with .Get "id" }} id="{{ . }}"{{ end }} class="bd-example{{ with .Get "class" }} {{ . }}{{ end }}"> {{- $input -}} </div> {{- end -}} {{- if eq $show_markup true -}} - {{- $content := replaceRE `<svg class="bd-placeholder-img(?:-lg)?(?: *?bd-placeholder-img-lg)? ?(.*?)".*?<\/svg>\n` `<img src="..." class="$1" alt="...">` $input -}} + {{- $content := replaceRE `<svg class="bd\-placeholder\-img(?:\-lg)?(?: *?bd\-placeholder\-img\-lg)? ?(.*?)".*?<\/svg>\n` `<img src="..." class="$1" alt="...">` $input -}} {{- $content = replaceRE ` (class=" *?")` "" $content -}} {{- highlight (trim $content "\n") $lang "" -}} {{- end -}} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html deleted file mode 100644 index 45d72d0eb..000000000 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/js-dismiss.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- /* Usage: js-dismiss "ComponentName" */ -}} - -{{- $name := .Get 0 -}} - -Dismissal can be achieved with the `data` attribute on a button **within the {{ $name }}** as demonstrated below: - -```html -<button type="button" class="btn-close" data-bs-dismiss="{{ $name }}" aria-label="Close"></button> -``` - -or on a button **outside the {{ $name }}** using the `data-bs-target` as demonstrated below: - -```html -<button type="button" class="btn-close" data-bs-dismiss="{{ $name }}" data-bs-target="#my-{{ $name }}" aria-label="Close"></button> -``` diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html index 34ad00c87..50e2060ae 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html @@ -1,13 +1,11 @@ {{- /* Work around wrong escapes in integrity attributes. - Original: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/param.html */ -}} {{- $name := .Get 0 -}} {{- with $name -}} {{- $value := $.Page.Param . -}} -{{- /* If any parameter ends with `_hash`, mark the string as safe HTML */ -}} -{{- if (strings.HasSuffix $name "_hash") -}} +{{- if in $name "_hash" -}} {{- $value = $value | safeHTML -}} {{- end -}} {{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html index c267bf4a7..2373bc927 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html @@ -1,24 +1,21 @@ {{- /* Usage: `placeholder args` - `args` are all optional and can be one of the following: - * title: Used in the SVG `title` tag - default: "Placeholder" - * text: The text to show in the image - default: "width x height" - * class: Class to add to the `svg` - default: "bd-placeholder-img" - * color: The text color (foreground) - default: "#dee2e6" - * background: The background color - default: "#868e96" - * width: default: "100%" - * height: default: "180px" + args can be one of the following: + title: Used in the SVG `title` tag, default "Placeholder" + text: The text to show in the image - default: "width x height" + class: default: "bd-placeholder-img" + color: The text color (foreground) - default: "#dee2e6" + background: The background color - default: "#868e96" + width: default: 100% + height: default: 180px */ -}} {{- $grays := $.Site.Data.grays -}} -{{- $default_color := (index $grays 2).hex -}} -{{- $default_background := (index $grays 5).hex -}} - {{- $title := .Get "title" | default "Placeholder" -}} {{- $class := .Get "class" -}} -{{- $color := .Get "color" | default $default_color -}} -{{- $background := .Get "background" | default $default_background -}} +{{- $color := .Get "color" | default (index $grays 2).hex -}} +{{- $background := .Get "background" | default (index $grays 5).hex -}} {{- $width := .Get "width" | default "100%" -}} {{- $height := .Get "height" | default "180" -}} {{- $text := .Get "text" | default (printf "%sx%s" $width $height) -}} @@ -27,7 +24,7 @@ {{- $show_text := not (eq $text "false") -}} <svg class="bd-placeholder-img{{ with $class }} {{ . }}{{ end }}" width="{{ $width }}" height="{{ $height }}" xmlns="http://www.w3.org/2000/svg"{{ if (or $show_title $show_text) }} role="img" aria-label="{{ if $show_title }}{{ $title }}{{ if $show_text }}: {{ end }}{{ end }}{{ if ($show_text) }}{{ $text }}{{ end }}"{{ else }} aria-hidden="true"{{ end }} preserveAspectRatio="xMidYMid slice" focusable="false"> - {{- if $show_title }}<title>{{ $title }}</title>{{ end -}} + {{- if $show_title -}}<title>{{ $title }}</title>{{- end -}} <rect width="100%" height="100%" fill="{{ $background }}"/> - {{- if $show_text }}<text x="50%" y="50%" fill="{{ $color }}" dy=".3em">{{ $text }}</text>{{ end -}} + {{- if $show_text -}}<text x="50%" y="50%" fill="{{ $color }}" dy=".3em">{{ $text }}</text>{{- end -}} </svg> diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/scss-docs.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/scss-docs.html index 3d1cd09a5..16a906e77 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/scss-docs.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/scss-docs.html @@ -1,43 +1,33 @@ {{- /* Usage: `scss-docs name="name" file="file/_location.scss"` - Prints everything between `// scss-docs-start "name"` and `// scss-docs-end "name"` - comments in the docs. + Prints everything between `// scss-docs-start "name"` and `// scss-docs-end "name"` + comments in the docs. - Optional parameters: - * strip-default: Remove the ` !default` flag from variable assignments - default: `true` + Optional parameters: + strip-default: Remove the ` !default` flag from variable assignments - default: `true` */ -}} {{- $name := .Get "name" -}} {{- $file := .Get "file" -}} {{- $strip_default := .Get "strip-default" | default "true" -}} -{{- /* If any parameters are missing, print an error and exit */ -}} -{{- if or (not $name) (not $file) -}} - {{- errorf "%s: %q: Missing required parameters! Got: name=%q file=%q!" .Position .Name $name $file -}} -{{- else -}} - {{- $capture_start := printf "// scss-docs-start %s\n" $name -}} - {{- $capture_end := printf "// scss-docs-end %s" $name -}} - {{- $regex := printf `%s((?:.|\n)*)%s` $capture_start $capture_end -}} +{{- $start := printf "// scss-docs-start %s\n" $name -}} +{{- $end := printf "// scss-docs-end %s" $name -}} +{{- $regex := printf "%s(.|\n)*%s" $start $end -}} - {{- /* - TODO: figure out why we can't do the following and get the first group (the only capturing one)... - $regex := printf `(?:// scss-docs-start %s\n)((?:.|\n)*)(?:\n// scss-docs-end %s)` $name $name - */ -}} +{{- $css := readFile $file -}} +{{- $match := findRE $regex $css 1 -}} - {{- $match := findRE $regex (readFile $file) -}} - {{- $match = index $match 0 -}} - - {{- if not $match -}} - {{- errorf "%s: %q: Got no matches for name=%q in file=%q!" .Position .Name $name $file -}} - {{- end -}} - - {{- $match = replace $match $capture_start "" -}} - {{- $match = replace $match $capture_end "" -}} +{{- if (eq (len $match) 0) -}} + {{- errorf "Got no matches for %q in %q! (called in %q)" $name $file $.Page.Path -}} +{{- end -}} - {{- if (ne $strip_default "false") -}} - {{- $match = replace $match " !default" "" -}} - {{- end -}} +{{- $remove_start := replace (index $match 0) $start "" -}} +{{- $result := replace $remove_start $end "" -}} - {{- highlight $match "scss" "" -}} +{{- if (ne $strip_default "false") -}} + {{- $result = replace $result " !default" "" -}} {{- end -}} + +{{- highlight $result "scss" "" -}} diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/table.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/table.html index a98b5eb89..43f230ab8 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/table.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/table.html @@ -2,28 +2,27 @@ Usage: `table [args]` `args` are optional and can be one of the following: - * class: any class(es) to be added to the `table` - default "" - * simplified: show a simplified version in the examples - default `true` + class: any class(es) to be added to the `table` - default "" + simplified: show a simplified version in the examples - default `true` */ -}} -{{- $class := .Get "class" -}} {{- $simplified := .Get "simplified" | default true -}} {{- $table_attributes := "" -}} {{- $table_content := " ...\n" -}} -{{- with $class -}} - {{- $table_attributes = printf ` class="%s"` . -}} +{{- with .Get "class" -}} +{{- $table_attributes = printf ` class="%s"` . -}} {{- end -}} {{- if eq $simplified "false" -}} - {{- $table_content = partialCached "table-content" . -}} +{{- $table_content = partialCached "table-content" . -}} {{- end -}} {{- $table := printf "<table%s>\n%s</table>" $table_attributes $table_content -}} <div class="bd-example"> - <table{{ with $class }} class="{{ . }}"{{ end }}> + <table{{ with .Get "class" }} class="{{ . }}"{{ end }}> {{ partialCached "table-content" . }} </table> </div> diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/year.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/year.html index db7f18e3f..bc9dd300d 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/year.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/year.html @@ -1,3 +1,5 @@ -{{- /* Outputs the current year */ -}} +{{- /* + Output the current year +*/ -}} {{- now.Format "2006" -}} |