docuservix/widgets/chat: добавлен компонент чата
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
.Input {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem 1.25rem;
|
||||
border-top: 1px solid var(--ifm-color-emphasis-200);
|
||||
}
|
||||
|
||||
.Input__field {
|
||||
flex: 1;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--ifm-color-emphasis-200);
|
||||
border-radius: 1.5rem;
|
||||
font-size: 1rem;
|
||||
font-family: inherit;
|
||||
color: var(--ifm-font-color-base);
|
||||
background: var(--ifm-background-surface-color);
|
||||
outline: none;
|
||||
transition: border-color 0.3s;
|
||||
resize: none;
|
||||
min-height: 3.25rem;
|
||||
max-height: 8rem;
|
||||
field-sizing: content;
|
||||
}
|
||||
|
||||
.Input__field:focus {
|
||||
border-color: #667eea;
|
||||
}
|
||||
|
||||
.Input__field:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.Input__send {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 3.25rem;
|
||||
height: 3.25rem;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
color: white;
|
||||
font-size: 1.125rem;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.Input__send:hover:not(:disabled) {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.Input__send:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
Reference in New Issue
Block a user