mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 01:36:55 +01:00
fix country search
This commit is contained in:
parent
c93a71a867
commit
397f46fb82
@ -49,7 +49,8 @@ var Forms = (function(w, d, $) {
|
||||
initSelect: function(el) {
|
||||
_config.form.find('select').select2({
|
||||
minimumResultsForSearch: 15,
|
||||
theme: 'bigchaindb'
|
||||
theme: 'bigchaindb',
|
||||
placeholder: '\xa0' // that's
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -4,10 +4,14 @@
|
||||
// bigchain.io
|
||||
//
|
||||
.form {
|
||||
padding: ($spacer * 1.5) ($spacer * 2.5);
|
||||
padding: $spacer;
|
||||
background: $gray-dark;
|
||||
border-radius: $border-radius;
|
||||
margin-bottom: $spacer;
|
||||
|
||||
@media ($screen-sm) {
|
||||
padding: ($spacer * 1.5) ($spacer * 2.5);
|
||||
}
|
||||
}
|
||||
|
||||
.form-control {
|
||||
|
@ -10,6 +10,7 @@
|
||||
background: $gray-dark;
|
||||
color: $input-color;
|
||||
font-family: inherit;
|
||||
font-size: $font-size-sm;
|
||||
|
||||
// resets
|
||||
border: none;
|
||||
@ -39,7 +40,7 @@
|
||||
padding: 0;
|
||||
|
||||
.select2-search__field {
|
||||
@extend .form-control, .form-control--sm;
|
||||
@extend .form-control;
|
||||
padding-left: $spacer;
|
||||
padding-right: $spacer;
|
||||
border-bottom: none !important;
|
||||
@ -68,7 +69,6 @@
|
||||
}
|
||||
|
||||
.select2-results__option {
|
||||
line-height: 1;
|
||||
padding: $input-padding-x $spacer $input-padding-x $spacer;
|
||||
margin-bottom: 0;
|
||||
display: block;
|
||||
@ -77,11 +77,6 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
// assume first item is always the empty placeholder
|
||||
&:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&[role=group] {
|
||||
padding: 0;
|
||||
}
|
||||
@ -95,31 +90,31 @@
|
||||
}
|
||||
|
||||
.select2-results__option {
|
||||
padding-left: 1em;
|
||||
padding-left: $spacer;
|
||||
|
||||
.select2-results__group {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.select2-results__option {
|
||||
margin-left: -1em;
|
||||
padding-left: 2em;
|
||||
margin-left: -$spacer;
|
||||
padding-left: $spacer * 2;
|
||||
|
||||
.select2-results__option {
|
||||
margin-left: -2em;
|
||||
padding-left: 3em;
|
||||
margin-left: -($spacer * 2);
|
||||
padding-left: $spacer * 3;
|
||||
|
||||
.select2-results__option {
|
||||
margin-left: -3em;
|
||||
padding-left: 4em;
|
||||
margin-left: -($spacer * 3);
|
||||
padding-left: $spacer * 4;
|
||||
|
||||
.select2-results__option {
|
||||
margin-left: -4em;
|
||||
padding-left: 5em;
|
||||
margin-left: -($spacer * 4);
|
||||
padding-left: $spacer * 5;
|
||||
|
||||
.select2-results__option {
|
||||
margin-left: -5em;
|
||||
padding-left: 6em;
|
||||
margin-left: -($spacer * 5);
|
||||
padding-left: $spacer * 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user