2025-04-23 14:14:55 -05:00
|
|
|
@use "lib/viewport";
|
|
|
|
|
2025-04-24 13:47:11 -05:00
|
|
|
// Hide the new question button from the hamburger menu's footer on desktop
|
|
|
|
.desktop-view .hamburger-panel .ai-new-question-button {
|
2025-04-22 10:22:03 -05:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.has-ai-conversations-sidebar {
|
|
|
|
.ai-new-question-button {
|
2025-05-08 17:09:12 -04:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&__wrapper {
|
|
|
|
background: var(--secondary);
|
|
|
|
margin: 1.8em 1em 0;
|
|
|
|
|
|
|
|
.mobile-view & {
|
|
|
|
padding: 1em;
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
margin: -0.5em 0 0; // avoid shift when sticking
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
|
2025-04-25 13:20:18 -05:00
|
|
|
.sidebar-toggle-all-sections {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2025-05-08 15:10:42 -05:00
|
|
|
.sidebar-wrapper,
|
|
|
|
.hamburger-dropdown-wrapper {
|
2025-04-22 10:22:03 -05:00
|
|
|
// ai related sidebar content
|
|
|
|
[data-section-name="ai-conversations-history"] {
|
|
|
|
.sidebar-section-header-wrapper {
|
2025-04-25 13:20:18 -05:00
|
|
|
display: none;
|
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
|
2025-04-25 13:20:18 -05:00
|
|
|
.sidebar-section-link-wrapper {
|
|
|
|
.sidebar-section-link.date-heading {
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: default;
|
|
|
|
color: var(--primary-medium);
|
|
|
|
opacity: 0.8;
|
|
|
|
font-weight: 700;
|
|
|
|
margin-top: 1em;
|
2025-04-26 15:31:22 -05:00
|
|
|
font-size: var(--font-down-2);
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link {
|
|
|
|
height: unset;
|
|
|
|
padding-block: 0.65em;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
letter-spacing: 0.35px;
|
|
|
|
border-radius: 0 var(--border-radius) var(--border-radius) 0;
|
|
|
|
|
|
|
|
.sidebar-section-link-content-text {
|
|
|
|
white-space: normal;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link-prefix {
|
|
|
|
align-self: start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// topic elements
|
|
|
|
#topic-footer-button-share-and-invite,
|
|
|
|
body:not(.staff) #topic-footer-button-archive,
|
|
|
|
#topic-footer-buttons .topic-notifications-button,
|
|
|
|
.bookmark-menu-trigger,
|
|
|
|
.more-topics__container,
|
|
|
|
.private-message-glyph-wrapper,
|
|
|
|
.topic-header-participants,
|
|
|
|
.topic-above-footer-buttons-outlet,
|
|
|
|
#topic-footer-buttons .topic-footer-main-buttons details {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-timer-info {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-owner .actions .create-flag {
|
|
|
|
// why flag my own post
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container.posts {
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
.topic-navigation.with-timeline {
|
|
|
|
top: calc(var(--header-offset, 60px) + 5.5em);
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-navigation {
|
|
|
|
.topic-notifications-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#topic-title {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.title-wrapper {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 960px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.small-action,
|
|
|
|
.onscreen-post .row {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#topic-footer-buttons {
|
2025-05-07 16:13:25 -04:00
|
|
|
margin-top: 1em;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 50.5em;
|
2025-04-22 10:22:03 -05:00
|
|
|
|
|
|
|
.topic-footer-main-buttons {
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#topic-progress-wrapper.docked {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2025-04-23 14:14:55 -05:00
|
|
|
@include viewport.until(lg) {
|
2025-04-22 10:22:03 -05:00
|
|
|
.archetype-private_message .topic-post:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nav.post-controls .actions button {
|
|
|
|
padding: 0.5em 0.65em;
|
|
|
|
|
|
|
|
&.reply {
|
|
|
|
.d-icon {
|
|
|
|
margin-right: 0.45em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-bot-conversations {
|
2025-05-02 13:42:12 -04:00
|
|
|
--input-max-width: 46em;
|
2025-04-24 17:27:31 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: calc(100dvh - var(--header-offset) - 5em);
|
2025-04-22 10:22:03 -05:00
|
|
|
|
2025-04-24 11:17:24 -05:00
|
|
|
.persona-llm-selector {
|
2025-04-22 10:22:03 -05:00
|
|
|
display: flex;
|
2025-04-24 11:17:24 -05:00
|
|
|
gap: 0.5em;
|
2025-04-23 14:14:55 -05:00
|
|
|
justify-content: flex-start;
|
|
|
|
|
2025-04-24 11:17:24 -05:00
|
|
|
&__selection-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2025-05-07 16:13:25 -04:00
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
@include viewport.until(sm) {
|
|
|
|
.select-kit-header-wrapper {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
}
|
2025-04-23 14:14:55 -05:00
|
|
|
|
2025-04-24 11:17:24 -05:00
|
|
|
label {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
font-weight: 300;
|
|
|
|
margin-left: 1em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2025-05-07 16:13:25 -04:00
|
|
|
|
|
|
|
.name {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
2025-04-24 11:17:24 -05:00
|
|
|
}
|
2025-04-23 14:14:55 -05:00
|
|
|
|
2025-04-24 11:17:24 -05:00
|
|
|
.btn {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-start;
|
|
|
|
background-color: transparent;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:hover,
|
|
|
|
.btn:focus {
|
|
|
|
background-color: transparent;
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn:hover .d-icon,
|
|
|
|
.btn:focus .d-icon {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&__content-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2025-04-24 17:27:31 -04:00
|
|
|
flex: 1 1 auto;
|
2025-05-01 12:21:07 +10:00
|
|
|
gap: 0.5em;
|
2025-04-24 11:17:24 -05:00
|
|
|
|
|
|
|
.loading-container {
|
|
|
|
display: contents;
|
|
|
|
}
|
2025-05-01 12:21:07 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
font-size: var(--font-up-5);
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 0.25em;
|
|
|
|
line-height: var(--line-height-medium);
|
2025-04-24 17:27:31 -04:00
|
|
|
|
|
|
|
// optical centering for layout balance
|
|
|
|
@media screen and (min-height: 600px) {
|
2025-05-01 12:21:07 +10:00
|
|
|
margin-top: -6em;
|
2025-04-24 17:27:31 -04:00
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&__input-wrapper {
|
2025-05-01 12:21:07 +10:00
|
|
|
--input-min-height: 2.5em;
|
2025-04-22 10:22:03 -05:00
|
|
|
display: flex;
|
2025-05-01 12:21:07 +10:00
|
|
|
align-items: end;
|
2025-04-22 10:22:03 -05:00
|
|
|
width: 100%;
|
2025-05-02 13:42:12 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
border-radius: var(--d-input-border-radius);
|
2025-04-22 10:22:03 -05:00
|
|
|
|
2025-05-07 16:13:25 -04:00
|
|
|
&:has(textarea[disabled]) {
|
|
|
|
background: var(--primary-very-low);
|
|
|
|
}
|
|
|
|
|
2025-04-23 14:14:55 -05:00
|
|
|
@include viewport.from(sm) {
|
2025-04-22 10:22:03 -05:00
|
|
|
width: 80%;
|
2025-05-01 12:21:07 +10:00
|
|
|
max-width: var(--input-max-width);
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
|
2025-05-02 13:42:12 -04:00
|
|
|
&:focus-within {
|
|
|
|
border-color: var(--tertiary);
|
|
|
|
}
|
|
|
|
|
2025-04-24 13:33:33 -05:00
|
|
|
.ai-conversation-submit {
|
2025-05-02 13:42:12 -04:00
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus-visible {
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
2025-05-01 12:21:07 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
.ai-bot-upload-btn {
|
|
|
|
min-height: var(--input-min-height);
|
2025-05-02 13:42:12 -04:00
|
|
|
border: none;
|
2025-05-01 12:21:07 +10:00
|
|
|
|
2025-05-02 13:42:12 -04:00
|
|
|
.d-icon {
|
|
|
|
background: var(--primary-low);
|
|
|
|
padding: 0.5em;
|
|
|
|
border-radius: 100%;
|
|
|
|
}
|
2025-05-01 12:21:07 +10:00
|
|
|
|
2025-05-02 13:42:12 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus-visible {
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary);
|
2025-05-01 12:21:07 +10:00
|
|
|
}
|
|
|
|
}
|
2025-04-24 13:33:33 -05:00
|
|
|
}
|
|
|
|
|
2025-04-22 10:22:03 -05:00
|
|
|
#ai-bot-conversations-input {
|
2025-05-02 13:42:12 -04:00
|
|
|
--scrollbarBg: transparent;
|
|
|
|
--scrollbarThumbBg: var(--primary-low);
|
|
|
|
--scrollbarWidth: 10px;
|
|
|
|
box-sizing: border-box;
|
2025-05-01 12:21:07 +10:00
|
|
|
flex-grow: 1;
|
2025-04-22 10:22:03 -05:00
|
|
|
margin: 0;
|
|
|
|
resize: none;
|
|
|
|
max-height: 30vh;
|
2025-05-01 12:21:07 +10:00
|
|
|
min-height: var(--input-min-height);
|
|
|
|
border-radius: 0 var(--d-button-border-radius)
|
|
|
|
var(--d-button-border-radius) 0;
|
2025-05-02 13:42:12 -04:00
|
|
|
border: none;
|
|
|
|
padding-block: 0.8em;
|
|
|
|
padding-inline: 0;
|
|
|
|
scrollbar-color: var(--scrollbarThumbBg) var(--scrollbarBg);
|
|
|
|
scrollbar-width: thin;
|
|
|
|
transition: scrollbar-color 0.25s ease-in-out;
|
2025-05-07 16:13:25 -04:00
|
|
|
height: 100%;
|
|
|
|
line-height: var(--line-height-large);
|
2025-05-02 13:42:12 -04:00
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--scrollbarThumbBg);
|
|
|
|
border-radius: calc(var(--scrollbarWidth) / 2);
|
|
|
|
border: calc(var(--scrollbarWidth) / 4) solid var(--secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: var(--scrollbarWidth);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-scrollbar-thumb {
|
|
|
|
background-color: var(--scrollbarThumbBg);
|
|
|
|
border-radius: calc(var(--scrollbarWidth) / 2);
|
|
|
|
border: calc(var(--scrollbarWidth) / 4) solid var(--secondary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-scrollbar-track {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-scrollbar {
|
|
|
|
width: var(--scrollbarWidth);
|
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
|
2025-05-01 12:21:07 +10:00
|
|
|
&:focus-visible {
|
2025-04-22 10:22:03 -05:00
|
|
|
outline: none;
|
2025-05-01 12:21:07 +10:00
|
|
|
border-color: var(--tertiary);
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
2025-05-02 13:42:12 -04:00
|
|
|
|
|
|
|
&:not(:placeholder-shown) + .ai-conversation-submit {
|
|
|
|
will-change: scale;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus-visible {
|
|
|
|
transform: scale(1.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
color: var(--tertiary);
|
|
|
|
}
|
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-disclaimer {
|
|
|
|
text-align: center;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-700);
|
2025-05-02 13:42:12 -04:00
|
|
|
margin: 0;
|
2025-04-22 10:22:03 -05:00
|
|
|
|
2025-04-23 14:14:55 -05:00
|
|
|
@include viewport.from(sm) {
|
2025-04-22 10:22:03 -05:00
|
|
|
width: 80%;
|
2025-05-01 12:21:07 +10:00
|
|
|
max-width: var(--input-max-width);
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-footer-wrapper {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.powered-by-discourse {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-04-23 14:14:55 -05:00
|
|
|
.topic-footer-main-buttons {
|
|
|
|
justify-content: flex-end;
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
2025-05-01 12:21:07 +10:00
|
|
|
|
|
|
|
.ai-bot-conversations__uploads-container {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 0.5em;
|
2025-05-02 13:42:12 -04:00
|
|
|
|
|
|
|
@include viewport.from(sm) {
|
|
|
|
width: 80%;
|
|
|
|
max-width: var(--input-max-width);
|
|
|
|
}
|
2025-05-01 12:21:07 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
.ai-bot-upload {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
border-radius: 10em;
|
|
|
|
padding-left: 0.75em;
|
|
|
|
color: var(--primary-high);
|
|
|
|
font-size: var(--font-down-2);
|
|
|
|
|
2025-05-07 15:04:35 +10:00
|
|
|
&__progress {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2025-05-01 12:21:07 +10:00
|
|
|
&:hover,
|
|
|
|
&:focus-visible {
|
|
|
|
.d-icon {
|
|
|
|
color: var(--danger);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|
|
|
|
|
2025-04-23 14:14:55 -05:00
|
|
|
@include viewport.until(sm) {
|
2025-04-22 10:22:03 -05:00
|
|
|
.share-ai-conversation-button {
|
|
|
|
.d-icon {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-button-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// custom user card link
|
|
|
|
.user-card-meta__profile-link {
|
|
|
|
display: block;
|
|
|
|
padding: 0.5em 0 0.25em;
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
margin-right: 0.15em;
|
|
|
|
}
|
|
|
|
}
|
2025-05-07 16:13:25 -04:00
|
|
|
|
|
|
|
// hide extra buttons
|
|
|
|
.timeline-container .topic-timeline .timeline-footer-controls {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-footer-main-buttons {
|
|
|
|
button:not(
|
|
|
|
.create,
|
|
|
|
.share-ai-conversation-button,
|
|
|
|
.topic-admin-menu-trigger
|
|
|
|
) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2025-05-20 20:27:06 -04:00
|
|
|
|
|
|
|
.topic-map {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding-block: 0.5em;
|
|
|
|
|
|
|
|
.topic-map__views-trigger,
|
|
|
|
.topic-map__likes-trigger,
|
|
|
|
.summarization-button,
|
|
|
|
&__private-message-map,
|
|
|
|
.topic-map__users-list {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.--bottom {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
section {
|
|
|
|
background: transparent;
|
|
|
|
border-block: 1px solid var(--primary-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__contents {
|
|
|
|
padding: 0.5em 1.25em;
|
|
|
|
|
|
|
|
@include viewport.from(sm) {
|
|
|
|
padding: 0.5em 0.5em 0.5em 1.9em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__stats {
|
|
|
|
height: 100%;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
gap: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-conversation__participants {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 0.5em 0.25em;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
width: 2em;
|
|
|
|
height: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.trigger-group-card {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
border-radius: var(--d-button-border-radius);
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
|
|
|
|
span {
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2025-04-22 10:22:03 -05:00
|
|
|
}
|