Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
5c1ea099
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,发现更多精彩内容 >>
提交
5c1ea099
编写于
10月 04, 2019
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cards fixes
上级
8d6484c6
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
66 addition
and
23 deletion
+66
-23
.gitignore
.gitignore
+1
-0
build/capture-components.sh
build/capture-components.sh
+9
-0
pages/_components/card-with-image.md
pages/_components/card-with-image.md
+6
-0
pages/_components/empty.md
pages/_components/empty.md
+1
-1
pages/_includes/cards/card-image.html
pages/_includes/cards/card-image.html
+1
-1
pages/_includes/cards/comments.html
pages/_includes/cards/comments.html
+3
-3
pages/_layouts/component.html
pages/_layouts/component.html
+13
-7
scss/_variables.scss
scss/_variables.scss
+21
-9
scss/layout/_core.scss
scss/layout/_core.scss
+2
-1
scss/ui/_cards.scss
scss/ui/_cards.scss
+7
-1
scss/ui/_typo.scss
scss/ui/_typo.scss
+2
-0
未找到文件。
.gitignore
浏览文件 @
5c1ea099
...
...
@@ -19,3 +19,4 @@ tmp/
/svg-tmp/
/dist/
/dist-html/
/components/
build/capture-components.sh
0 → 100755
浏览文件 @
5c1ea099
for
file
in
../pages/_components/
*
.md
do
file
=
"
$(
basename
--
$file
)
"
file
=
"
${
file
%.md
}
"
url
=
"http://localhost:3001/components/
$file
.html"
echo
$url
capture-website
$url
--element
=
"#component-wrapper"
--scale-factor
=
2
>
../components/
$file
.png
done
pages/_components/card-with-image.md
0 → 100644
浏览文件 @
5c1ea099
---
title
:
Card with side image
columns
:
2
---
{% include_cached cards/card-image.html title="Card with side image" %}
pages/_components/empty.md
浏览文件 @
5c1ea099
...
...
@@ -2,4 +2,4 @@
title
:
Empty state
---
{% include ui/empty.html %}
{% include ui/empty.html
illustration=true
%}
pages/_includes/cards/card-image.html
浏览文件 @
5c1ea099
<div
class=
"card"
>
<div
class=
"row row-0"
>
<div
class=
"col-md-3{% if include.right %} order-md-last{% endif %}"
>
<img
src=
"{{ site.base }}/img/photos/{{ include.img | default: '
ff23569f1a45865d.jpg' }}"
class=
"w-100
"
alt=
"{{ include.img-alt | default: 'Card side image' }}"
>
<img
src=
"{{ site.base }}/img/photos/{{ include.img | default: '
2854fd67ddbd6217.jpg' }}"
class=
"w-100 h-100 object-cover
"
alt=
"{{ include.img-alt | default: 'Card side image' }}"
>
</div>
<div
class=
"col"
>
<div
class=
"card-body"
>
...
...
pages/_includes/cards/comments.html
浏览文件 @
5c1ea099
...
...
@@ -10,10 +10,10 @@
{% include ui/avatar.html person=person status="green" %}
</div>
<div
class=
"flex-fill"
>
<div
class=
"d-flex m
b-1 m
t-n1"
>
<
div
class=
"strong d-flex
"
>
<div
class=
"d-flex mt-n1"
>
<
h5
class=
"m-0
"
>
{{ person.full_name }}
</
div
>
</
h5
>
<div
class=
"ml-auto small text-muted"
>
{{ forloop.index | random_date_ago: 23 | timeago }}
</div>
</div>
<p
class=
"mb-2"
>
...
...
pages/_layouts/component.html
浏览文件 @
5c1ea099
...
...
@@ -15,14 +15,20 @@ page-title: Tabler components
</div>
</div>
<div
class=
"col-lg-9"
>
<div
class=
"d-flex align-items-center justify-content-center p-5 pb-6"
style=
"min-height: 50vh"
>
<div
{%
if
columns
>
0 %}class="flex-fill" style="max-width: {{ columns | times: 298 | minus: 24 }}px"{% endif %}>
{{ content }}
</div>
</div>
<div
class=
"card"
>
<div
class=
"card-body p-5"
>
<div
class=
"border border-bottom-0 bg-light p-1 rounded-top"
>
<div
class=
"d-flex align-items-center justify-content-center p-5 pb-6"
style=
"min-height: 50vh"
id=
"component-wrapper"
>
<div
{%
if
columns
>
0 %}class="flex-fill" style="max-width: {{ columns | times: 298 | minus: 24 }}px"{% endif %}>
{{ content }}
</div>
</div>
</div>
<div
class=
"highlight highlight-dark m-0"
>
{{ content | highlight_tidy: 'html' }}
<div
class=
"highlight m-0 rounded-0 rounded-bottom"
>
{{ content | highlight_tidy: 'html' }}
</div>
</div>
</div>
</div>
</div>
scss/_variables.scss
浏览文件 @
5c1ea099
// FONTS
$font-family-base
:
"
Source Sans Pr
o"
,
-
apple-system
,
blinkmacsystemfont
,
"Segoe UI"
,
roboto
,
"Helvetica Neue"
,
arial
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
!
default
;
$font-family-base
:
"
Nunit
o"
,
-
apple-system
,
blinkmacsystemfont
,
"Segoe UI"
,
roboto
,
"Helvetica Neue"
,
arial
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
!
default
;
$font-family-serif
:
"Georgia"
,
"Times New Roman"
,
times
,
serif
!
default
;
$font-icons
:
"tabler-webfont"
!
default
;
// EXTERNAL FONTS
$google-font-url
:
"https://fonts.googleapis.com/css?family=
Source+Sans+Pr
o:300,400,600,700&display=swap"
!
default
;
$google-font-url
:
"https://fonts.googleapis.com/css?family=
Nunit
o:300,400,600,700&display=swap"
!
default
;
$icon-fonts
:
()
!
default
;
// COLORS
...
...
@@ -40,11 +40,11 @@ $cyan: #17a2b8 !default;
$black
:
#000000
!
default
;
$white
:
#ffffff
!
default
;
$light
:
#f
0f2f5
!
default
;
$dark
:
#
021f34
!
default
;
$light
:
#f
5f7fb
!
default
;
$dark
:
#
505061
!
default
;
$body-bg
:
#f5f7fb
!
default
;
$body-color
:
#45535f
!
default
;
$body-bg
:
$light
!
default
;
$body-color
:
$dark
!
default
;
$text-muted
:
#8a91a5
!
default
;
...
...
@@ -103,14 +103,15 @@ $avatar-sizes: (
)
!
default
;
//Fonts
$font-size-base
:
1
rem
!
default
;
$font-size-base
:
.9375
rem
!
default
;
$font-weight-base
:
400
!
default
;
$line-height-base
:
1
.
5
!
default
;
$line-height-base
:
1
.
6
!
default
;
$border-radius
:
3px
!
default
;
//Typography
$headings-color
:
$dark
!
default
;
$headings-color
:
#021f34
!
default
;
$headings-font-weight
:
600
!
default
;
$small-font-size
:
87
.5%
!
default
;
...
...
@@ -325,6 +326,17 @@ $flag-sizes: (
//Utilities
$utilities
:
(
"object"
:
(
property
:
object-fit
,
class
:
object
,
values
:
(
contain
:
contain
,
cover
:
cover
,
fill
:
fill
,
scale-down
:
scale-down
,
none
:
none
,
)
)
,
"spacing"
:
(
property
:
letter-spacing
,
class
:
tracking
,
...
...
scss/layout/_core.scss
浏览文件 @
5c1ea099
...
...
@@ -9,12 +9,13 @@ html {
}
body
{
height
:
100%
;
overflow-y
:
scroll
;
touch-action
:
manipulation
;
-webkit-tap-highlight-color
:
transparent
;
-webkit-text-size-adjust
:
none
;
text-rendering
:
optimizeLegibility
;
font-feature-settings
:
"liga"
0
;
height
:
100%
;
}
body
*
:
:-
webkit-scrollbar
{
...
...
scss/ui/_cards.scss
浏览文件 @
5c1ea099
...
...
@@ -13,6 +13,12 @@
}
}
.card-sm
{
.card-body
{
padding
:
.75rem
;
}
}
.card-group
{
margin-bottom
:
$card-group-margin
;
}
...
...
@@ -145,7 +151,7 @@
.card-title
{
display
:
block
;
font-size
:
$h4-font-size
;
font-weight
:
500
;
font-weight
:
$headings-font-weight
;
@at-root
a
#{
&
}
:hover
{
color
:
inherit
;
...
...
scss/ui/_typo.scss
浏览文件 @
5c1ea099
...
...
@@ -20,6 +20,8 @@ h6,
.h4
,
.h5
,
.h6
{
letter-spacing
:
-.012em
;
a
{
color
:
inherit
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录