selectbox/autocomplete.css

187 lines
2.8 KiB
CSS
Raw Normal View History

2019-08-27 12:15:52 +03:00
.input
{
background: white;
border: 1px solid #d8d8d8;
border-radius: 0;
2019-08-30 02:38:35 +03:00
font-size: 13px;
line-height: 20px;
2019-08-27 12:15:52 +03:00
padding: 0;
height: 33px;
2019-08-27 12:15:52 +03:00
position: relative;
}
.input.focused
{
box-shadow: inset 0 0 0 1px #7ab1ff;
}
2019-08-27 12:15:52 +03:00
.input:after
{
border: 0;
top: 50%;
width: 0;
position: absolute;
right: 1em;
text-align: right;
2019-08-30 02:38:35 +03:00
font-size: 20px;
margin-top: -10px;
2019-08-27 12:15:52 +03:00
font-family: FontAwesome;
content: "\f107";
color: #c0c0c0;
height: 0.75em;
cursor: pointer;
}
2019-08-30 12:38:23 +03:00
.input.disabled
{
background: #f4f4f4;
}
2019-08-30 02:38:35 +03:00
.input.multiple
{
display: flex;
overflow: hidden;
cursor: text;
height: auto;
}
2019-09-03 11:59:06 +03:00
.input.readonly, .input.readonly .inputElement
{
cursor: pointer;
}
2019-08-27 12:15:52 +03:00
.suggestions
{
outline: none;
background: white;
2019-08-27 12:15:52 +03:00
margin-top: 0;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);
overflow-x: hidden;
overflow-y: auto;
padding: 0;
width: 100%;
max-height: 100%;
2019-08-27 12:15:52 +03:00
}
.suggestion
{
font-size: 13px;
padding: 7px;
user-select: none;
cursor: pointer;
}
2021-08-30 20:33:23 +03:00
.suggestion.disabled
{
color: #aaa;
background: #f4f6f8;
}
2019-08-27 12:15:52 +03:00
.suggestion.active
{
background: #d6e8f6;
}
2019-08-30 02:38:35 +03:00
.inputElement
2019-08-27 12:15:52 +03:00
{
2019-08-30 12:38:23 +03:00
background: transparent;
2019-08-27 12:15:52 +03:00
font-size: inherit;
font-weight: inherit;
2019-08-27 12:15:52 +03:00
line-height: 200%;
border: 0;
padding: 0 2em 0 .5em;
2019-09-21 20:22:14 +03:00
box-sizing: border-box;
2019-08-27 12:15:52 +03:00
margin: 0;
height: 100%;
display: block;
outline: none;
width: 100%;
}
2019-08-30 02:38:35 +03:00
.inputElement::-ms-clear
2019-08-27 12:15:52 +03:00
{
display: none;
}
2019-08-30 12:38:23 +03:00
.inputElement[disabled]
{
background: transparent;
}
2019-08-30 02:38:35 +03:00
.multiple .inputElement
2019-08-27 12:15:52 +03:00
{
2019-08-30 02:38:35 +03:00
padding: 0;
display: inline-block;
height: 29px;
2019-08-27 12:15:52 +03:00
}
2019-08-30 02:38:35 +03:00
.multiple .inputElement.sizer
2019-08-27 12:15:52 +03:00
{
2019-08-30 02:38:35 +03:00
display: inline-block;
width: auto;
2019-08-27 12:15:52 +03:00
position: absolute;
2019-08-30 02:38:35 +03:00
padding: 0 2px;
top: -100px;
white-space: pre;
visibility: hidden;
2019-08-27 12:15:52 +03:00
}
2019-08-30 02:38:35 +03:00
.multiple .values
2019-08-27 12:15:52 +03:00
{
2019-08-30 02:38:35 +03:00
overflow: hidden;
flex: 1;
margin: 0 2em 0 5px;
line-height: 10px;
2019-08-27 12:15:52 +03:00
}
2019-08-30 02:38:35 +03:00
.multiple .values .value
2019-08-27 12:15:52 +03:00
{
2019-08-30 02:38:35 +03:00
cursor: pointer;
display: inline-block;
border-radius: 2px;
background: #e0f0ff;
border: 1px solid #c0e0ff;
line-height: 15px;
2019-08-30 02:38:35 +03:00
padding: 3px;
margin: 2px 4px 2px 0;
2019-08-27 12:15:52 +03:00
}
2019-08-30 02:38:35 +03:00
.withClear .inputElement
2019-08-27 12:15:52 +03:00
{
2019-08-30 02:38:35 +03:00
padding-right: 52px;
}
.clear:after
{
content: "✕";
cursor: pointer;
2019-08-27 12:15:52 +03:00
color: #aaa;
width: 20px;
height: 20px;
border-radius: 10px;
2019-08-30 02:38:35 +03:00
box-sizing: border-box;
2019-08-27 12:15:52 +03:00
border: 1px solid #aaa;
2019-08-30 02:38:35 +03:00
display: block;
position: absolute;
2019-08-27 12:15:52 +03:00
left: auto;
2020-04-27 16:43:32 +03:00
top: 5px;
2019-08-27 12:15:52 +03:00
right: 28px;
2020-04-27 16:43:32 +03:00
line-height: 19px;
font-size: 17px;
2019-08-27 12:15:52 +03:00
text-align: center;
padding: 0;
}
2019-08-30 02:38:35 +03:00
.clearValue:after
{
content: "✕";
color: #444;
cursor: pointer;
display: inline-block;
font-size: 18px;
vertical-align: middle;
margin: 0 3px 0 0;
text-align: center;
padding: 0;
}