171 lines
3.4 KiB
SCSS
171 lines
3.4 KiB
SCSS
/* ==================================
|
|
# Chat
|
|
================================== */
|
|
|
|
// SETTINGS
|
|
@import "@appuniversum/ember-appuniversum/styles/a-settings";
|
|
|
|
// TOOLS
|
|
@import "@appuniversum/ember-appuniversum/styles/a-tools";
|
|
|
|
// GENERIC
|
|
@import "@appuniversum/ember-appuniversum/styles/a-generic";
|
|
|
|
// ELEMENTS
|
|
@import "@appuniversum/ember-appuniversum/styles/a-elements";
|
|
|
|
// OBJECTS
|
|
@import "@appuniversum/ember-appuniversum/styles/a-objects";
|
|
|
|
// COMPONENTS
|
|
@import "@appuniversum/ember-appuniversum/styles/a-components";
|
|
|
|
// PLUGINS
|
|
@import "@appuniversum/ember-appuniversum/styles/a-plugins";
|
|
|
|
// UTILITIES
|
|
@import "@appuniversum/ember-appuniversum/styles/a-utilities";
|
|
|
|
// CHAT
|
|
.chat-window {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - 8rem);
|
|
}
|
|
.chat-window__messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
}
|
|
.chat-message {
|
|
max-width: 48rem;
|
|
margin: 0 auto 1rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.5rem;
|
|
white-space: pre-wrap;
|
|
}
|
|
.chat-message--user {
|
|
background: var(--au-blue-100);
|
|
margin-left: 8rem;
|
|
}
|
|
.chat-message--assistant {
|
|
background: var(--au-gray-100);
|
|
margin-right: 8rem;
|
|
}
|
|
.chat-composer {
|
|
border-top: 1px solid var(--au-gray-200);
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Rendered markdown (assistant messages) */
|
|
.chat-md > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
.chat-md > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.chat-md p,
|
|
.chat-md ul,
|
|
.chat-md ol,
|
|
.chat-md blockquote,
|
|
.chat-md table {
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
.chat-md ul,
|
|
.chat-md ol {
|
|
padding-left: 1.5rem;
|
|
}
|
|
.chat-md code {
|
|
background: var(--au-gray-200);
|
|
border-radius: 0.25rem;
|
|
padding: 0.1rem 0.3rem;
|
|
font-size: 0.9em;
|
|
}
|
|
.chat-md pre {
|
|
margin: 0 0 0.5rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background: var(--au-gray-200);
|
|
border-radius: 0.25rem;
|
|
overflow-x: auto;
|
|
}
|
|
.chat-md pre code {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
.chat-md table {
|
|
border-collapse: collapse;
|
|
}
|
|
.chat-md th,
|
|
.chat-md td {
|
|
border: 1px solid var(--au-gray-300);
|
|
padding: 0.25rem 0.5rem;
|
|
text-align: left;
|
|
}
|
|
.chat-md blockquote {
|
|
border-left: 3px solid var(--au-gray-300);
|
|
padding-left: 0.75rem;
|
|
color: var(--au-gray-500);
|
|
}
|
|
|
|
/* The turtle spec, hidden behind a disclosure */
|
|
.chat-md__spec {
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
.chat-md__spec summary {
|
|
cursor: pointer;
|
|
color: var(--au-gray-700);
|
|
font-size: 0.9em;
|
|
}
|
|
.chat-md__spec summary:hover {
|
|
color: var(--au-gray-600);
|
|
}
|
|
/* the SPARQL translation, inside the same disclosure */
|
|
.chat-md__spec-queries {
|
|
margin-top: 0.5rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px solid var(--au-gray-300, #ccc);
|
|
}
|
|
.chat-md__spec-queries .chat-md__queries-label {
|
|
margin: 0 0 0.25rem;
|
|
color: var(--au-gray-700);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* The attachment tab inside an assistant message */
|
|
.chat-bijlagen-tabs {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.chat-bijlagen-tab {
|
|
border: 1px solid var(--au-gray-300);
|
|
background: transparent;
|
|
border-radius: 0.25rem 0.25rem 0 0;
|
|
padding: 0.15rem 0.6rem;
|
|
font-size: 0.85em;
|
|
cursor: pointer;
|
|
color: var(--au-gray-700);
|
|
}
|
|
.chat-bijlagen-tab--active {
|
|
background: var(--au-gray-100);
|
|
font-weight: 600;
|
|
}
|
|
.chat-attachment--row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
padding: 0.375rem 0;
|
|
border-top: 1px solid var(--au-gray-300);
|
|
}
|
|
.chat-attachment__info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.125rem;
|
|
}
|
|
.chat-attachment__what,
|
|
.chat-attachment__pending {
|
|
color: var(--au-gray-500);
|
|
font-size: 0.85em;
|
|
}
|