mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
Consistent padding for selected-tags and input
Flexbox means we can rely on each child of the selected-options container pushing itself way from neighbors, while also wrapping to multiple lines when the width gets short! So we're removing the hard-coded heights and letting things flow as they might, with inner padding and outer margins doing the work of keeping sufficient space between things.
This commit is contained in:
@@ -14,16 +14,12 @@
|
|||||||
attribute does most of the work for us by rearranging the child elements visually.
|
attribute does most of the work for us by rearranging the child elements visually.
|
||||||
*/
|
*/
|
||||||
.v-select[dir="rtl"] .v-select__actions {
|
.v-select[dir="rtl"] .v-select__actions {
|
||||||
padding: 0 3px 0 6px;
|
padding: 0 3px 0 4px;
|
||||||
}
|
}
|
||||||
.v-select[dir="rtl"] .dropdown-toggle .clear {
|
.v-select[dir="rtl"] .dropdown-toggle .clear {
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
.v-select[dir="rtl"] .selected-tag {
|
|
||||||
margin-right: 3px;
|
|
||||||
margin-left: 1px;
|
|
||||||
}
|
|
||||||
.v-select[dir="rtl"] .selected-tag .close {
|
.v-select[dir="rtl"] .selected-tag .close {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
@@ -93,11 +89,12 @@
|
|||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
padding: 0 2px 4px;
|
||||||
}
|
}
|
||||||
.v-select .v-select__actions {
|
.v-select .v-select__actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 6px 0 3px;
|
padding: 0 4px 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear Button */
|
/* Clear Button */
|
||||||
@@ -151,15 +148,13 @@
|
|||||||
/* Selected Tags */
|
/* Selected Tags */
|
||||||
.v-select .selected-tag {
|
.v-select .selected-tag {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: center;
|
||||||
color: #333;
|
color: #333;
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
height: 26px;
|
margin: 4px 2px 0px 2px;
|
||||||
margin: 4px 1px 0px 3px;
|
padding: 0 0.25em;
|
||||||
padding: 1px 0.25em;
|
|
||||||
line-height: 24px;
|
|
||||||
}
|
}
|
||||||
.v-select.single .selected-tag {
|
.v-select.single .selected-tag {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
@@ -204,7 +199,7 @@
|
|||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
font-size:1em;
|
font-size:1em;
|
||||||
height: 34px;
|
height: auto;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user