Center pill content using more flexbox

Turns each pill item (already full height) into a
flex container with its content as a column. Uses
this to align the content (the pill label) to the
middle of the column.
This commit is contained in:
Tom Byers
2020-02-07 17:42:53 +00:00
parent a5ea785474
commit 4433db346b
+3 -1
View File
@@ -25,7 +25,9 @@
a, a,
&-selected-item { &-selected-item {
display: block; display: flex; // float causes display: block in browsers without flexbox
flex-direction: column;
justify-content: center;
float: left; float: left;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;