Skip to content

Commit bd3ee80

Browse files
committed
enhance badge box v-align
1 parent 089129a commit bd3ee80

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

common/common.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,12 @@ div.poll .poll-buttons .btn:first-child, .modal-footer a:first-child, .modal-foo
13811381
.badge-wrapper[href]:focus {
13821382
outline: 0;
13831383
}
1384+
.badge-wrapper.box, .badge-wrapper.bullet {
1385+
-webkit-box-align: center;
1386+
-webkit-align-items: center;
1387+
-ms-flex-align: center;
1388+
align-items: center;
1389+
}
13841390
.badge-wrapper.box span.badge-category, .badge-wrapper.bullet span.badge-category {
13851391
line-height: 32px;
13861392
}
@@ -1407,6 +1413,10 @@ div.poll .poll-buttons .btn:first-child, .modal-footer a:first-child, .modal-foo
14071413
width: 16px;
14081414
}
14091415
.badge-wrapper.box {
1416+
display: -webkit-inline-box;
1417+
display: -webkit-inline-flex;
1418+
display: -ms-inline-flexbox;
1419+
display: inline-flex;
14101420
margin-top: 0;
14111421
}
14121422
.badge-wrapper.box span.badge-category {
@@ -1423,12 +1433,6 @@ div.poll .poll-buttons .btn:first-child, .modal-footer a:first-child, .modal-foo
14231433
.badge-wrapper.box span.badge-category-parent-bg + .badge-category-bg + .badge-category {
14241434
margin-left: 36px;
14251435
}
1426-
.badge-wrapper.bullet {
1427-
-webkit-box-align: center;
1428-
-webkit-align-items: center;
1429-
-ms-flex-align: center;
1430-
align-items: center;
1431-
}
14321436

14331437
body code, body
14341438
kbd, body

scss/common/_chip.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040

4141
&.box,
4242
&.bullet {
43+
align-items: center;
44+
4345
span {
4446
&.badge-category {
4547
line-height: $chip-height;
@@ -69,6 +71,7 @@
6971
}
7072

7173
&.box {
74+
display: inline-flex;
7275
margin-top: 0;
7376

7477
span {
@@ -91,8 +94,4 @@
9194
}
9295
}
9396
}
94-
95-
&.bullet {
96-
align-items: center;
97-
}
9897
}

0 commit comments

Comments
 (0)