aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-23 08:33:36 +0000
committerMario <mario@mariovavti.com>2021-09-23 08:33:36 +0000
commita451449766d581978068a5b8f8c1e27f50386ea7 (patch)
tree17388d0d116d3c3a3e14745397b5b3278e933d74 /vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html
parent3347fab105a01f38800a907e7d6281d835a29f5c (diff)
downloadvolse-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/shortcodes/placeholder.html')
-rw-r--r--vendor/twbs/bootstrap/site/layouts/shortcodes/placeholder.html27
1 files changed, 12 insertions, 15 deletions
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>