Skip to content

Commit cb5510c

Browse files
committed
fix(badge): Vertical align a badge in an item-divider, closes #707
1 parent a0d60d5 commit cb5510c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: scss/_items.scss

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
top: $item-padding;
5757
right: ($item-padding * 2) + 5;
5858
}
59+
&.item-divider .badge {
60+
top: $item-padding / 2;
61+
}
5962
.badge + .badge {
6063
margin-right: 5px;
6164
}

Diff for: test/html/lists.html

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ <h1 class="title">Lists</h1>
149149

150150
<div class="item item-divider">
151151
Leisure
152+
<span class="badge badge-positive">33</span>
152153
</div>
153154

154155
<a href="#" class="item item-icon-left">

0 commit comments

Comments
 (0)