mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 00:37:06 +08:00
Prevent category dropdowns from cropping text, simplify styles
This commit is contained in:
parent
1add11d8c9
commit
eca671b972
|
@ -18,9 +18,9 @@
|
|||
background: $secondary;
|
||||
color: $primary;
|
||||
border: 1px solid $primary-medium;
|
||||
padding: 5px 6px 5px 10px;
|
||||
font-size: $font-0;
|
||||
transition: none;
|
||||
height: 10px // IE11 needs any height here for vertical centering, overriden elsewhere by min-height
|
||||
}
|
||||
.select-kit {
|
||||
align-self: center;
|
||||
|
|
|
@ -62,18 +62,6 @@
|
|||
|
||||
.badge-wrapper {
|
||||
margin-top: 0;
|
||||
|
||||
&.bullet .badge-category {
|
||||
}
|
||||
|
||||
&.box,
|
||||
&.bullet {
|
||||
}
|
||||
|
||||
&.box + .topic-header-extra,
|
||||
&.bullet + .topic-header-extra,
|
||||
&.bar + .topic-header-extra {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
.d-icon {
|
||||
padding-left: 1px; // prevents lock icon from being cut off on the left
|
||||
margin-right: 3px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,15 +15,16 @@
|
|||
}
|
||||
|
||||
&.bar.has-selection .category-drop-header {
|
||||
padding: 4px 5px 4px 10px;
|
||||
padding: 0 5px 0 10px;
|
||||
}
|
||||
|
||||
&.box.has-selection .category-drop-header {
|
||||
padding: 3px 5px 3px 10px;
|
||||
.badge-wrapper.box {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.category-drop-header {
|
||||
padding: 5px 5px 5px 10px;
|
||||
|
||||
&.is-none .selected-name {
|
||||
color: inherit;
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
.select-kit-header {
|
||||
background: $secondary;
|
||||
border: 1px solid $primary-medium;
|
||||
padding: $input-padding;
|
||||
padding: 0 5px 0 10px;
|
||||
font-weight: 500;
|
||||
font-size: $font-0;
|
||||
|
||||
|
|
|
@ -67,7 +67,6 @@
|
|||
justify-content: space-between;
|
||||
flex-direction: row;
|
||||
min-height: 30px;
|
||||
line-height: $line-height-small;
|
||||
|
||||
.selected-name {
|
||||
text-align: left;
|
||||
|
|
Loading…
Reference in New Issue
Block a user