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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
}
|
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
|
|
|
|
|
|
|
.ai-helper-context-menu {
|
|
|
|
background: var(--secondary);
|
2023-08-28 15:22:32 -04:00
|
|
|
box-shadow: var(--shadow-card);
|
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
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
list-style: none;
|
|
|
|
z-index: 999;
|
|
|
|
|
2023-08-28 16:31:21 -04:00
|
|
|
&.out-of-bounds {
|
|
|
|
visibility: hidden;
|
2023-08-29 14:19:25 -04:00
|
|
|
pointer-events: none;
|
2023-08-28 16:31:21 -04:00
|
|
|
}
|
|
|
|
|
2023-08-23 13:35:40 -04:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2023-09-25 14:12:54 -04:00
|
|
|
li {
|
|
|
|
.btn-flat {
|
|
|
|
justify-content: left;
|
|
|
|
text-align: left;
|
|
|
|
background: none;
|
|
|
|
width: 100%;
|
|
|
|
border-radius: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding-block: 0.6rem;
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
background: var(--d-hover);
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
2023-08-28 15:22:32 -04:00
|
|
|
|
2023-09-25 14:12:54 -04:00
|
|
|
.d-button-label {
|
|
|
|
color: var(--primary-very-high);
|
2023-08-28 15:22:32 -04:00
|
|
|
}
|
2023-08-23 13:35:40 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__options {
|
|
|
|
padding: 0.25rem;
|
2023-09-25 14:12:54 -04:00
|
|
|
|
|
|
|
li:not(:last-child) {
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
}
|
2023-08-23 13:35:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&__loading {
|
2023-09-25 14:12:54 -04:00
|
|
|
display: flex;
|
|
|
|
padding: 0.5rem;
|
|
|
|
gap: 1rem;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
|
|
|
|
2023-08-23 13:35:40 -04:00
|
|
|
.dot-falling {
|
|
|
|
margin-inline: 1rem;
|
|
|
|
margin-left: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__resets {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
}
|
2023-08-24 20:49:24 -04:00
|
|
|
|
|
|
|
&__review {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
}
|
2023-09-25 14:12:54 -04:00
|
|
|
|
|
|
|
&__custom-prompt {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
|
|
|
&-header {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-custom-prompt-input {
|
|
|
|
min-height: 90px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ai-custom-prompt {
|
|
|
|
display: flex;
|
|
|
|
gap: 0.25rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
&__input {
|
|
|
|
background: var(--primary-low);
|
|
|
|
border-color: var(--primary-low);
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|
|
|
|
.suggest-titles-button {
|
2023-09-13 12:53:19 -04:00
|
|
|
display: block;
|
|
|
|
align-self: baseline;
|
2023-09-07 14:52:00 -04:00
|
|
|
background: var(--secondary);
|
2023-10-31 08:53:40 -04:00
|
|
|
border: 1px solid var(--primary-400);
|
2023-09-13 12:53:19 -04:00
|
|
|
border-left: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title-input:has(.suggestion-button) {
|
|
|
|
// border on focus should be on top of suggestion button
|
|
|
|
input:focus {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-01 20:10:58 -04:00
|
|
|
.suggest-tags-button,
|
|
|
|
.suggest-category-button {
|
|
|
|
display: block;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.category-input:has(.ai-suggestions-menu) {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2023-09-13 12:53:19 -04:00
|
|
|
// Prevent suggestion button from wrapping on smaller screens
|
|
|
|
@media screen and (max-width: 768px) {
|
|
|
|
#reply-control {
|
|
|
|
.category-input:has(.suggestion-button) {
|
|
|
|
.category-chooser {
|
|
|
|
width: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ .mini-tag-chooser {
|
|
|
|
width: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
&__options {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column nowrap;
|
|
|
|
align-items: flex-start;
|
|
|
|
gap: 0.25rem;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__suggestion {
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
}
|