2022-03-28 00:21:55 +02:00
|
|
|
:host {
|
|
|
|
--input-placeholder-color: var(--placeholder-color);
|
|
|
|
--input-background: transparent;
|
|
|
|
--input-shadow: none;
|
|
|
|
--input-border: none;
|
|
|
|
--input-color: var(--grey-color);
|
|
|
|
--input-color-disabled: var(--disable-color);
|
|
|
|
--input-background-disabled: var(--muted-color);
|
|
|
|
--input-options-background: transparent;
|
|
|
|
--input-options-divider: 1px solid var(--muted-color);
|
|
|
|
--input-options-background-active: var(--table-color);
|
|
|
|
--input-options-color-active: var(--dark-color);
|
2020-11-01 16:41:02 +01:00
|
|
|
}
|
2020-10-19 11:06:23 +02:00
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
/** Input Container*/
|
|
|
|
.input-container {
|
|
|
|
box-shadow: var(--input-shadow);
|
|
|
|
border: var(--input-border);
|
|
|
|
background: var(--input-background);
|
|
|
|
border-radius: 6px;
|
|
|
|
position: relative;
|
2020-11-01 16:41:02 +01:00
|
|
|
}
|
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
.input-container.disabled {
|
|
|
|
background-color: var(--input-background-disabled);
|
2021-01-21 16:15:53 +01:00
|
|
|
}
|
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
.input-container.opened {
|
|
|
|
z-index: 1;
|
2020-11-01 16:41:02 +01:00
|
|
|
}
|
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
/** Input wrapper*/
|
|
|
|
.input-wrapper {
|
|
|
|
padding: 20px 0 20px 20px;
|
|
|
|
cursor: text;
|
|
|
|
position: relative;
|
|
|
|
color: var(--input-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-wrapper.select {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container.disabled > .input-wrapper {
|
|
|
|
cursor: not-allowed !important;
|
|
|
|
user-select: none;
|
|
|
|
color: var(--input-color-disabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Placeholder */
|
|
|
|
.input-wrapper > .placeholder {
|
2020-11-01 16:41:02 +01:00
|
|
|
position: absolute;
|
2022-03-28 00:21:55 +02:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
2020-11-01 16:41:02 +01:00
|
|
|
right: 0;
|
2022-03-28 00:21:55 +02:00
|
|
|
overflow: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
color: var(--input-placeholder-color);
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container.disabled > .input-wrapper > .placeholder {
|
|
|
|
color: var(--input-color-disabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-wrapper > .placeholder > label {
|
|
|
|
position: absolute;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 24px;
|
|
|
|
top: 32px;
|
2020-11-01 16:41:02 +01:00
|
|
|
transform: translateY(-50%);
|
2022-03-28 00:21:55 +02:00
|
|
|
transition: all 0.5s ease 0s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container.focused > .input-wrapper > .placeholder > label {
|
|
|
|
top: 15px;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Input */
|
|
|
|
.input-wrapper .input {
|
|
|
|
outline: 0 none !important;
|
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 0;
|
|
|
|
border: 0 none;
|
|
|
|
padding: 0 20px 0 0;
|
|
|
|
background: transparent !important;
|
|
|
|
color: inherit;
|
|
|
|
width: 100%;
|
|
|
|
min-height: 24px;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
resize: none;
|
|
|
|
cursor: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-wrapper .input:disabled {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-wrapper .input::placeholder {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Tools */
|
|
|
|
.input-wrapper > .tools {
|
|
|
|
max-height: 0;
|
|
|
|
transition: max-height 0.3s linear;
|
|
|
|
overflow: hidden;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container.focused > .input-wrapper > .tools {
|
|
|
|
max-height: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Options */
|
|
|
|
.input-container > .options {
|
|
|
|
max-height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: max-height 0.2s linear;
|
|
|
|
background: var(--input-options-background);
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container.opened > .options {
|
|
|
|
max-height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container > .options > ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 1px;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container > .options > ul > li > a {
|
|
|
|
padding: 10px 15px;
|
|
|
|
background: transparent;
|
|
|
|
color: var(--input-placeholder-color);
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-container > .options > ul > li:nth-child(n+2) {
|
|
|
|
border-top: var(--input-options-divider);
|
2020-11-01 16:41:02 +01:00
|
|
|
}
|
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
.input-container > .options > ul > li:last-child {
|
|
|
|
border-radius: 0 0 6px 6px;
|
2020-11-01 16:41:02 +01:00
|
|
|
}
|
2021-01-21 16:15:53 +01:00
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
.input-container > .options > ul > li:hover > a, .input-container > .options > ul > li.uk-active > a{
|
|
|
|
background: var(--input-options-background-active);
|
|
|
|
color: var(--input-options-color-active);
|
|
|
|
font-weight: 600;
|
2021-01-21 16:15:53 +01:00
|
|
|
}
|
2021-02-01 11:14:08 +01:00
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
/** Modifiers */
|
|
|
|
.inner {
|
|
|
|
--input-shadow: var(--shadow-inset);
|
|
|
|
--input-background: var(--default-color);
|
2021-02-01 11:14:08 +01:00
|
|
|
}
|
2021-09-07 10:13:10 +02:00
|
|
|
|
2022-03-28 00:21:55 +02:00
|
|
|
.flat {
|
|
|
|
--input-background: var(--light-color);
|
|
|
|
--input-border: 1px solid var(--muted-color);
|
2021-09-07 10:13:10 +02:00
|
|
|
}
|