Wire stroke context properties for Lucide SVG toolbar icons and set light/dark icon URLs on open-in-window and adaptive-height buttons. Co-authored-by: Cursor <cursoragent@cursor.com>
1241 lines
24 KiB
CSS
1241 lines
24 KiB
CSS
.chatpapers-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 8px;
|
|
min-height: 0;
|
|
box-sizing: border-box;
|
|
font-size: 13px;
|
|
-moz-user-select: text;
|
|
user-select: text;
|
|
}
|
|
|
|
.chatpapers-pane-body {
|
|
min-height: 0 !important;
|
|
}
|
|
|
|
/*
|
|
* Item pane section header buttons (open in window, adaptive height).
|
|
* Lucide-style icons are stroke-based (context-stroke); Zotero only enables
|
|
* fill context on .section-custom-button by default, so strokes stay invisible
|
|
* in light and dark themes until stroke is wired to currentColor.
|
|
*/
|
|
collapsible-section.chatpapers-adaptive-height > .head toolbarbutton.section-custom-button,
|
|
collapsible-section.chatpapers-fixed-height > .head toolbarbutton.section-custom-button {
|
|
-moz-context-properties: fill, fill-opacity, stroke, stroke-opacity;
|
|
fill: currentColor;
|
|
stroke: currentColor;
|
|
color: inherit;
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
collapsible-section.chatpapers-adaptive-height > .head toolbarbutton.section-custom-button,
|
|
collapsible-section.chatpapers-fixed-height > .head toolbarbutton.section-custom-button {
|
|
list-style-image: var(--custom-button-icon-light);
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
collapsible-section.chatpapers-adaptive-height > .head toolbarbutton.section-custom-button,
|
|
collapsible-section.chatpapers-fixed-height > .head toolbarbutton.section-custom-button {
|
|
list-style-image: var(--custom-button-icon-dark);
|
|
}
|
|
}
|
|
|
|
collapsible-section.chatpapers-adaptive-height[open] {
|
|
--open-height: auto;
|
|
}
|
|
|
|
collapsible-section.chatpapers-adaptive-height[open] > :not(.head) .chatpapers-pane-body {
|
|
max-height: none;
|
|
overflow: visible;
|
|
}
|
|
|
|
collapsible-section.chatpapers-fixed-height[open] > :not(.head) .chatpapers-pane-body {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#chatpapers-window-chat-root,
|
|
#chatpapers-window-lecture-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
collapsible-section:not([open]) > :not(.head) .chatpapers-root,
|
|
collapsible-section:not([open]) > :not(.head) .chatpapers-lecture-root {
|
|
min-height: 0 !important;
|
|
padding-block: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
collapsible-section[open] > :not(.head) .chatpapers-root {
|
|
min-height: 240px;
|
|
}
|
|
|
|
collapsible-section[open] > :not(.head) .chatpapers-lecture-root {
|
|
min-height: 180px;
|
|
}
|
|
|
|
.chatpapers-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chatpapers-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: #1f7a8c;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.chatpapers-brand-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatpapers-title-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
}
|
|
|
|
.chatpapers-title {
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.chatpapers-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
opacity: 0.7;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.chatpapers-meta-icon {
|
|
flex-shrink: 0;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.chatpapers-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 28px 16px;
|
|
text-align: center;
|
|
opacity: 0.72;
|
|
}
|
|
|
|
.chatpapers-empty-icon {
|
|
color: #1f7a8c;
|
|
opacity: 0.85;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.chatpapers-empty-title {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.chatpapers-empty-desc {
|
|
font-size: 12px;
|
|
max-width: 220px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chatpapers-icon {
|
|
display: block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatpapers-role-left {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.chatpapers-role-icon {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.chatpapers-copy {
|
|
appearance: none;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
border-radius: 4px;
|
|
padding: 2px 6px;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chatpapers-copy:hover {
|
|
background: color-mix(in srgb, currentColor 14%, transparent);
|
|
}
|
|
|
|
.chatpapers-status {
|
|
min-height: 1.2em;
|
|
font-size: 12px;
|
|
opacity: 0.85;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 5px;
|
|
}
|
|
|
|
.chatpapers-status-icon {
|
|
display: inline-flex;
|
|
margin-top: 1px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatpapers-status[data-kind="warn"] {
|
|
color: #b45309;
|
|
}
|
|
|
|
.chatpapers-status[data-kind="error"] {
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.chatpapers-status[data-kind="info"] .chatpapers-status-icon {
|
|
color: #2563eb;
|
|
}
|
|
|
|
.chatpapers-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.chatpapers-composer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chatpapers-composer .chatpapers-input {
|
|
flex: 1 1 auto;
|
|
width: auto;
|
|
min-width: 0;
|
|
min-height: 72px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.chatpapers-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
flex-wrap: nowrap;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.chatpapers-actions .chatpapers-btn {
|
|
justify-content: center;
|
|
min-width: 4.5em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chatpapers-btn {
|
|
appearance: none;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
border-radius: 6px;
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.chatpapers-btn-label {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.chatpapers-btn:hover:not(:disabled) {
|
|
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
}
|
|
|
|
.chatpapers-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.chatpapers-primary {
|
|
background: #2563eb;
|
|
border-color: #2563eb;
|
|
color: #fff;
|
|
}
|
|
|
|
.chatpapers-primary:hover:not(:disabled) {
|
|
background: #1d4ed8;
|
|
}
|
|
|
|
.chatpapers-messages {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
max-height: min(420px, 45vh);
|
|
overflow: auto;
|
|
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
background: color-mix(in srgb, currentColor 4%, transparent);
|
|
-moz-user-select: text !important;
|
|
user-select: text !important;
|
|
cursor: text;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: color-mix(in srgb, currentColor 35%, transparent) transparent;
|
|
}
|
|
|
|
.chatpapers-messages::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
.chatpapers-messages::-webkit-scrollbar-thumb {
|
|
background: color-mix(in srgb, currentColor 32%, transparent);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.chatpapers-messages::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.chatpapers-bubble {
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
word-break: break-word;
|
|
overflow-wrap: anywhere;
|
|
-moz-user-select: text !important;
|
|
user-select: text !important;
|
|
cursor: text;
|
|
}
|
|
|
|
.chatpapers-bubble .chatpapers-table-wrap {
|
|
word-break: normal;
|
|
overflow-wrap: normal;
|
|
}
|
|
|
|
.chatpapers-content {
|
|
-moz-user-select: text !important;
|
|
user-select: text !important;
|
|
cursor: text;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.chatpapers-content.chatpapers-md {
|
|
white-space: normal;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chatpapers-md > :first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.chatpapers-md > :last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.chatpapers-md h1,
|
|
.chatpapers-md h2,
|
|
.chatpapers-md h3,
|
|
.chatpapers-md h4 {
|
|
margin: 0.45em 0 0.15em;
|
|
line-height: 1.25;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chatpapers-md h1 {
|
|
font-size: 1.15em;
|
|
}
|
|
|
|
.chatpapers-md h2 {
|
|
font-size: 1.08em;
|
|
}
|
|
|
|
.chatpapers-md h3,
|
|
.chatpapers-md h4 {
|
|
font-size: 1.02em;
|
|
}
|
|
|
|
.chatpapers-md p {
|
|
margin: 0.2em 0;
|
|
}
|
|
|
|
.chatpapers-md ul,
|
|
.chatpapers-md ol {
|
|
margin: 0.2em 0;
|
|
padding-left: 1.35em;
|
|
}
|
|
|
|
.chatpapers-md li {
|
|
margin: 0;
|
|
}
|
|
|
|
.chatpapers-md li + li {
|
|
margin-top: 0.1em;
|
|
}
|
|
|
|
.chatpapers-md code {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 0.92em;
|
|
padding: 0.05em 0.3em;
|
|
border-radius: 4px;
|
|
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
}
|
|
|
|
.chatpapers-md pre {
|
|
margin: 0.35em 0;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
overflow: auto;
|
|
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
|
|
}
|
|
|
|
.chatpapers-md pre code {
|
|
padding: 0;
|
|
background: transparent;
|
|
font-size: 0.88em;
|
|
}
|
|
|
|
.chatpapers-md blockquote {
|
|
margin: 0.3em 0;
|
|
padding: 0 0.65em;
|
|
border-left: 3px solid color-mix(in srgb, currentColor 35%, transparent);
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.chatpapers-md blockquote p {
|
|
margin: 0.15em 0;
|
|
}
|
|
|
|
.chatpapers-md hr {
|
|
border: none;
|
|
border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
margin: 0.4em 0;
|
|
}
|
|
|
|
.chatpapers-md a {
|
|
color: #2563eb;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.chatpapers-md strong {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.chatpapers-md em {
|
|
font-style: italic;
|
|
}
|
|
|
|
.chatpapers-table-wrap {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
margin: 0.45em 0;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.chatpapers-md table.chatpapers-table,
|
|
.chatpapers-md .chatpapers-table {
|
|
width: max-content;
|
|
min-width: 100%;
|
|
max-width: none;
|
|
border-collapse: collapse;
|
|
table-layout: auto;
|
|
font-size: 0.92em;
|
|
line-height: 1.35;
|
|
word-break: normal;
|
|
overflow-wrap: normal;
|
|
}
|
|
|
|
.chatpapers-md .chatpapers-table th,
|
|
.chatpapers-md .chatpapers-table td {
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
padding: 0.35em 0.55em;
|
|
vertical-align: top;
|
|
white-space: normal;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.chatpapers-md .chatpapers-table th {
|
|
font-weight: 700;
|
|
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
text-align: left;
|
|
}
|
|
|
|
.chatpapers-md .chatpapers-table tbody tr:nth-child(even) td {
|
|
background: color-mix(in srgb, currentColor 4%, transparent);
|
|
}
|
|
|
|
.chatpapers-math-inline {
|
|
display: inline;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.chatpapers-math-block {
|
|
display: block;
|
|
margin: 0.35em 0;
|
|
overflow-x: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.chatpapers-math math {
|
|
font-size: 1.05em;
|
|
}
|
|
|
|
.chatpapers-math-block math {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.chatpapers-tex {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 0.92em;
|
|
padding: 0.05em 0.3em;
|
|
border-radius: 4px;
|
|
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
}
|
|
|
|
.chatpapers-user {
|
|
background: color-mix(in srgb, #3b82f6 18%, transparent);
|
|
align-self: flex-end;
|
|
max-width: 92%;
|
|
}
|
|
|
|
.chatpapers-assistant {
|
|
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
align-self: flex-start;
|
|
max-width: 96%;
|
|
}
|
|
|
|
.chatpapers-role {
|
|
font-size: 11px;
|
|
opacity: 0.65;
|
|
margin-bottom: 4px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
-moz-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.chatpapers-input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
resize: vertical;
|
|
min-height: 64px;
|
|
border-radius: 8px;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
padding: 8px;
|
|
font: inherit;
|
|
background: transparent;
|
|
color: inherit;
|
|
-moz-user-select: text;
|
|
user-select: text;
|
|
}
|
|
|
|
.chatpapers-loading {
|
|
padding: 12px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.chatpapers-pref-hint {
|
|
opacity: 0.8;
|
|
font-size: 12px;
|
|
margin: 4px 0 10px;
|
|
max-width: 52em;
|
|
}
|
|
|
|
.chatpapers-multi-root {
|
|
height: 100%;
|
|
min-height: 0;
|
|
max-height: 100%;
|
|
overflow: hidden;
|
|
gap: 6px;
|
|
padding: 10px 12px 12px;
|
|
}
|
|
|
|
.chatpapers-multi-root .chatpapers-header,
|
|
.chatpapers-multi-root .chatpapers-paper-chips,
|
|
.chatpapers-multi-root .chatpapers-cite-bar,
|
|
.chatpapers-multi-root .chatpapers-status,
|
|
.chatpapers-multi-root .chatpapers-toolbar,
|
|
.chatpapers-multi-root .chatpapers-composer {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatpapers-multi-root .chatpapers-messages {
|
|
flex: 1 1 auto;
|
|
min-height: 140px;
|
|
max-height: none;
|
|
height: auto;
|
|
}
|
|
|
|
.chatpapers-multi-root .chatpapers-empty-desc {
|
|
max-width: 420px;
|
|
}
|
|
|
|
.chatpapers-multi-root .chatpapers-composer {
|
|
margin-top: 2px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
|
|
}
|
|
|
|
.chatpapers-multi-root .chatpapers-composer .chatpapers-input {
|
|
min-height: 80px;
|
|
}
|
|
|
|
.chatpapers-multi-root .chatpapers-toolbar {
|
|
padding-top: 2px;
|
|
}
|
|
|
|
/* Dialog chrome: hide empty footer button area; thin scrollbars */
|
|
#dialog-button-box,
|
|
.dialog-button-box {
|
|
display: none !important;
|
|
}
|
|
|
|
.chatpapers-table-wrap,
|
|
.chatpapers-multi-root {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: color-mix(in srgb, currentColor 35%, transparent) transparent;
|
|
}
|
|
|
|
.chatpapers-table-wrap::-webkit-scrollbar,
|
|
.chatpapers-multi-root::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
.chatpapers-table-wrap::-webkit-scrollbar-thumb,
|
|
.chatpapers-multi-root::-webkit-scrollbar-thumb {
|
|
background: color-mix(in srgb, currentColor 32%, transparent);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.chatpapers-paper-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
max-height: 88px;
|
|
overflow: auto;
|
|
margin-bottom: 2px;
|
|
scrollbar-width: thin;
|
|
align-items: center;
|
|
}
|
|
|
|
.chatpapers-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
max-width: 260px;
|
|
font-size: 11px;
|
|
padding: 3px 8px;
|
|
border-radius: 999px;
|
|
border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
|
background: color-mix(in srgb, #2563eb 10%, transparent);
|
|
color: inherit;
|
|
}
|
|
|
|
.chatpapers-chip-label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 210px;
|
|
}
|
|
|
|
.chatpapers-chip-remove {
|
|
appearance: none;
|
|
border: none;
|
|
background: transparent;
|
|
color: inherit;
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 999px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
opacity: 0.65;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatpapers-chip-remove:hover {
|
|
opacity: 1;
|
|
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
}
|
|
|
|
.chatpapers-chip-add {
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border-style: dashed;
|
|
max-width: none;
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
.chatpapers-chip-add:hover:not(:disabled) {
|
|
background: color-mix(in srgb, #2563eb 12%, transparent);
|
|
}
|
|
|
|
.chatpapers-chip-add:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
}
|
|
|
|
.chatpapers-cite-bar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px 8px;
|
|
padding: 2px 0 4px;
|
|
position: relative;
|
|
z-index: 5;
|
|
}
|
|
|
|
.chatpapers-cite-label {
|
|
font-size: 12px;
|
|
opacity: 0.8;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatpapers-cite-picker {
|
|
position: relative;
|
|
flex: 1 1 180px;
|
|
min-width: 140px;
|
|
max-width: 420px;
|
|
}
|
|
|
|
.chatpapers-cite-trigger {
|
|
appearance: none;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 6px;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
padding: 5px 8px;
|
|
border-radius: 6px;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
background: color-mix(in srgb, currentColor 4%, transparent);
|
|
color: inherit;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.chatpapers-cite-trigger:hover:not(:disabled) {
|
|
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
}
|
|
|
|
.chatpapers-cite-trigger:disabled {
|
|
opacity: 0.55;
|
|
cursor: default;
|
|
}
|
|
|
|
.chatpapers-cite-trigger-label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.chatpapers-cite-chevron {
|
|
flex-shrink: 0;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.chatpapers-cite-picker.is-open .chatpapers-cite-chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.chatpapers-cite-menu {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: calc(100% + 4px);
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
z-index: 40;
|
|
border-radius: 8px;
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
background: Canvas;
|
|
color: CanvasText;
|
|
box-shadow: 0 8px 24px color-mix(in srgb, #000 18%, transparent);
|
|
padding: 4px;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.chatpapers-cite-option {
|
|
appearance: none;
|
|
display: block;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
border: none;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
text-align: left;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chatpapers-cite-option:hover {
|
|
background: color-mix(in srgb, #2563eb 14%, transparent);
|
|
}
|
|
|
|
.chatpapers-cite-option.is-active {
|
|
background: color-mix(in srgb, #2563eb 22%, transparent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chatpapers-cite-btn {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* --- Voice lecture pane --- */
|
|
.chatpapers-lecture-root {
|
|
gap: 10px;
|
|
}
|
|
|
|
.chatpapers-lecture-empty {
|
|
padding: 20px 12px;
|
|
}
|
|
|
|
.chatpapers-lecture-status {
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
background: color-mix(in srgb, #1f7a8c 10%, transparent);
|
|
border: 1px solid color-mix(in srgb, #1f7a8c 22%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-status[data-status="failed"] {
|
|
background: color-mix(in srgb, #dc2626 10%, transparent);
|
|
border-color: color-mix(in srgb, #dc2626 25%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-status[data-status="ready"] {
|
|
background: color-mix(in srgb, #16a34a 10%, transparent);
|
|
border-color: color-mix(in srgb, #16a34a 25%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chatpapers-lecture-primary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: #1f7a8c;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chatpapers-lecture-primary:hover:not(:disabled) {
|
|
background: #186678;
|
|
}
|
|
|
|
.chatpapers-lecture-status-text {
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.chatpapers-lecture-primary:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.chatpapers-lecture-secondary {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
border: 1px solid color-mix(in srgb, #1f7a8c 35%, transparent);
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: inherit;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chatpapers-lecture-secondary:hover:not(:disabled) {
|
|
background: color-mix(in srgb, #1f7a8c 10%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-secondary:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.chatpapers-lecture-tts-meta {
|
|
font-size: 12px;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.chatpapers-lecture-audio {
|
|
width: 100%;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.chatpapers-lecture-btn-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chatpapers-lecture-hint {
|
|
font-size: 11px;
|
|
opacity: 0.65;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chatpapers-lecture-mode-tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
padding: 3px;
|
|
border-radius: 10px;
|
|
background: #e8eef0;
|
|
border: 1px solid #c5d3d8;
|
|
}
|
|
|
|
.chatpapers-lecture-mode-tab {
|
|
flex: 1;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
padding: 8px 10px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
color: #4a5568;
|
|
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.chatpapers-lecture-mode-tab:hover:not(.is-active) {
|
|
background: rgba(255, 255, 255, 0.55);
|
|
color: #2d3748;
|
|
}
|
|
|
|
.chatpapers-lecture-mode-tab.is-active,
|
|
.chatpapers-lecture-mode-tab[aria-selected="true"] {
|
|
color: #ffffff;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.chatpapers-lecture-mode-tabs.mode-paragraph
|
|
.chatpapers-lecture-mode-tab[data-mode="paragraph"].is-active,
|
|
.chatpapers-lecture-mode-tabs.mode-paragraph
|
|
.chatpapers-lecture-mode-tab[data-mode="paragraph"][aria-selected="true"] {
|
|
background: #1f7a8c;
|
|
}
|
|
|
|
.chatpapers-lecture-mode-tabs.mode-overview
|
|
.chatpapers-lecture-mode-tab[data-mode="overview"].is-active,
|
|
.chatpapers-lecture-mode-tabs.mode-overview
|
|
.chatpapers-lecture-mode-tab[data-mode="overview"][aria-selected="true"] {
|
|
background: #2563eb;
|
|
}
|
|
|
|
.chatpapers-lecture-granularity-tabs {
|
|
display: none;
|
|
gap: 0;
|
|
padding: 2px;
|
|
margin-top: 2px;
|
|
border-radius: 8px;
|
|
background: #f3f6f8;
|
|
border: 1px solid #d8e2e8;
|
|
}
|
|
|
|
.chatpapers-lecture-granularity-tabs.is-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.chatpapers-lecture-granularity-tab {
|
|
flex: 1;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
padding: 6px 8px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
color: #64748b;
|
|
transition: background 0.15s ease, color 0.15s ease;
|
|
}
|
|
|
|
.chatpapers-lecture-granularity-tab:hover:not(.is-active) {
|
|
background: rgba(255, 255, 255, 0.7);
|
|
color: #334155;
|
|
}
|
|
|
|
.chatpapers-lecture-granularity-tab.is-active,
|
|
.chatpapers-lecture-granularity-tab[aria-selected="true"] {
|
|
background: #ffffff;
|
|
color: #1f7a8c;
|
|
box-shadow: 0 1px 3px rgba(31, 122, 140, 0.2);
|
|
outline: 1px solid rgba(31, 122, 140, 0.35);
|
|
}
|
|
|
|
.chatpapers-lecture-sentence-item .chatpapers-lecture-beat-title {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.chatpapers-lecture-para-original.is-active-sentence {
|
|
border-left: 3px solid #1f7a8c;
|
|
padding-left: 8px;
|
|
background: color-mix(in srgb, #1f7a8c 8%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-sentence-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chatpapers-lecture-sentence-chip {
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
border: 1px solid color-mix(in srgb, #1f7a8c 20%, transparent);
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.chatpapers-lecture-sentence-chip.is-active {
|
|
background: color-mix(in srgb, #1f7a8c 12%, transparent);
|
|
border-color: color-mix(in srgb, #1f7a8c 40%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-pdf-sync-hint {
|
|
margin-top: 4px;
|
|
font-size: 10px;
|
|
opacity: 0.72;
|
|
font-style: italic;
|
|
}
|
|
|
|
.chatpapers-lecture-para-detail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, #1f7a8c 5%, transparent);
|
|
border: 1px solid color-mix(in srgb, #1f7a8c 15%, transparent);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chatpapers-lecture-selection-explain {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, #2563eb 6%, transparent);
|
|
border: 1px solid color-mix(in srgb, #2563eb 18%, transparent);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chatpapers-lecture-selection-title {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.chatpapers-lecture-selection-replay {
|
|
align-self: flex-start;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.chatpapers-selection-explain-btn {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chatpapers-lecture-para-kind {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.chatpapers-lecture-para-role {
|
|
font-size: 11px;
|
|
opacity: 0.85;
|
|
font-style: italic;
|
|
}
|
|
|
|
.chatpapers-lecture-para-original-label,
|
|
.chatpapers-lecture-para-translation-label,
|
|
.chatpapers-lecture-para-context-label {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
opacity: 0.6;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.chatpapers-lecture-para-original {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.chatpapers-lecture-para-translation {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chatpapers-lecture-para-context {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.chatpapers-lecture-player {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.chatpapers-lecture-player-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.chatpapers-lecture-beat-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chatpapers-lecture-beat-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border: 1px solid color-mix(in srgb, #1f7a8c 18%, transparent);
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, #1f7a8c 4%, transparent);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
.chatpapers-lecture-beat-item:hover:not(:disabled) {
|
|
background: color-mix(in srgb, #1f7a8c 10%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-beat-item.is-active {
|
|
border-color: color-mix(in srgb, #16a34a 45%, transparent);
|
|
background: color-mix(in srgb, #16a34a 10%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-beat-item.is-pending {
|
|
opacity: 0.55;
|
|
cursor: default;
|
|
}
|
|
|
|
.chatpapers-lecture-beat-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.chatpapers-lecture-beat-type {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
opacity: 0.65;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.chatpapers-lecture-beat-title {
|
|
font-size: 12px;
|
|
line-height: 1.35;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chatpapers-lecture-beat-status {
|
|
flex-shrink: 0;
|
|
font-size: 11px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.chatpapers-lecture-player-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chatpapers-lecture-player-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border: 1px solid color-mix(in srgb, #1f7a8c 30%, transparent);
|
|
border-radius: 999px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
}
|
|
|
|
.chatpapers-lecture-player-btn:hover {
|
|
background: color-mix(in srgb, #1f7a8c 12%, transparent);
|
|
}
|
|
|
|
.chatpapers-lecture-error {
|
|
padding: 12px;
|
|
color: #dc2626;
|
|
font-size: 12px;
|
|
}
|