css.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% if site.useIconfont -%}
  2. <!-- BEGIN ICONFONT STYLES -->
  3. <link href="https://www.unpkg.com/@tabler/icons-webfont@latest/dist/tabler-icons.min.css" rel="stylesheet" />
  4. <!-- END ICON FONT STYLES -->
  5. {% endif -%}
  6. {% if page-libs -%}
  7. <!-- BEGIN PAGE LEVEL STYLES -->
  8. {% for lib in libs -%}
  9. {% if page-libs contains lib[0] -%}
  10. {% for file in lib[1].css -%}
  11. <link href="{% if file contains 'http://' or file contains 'https://' %}{{ file }}{% else %}{{ page | relative }}/dist/libs/{{ lib[1].npm }}/{{ file }}{% if environment != 'development %}?{{ 'now' | date: '%s' }}{% endif %}{% endif %}" rel="stylesheet"/>
  12. {% endfor -%}
  13. {% endif -%}
  14. {% endfor -%}
  15. <!-- END PAGE LEVEL STYLES -->
  16. {% endif %}
  17. <!-- BEGIN GLOBAL MANDATORY STYLES -->
  18. {% if layout-rtl -%}
  19. <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 %} />
  20. {% else -%}
  21. <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 %} />
  22. {% endif -%}
  23. <!-- END GLOBAL MANDATORY STYLES -->
  24. <!-- BEGIN PLUGINS STYLES -->
  25. {% for plugin in site.cssPlugins -%}
  26. {% assign sriKey = "css-" | append: plugin -%}
  27. {% if layout-rtl -%}
  28. {% assign sriKey = "css-" | append: plugin | append: "-rtl" -%}
  29. <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 %}/>
  30. {% else -%}
  31. <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 %}/>
  32. {% endif -%}
  33. {% endfor -%}
  34. <!-- END PLUGINS STYLES -->
  35. <!-- BEGIN DEMO STYLES -->
  36. <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 %}/>
  37. <!-- END DEMO STYLES -->