mirror of
https://github.com/tabler/tabler.git
synced 2026-08-02 08:25:32 +04:00
error pages, border utilities
This commit is contained in:
@@ -12,6 +12,32 @@ forms:
|
||||
badge: New
|
||||
badge-color: red
|
||||
|
||||
error:
|
||||
title: Error pages
|
||||
icon: file-minus
|
||||
children:
|
||||
400:
|
||||
url: 400.html
|
||||
title: 400 page
|
||||
401:
|
||||
url: 401.html
|
||||
title: 401 page
|
||||
403:
|
||||
url: 403.html
|
||||
title: 403 page
|
||||
404:
|
||||
url: 404.html
|
||||
title: 404 page
|
||||
500:
|
||||
url: 500.html
|
||||
title: 500 page
|
||||
503:
|
||||
url: 503.html
|
||||
title: 503 page
|
||||
maintenance:
|
||||
url: maintenance.html
|
||||
title: Maintenance page
|
||||
|
||||
base:
|
||||
title: Base
|
||||
icon: package
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% assign provider = include.provider | default: 'fe' %}
|
||||
{% if include.text %}{% assign spinner-class="mr-2" %}{% endif %}
|
||||
{% assign e = include.element | default: 'a' %}
|
||||
<{{ e }}{% if e == 'a' %} href="{{ include.href | default: '#' }}"{% endif %}{% if include.type %} type="{{ include.type }}"{% endif %} class="btn{% if include.height %} btn-{{ include.height }}{% endif %}{% if include.color %} btn-{% if include.outline %}outline-{% endif %}{{ include.color }}{% endif %}{% if include.disabled %} disabled{% endif %}{% if include.square %} btn-square{% endif %}{% if include.pill %} btn-pill{% endif %}{% if include['size'] %} btn-{{ include['size'] }}{% endif %}{% if include.class %} {{ include.class }}{% endif %}{% if include.block %} btn-block{% endif %}{% if include.link %} btn-link{% endif %}{% if include.label %} btn-label{% endif %}{% if include.icon-only %} btn-icon{% endif %}">
|
||||
<{{ e }}{% if e == 'a' %} href="{% if include.href %}{{ site.base }}/{{ include.href }}{% else %}#{% endif %}"{% endif %}{% if include.type %} type="{{ include.type }}"{% endif %} class="btn{% if include.height %} btn-{{ include.height }}{% endif %}{% if include.color %} btn-{% if include.outline %}outline-{% endif %}{{ include.color }}{% endif %}{% if include.disabled %} disabled{% endif %}{% if include.square %} btn-square{% endif %}{% if include.pill %} btn-pill{% endif %}{% if include['size'] %} btn-{{ include['size'] }}{% endif %}{% if include.class %} {{ include.class }}{% endif %}{% if include.block %} btn-block{% endif %}{% if include.link %} btn-link{% endif %}{% if include.label %} btn-label{% endif %}{% if include.icon-only %} btn-icon{% endif %}">
|
||||
{% if include.spinner %}
|
||||
{% include ui/spinner.html color=false size="sm" class=spinner-class element="span" %}{% endif %}
|
||||
{% if include.icon %}{% include_cached ui/icon.html icon=include.icon use-svg=true %}{% endif %}
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
<div class="empty-action">
|
||||
{% assign button-text = include.button-text | default: "Search again" %}
|
||||
{% assign button-icon = include.button-icon | default: "search" %}
|
||||
{% include_cached ui/button.html text=button-text color="primary" icon=button-icon %}
|
||||
{% include_cached ui/button.html text=button-text color="primary" icon=button-icon href="index.html" %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,27 +23,24 @@
|
||||
<title>{% if page.title %}{{ page.title }} - {% endif %}{% if layout.title %}{{ layout.title }} - {% endif %}{% if site.title %}{{ site.title }} - {% endif %}{{ site.description }}</title>
|
||||
|
||||
{% if page.description %}
|
||||
<meta name="description" content="{{ page.description | escape }}"/>
|
||||
<meta name="description" content="{{ page.description | escape }}"/>
|
||||
{% endif %}
|
||||
|
||||
{% include_cached layout/og.html show=layout.og-component %}
|
||||
|
||||
{% include_cached layout/css.html %}
|
||||
|
||||
<style>body { display: none; }</style>
|
||||
</head>
|
||||
<body class="antialiased {% if page.dark-theme %} theme-dark{% endif %}{% if layout.body-class %} {{ layout.body-class }}{% endif %}{% if page.body-class %} {{ page.body-class }}{% endif %}">
|
||||
<body class="antialiased{% if page.dark-theme %} theme-dark{% endif %}{% if layout.body-class %} {{ layout.body-class }}{% endif %}{% if page.body-class %} {{ page.body-class }}{% endif %}">
|
||||
|
||||
{{ content}}
|
||||
{{ content }}
|
||||
|
||||
{% include_cached layout/js.html %}
|
||||
{% include layout/js-capture.html %}
|
||||
{% include_cached layout/js.html %}
|
||||
{% include layout/js-capture.html %}
|
||||
|
||||
{% if site.debug %}
|
||||
{% if jekyll.environment == 'development' %}
|
||||
{% include_cached layout/debug.html %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if site.debug and jekyll.environment == 'development' %}
|
||||
{% include_cached layout/debug.html %}
|
||||
{% endif %}
|
||||
|
||||
<script>document.body.style.display = 'block';</script>
|
||||
</body>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
layout: base
|
||||
body-class: border-top-2 border-primary
|
||||
body-class: border-top-wide border-primary
|
||||
---
|
||||
|
||||
<div class="d-flex align-items-center justify-content-center min-vh-100">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
layout: base
|
||||
body-class: border-top-2 border-primary
|
||||
body-class: border-top-wide border-primary
|
||||
---
|
||||
|
||||
<div class="d-flex h-auto min-h-full justify-content-center">
|
||||
|
||||
Reference in New Issue
Block a user