Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
f336c4e3
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,发现更多精彩内容 >>
提交
f336c4e3
编写于
4月 09, 2019
作者:
C
chomik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cards component
上级
ff19d676
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
107 addition
and
18 deletion
+107
-18
.gitignore
.gitignore
+1
-0
pages/_includes/cards/small-stats-3.html
pages/_includes/cards/small-stats-3.html
+2
-2
pages/_includes/layout/debug-footer.html
pages/_includes/layout/debug-footer.html
+5
-5
pages/_includes/layout/debug-header.html
pages/_includes/layout/debug-header.html
+1
-0
pages/_includes/parts/dropdown/days.html
pages/_includes/parts/dropdown/days.html
+10
-0
pages/cards-stats.html
pages/cards-stats.html
+73
-0
scss/_variables.scss
scss/_variables.scss
+2
-2
scss/ui/_charts.scss
scss/ui/_charts.scss
+1
-0
scss/ui/_icons.scss
scss/ui/_icons.scss
+1
-1
scss/ui/_progress.scss
scss/ui/_progress.scss
+4
-0
scss/ui/_typo.scss
scss/ui/_typo.scss
+1
-0
scss/utils/_text.scss
scss/utils/_text.scss
+6
-8
未找到文件。
.gitignore
浏览文件 @
f336c4e3
...
...
@@ -8,3 +8,4 @@ tmp/
.DS_Store
/Gemfile.lock
/dist/
/_site/
pages/_includes/cards/small-stats-3.html
浏览文件 @
f336c4e3
...
...
@@ -4,9 +4,9 @@
{{ include.percentage }}%
{% if include.percentage > 0 %}
{% include ui/icon.html icon="arrow-up-right" %}
{% include ui/icon.html icon="arrow-up-right"
class="icon-thin"
%}
{% elsif include.percentage
<
0
%}
{%
include
ui
/
icon.html
icon=
"arrow-down-right"
%}
{%
include
ui
/
icon.html
icon=
"arrow-down-right"
class=
"icon-thin"
%}
{%
endif
%}
</
div
>
<div
class=
"h1 m-0"
>
{{ include.number }}
</div>
...
...
pages/_includes/layout/debug-footer.html
浏览文件 @
f336c4e3
<div
class=
"debug"
>
<a
href=
"#"
data-debug=
"dark"
>
Dark mode
</a>
<a
href=
"#"
data-debug=
"rtl"
>
RTL mode
</a>
<a
href=
"#"
data-debug=
"code"
>
Disable
code
</a>
<a
href=
"#"
data-debug=
"code"
>
Show cards
code
</a>
<a
href=
"#"
data-debug=
"folded"
>
Folded sidebar
</a>
<a
href=
"#"
data-debug=
"fullscreen"
>
Fullscreen
</a>
<a
href=
"#"
data-debug=
"header-sticky"
>
Sticky header
</a>
...
...
@@ -36,8 +36,8 @@
border-radius
:
50%
;
}
body
.
disable
-debug-code
.card-debug
{
display
:
none
;
body
.
show
-debug-code
.card-debug
{
display
:
block
;
}
@media
(
max-width
:
991.98px
)
{
...
...
@@ -46,7 +46,7 @@
}
}
body
.
disable
-debug-code
a
[
data-debug
=
"code"
]
:after
,
body
.
show
-debug-code
a
[
data-debug
=
"code"
]
:after
,
html
[
dir
=
"rtl"
]
a
[
data-debug
=
"rtl"
]
:after
,
body
.theme-dark
a
[
data-debug
=
"dark"
]
:after
,
:fullscreen
a
[
data-debug
=
"fullscreen"
]
:after
,
...
...
@@ -70,7 +70,7 @@
return
false
;
})
.
on
(
'
click
'
,
'
[data-debug="code"]
'
,
function
(
e
)
{
$body
.
toggleClass
(
'
disable
-debug-code
'
);
$body
.
toggleClass
(
'
show
-debug-code
'
);
e
.
preventDefault
();
return
false
;
...
...
pages/_includes/layout/debug-header.html
浏览文件 @
f336c4e3
...
...
@@ -5,6 +5,7 @@
top
:
0
;
line-height
:
1
;
font-size
:
11px
;
display
:
none
;
}
.card-debug
a
{
...
...
pages/_includes/parts/dropdown/days.html
0 → 100644
浏览文件 @
f336c4e3
<div
class=
"dropdown"
>
<a
class=
"dropdown-toggle"
href=
"#"
id=
"dropdownMenuButton"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
{{ include.value | default: 'Last 7 days' }}
</a>
<div
class=
"dropdown-menu dropdown-menu-right"
aria-labelledby=
"dropdownMenuButton"
>
<a
class=
"dropdown-item active"
href=
"#"
>
Last 7 days
</a>
<a
class=
"dropdown-item"
href=
"#"
>
Last 30 days
</a>
<a
class=
"dropdown-item"
href=
"#"
>
Last 3 months
</a>
</div>
</div>
pages/cards-stats.html
0 → 100644
浏览文件 @
f336c4e3
---
title: Cards stats
layout: default
---
<div
class=
"row"
>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"d-flex"
>
<div
class=
"text-muted"
>
Sales
</div>
<div
class=
"ml-auto"
>
{% include parts/dropdown/days.html %}
</div>
</div>
<div
class=
"h1 mb-3"
>
75%
</div>
<div
class=
"d-flex mb-2"
>
<div>
Conversion rate
</div>
<div
class=
"ml-auto text-green"
>
24% {% include ui/icon.html icon="trending-up" class="ml-1 icon-thin" %}
</div>
</div>
{% include ui/progress.html percentage=75 color="blue" size="sm" %}
</div>
</div>
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"d-flex"
>
<div
class=
"text-muted"
>
Revenue
</div>
<div
class=
"ml-auto"
>
{% include parts/dropdown/days.html %}
</div>
</div>
<div
class=
"h1 mb-3"
>
$452,300
</div>
{% include ui/sparkline.html data="4,3,6,5,4,5,4,6,7,6,5,7,8,7,8,9,8,9,10" type="line" %}
</div>
</div>
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"d-flex"
>
<div
class=
"text-muted"
>
New clients
</div>
<div
class=
"ml-auto"
>
{% include parts/dropdown/days.html %}
</div>
</div>
<div
class=
"h1 mb-3"
>
6,782
</div>
{% include ui/sparkline.html data="4,3,6,5,4,5,4,6,7,6,5,7,8,7,8,9,8,9,10" type="line" color="purple" %}
</div>
</div>
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"d-flex"
>
<div
class=
"text-muted"
>
New clients
</div>
<div
class=
"ml-auto"
>
{% include parts/dropdown/days.html %}
</div>
</div>
<div
class=
"h1 mb-3"
>
184,730
</div>
{% include ui/sparkline.html data="4,3,6,5,4,5,4,6,7,6,5,7,8,7,8,9,8,9,10" type="bar" %}
</div>
</div>
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
5
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
6
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
7
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
8
</div>
</div>
scss/_variables.scss
浏览文件 @
f336c4e3
...
...
@@ -107,7 +107,7 @@ $avatar-sizes: (
$font-size-base
:
.9375rem
!
default
;
$font-weight-base
:
400
!
default
;
$line-height-base
:
(
24
/
1
6
)
!
default
;
$line-height-base
:
(
24
/
1
5
)
!
default
;
$border-radius
:
3px
!
default
;
...
...
@@ -115,7 +115,7 @@ $h1-font-size: 1.875rem !default;
$h2-font-size
:
1
.625rem
!
default
;
$h3-font-size
:
1
.25rem
!
default
;
$h4-font-size
:
1
.125rem
!
default
;
$h5-font-size
:
1rem
!
default
;
$h5-font-size
:
$font-size-base
!
default
;
$h6-font-size
:
.875rem
!
default
;
$ribbon-margin
:
.25rem
!
default
;
...
...
scss/ui/_charts.scss
浏览文件 @
f336c4e3
...
...
@@ -16,6 +16,7 @@
position
:
relative
;
width
:
4rem
;
height
:
2
.5rem
;
line-height
:
1
;
}
.sparkline-square
{
...
...
scss/ui/_icons.scss
浏览文件 @
f336c4e3
...
...
@@ -18,7 +18,7 @@
}
.icon-thin
{
stroke-width
:
1
;
stroke-width
:
1
.5px
;
}
.icon-filled
{
...
...
scss/ui/_progress.scss
浏览文件 @
f336c4e3
...
...
@@ -6,3 +6,7 @@
.progress-xs
{
height
:
.25rem
;
}
.progress-sm
{
height
:
.5rem
;
}
scss/ui/_typo.scss
浏览文件 @
f336c4e3
...
...
@@ -18,6 +18,7 @@ h6,
.h4
,
.h5
,
.h6
{
a
{
color
:
inherit
;
}
...
...
scss/utils/_text.scss
浏览文件 @
f336c4e3
...
...
@@ -3,14 +3,12 @@
.text-inherit
{
color
:
inherit
!
important
;
}
.text-default
{
color
:
$body-color
!
important
;
}
.text-sm
{
font-size
:
.75rem
!
important
;
}
.text-base
{
font-size
:
1rem
!
important
;
}
.text-lg
{
font-size
:
1
.125rem
!
important
;
}
.text-xl
{
font-size
:
1
.25rem
!
important
;
}
.text-2xl
{
font-size
:
1
.5rem
!
important
;
}
.text-3xl
{
font-size
:
1
.875rem
!
important
;
}
.text-4xl
{
font-size
:
2
.25rem
!
important
;
}
.text-5xl
{
font-size
:
3rem
!
important
;
}
.text-h6
{
font-size
:
$h6-font-size
!
important
;
}
.text-h5
{
font-size
:
$h5-font-size
!
important
;
}
.text-h4
{
font-size
:
$h4-font-size
!
important
;
}
.text-h3
{
font-size
:
$h3-font-size
!
important
;
}
.text-h2
{
font-size
:
$h2-font-size
!
important
;
}
.text-h1
{
font-size
:
$h1-font-size
!
important
;
}
.text-muted-light
{
color
:
$text-muted-light
!
important
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录