Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
28b02a31
T
Tabler
项目概览
Dashboards
/
Tabler
10 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
28b02a31
编写于
12月 15, 2019
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
buttons clean
上级
2f3ab823
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
46 deletion
+9
-46
pages/_includes/layout/navbar.html
pages/_includes/layout/navbar.html
+2
-0
pages/_includes/layout/page-title-actions.html
pages/_includes/layout/page-title-actions.html
+1
-1
pages/_includes/ui/button.html
pages/_includes/ui/button.html
+1
-1
scss/ui/_buttons.scss
scss/ui/_buttons.scss
+5
-44
未找到文件。
pages/_includes/layout/navbar.html
浏览文件 @
28b02a31
...
...
@@ -3,6 +3,8 @@
{% if include.menu-layout != 'vertical' %}
{% include_cached layout/navbar-logo.html class="mr-4" %}
{% else %}
{% include_cached layout/navbar-search.html class="mr-4" %}
{% endif %}
<ul
class=
"nav navbar-menu align-items-center ml-auto"
>
...
...
pages/_includes/layout/page-title-actions.html
浏览文件 @
28b02a31
...
...
@@ -17,7 +17,7 @@
</div>
{% elsif actions == 'buttons' %}
<span
class=
"d-none d-sm-inline"
>
{% include_cached ui/button.html text="New view" color="secondary" icon="
plus
" %}
{% include_cached ui/button.html text="New view" color="secondary" icon="
home
" %}
</span>
{% include_cached ui/button.html text="Create new report" color="primary" class="ml-3" %}
{% endif %}
...
...
pages/_includes/ui/button.html
浏览文件 @
28b02a31
...
...
@@ -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=
"{% 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 %}"
>
<
{{
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.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 %}
...
...
scss/ui/_buttons.scss
浏览文件 @
28b02a31
.btn
{
letter-spacing
:
.01em
;
&
:not
([
class
^=
"btn-outline"
])
:not
([
class
*=
" btn-outline"
])
:not
([
class
^=
"btn-ghost"
])
:not
([
class
*=
" btn-ghost"
])
:not
(
.btn-secondary
)
{
text-shadow
:
1px
1px
0
rgba
(
0
,
0
,
0
,
.05
);
box-shadow
:
0
1px
3px
0
rgba
(
0
,
0
,
0
,
.05
)
,
inset
0
2px
0
-1px
rgba
(
255
,
255
,
255
,
.1
);
&
:not
(
:focus
)
:not
(
.focus
)
{
box-shadow
:
0
1px
3px
0
rgba
(
0
,
0
,
0
,
.05
)
,
inset
0
2px
0
-1px
rgba
(
255
,
255
,
255
,
.1
);
}
svg
.icon
{
filter
:
drop-shadow
(
1px
1px
0
rgba
(
0
,
0
,
0
,
.05
));
...
...
@@ -16,7 +17,7 @@
}
.icon
{
margin
:
0
.5em
0
-.25em
;
margin
:
0
.
2
5em
0
-.25em
;
font-size
:
1
.2em
;
vertical-align
:
sub
;
}
...
...
@@ -117,17 +118,6 @@
}
}
.btn-loader
{
display
:
none
;
width
:
1em
;
height
:
1em
;
color
:
inherit
;
@at-root
.btn-loading
&
{
display
:
inline-block
;
}
}
.btn-options
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -146,32 +136,3 @@
height
:
1rem
;
}
}
.btn-floating
{
position
:
fixed
;
right
:
1
.5rem
;
bottom
:
1
.5rem
;
z-index
:
1030
;
}
/**
Button with label
*/
.btn-label
{
position
:
relative
;
padding-left
:
px2rem
(
48px
);
}
.btn-label-icon
{
position
:
absolute
;
top
:
0
;
bottom
:
0
;
left
:
0
;
width
:
px2rem
(
36px
);
padding-top
:
px2rem
(
6px
);
padding-bottom
:
px2rem
(
6px
);
margin-bottom
:
0
;
line-height
:
inherit
;
cursor
:
pointer
;
background-color
:
rgba
(
0
,
0
,
0
,
.1
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录