mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:15:32 +08:00
switching bullet-badges to flexbox to solve alignment
This commit is contained in:
parent
249ef75f12
commit
792a12349b
|
@ -52,20 +52,12 @@
|
|||
|
||||
|
||||
&.bullet { //bullet category style
|
||||
line-height: 1.25;
|
||||
margin-right: 5px;
|
||||
|
||||
h3 & {
|
||||
line-height: .9;
|
||||
}
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
margin-right: 10px;
|
||||
|
||||
span.badge-category {
|
||||
color: $primary !important;
|
||||
vertical-align: text-top;
|
||||
line-height: 1;
|
||||
margin-left: 4px;
|
||||
padding: 3px 0 3px 3px;
|
||||
margin-top: -4px;
|
||||
display: inline-block;
|
||||
|
||||
#search-dropdown & {
|
||||
|
@ -78,9 +70,12 @@
|
|||
}
|
||||
|
||||
.badge-category-parent-bg, .badge-category-bg {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-right: 5px;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
|
||||
&:before {
|
||||
content: "\a0";
|
||||
}
|
||||
|
@ -89,10 +84,9 @@
|
|||
span {
|
||||
&.badge-category-parent-bg { //subcategory style
|
||||
width: 5px;
|
||||
line-height: 1;
|
||||
margin-right: 0;
|
||||
& + .badge-category-bg {
|
||||
width: 5px;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +192,7 @@
|
|||
}
|
||||
}
|
||||
.cat {
|
||||
line-height: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
.badge-wrapper {
|
||||
&.bar {
|
||||
|
|
Loading…
Reference in New Issue
Block a user