2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-26 04:34:04 +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:
Steven Harman
2018-07-18 15:23:36 -04:00
parent 34df80314e
commit 746ea25ac9
+7 -12
View File
@@ -14,16 +14,12 @@
attribute does most of the work for us by rearranging the child elements visually.
*/
.v-select[dir="rtl"] .v-select__actions {
padding: 0 3px 0 6px;
padding: 0 3px 0 4px;
}
.v-select[dir="rtl"] .dropdown-toggle .clear {
margin-left: 6px;
margin-right: 0;
}
.v-select[dir="rtl"] .selected-tag {
margin-right: 3px;
margin-left: 1px;
}
.v-select[dir="rtl"] .selected-tag .close {
margin-left: 0;
margin-right: 2px;
@@ -93,11 +89,12 @@
flex-basis: 100%;
flex-grow: 1;
flex-wrap: wrap;
padding: 0 2px 4px;
}
.v-select .v-select__actions {
display: flex;
align-items: center;
padding: 0 6px 0 3px;
padding: 0 4px 0 3px;
}
/* Clear Button */
@@ -151,15 +148,13 @@
/* Selected Tags */
.v-select .selected-tag {
display: flex;
align-items: baseline;
align-items: center;
color: #333;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 4px;
height: 26px;
margin: 4px 1px 0px 3px;
padding: 1px 0.25em;
line-height: 24px;
margin: 4px 2px 0px 2px;
padding: 0 0.25em;
}
.v-select.single .selected-tag {
background-color: transparent;
@@ -204,7 +199,7 @@
-moz-appearance: none;
line-height: 1.42857143;
font-size:1em;
height: 34px;
height: auto;
display: inline-block;
border: none;
outline: none;