2023-03-15 16:02:20 -04:00
|
|
|
.composer-ai-helper-modal {
|
2023-08-24 20:49:24 -04:00
|
|
|
.text-preview,
|
|
|
|
.inline-diff {
|
2023-03-15 16:02:20 -04:00
|
|
|
ins {
|
|
|
|
background-color: var(--success-low);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
del {
|
|
|
|
background-color: var(--danger-low);
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
|
|
|
|
.preview-area {
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
}
|
2024-08-26 01:43:40 -04:00
|
|
|
@keyframes fadeOpacity {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__loading {
|
|
|
|
animation: fadeOpacity 1.5s infinite alternate;
|
|
|
|
}
|
2023-03-15 16:02:20 -04:00
|
|
|
|
2023-08-24 20:49:24 -04:00
|
|
|
&__old-value {
|
|
|
|
background-color: var(--danger-low);
|
|
|
|
color: var(--danger);
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__new-value {
|
|
|
|
background-color: var(--success-low);
|
|
|
|
color: var(--success);
|
|
|
|
}
|
2024-09-13 14:59:30 -04:00
|
|
|
|
|
|
|
.d-modal__footer {
|
|
|
|
.regenerate {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
2023-03-15 16:02:20 -04:00
|
|
|
}
|
2023-03-30 18:07:22 -04:00
|
|
|
|
|
|
|
.topic-above-suggested-outlet.related-topics {
|
|
|
|
margin: 4.5em 0 1em;
|
|
|
|
}
|
2023-08-23 13:35:40 -04:00
|
|
|
|
2024-08-06 13:57:39 -04:00
|
|
|
.ai-composer-helper-menu {
|
2023-08-23 13:35:40 -04:00
|
|
|
padding: 0.25rem;
|
2023-08-24 20:49:24 -04:00
|
|
|
max-width: 25rem;
|
2023-08-23 13:35:40 -04:00
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2024-08-06 13:57:39 -04:00
|
|
|
}
|
2023-08-23 13:35:40 -04:00
|
|
|
|
2023-12-14 11:47:20 -05:00
|
|
|
.ai-custom-prompt {
|
|
|
|
display: flex;
|
|
|
|
gap: 0.25rem;
|
2024-09-10 23:45:48 -04:00
|
|
|
padding: 0.75em 1rem;
|
2023-09-25 14:12:54 -04:00
|
|
|
|
2023-12-14 11:47:20 -05:00
|
|
|
&__input[type="text"] {
|
|
|
|
border-color: var(--primary-400);
|
|
|
|
margin-bottom: 0;
|
2023-09-25 14:12:54 -04:00
|
|
|
|
2023-12-14 11:47:20 -05:00
|
|
|
&::placeholder {
|
|
|
|
color: var(--primary-medium);
|
2023-09-25 14:12:54 -04:00
|
|
|
}
|
|
|
|
}
|
2023-08-23 13:35:40 -04:00
|
|
|
}
|
|
|
|
|
2024-07-10 14:01:05 -04:00
|
|
|
.ai-helper-loading {
|
|
|
|
display: flex;
|
|
|
|
padding: 0.5rem;
|
|
|
|
gap: 1rem;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.dot-falling {
|
|
|
|
margin-inline: 1rem;
|
|
|
|
margin-left: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-23 13:35:40 -04:00
|
|
|
.d-editor-input.loading {
|
|
|
|
animation: loading-text 1.5s infinite linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes loading-text {
|
|
|
|
0% {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
color: var(--tertiary);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-04 14:35:01 -04:00
|
|
|
.ai-helper-highlighted-selection {
|
2024-04-08 14:00:03 -04:00
|
|
|
background-color: var(--highlight-low-or-medium);
|
2024-04-04 14:35:01 -04:00
|
|
|
}
|
|
|
|
|
2023-08-23 13:35:40 -04:00
|
|
|
// AI Typing indicator (taken from: https://github.com/nzbin/three-dots)
|
|
|
|
.dot-falling {
|
|
|
|
position: relative;
|
|
|
|
left: -9999px;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: var(--tertiary);
|
|
|
|
color: var(--tertiary);
|
|
|
|
box-shadow: 9999px 0 0 0 var(--tertiary);
|
|
|
|
animation: dot-falling 1s infinite linear;
|
|
|
|
animation-delay: 0.1s;
|
|
|
|
}
|
|
|
|
.dot-falling::before,
|
|
|
|
.dot-falling::after {
|
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
.dot-falling::before {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: var(--tertiary);
|
|
|
|
color: var(--tertiary);
|
|
|
|
animation: dot-falling-before 1s infinite linear;
|
|
|
|
animation-delay: 0s;
|
|
|
|
}
|
|
|
|
.dot-falling::after {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: var(--tertiary);
|
|
|
|
color: var(--tertiary);
|
|
|
|
animation: dot-falling-after 1s infinite linear;
|
|
|
|
animation-delay: 0.2s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes dot-falling {
|
|
|
|
0% {
|
|
|
|
box-shadow: 9999px -15px 0 0 rgba(152, 128, 255, 0);
|
|
|
|
}
|
|
|
|
25%,
|
|
|
|
50%,
|
|
|
|
75% {
|
|
|
|
box-shadow: 9999px 0 0 0 var(--tertiary);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
box-shadow: 9999px 15px 0 0 rgba(152, 128, 255, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes dot-falling-before {
|
|
|
|
0% {
|
|
|
|
box-shadow: 9984px -15px 0 0 rgba(152, 128, 255, 0);
|
|
|
|
}
|
|
|
|
25%,
|
|
|
|
50%,
|
|
|
|
75% {
|
|
|
|
box-shadow: 9984px 0 0 0 var(--tertiary);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
box-shadow: 9984px 15px 0 0 rgba(152, 128, 255, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes dot-falling-after {
|
|
|
|
0% {
|
|
|
|
box-shadow: 10014px -15px 0 0 rgba(152, 128, 255, 0);
|
|
|
|
}
|
|
|
|
25%,
|
|
|
|
50%,
|
|
|
|
75% {
|
|
|
|
box-shadow: 10014px 0 0 0 var(--tertiary);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
box-shadow: 10014px 15px 0 0 rgba(152, 128, 255, 0);
|
|
|
|
}
|
|
|
|
}
|
2023-08-29 12:45:53 -04:00
|
|
|
|
|
|
|
// Suggest Titles Related
|
2023-09-13 12:53:19 -04:00
|
|
|
|
2024-04-09 13:48:18 -04:00
|
|
|
.showing-ai-suggestions {
|
|
|
|
.title-input {
|
|
|
|
// border on focus should be on top of suggestion button
|
|
|
|
input:focus {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.category-chooser,
|
|
|
|
.mini-tag-chooser {
|
|
|
|
.select-kit-header {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
2023-09-13 12:53:19 -04:00
|
|
|
}
|
2023-09-01 20:10:58 -04:00
|
|
|
}
|
2023-08-29 12:45:53 -04:00
|
|
|
|
2023-09-01 20:10:58 -04:00
|
|
|
.suggestion-button {
|
2023-08-29 12:45:53 -04:00
|
|
|
.d-icon-spinner {
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 13:32:14 -04:00
|
|
|
.suggest-titles-button,
|
2023-09-01 20:10:58 -04:00
|
|
|
.suggest-tags-button,
|
|
|
|
.suggest-category-button {
|
|
|
|
align-self: baseline;
|
2023-10-31 08:53:40 -04:00
|
|
|
border: 1px solid var(--primary-400);
|
2023-09-01 20:10:58 -04:00
|
|
|
border-left: none;
|
|
|
|
background: none;
|
2024-04-09 13:48:18 -04:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2023-09-01 20:10:58 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.ai-suggestions-menu {
|
2023-08-29 12:45:53 -04:00
|
|
|
list-style: none;
|
|
|
|
margin-left: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 1.5rem;
|
|
|
|
max-width: 25rem;
|
|
|
|
width: unset;
|
|
|
|
z-index: 999;
|
2023-09-01 20:10:58 -04:00
|
|
|
|
|
|
|
&__errors {
|
|
|
|
background: var(--danger);
|
|
|
|
padding: 0.25rem 1em;
|
|
|
|
color: var(--secondary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-03 14:41:57 -04:00
|
|
|
.category-input.showing-ai-suggestion-menu {
|
2023-09-01 20:10:58 -04:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2023-11-04 13:52:51 -04:00
|
|
|
// Prevent suggestion button from wrapping
|
|
|
|
#reply-control {
|
2023-11-28 17:38:29 -05:00
|
|
|
.with-category .showing-ai-suggestions .category-input {
|
2023-11-04 13:52:51 -04:00
|
|
|
flex-wrap: nowrap;
|
2024-06-20 13:32:14 -04:00
|
|
|
max-width: calc(50% - 0.2em);
|
|
|
|
.category-chooser {
|
|
|
|
min-width: 0;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.with-category:not(.with-tags) {
|
|
|
|
// when tagging is disabled
|
|
|
|
.showing-ai-suggestions .category-input {
|
|
|
|
max-width: 40%;
|
2023-09-13 12:53:19 -04:00
|
|
|
}
|
|
|
|
}
|
2023-11-28 17:38:29 -05:00
|
|
|
|
2024-06-20 13:32:14 -04:00
|
|
|
.with-tags {
|
|
|
|
.showing-ai-suggestions .tags-input {
|
|
|
|
display: flex;
|
|
|
|
max-width: calc(50% - 0.2em);
|
|
|
|
.mini-tag-chooser {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
}
|
2023-11-28 17:38:29 -05:00
|
|
|
}
|
2023-09-13 12:53:19 -04:00
|
|
|
}
|
|
|
|
|
2023-09-01 20:10:58 -04:00
|
|
|
.suggest-tags-button + .ai-suggestions-menu {
|
|
|
|
top: 4.25rem;
|
2023-08-29 12:45:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: rotate(359deg);
|
|
|
|
}
|
|
|
|
}
|
2023-10-23 10:41:36 -04:00
|
|
|
|
|
|
|
.ai-post-helper {
|
|
|
|
&__suggestion {
|
2023-11-17 12:25:41 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2024-09-10 23:45:48 -04:00
|
|
|
h2 {
|
|
|
|
font-size: var(--font-0);
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
padding-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2023-11-17 12:25:41 -05:00
|
|
|
&__copy {
|
|
|
|
.d-icon-check {
|
|
|
|
color: var(--success);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
padding: 0.5rem;
|
|
|
|
}
|
2023-12-12 12:28:39 -05:00
|
|
|
|
|
|
|
&__buttons {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
|
|
|
.btn {
|
2024-09-10 23:45:48 -04:00
|
|
|
flex-grow: 1;
|
|
|
|
padding-inline: 0;
|
2023-12-12 12:28:39 -05:00
|
|
|
}
|
|
|
|
}
|
2023-10-23 10:41:36 -04:00
|
|
|
}
|
2023-12-14 22:30:52 -05:00
|
|
|
|
|
|
|
&__fast-edit {
|
|
|
|
.fast-edit-container {
|
2024-09-10 23:45:48 -04:00
|
|
|
padding: 0.75em 1rem;
|
2023-12-14 22:30:52 -05:00
|
|
|
}
|
|
|
|
}
|
2023-10-23 10:41:36 -04:00
|
|
|
}
|
2023-12-15 15:11:14 -05:00
|
|
|
|
|
|
|
.choose-topic-modal .split-new-topic-form {
|
|
|
|
.control-group {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.25em;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
label {
|
|
|
|
flex: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
input,
|
|
|
|
.combo-box,
|
|
|
|
.multi-select {
|
|
|
|
flex: 1;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-split-topic-suggestion-button {
|
|
|
|
.d-icon-spinner {
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-split-topic-suggestion__results {
|
|
|
|
list-style: none;
|
|
|
|
margin-left: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: var(--d-hover);
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li:not(:last-child) {
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-split-topic-suggestion__category-result {
|
|
|
|
font-size: var(--font-0);
|
|
|
|
padding: 0.5em 1rem;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: var(--d-hover);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fk-d-menu[data-identifier="ai-split-topic-suggestion-menu"] {
|
|
|
|
z-index: z("modal", "dropdown");
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-split-topic-loading-placeholder {
|
|
|
|
.d-icon-spinner {
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ .ai-split-topic-suggestion-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2023-12-19 14:17:34 -05:00
|
|
|
|
|
|
|
.thumbnail-suggestions-modal {
|
|
|
|
.ai-thumbnail-suggestions {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
position: relative;
|
|
|
|
gap: 0.5em;
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
flex: 35%;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
position: absolute;
|
|
|
|
top: 0.5rem;
|
|
|
|
left: 0.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-02-19 12:56:28 -05:00
|
|
|
|
|
|
|
// AI Image Caption Feature:
|
2024-06-19 18:58:19 -04:00
|
|
|
.image-wrapper {
|
|
|
|
.button-wrapper {
|
|
|
|
.generate-caption {
|
|
|
|
background: var(--tertiary-low);
|
|
|
|
color: var(--tertiary);
|
|
|
|
box-shadow: var(--shadow-dropdown);
|
|
|
|
position: absolute;
|
|
|
|
white-space: nowrap;
|
|
|
|
top: -2rem;
|
|
|
|
left: 0.35rem;
|
|
|
|
padding: 0.33em 0.75em;
|
|
|
|
transition: all 0.25s ease;
|
|
|
|
.discourse-no-touch & {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-02-19 12:56:28 -05:00
|
|
|
|
2024-06-19 18:58:19 -04:00
|
|
|
.d-icon {
|
|
|
|
margin-right: 0.25rem;
|
|
|
|
}
|
2024-02-20 17:59:59 -05:00
|
|
|
|
2024-06-19 18:58:19 -04:00
|
|
|
&:active {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: var(--tertiary-400);
|
|
|
|
color: var(--tertiary-hover);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2024-02-19 12:56:28 -05:00
|
|
|
|
2024-06-19 18:58:19 -04:00
|
|
|
&.disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
cursor: not-allowed;
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
.button-wrapper .generate-caption {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-02-19 12:56:28 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-caption-popup {
|
2024-02-22 12:31:25 -05:00
|
|
|
--ai-caption-popup-min-width: 20rem;
|
2024-02-20 17:59:59 -05:00
|
|
|
width: auto;
|
2024-02-19 12:56:28 -05:00
|
|
|
right: unset;
|
2024-02-20 17:59:59 -05:00
|
|
|
padding: 1em;
|
2024-02-19 12:56:28 -05:00
|
|
|
top: unset;
|
2024-02-20 17:59:59 -05:00
|
|
|
bottom: 0;
|
2024-02-19 12:56:28 -05:00
|
|
|
|
2024-02-22 12:31:25 -05:00
|
|
|
.loading-container {
|
|
|
|
min-width: var(--ai-caption-popup-min-width);
|
|
|
|
}
|
|
|
|
|
2024-02-19 12:56:28 -05:00
|
|
|
textarea {
|
2024-02-22 12:31:25 -05:00
|
|
|
box-sizing: border-box;
|
2024-02-20 17:59:59 -05:00
|
|
|
width: 100%;
|
2024-02-22 12:31:25 -05:00
|
|
|
max-width: 40dvw;
|
|
|
|
max-height: calc(100dvh - var(--header-offset) - 10em);
|
2024-02-20 17:59:59 -05:00
|
|
|
min-height: 3em;
|
|
|
|
height: 7em;
|
2024-02-22 12:31:25 -05:00
|
|
|
min-width: var(--ai-caption-popup-min-width);
|
2024-02-20 17:59:59 -05:00
|
|
|
@include breakpoint(tablet) {
|
|
|
|
width: 100%;
|
|
|
|
max-width: unset;
|
|
|
|
min-width: unset;
|
|
|
|
}
|
2024-02-19 12:56:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
|
|
.credits {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
margin-left: auto;
|
|
|
|
color: var(--tertiary);
|
2024-02-20 17:59:59 -05:00
|
|
|
.desktop-view & {
|
|
|
|
// a little extra space for extra narrow desktop view
|
|
|
|
@media screen and (max-width: 675px) {
|
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-02-19 12:56:28 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
border-color: var(--tertiary-600);
|
|
|
|
border-right-color: var(--tertiary);
|
|
|
|
}
|
|
|
|
}
|
2024-05-27 13:49:24 -04:00
|
|
|
|
|
|
|
.ai-image-caption-prompt-dialog {
|
|
|
|
.dialog-content {
|
|
|
|
max-width: 555px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.auto-image-caption-loader {
|
|
|
|
margin-left: 2rem;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
2024-07-10 14:01:05 -04:00
|
|
|
|
|
|
|
// AI Helper Options List
|
|
|
|
.ai-helper-options {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
2024-09-13 14:59:30 -04:00
|
|
|
li {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.shortcut {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-low-mid);
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-10 14:01:05 -04:00
|
|
|
&__button {
|
|
|
|
justify-content: left;
|
|
|
|
text-align: left;
|
|
|
|
background: none;
|
|
|
|
width: 100%;
|
|
|
|
border-radius: 0;
|
|
|
|
margin: 0;
|
2024-09-10 23:45:48 -04:00
|
|
|
padding: 0.5em 1rem;
|
2024-07-10 14:01:05 -04:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
background: var(--d-hover);
|
|
|
|
|
2024-09-10 23:45:48 -04:00
|
|
|
.discourse-no-touch & {
|
|
|
|
color: var(--primary);
|
|
|
|
background: var(--d-hover);
|
|
|
|
}
|
|
|
|
|
2024-07-10 14:01:05 -04:00
|
|
|
.d-icon {
|
2024-09-10 23:45:48 -04:00
|
|
|
color: var(--primary-high);
|
|
|
|
|
|
|
|
.discourse-no-touch & {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
2024-07-10 14:01:05 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-08-06 13:57:39 -04:00
|
|
|
|
|
|
|
.fk-d-menu[data-identifier="ai-composer-helper-menu"] {
|
2024-09-23 17:01:04 -04:00
|
|
|
z-index: z("composer", "dropdown") + 1;
|
|
|
|
|
|
|
|
.fullscreen-composer & {
|
|
|
|
z-index: z("header") + 1;
|
|
|
|
}
|
2024-08-06 13:57:39 -04:00
|
|
|
}
|
2024-08-12 18:32:49 -04:00
|
|
|
|
|
|
|
.mobile-view .fk-d-menu[data-identifier="ai-composer-helper-menu"] {
|
|
|
|
z-index: z("mobile-composer");
|
|
|
|
}
|
2024-09-13 19:19:13 -04:00
|
|
|
|
2024-09-17 19:43:15 -04:00
|
|
|
html.footer-nav-ipad .fk-d-menu[data-identifier="ai-composer-helper-menu"] {
|
|
|
|
z-index: z("ipad-header-nav") + 1;
|
|
|
|
}
|
|
|
|
|
2024-09-13 19:19:13 -04:00
|
|
|
.fk-d-toasts:has(.ai-proofread-error-toast) {
|
|
|
|
top: unset;
|
|
|
|
bottom: calc(var(--composer-height) - 5%);
|
|
|
|
right: unset;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: $reply-area-max-width) {
|
|
|
|
.has-sidebar-page {
|
|
|
|
.fk-d-toasts:has(.ai-proofread-error-toast) {
|
|
|
|
transform: translateX(
|
|
|
|
calc(
|
|
|
|
(100vw - var(--d-max-width) - var(--d-sidebar-width) / 0.5) / 2 + 17em +
|
|
|
|
1rem
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|