mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
disable vector maps on development
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
{% assign color = include.color | default: data.color | default: 'green' %}
|
{% assign color = include.color | default: data.color | default: 'green' %}
|
||||||
|
|
||||||
{% if data %}
|
{% if data %}
|
||||||
|
{% if jekyll.environment == 'development' %}
|
||||||
|
<div class="ratio ratio-{{ include.ratio | default: '4x3' }}">
|
||||||
|
{% include ui/svg.html width="590" height="252" ratio=true border=true %}
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
<div class="ratio ratio-{{ include.ratio | default: '4x3' }}">
|
<div class="ratio ratio-{{ include.ratio | default: '4x3' }}">
|
||||||
<div>
|
<div>
|
||||||
<div id="map-{{ id }}" class="w-100 h-100"></div>
|
<div id="map-{{ id }}" class="w-100 h-100"></div>
|
||||||
@@ -111,3 +116,4 @@
|
|||||||
{% endcapture_global %}
|
{% endcapture_global %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% assign width = include.width | default: include.size | default: 20 %}
|
{% assign width = include.width | default: include.size | default: 20 %}
|
||||||
{% assign height = include.height | default: include.size | default: 20 %}
|
{% assign height = include.height | default: include.size | default: 20 %}
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"{% if include.class %} class="{{ include.class }}"{% endif %} preserveAspectRatio="{% if include.ratio %}xMidYMid meet{% else %}none{% endif %}" width="{{ width }}" height="{% if include.ratio %}auto{% else %}{{ height }}{% endif %}" viewBox="0 0 {{ width }} {{ height }}" stroke="var(--tblr-border-color, #b8cef1)">
|
<svg xmlns="http://www.w3.org/2000/svg"{% if include.class %} class="{{ include.class }}"{% endif %} preserveAspectRatio="{% if include.ratio %}xMidYMid meet{% else %}none{% endif %}" width="{{ width }}" height="{{ height }}" viewBox="0 0 {{ width }} {{ height }}" fill="transparent" stroke="var(--tblr-border-color, #b8cef1)"{% if include.border %} style="width: 100%; height: auto"{% endif %}>
|
||||||
<!-- <rect x=".5" y=".5" width="{{ width | minus: 1 }}" height="{{ height | minus: 1 }}" fill="#fff" rx="2"></rect>-->
|
{% if include.border %}<rect x=".5" y=".5" width="{{ width | minus: 1 }}" height="{{ height | minus: 1 }}" rx="2"></rect>{% endif %}
|
||||||
<line x1="0" y1="0" x2="{{ width }}" y2="{{ height }}"></line>
|
<line x1="0" y1="0" x2="{{ width }}" y2="{{ height }}"></line>
|
||||||
<line x1="0" y1="{{ height }}" x2="{{ width }}" y2="0"></line>
|
<line x1="0" y1="{{ height }}" x2="{{ width }}" y2="0"></line>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
Reference in New Issue
Block a user