Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
0be994b2
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,发现更多精彩内容 >>
提交
0be994b2
编写于
4月 13, 2019
作者:
C
chomik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
badges docs
上级
a41020fb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
66 addition
and
47 deletion
+66
-47
_config.yml
_config.yml
+3
-3
pages/_docs/badges.md
pages/_docs/badges.md
+46
-0
pages/_layouts/docs.html
pages/_layouts/docs.html
+3
-2
scss/_variables.scss
scss/_variables.scss
+5
-1
scss/ui/_badges.scss
scss/ui/_badges.scss
+9
-41
未找到文件。
_config.yml
浏览文件 @
0be994b2
...
...
@@ -91,9 +91,9 @@ colors:
gray
:
hex
:
'
#868e96'
name
:
Gray
blac
k
:
dar
k
:
hex
:
'
#354051'
name
:
Blac
k
name
:
Dar
k
variants
:
[
primary
,
secondary
,
success
,
info
,
warning
,
danger
,
dark
]
socials
:
[
facebook
,
twitter
,
google
,
youtube
,
vimeo
,
dribbble
,
github
,
instagram
,
pinterest
,
vk
,
rss
,
flickr
,
bitbucket
]
...
...
@@ -106,4 +106,4 @@ docs-menu:
-
title
:
Getting started
pages
:
[
index
]
-
title
:
Components
pages
:
[
avatars
,
typography
,
alerts
,
buttons
,
colors
,
card
s
]
pages
:
[
avatars
,
badges
,
button
s
]
pages/_docs/badges.md
0 → 100644
浏览文件 @
0be994b2
---
title
:
Badges
---
### Default markup
{% example html %}
{% for color in site.colors %}
<span
class=
"badge text-white bg-{{ color[0] }}"
>
{{ color[0] }}
</span>
{% endfor %}
{% endexample %}
### Pill badges
{% example html %}
{% for color in site.colors %}
<span
class=
"badge badge-pill text-white bg-{{ color[0] }}"
>
{{ forloop.index }}
</span>
{% endfor %}
{% endexample %}
### Soft badges
{% example html %}
{% for color in site.colors %}
<span
class=
"badge bg-{{ color[0] }}-lt"
>
{{ color[0] }}
</span>
{% endfor %}
{% endexample %}
### Links
{% example html %}
{% for color in site.colors %}
<a
href=
"#"
class=
"badge bg-{{ color[0] }}"
>
{{ color[0] }}
</a>
{% endfor %}
{% endexample %}
### Empty badges
{% example html %}
{% for color in site.colors %}
<a
href=
"#"
class=
"badge bg-{{ color[0] }}"
></a>
{% endfor %}
{% endexample %}
pages/_layouts/docs.html
浏览文件 @
0be994b2
...
...
@@ -8,15 +8,16 @@ page-title: Documentation
<div
class=
"row"
>
<div
class=
"col-lg-3 order-lg-1 mb-4"
>
<a
href=
"{{ site.github_url }}"
class=
"btn btn-block btn-primary mb-4"
>
<a
href=
"{{ site.github_url }}"
class=
"btn btn-block btn-primary mb-4"
target=
"_blank"
>
{% include ui/icon.html icon="github" class="mr-2" %}Browse source code
</a>
{% for group in site.docs-menu %}
{{ group.title }}
<div
class=
"list-group list-group-transparent mb-0"
>
{% for p in group.pages %}
{% assign doc = site.docs | where: "slug", p | first %}
<a
href=
"{{ site.base }}{{ doc.url }}"
class=
"list-group-item list-group-item-action{% if page.url == doc.url %} active{% endif %}"
>
<a
href=
"{{ site.base }}
/
{{ doc.url }}"
class=
"list-group-item list-group-item-action{% if page.url == doc.url %} active{% endif %}"
>
{{ doc.title }}
</a>
{% endfor %}
...
...
scss/_variables.scss
浏览文件 @
0be994b2
...
...
@@ -93,7 +93,8 @@ $colors: (
"cyan"
:
$cyan
,
"white"
:
$white
,
"gray"
:
$gray-600
,
"gray-dark"
:
$gray-800
"gray-dark"
:
$gray-800
,
"dark"
:
$dark
)
!
default
;
$avatar-sizes
:
(
...
...
@@ -153,6 +154,9 @@ $container-max-widths: (
xl
:
1200px
)
!
default
;
//badges
$badge-font-weight
:
600
!
default
;
//pagination
$pagination-border-width
:
0
!
default
;
$pagination-padding-y
:
.25rem
!
default
;
...
...
scss/ui/_badges.scss
浏览文件 @
0be994b2
.badge
{
//color: #ffffff;
//color: $text-muted;
//background: theme-color-lightest($text-muted);
font-weight
:
600
;
//font-weight: 600;
@at-root
a
#{
&
}
{
color
:
$white
;
}
&
:empty
{
display
:
block
;
display
:
inline-
block
;
width
:
8px
;
min-width
:
0
;
height
:
8px
;
...
...
@@ -26,41 +27,8 @@
transform
:
translate
(
0%
,
-50%
);
}
//light
@each
$name
,
$color
in
$status-colors
{
.badge-
#{
$name
}
-lt
{
color
:
$color
;
background-color
:
theme-color-lighter
(
$color
);
}
}
//bordered
@each
$name
,
$color
in
$status-colors
{
.badge-
#{
$name
}
.badge-outline
{
color
:
$color
;
background-color
:
transparent
;
border
:
1px
solid
$color
;
}
}
// rest colors
@if
$generate-colors
{
@each
$name
,
$color
in
$colors
{
.badge-
#{
$name
}
-lt
{
color
:
$color
;
background-color
:
theme-color-lighter
(
$color
);
}
.badge-
#{
$name
}
.badge-outline
{
color
:
$color
;
background-color
:
transparent
;
border
:
1px
solid
$color
;
}
.badge-
#{
$name
}
{
color
:
#fff
;
background-color
:
$color
;
}
}
.badge-outline
{
background-color
:
transparent
;
border
:
1px
solid
currentColor
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录