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;
padding: 0;
min-width: 100px;
max-height: 200px;
.collection-header {
a {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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