Prevent category dropdowns from cropping text, simplify styles

This commit is contained in:
Kris 2018-10-01 11:53:18 -04:00
parent 1add11d8c9
commit eca671b972
6 changed files with 7 additions and 18 deletions

View File

@ -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;

View File

@ -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 {
}
}
}

View File

@ -31,6 +31,7 @@
overflow: hidden;
}
.d-icon {
padding-left: 1px; // prevents lock icon from being cut off on the left
margin-right: 3px;
}
}

View File

@ -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;

View File

@ -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;

View File

@ -67,7 +67,6 @@
justify-content: space-between;
flex-direction: row;
min-height: 30px;
line-height: $line-height-small;
.selected-name {
text-align: left;