Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
e432599f
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,发现更多精彩内容 >>
提交
e432599f
编写于
1月 03, 2022
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix #973 badge fixes
上级
d2d9eb01
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
26 deletion
+4
-26
src/pages/_docs/badges.md
src/pages/_docs/badges.md
+3
-16
src/scss/ui/_badges.scss
src/scss/ui/_badges.scss
+1
-10
未找到文件。
src/pages/_docs/badges.md
浏览文件 @
e432599f
...
...
@@ -12,7 +12,7 @@ The default badges are square and come in the basic set of colors.
{% capture code %}
{% for color in site.colors %}
<span
class=
"badge bg-{{ color[0] }}"
>
{{ color[
0]
}}
</span>
<span
class=
"badge bg-{{ color[0] }}"
>
{{ color[
1].title
}}
</span>
{% endfor %}
{% endcapture %}
{% include example.html code=code centered=true %}
...
...
@@ -36,7 +36,7 @@ You can create a soft colour variant of a corresponding contextual badge variati
{% capture code %}
{% for color in site.colors %}
<span
class=
"badge bg-{{ color[0] }}-lt"
>
{{ color[
0]
}}
</span>
<span
class=
"badge bg-{{ color[0] }}-lt"
>
{{ color[
1].title
}}
</span>
{% endfor %}
{% endcapture %}
{% include example.html code=code centered=true %}
...
...
@@ -48,7 +48,7 @@ Place the badge within an `<a>` element if you want it to perform the function o
{% capture code %}
{% for color in site.colors %}
<a
href=
"#"
class=
"badge bg-{{ color[0] }}"
>
{{ color[
0]
}}
</a>
<a
href=
"#"
class=
"badge bg-{{ color[0] }}"
>
{{ color[
1].title
}}
</a>
{% endfor %}
{% endcapture %}
{% include example.html code=code centered=true %}
...
...
@@ -66,19 +66,6 @@ Leave the HTML element empty if you want to create badges without any text. Empt
{% include example.html code=code centered=true %}
## Badge avatars
Create the
`.badge-avatar`
class to add an avatar that will make a badge more personalized.
{% capture code %}
{% include ui/badge.html person-id=1 %}
{% include ui/badge.html person-id=2 %}
{% include ui/badge.html person-id=3 %}
{% include ui/badge.html person-id=4 %}
{% include ui/badge.html person-id=5 %}
{% endcapture %}
{% include example.html code=code %}
## Button with badge
Badges can be used as part of links or buttons to provide a counter.
...
...
src/scss/ui/_badges.scss
浏览文件 @
e432599f
...
...
@@ -12,7 +12,6 @@
font-weight
:
$headings-font-weight
;
font-size
:
$h6-font-size
;
letter-spacing
:
.04em
;
text-transform
:
uppercase
;
@at-root
a
#{
&
}
{
color
:
$white
;
...
...
@@ -28,13 +27,6 @@
border-radius
:
$border-radius-pill
;
}
.avatar
{
box-sizing
:
content-box
;
width
:
1
.25rem
;
height
:
1
.25rem
;
margin
:
0
.5rem
0
-.5rem
;
}
.icon
{
width
:
1em
;
height
:
1em
;
...
...
@@ -50,6 +42,5 @@
}
.badge-pill
{
border-radius
:
100px
;
min-width
:
1
.75em
;
border-radius
:
$border-radius-pill
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录