Simplify serachable select layout
This commit is contained in:
parent
b5189dfebb
commit
e3b77af2f4
2 changed files with 10 additions and 9 deletions
|
@ -7,12 +7,15 @@
|
|||
<%= @autofocus %>
|
||||
value="<%= @value %>"
|
||||
>
|
||||
<div class="searchableSelect-autocomplete"><span class="searchableSelect-autocomplete-invisible js-autocomplete-invisible"></span><span class="searchableSelect-autocomplete-visible js-autocomplete-visible"></span></div>
|
||||
<input
|
||||
class="searchableSelect-main form-control js-input<%= " #{ @class }" if @class %>"
|
||||
placeholder="<%= @placeholder %>"
|
||||
value="<%= @valueName %>"
|
||||
>
|
||||
<div class="searchableSelect-autocomplete">
|
||||
<span class="searchableSelect-autocomplete-invisible js-autocomplete-invisible"></span>
|
||||
<span class="searchableSelect-autocomplete-visible js-autocomplete-visible"></span>
|
||||
</div>
|
||||
<svg class="icon-arrow-down"><use xlink:href="#icon-arrow-down" /></svg>
|
||||
<div class="small loading icon"></div>
|
||||
</div>
|
||||
|
|
|
@ -5823,18 +5823,15 @@ output {
|
|||
}
|
||||
|
||||
.searchableSelect-main {
|
||||
background: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.searchableSelect-shadow {
|
||||
pointer-events: none;
|
||||
color: transparent;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
border: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
margin-top: -3px;
|
||||
}
|
||||
|
||||
&.dropdown li:hover:not(.is-active) {
|
||||
|
@ -5857,6 +5854,7 @@ output {
|
|||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.searchableSelect-autocomplete-invisible {
|
||||
|
|
Loading…
Reference in a new issue