1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00
Files
tabler/shared/includes/layout/css.html
2025-05-05 19:46:08 +02:00

41 lines
2.5 KiB
HTML

{% if site.useIconfont -%}
<!-- BEGIN ICONFONT STYLES -->
<link href="https://www.unpkg.com/@tabler/icons-webfont@latest/dist/tabler-icons.min.css" rel="stylesheet" />
<!-- END ICON FONT STYLES -->
{% endif -%}
{% if page-libs -%}
<!-- BEGIN PAGE LEVEL STYLES -->
{% for lib in libs.css -%}
{% if page-libs contains lib[0] -%}
{% for file in lib[1] -%}
<link href="{% if file contains 'http://' or file contains 'https://' %}{{ file }}{% else %}{{ page | relative }}/libs/{% if environment == 'preview' %}{{ file | replace: '@', '' }}{% else %}{{ file }}{% endif %}{% if environment != 'development %}?{{ 'now' | date: '%s' }}{% endif %}{% endif %}" rel="stylesheet"/>
{% endfor -%}
{% endif -%}
{% endfor -%}
<!-- END PAGE LEVEL STYLES -->
{% endif %}
<!-- BEGIN GLOBAL MANDATORY STYLES -->
{% if layout-rtl -%}
<link href="{{ page | relative }}/dist/css/tabler.rtl{% if environment == 'preview' %}.min{% endif %}.css{% if environment != 'development %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment == 'preview' %} integrity="{{ sri.css-rtl }}"{% endif %} />
{% else -%}
<link href="{{ page | relative }}/dist/css/tabler{% if environment == 'preview' %}.min{% endif %}.css{% if environment != 'development %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment == 'preview' %} integrity="{{ sri.css }}"{% endif %} />
{% endif -%}
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PLUGINS STYLES -->
{% for plugin in site.cssPlugins -%}
{% assign sriKey = "css-" | append: plugin -%}
{% if layout-rtl -%}
{% assign sriKey = "css-" | append: plugin | append: "-rtl" -%}
<link href="{{ page | relative }}/dist/css/tabler-{{ plugin }}.rtl{% if environment == 'preview' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment == 'preview' %} integrity="{{ sri[sriKey] }}"{% endif %}/>
{% else -%}
<link href="{{ page | relative }}/dist/css/tabler-{{ plugin }}{% if environment == 'preview' %}.min{% endif %}.css{% if environment != 'development %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment == 'preview' %} integrity="{{ sri[sriKey] }}"{% endif %}/>
{% endif -%}
{% endfor -%}
<!-- END PLUGINS STYLES -->
<!-- BEGIN DEMO STYLES -->
<link href="{{ page | relative }}/preview/css/demo{% if environment == 'preview' %}.min{% endif %}.css{% if environment != 'development %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment == 'preview' %} integrity="{{ sri.demo-css }}"{% endif %}/>
<!-- END DEMO STYLES -->