提交 e432599f 编写于 作者: C codecalm

fix #973 badge fixes

上级 d2d9eb01
......@@ -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.
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册