aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/_includes/icons/placeholder.svg
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-10 14:21:36 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-10 14:21:36 +0200
commit9866053f0ce44721c11990c9f9407e7428757c99 (patch)
tree6e414efa36c3bda00205918cecb9122f951427e3 /vendor/twbs/bootstrap/site/_includes/icons/placeholder.svg
parent89a2c1a09c896ac3a23df26a1783f5c682188a56 (diff)
downloadvolse-hubzilla-9866053f0ce44721c11990c9f9407e7428757c99.tar.gz
volse-hubzilla-9866053f0ce44721c11990c9f9407e7428757c99.tar.bz2
volse-hubzilla-9866053f0ce44721c11990c9f9407e7428757c99.zip
update bootstrap to version 4.3.1
Diffstat (limited to 'vendor/twbs/bootstrap/site/_includes/icons/placeholder.svg')
-rw-r--r--vendor/twbs/bootstrap/site/_includes/icons/placeholder.svg35
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/_includes/icons/placeholder.svg b/vendor/twbs/bootstrap/site/_includes/icons/placeholder.svg
new file mode 100644
index 000000000..36883e82d
--- /dev/null
+++ b/vendor/twbs/bootstrap/site/_includes/icons/placeholder.svg
@@ -0,0 +1,35 @@
+{%- comment -%}
+ Usage: include icons/placeholder.svg args
+
+ args can be one of the following:
+ title: Used in the SVG `title` tag
+ 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
+{%- endcomment -%}
+
+{%- assign title = include.title | default: 'Placeholder' -%}
+{%- assign class = include.class | default: '' -%}
+{%- assign color = include.color | default: site.data.grays[2].hex -%}
+{%- assign background = include.background | default: site.data.grays[5].hex -%}
+{%- assign width = include.width | default: '100%' -%}
+{%- assign height = include.height | default: '180' -%}
+
+{%- if include.text -%}
+ {%- assign text = include.text -%}
+{%- else -%}
+ {%- assign text = width | append: 'x' | append: height -%}
+{%- endif -%}
+
+{%- capture svg -%}
+<svg class="bd-placeholder-img{% if class != '' %} {{ class }}{% endif %}" width="{{ width }}" height="{{ height }}" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img"{% if title != ' ' or text != ' ' %} aria-label="{% if title != ' ' %}{{ title }}{% if text != ' ' %}: {% endif %}{% endif %}{% if text != ' ' %}{{ text }}{% endif %}"{% endif %}>
+ {% if title != ' ' %}<title>{{ title }}</title>{% endif %}
+ <rect width="100%" height="100%" fill="{{ background }}"/>
+ {% if text != ' ' %}<text x="50%" y="50%" fill="{{ color }}" dy=".3em">{{ text }}</text>{% endif %}
+</svg>
+{%- endcapture -%}
+
+{{- svg | replace: ' ', '' | strip_newlines -}}