mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 13:34:00 +08:00
201 lines
3.3 KiB
SCSS
Vendored
201 lines
3.3 KiB
SCSS
Vendored
@use "lib/viewport";
|
|
|
|
nav.post-controls .actions button.cancel-streaming {
|
|
display: none;
|
|
}
|
|
|
|
.ai-cancel-streaming-container {
|
|
display: none;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease-out;
|
|
}
|
|
|
|
.post-info.post-date {
|
|
opacity: 1;
|
|
transition: opacity 0.2s ease-out;
|
|
}
|
|
|
|
article.streaming {
|
|
.post-info.post-date {
|
|
opacity: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ai-cancel-streaming-container {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
nav.post-controls .actions button.ai-retry-streaming {
|
|
display: none;
|
|
}
|
|
|
|
@include viewport.until(sm) {
|
|
.agent-flair {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ai-bot-pm {
|
|
.gpt-agent {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
#reply-control .composer-fields {
|
|
.mini-tag-chooser,
|
|
.add-warning {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ai-bot-chat-warning {
|
|
color: var(--tertiary);
|
|
background-color: var(--tertiary-low);
|
|
border-top: 1px solid var(--tertiary-medium);
|
|
opacity: 0.75;
|
|
|
|
.d-icon {
|
|
color: var(--tertiary);
|
|
}
|
|
margin: 0;
|
|
padding: 4px 10px;
|
|
width: calc(100% - 20px);
|
|
}
|
|
|
|
.ai-bot-available-bot-options {
|
|
padding: 0.5em;
|
|
|
|
.ai-bot-available-bot-content {
|
|
color: var(--primary-high);
|
|
display: flex;
|
|
width: 100%;
|
|
min-width: 320px;
|
|
padding: 0.5em;
|
|
|
|
.d-button-label {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--primary-low);
|
|
}
|
|
}
|
|
}
|
|
|
|
.topic-body .agent-flair {
|
|
order: 2;
|
|
font-size: var(--font-down-1);
|
|
transform: translateY(0.04em);
|
|
|
|
@include viewport.until(sm) {
|
|
transform: translateY(0.1em);
|
|
}
|
|
}
|
|
|
|
details.ai-quote {
|
|
> summary {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
span:first-child {
|
|
margin-right: auto;
|
|
}
|
|
|
|
span:nth-child(2) {
|
|
font-size: var(--font-down-2);
|
|
background: var(--primary-medium);
|
|
padding: 2px 6px 0;
|
|
color: var(--secondary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.ai-share-modal {
|
|
.d-modal__footer {
|
|
position: relative;
|
|
padding: 10px 20px 25px;
|
|
|
|
.btn-primary {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
&__just-copied {
|
|
position: absolute;
|
|
font-size: var(--font-down-1);
|
|
right: 20px;
|
|
bottom: 5px;
|
|
color: var(--success);
|
|
}
|
|
}
|
|
|
|
span.onebox-ai-llm-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.d-modal.ai-debug-modal {
|
|
--modal-max-width: 99%;
|
|
|
|
ul {
|
|
padding-left: 1em;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 0.2em;
|
|
}
|
|
|
|
li > ul {
|
|
margin-top: 0.2em;
|
|
margin-bottom: 0.2em;
|
|
}
|
|
}
|
|
|
|
.ai-debug-modal__stats {
|
|
margin-bottom: 1em;
|
|
font-size: var(--font-down-1);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.ai-debug-modal__stats-line {
|
|
margin: 0 0 0.25em;
|
|
|
|
&__label {
|
|
color: var(--primary-high);
|
|
margin-right: 0.25em;
|
|
}
|
|
|
|
&__cache {
|
|
color: var(--primary-high);
|
|
margin-left: 0.25em;
|
|
}
|
|
}
|
|
|
|
.ai-debug-modal__just-copied {
|
|
font-size: var(--font-down-1);
|
|
color: var(--success);
|
|
margin-left: auto;
|
|
align-self: center;
|
|
}
|
|
|
|
.ai-debug-modal__preview {
|
|
background-color: var(--primary-very-low);
|
|
border: 1px solid var(--primary-low);
|
|
border-radius: var(--d-border-radius);
|
|
padding: 0.75em 1em;
|
|
max-height: 60vh;
|
|
overflow: auto;
|
|
font-family: var(--d-font-family--monospace);
|
|
font-size: var(--font-down-1);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.d-modal ul.ai-debug-modal__nav {
|
|
margin: 0 0 1em;
|
|
padding: 0;
|
|
border-bottom: none;
|
|
}
|