[ui] Domi UI: vendor @domi/ui v1.1.0 (TextField editable mode, opt-in; unedited)
This commit is contained in:
@@ -512,6 +512,43 @@ textarea.domi-field__input {
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
/*
|
||||
* Editable mode (as="editable"): a contenteditable box in place of <input>/<textarea>, so an Android WebView sends no
|
||||
* Autofill request. One line: centred, no wrap, scrolls sideways. Several lines: grows to --_rows-max, then scrolls.
|
||||
*/
|
||||
.domi-field__input--editable {
|
||||
align-self: center;
|
||||
min-height: var(--domi-leading-md);
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
white-space: pre;
|
||||
cursor: text;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.domi-field__input--editable::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.domi-field__input--lines {
|
||||
align-self: stretch;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
min-height: calc(var(--domi-leading-md) + 16px);
|
||||
max-height: calc(var(--domi-leading-md) * var(--_rows-max, 8) + 16px);
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
.domi-field__input--editable:empty::before {
|
||||
content: attr(data-placeholder);
|
||||
color: var(--domi-muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
.domi-field__input--editable[contenteditable='false'] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* The seal: the send button set into the right end of the field. */
|
||||
.domi-send {
|
||||
--_s: max(var(--domi-size-send-md), var(--domi-send-target));
|
||||
|
||||
Reference in New Issue
Block a user