From 2a1341b910dfb1187dd9fceebd2b3be14e825e28 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 28 Apr 2023 19:02:23 +0000 Subject: update bootstrap --- .../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 +++++++++++++++++++++- 4 files changed, 40 insertions(+), 7 deletions(-) (limited to 'vendor/twbs/bootstrap/site/layouts/shortcodes') 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