Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
54d61431
T
tabler
项目概览
知鸟1号
/
tabler
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
54d61431
编写于
12月 15, 2019
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
error pages, border utilities
上级
81eb1abd
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
81 addition
and
53 deletion
+81
-53
pages/_data/menu.yml
pages/_data/menu.yml
+26
-0
pages/_includes/ui/button.html
pages/_includes/ui/button.html
+1
-1
pages/_includes/ui/empty.html
pages/_includes/ui/empty.html
+1
-1
pages/_layouts/base.html
pages/_layouts/base.html
+8
-11
pages/_layouts/error.html
pages/_layouts/error.html
+1
-1
pages/_layouts/single.html
pages/_layouts/single.html
+1
-1
scss/_utilities.scss
scss/_utilities.scss
+40
-0
scss/_variables.scss
scss/_variables.scss
+3
-1
scss/utils/_border.scss
scss/utils/_border.scss
+0
-37
未找到文件。
pages/_data/menu.yml
浏览文件 @
54d61431
...
...
@@ -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
...
...
pages/_includes/ui/button.html
浏览文件 @
54d61431
...
...
@@ -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 %}
...
...
pages/_includes/ui/empty.html
浏览文件 @
54d61431
...
...
@@ -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>
pages/_layouts/base.html
浏览文件 @
54d61431
...
...
@@ -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>
...
...
pages/_layouts/error.html
浏览文件 @
54d61431
---
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"
>
...
...
pages/_layouts/single.html
浏览文件 @
54d61431
---
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"
>
...
...
scss/_utilities.scss
浏览文件 @
54d61431
...
...
@@ -66,4 +66,44 @@ $utilities: (
black
:
900
,
)
)
,
"border"
:
(
property
:
border
,
values
:
(
null
:
$border-width
solid
$border-color
,
wide
:
$border-width-wide
solid
$border-color
,
0
:
0
,
)
)
,
"border-top"
:
(
property
:
border-top
,
values
:
(
null
:
$border-width
solid
$border-color
,
wide
:
$border-width-wide
solid
$border-color
,
0
:
0
,
)
)
,
"border-right"
:
(
property
:
border-right
,
values
:
(
null
:
$border-width
solid
$border-color
,
wide
:
$border-width-wide
solid
$border-color
,
0
:
0
,
)
)
,
"border-bottom"
:
(
property
:
border-bottom
,
values
:
(
null
:
$border-width
solid
$border-color
,
wide
:
$border-width-wide
solid
$border-color
,
0
:
0
,
)
)
,
"border-left"
:
(
property
:
border-left
,
values
:
(
null
:
$border-width
solid
$border-color
,
wide
:
$border-width-wide
solid
$border-color
,
0
:
0
,
)
)
,
)
!
default
;
scss/_variables.scss
浏览文件 @
54d61431
...
...
@@ -107,6 +107,8 @@ $font-size-base: 1rem !default;
$line-height-base
:
1
.5
!
default
;
$body-letter-spacing
:
null
!
default
;
$border-width
:
1px
!
default
;
$border-width-wide
:
2px
!
default
;
$border-radius
:
3px
!
default
;
//Typography
...
...
@@ -221,7 +223,7 @@ $card-border-radius: $border-radius !default;
$card-cap-bg
:
$min-black
!
default
;
$card-active-border-color
:
$primary
!
default
;
$card-status-size
:
2px
!
default
;
$card-status-size
:
$border-width-wide
!
default
;
$card-group-margin
:
1
.5rem
!
default
;
$card-shadow
:
rgba
(
$dark
,
.04
)
0
2px
4px
0
!
default
;
...
...
scss/utils/_border.scss
浏览文件 @
54d61431
// stylelint-disable declaration-no-important
$border-sizing
:
()
!
default
;
$border-sizing
:
map-merge
(
(
2
:
2
,
4
:
4
)
,
$border-sizing
)
!
default
;
@each
$size
,
$value
in
$border-sizing
{
.border-
#{
$size
}
{
border-width
:
$border-width
*
$value
!
important
;
}
.border-top-
#{
$size
}
{
border-top-style
:
solid
;
border-top-width
:
$border-width
*
$value
!
important
;
}
.border-right-
#{
$size
}
{
border-right-style
:
solid
;
border-right-width
:
$border-width
*
$value
!
important
;
}
.border-bottom-
#{
$size
}
{
border-bottom-style
:
solid
;
border-bottom-width
:
$border-width
*
$value
!
important
;
}
.border-left-
#{
$size
}
{
border-left-style
:
solid
;
border-left-width
:
$border-width
*
$value
!
important
;
}
}
.border-dashed
{
border-style
:
dashed
!
important
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录