UI: various select-kit dropdown tweaks/cleaning (#9922)

This commit is contained in:
Joffrey JAFFEUX 2020-05-29 11:11:28 +02:00 committed by GitHub
parent f3dee5863f
commit 5d792483f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 52 deletions

View File

@ -44,7 +44,6 @@
flex-direction: column; flex-direction: column;
padding: 0; padding: 0;
min-width: 100px; min-width: 100px;
max-height: 200px;
.collection-header { .collection-header {
a { a {

View File

@ -1,7 +1,5 @@
.select-kit { .select-kit {
&.dropdown-select-box { &.dropdown-select-box {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex; display: inline-flex;
min-width: auto; min-width: auto;
border: none; border: none;
@ -23,52 +21,25 @@
margin: 0; margin: 0;
.icons { .icons {
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
flex: 0 0 auto; margin-right: 0.5em;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-item-align: start;
align-self: flex-start;
margin-right: 0.357em;
margin-top: 2px;
width: 30px;
.d-icon { .d-icon {
font-size: $font-up-2; font-size: $font-up-2;
-ms-flex-item-align: center;
align-self: center; align-self: center;
margin-right: 0; margin-right: 0;
opacity: 1;
} }
} }
.texts { .texts {
line-height: $line-height-large; line-height: $line-height-medium;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1 1 0%; flex: 1 1 0%;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start; align-items: flex-start;
display: -webkit-box;
display: -ms-flexbox;
display: flex; display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column; flex-direction: column;
.name { .name {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1 1 auto; flex: 1 1 auto;
font-weight: bold; font-weight: bold;
font-size: $font-0; font-size: $font-0;
@ -79,8 +50,6 @@
} }
.desc { .desc {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1 1 auto; flex: 1 1 auto;
font-size: $font-down-1; font-size: $font-down-1;
font-weight: normal; font-weight: normal;
@ -97,27 +66,15 @@
} }
.dropdown-select-box-header { .dropdown-select-box-header {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
border: 0; border: 0;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between; justify-content: space-between;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row; flex-direction: row;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex; display: inline-flex;
.d-icon + .d-icon { .d-icon + .d-icon {
margin-left: 5px; margin-left: 0.25em;
} }
&.is-focused { &.is-focused {

View File

@ -7,8 +7,8 @@
.select-kit-row { .select-kit-row {
.icons { .icons {
-ms-flex-item-align: start;
align-self: flex-start; align-self: flex-start;
margin-right: 0.75em;
} }
} }
} }

View File

@ -190,7 +190,7 @@
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
margin: 0; margin: 0;
padding: 0; padding: 0;
max-height: 200px; max-height: 250px;
width: 100%; width: 100%;
.validation-message { .validation-message {

View File

@ -22,13 +22,13 @@
} }
.d-icon { .d-icon {
color: $primary-high; color: $primary-medium;
} }
&.is-highlighted, &.is-highlighted,
&.is-selected, &.is-selected,
&:hover { &:hover {
background: $primary-low; background: $tertiary-low;
color: $primary; color: $primary;
} }
} }

View File

@ -5,6 +5,10 @@
padding: 0.75em 0.5em; padding: 0.75em 0.5em;
border-bottom: 1px solid rgba($primary-low, 0.5); border-bottom: 1px solid rgba($primary-low, 0.5);
.name {
line-height: $line-height-medium;
}
&:last-child { &:last-child {
border: none; border: none;
} }

View File

@ -1,8 +1,20 @@
.select-kit { .select-kit {
&.dropdown-select-box { &.dropdown-select-box {
.select-kit-collection { .select-kit-collection {
max-height: 200px;
overflow-y: auto; overflow-y: auto;
} }
.select-kit-row {
.svg-icon-title {
width: auto;
height: auto;
}
.texts {
.name {
font-weight: normal;
}
}
}
} }
} }