fbarrca_obsidian-inlineAI/styles.css

151 lines
2.9 KiB
CSS
Raw Normal View History

2025-01-04 10:24:21 +00:00
.cm-cursor-overlay {
2025-01-05 12:18:21 +00:00
left: -1%;
top: -2.2rem;
width: 102%;
position: absolute;
align-items: center;
background: var(--background-secondary) !important;
color: var(--text-normal);
2025-01-29 20:19:21 +00:00
font-size: var(--font-ui-medium);
2025-01-05 12:18:21 +00:00
border: 1px solid var(--background-modifier-border) !important;
user-select: none;
padding: 4px 8px;
border-radius: 4px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
z-index: 1000;
visibility: visible;
2025-01-04 10:24:21 +00:00
}
.cm-cursor-overlay-inner {
2025-01-05 12:18:21 +00:00
display: flex;
flex-direction: row;
align-items: center;
2025-01-04 10:24:21 +00:00
2025-01-28 12:11:59 +00:00
overflow: visible;
2024-10-27 18:33:35 +00:00
}
.cm-tooltip-editor {
2025-01-05 12:18:21 +00:00
display: flex;
padding: 1px 0 1px 10px;
height: var(--line-height);
width: auto;
max-height: 100%;
align-items: center;
background-color: var(--background-primary);
border: 1px solid var(--background-modifier-border-focus);
border-radius: 4px;
2025-01-28 12:11:59 +00:00
overflow: visible;
2025-01-05 12:18:21 +00:00
margin-left: 8px;
flex: 1 0 0;
transition: flex-basis 0.3s ease;
2024-10-27 18:33:35 +00:00
}
2025-01-04 10:24:21 +00:00
.cm-cursor-overlay .cm-editor {
2025-01-05 12:18:21 +00:00
user-select: text;
}
2025-01-04 10:24:21 +00:00
2025-01-05 12:18:21 +00:00
/* Button Styles */
2025-01-04 10:24:21 +00:00
.submit-button {
2025-01-05 12:18:21 +00:00
height: var(--line-height);
2025-01-04 10:24:21 +00:00
}
.tooltip-button {
2025-01-05 12:18:21 +00:00
height: var(--line-height);
margin-left: 8px;
border: 1px solid var(--background-modifier-border-focus);
box-shadow: none !important;
2025-01-04 10:24:21 +00:00
}
2024-10-30 23:27:22 +00:00
/* Loader Animation */
2024-10-27 18:33:35 +00:00
.loader {
2025-01-05 12:18:21 +00:00
width: 5px;
aspect-ratio: 1;
border-radius: 50%;
color: var(--text-normal);
background: var(--background-primary);
animation: l5 1s infinite linear alternate;
margin: 0 20px 0 26px;
2025-01-07 11:55:03 +00:00
display: flex;
}
.loader.hidden {
visibility: hidden;
opacity: 0;
}
.hidden {
display: none;
2024-10-27 18:33:35 +00:00
}
@keyframes l5 {
2025-01-05 12:18:21 +00:00
0%,
33% {
box-shadow: 10px 0 var(--text-accent), -10px 0 var(--text-faint);
background: var(--text-accent);
}
66%,
100% {
box-shadow: 10px 0 var(--text-faint), -10px 0 var(--text-accent);
background: var(--text-faint);
}
2024-10-27 18:33:35 +00:00
}
2025-01-04 10:24:21 +00:00
.cm-change-widget {
2025-01-05 12:18:21 +00:00
padding: 0px 4px;
color: var(--text-normal);
background-color: var(--background-primary-alt);
2024-10-30 23:27:22 +00:00
}
2025-01-04 10:24:21 +00:00
.cm-change-added {
2025-01-05 12:18:21 +00:00
background-color: rgba(var(--color-green-rgb), 0.2);
2024-10-30 23:27:22 +00:00
}
2025-01-04 10:24:21 +00:00
.cm-change-removed {
2025-01-05 12:18:21 +00:00
background-color: rgba(var(--color-red-rgb), 0.2);
2025-01-04 20:26:39 +00:00
}
.primary-action {
2025-01-05 12:18:21 +00:00
background-color: var(--interactive-accent) !important;
color: var(--text-on-accent) !important;
2025-01-04 20:26:39 +00:00
}
.tooltip-button:hover {
2025-01-05 12:18:21 +00:00
opacity: 0.8;
}
/* Style for the advanced text areas */
.wide-text-settings {
width: 25em;
height: 10em;
}
2025-01-29 20:19:21 +00:00
.tooltip-autocomplete{
background-color: var(--background-primary-alt) !important;
2025-01-29 20:19:21 +00:00
color: var(--text-normal) !important;
width: min(102%, var(--line-width)) !important;
margin-left: -1.1rem;
overflow: hidden;
border: 1px solid var(--background-modifier-border) !important;
border-radius: 4px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
2025-01-29 20:19:21 +00:00
}
.completion-label{
2025-01-29 20:19:21 +00:00
font-size: var(--font-ui-small);
font-weight: var(--font-normal);
font-family: var(--font-interface-theme);
border-radius: 4px;
margin-left: -1em;
}
.cm-tooltip.cm-tooltip-below {
top: 100%;
margin-top: 0.8em;
bottom: auto;
2025-01-29 20:19:21 +00:00
}
/* Slash command highlighting */
.cm-slash-command {
2025-01-29 20:19:21 +00:00
color: var(--text-accent);
}