1106 lines
19 KiB
CSS
1106 lines
19 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--user-message-bg: #f0f7ff;
|
|
--assistant-message-bg: #faf5ff;
|
|
--success-color: #4caf50;
|
|
--error-color: #f44336;
|
|
--warning-color: #ff9800;
|
|
--code-bg: #f8f8f8;
|
|
--hover-bg: #e0e0e0;
|
|
--border-color: #e0e0e0;
|
|
--text-muted: #666666;
|
|
--accent-color: #0066ff;
|
|
--secondary-bg: #f5f5f5;
|
|
--background: #ffffff;
|
|
--user-border: #2196f3;
|
|
--assistant-border: #9c27b0;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--user-message-bg: #1a2332;
|
|
--assistant-message-bg: #251a2e;
|
|
--code-bg: #1a1a1a;
|
|
--hover-bg: #3a3a3a;
|
|
--border-color: #3a3a3a;
|
|
--text-muted: #999999;
|
|
--accent-color: #0080ff;
|
|
--secondary-bg: #2a2a2a;
|
|
--background: #1a1a1a;
|
|
--user-border: #42a5f5;
|
|
--assistant-border: #ba68c8;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
background-color: var(--background);
|
|
color: #1f2933;
|
|
}
|
|
|
|
[data-theme="dark"] body {
|
|
color: #f3f4f6;
|
|
}
|
|
|
|
#root {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: var(--background);
|
|
}
|
|
|
|
.message-stream-container {
|
|
position: relative;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.connection-status {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 8px 16px;
|
|
background-color: var(--secondary-bg);
|
|
border-bottom: 1px solid var(--border-color);
|
|
gap: 16px;
|
|
}
|
|
|
|
.connection-status-text {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-indicator.connected .status-dot {
|
|
background-color: var(--success-color);
|
|
}
|
|
|
|
.status-indicator.connecting .status-dot {
|
|
background-color: var(--warning-color);
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
.status-indicator.disconnected .status-dot {
|
|
background-color: var(--error-color);
|
|
}
|
|
|
|
.message-stream {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
background-color: var(--background);
|
|
color: inherit;
|
|
}
|
|
|
|
.message-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
color: inherit;
|
|
}
|
|
|
|
.message-item.user {
|
|
background-color: var(--user-message-bg);
|
|
border-left: 4px solid var(--user-border);
|
|
}
|
|
|
|
.message-item.assistant {
|
|
background-color: var(--assistant-message-bg);
|
|
border-left: 4px solid var(--assistant-border);
|
|
}
|
|
|
|
.tool-call-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
background-color: #f8f9fa;
|
|
border-left: 4px solid #6c757d;
|
|
color: inherit;
|
|
}
|
|
|
|
[data-theme="dark"] .tool-call-message {
|
|
background-color: #212529;
|
|
border-left-color: #adb5bd;
|
|
}
|
|
|
|
.tool-call-header-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.tool-call-header-label .tool-call-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.tool-call-header-label .tool-name {
|
|
font-family: monospace;
|
|
color: inherit;
|
|
background-color: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.message-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.message-sender {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.message-timestamp {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.message-revert-button {
|
|
background: none;
|
|
border: 1px solid var(--border-color);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 28px;
|
|
height: 24px;
|
|
}
|
|
|
|
.message-revert-button:hover {
|
|
background-color: var(--hover-bg);
|
|
border-color: var(--accent-color);
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.message-revert-button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.message-content {
|
|
padding-top: 6px;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
color: inherit;
|
|
}
|
|
|
|
.message-queued-badge {
|
|
display: inline-block;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
font-weight: bold;
|
|
padding: 4px 12px;
|
|
border-radius: 4px;
|
|
margin-bottom: 12px;
|
|
font-size: 12px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.message-text {
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
color: inherit;
|
|
}
|
|
|
|
.message-text pre {
|
|
overflow-x: auto;
|
|
padding: 8px;
|
|
background-color: var(--code-bg);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.message-error {
|
|
color: var(--error-color);
|
|
font-size: 13px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.message-error-part {
|
|
color: var(--error-color);
|
|
font-size: 14px;
|
|
padding: 8px;
|
|
background-color: rgba(244, 67, 54, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
[data-theme="dark"] .message-error-part {
|
|
background-color: rgba(244, 67, 54, 0.15);
|
|
}
|
|
|
|
.message-error-block {
|
|
color: var(--error-color);
|
|
font-size: 14px;
|
|
padding: 12px;
|
|
background-color: rgba(244, 67, 54, 0.1);
|
|
border-radius: 4px;
|
|
border-left: 3px solid var(--error-color);
|
|
margin: 8px 0;
|
|
}
|
|
|
|
[data-theme="dark"] .message-error-block {
|
|
background-color: rgba(244, 67, 54, 0.15);
|
|
}
|
|
|
|
.message-generating {
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
font-style: italic;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.generating-spinner {
|
|
display: inline-block;
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.message-reasoning {
|
|
margin: 8px 0;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background-color: var(--secondary-bg);
|
|
color: inherit;
|
|
}
|
|
|
|
.reasoning-container {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.reasoning-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.reasoning-header:hover {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.reasoning-icon {
|
|
font-size: 10px;
|
|
transition: transform 150ms ease;
|
|
}
|
|
|
|
.reasoning-label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tool-call {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
color: inherit;
|
|
}
|
|
|
|
.tool-call-message .tool-call {
|
|
border: none;
|
|
border-radius: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.tool-call-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
width: 100%;
|
|
background-color: var(--secondary-bg);
|
|
border: none;
|
|
cursor: pointer;
|
|
font-family: monospace;
|
|
font-size: 13px;
|
|
text-align: left;
|
|
}
|
|
|
|
.tool-call-header:hover {
|
|
background-color: var(--hover-bg);
|
|
}
|
|
|
|
.tool-call-icon {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.tool-call-summary {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
.tool-call-status {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.tool-call-status-success {
|
|
border-left: 3px solid var(--success-color);
|
|
}
|
|
|
|
.tool-call-status-error {
|
|
border-left: 3px solid var(--error-color);
|
|
}
|
|
|
|
.tool-call-status-running {
|
|
border-left: 3px solid var(--warning-color);
|
|
}
|
|
|
|
.tool-call-status-running .tool-call-status {
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
.tool-call-status-pending {
|
|
border-left: 3px solid var(--accent-color);
|
|
}
|
|
|
|
.tool-call-status-pending .tool-call-summary {
|
|
animation: shimmer 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0%,
|
|
100% {
|
|
opacity: 0.6;
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.tool-call-preview {
|
|
padding: 8px 12px;
|
|
background-color: var(--code-bg);
|
|
border-top: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tool-call-preview-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.tool-call-preview-text {
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
color: var(--text-muted);
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
max-height: calc(10 * 1.4em);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tool-call-details {
|
|
padding: 12px;
|
|
background-color: var(--code-bg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tool-call-section h4 {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.tool-call-section pre {
|
|
margin: 0;
|
|
padding: 8px;
|
|
background-color: var(--background);
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
max-height: calc(25 * 1.4em);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tool-call-section code {
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tool-call-section pre::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
.tool-call-section pre::-webkit-scrollbar-track {
|
|
background: var(--secondary-bg);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tool-call-section pre::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tool-call-section pre::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
.tool-call-pending-message {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.tool-call-emoji {
|
|
font-size: 16px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.tool-call-bash,
|
|
.tool-call-diff {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.tool-call-content {
|
|
background-color: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 8px 12px;
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
overflow-x: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
.tool-call-content code {
|
|
font-family: inherit;
|
|
background: none;
|
|
padding: 0;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.tool-call-todos {
|
|
margin: 8px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.tool-call-todo-item {
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.tool-call-todo-item code {
|
|
background-color: rgba(0, 102, 255, 0.12);
|
|
padding: 2px 4px;
|
|
border-radius: 2px;
|
|
font-family: monospace;
|
|
color: inherit;
|
|
}
|
|
|
|
[data-theme="dark"] .tool-call-todo-item code {
|
|
background-color: rgba(0, 128, 255, 0.22);
|
|
}
|
|
|
|
.tool-call-task-summary {
|
|
margin: 8px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tool-call-task-item {
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
padding-left: 8px;
|
|
border-left: 2px solid var(--border-color);
|
|
}
|
|
|
|
.tool-call-task-item::before {
|
|
content: "∟ ";
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.tool-call-error-content {
|
|
background-color: rgba(244, 67, 54, 0.1);
|
|
border-left: 3px solid var(--error-color);
|
|
padding: 12px;
|
|
margin: 8px 0;
|
|
border-radius: 4px;
|
|
color: var(--error-color);
|
|
font-size: 12px;
|
|
}
|
|
|
|
[data-theme="dark"] .tool-call-error-content {
|
|
background-color: rgba(244, 67, 54, 0.2);
|
|
}
|
|
|
|
.tool-call-error-content strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.scroll-to-bottom {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform 150ms ease;
|
|
}
|
|
|
|
.scroll-to-bottom:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.empty-state {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48px;
|
|
}
|
|
|
|
.empty-state-content {
|
|
text-align: center;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.empty-state-content h3 {
|
|
font-size: 18px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.empty-state-content p {
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.empty-state-content ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.empty-state-content li {
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-state-content code {
|
|
background-color: var(--code-bg);
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-family: monospace;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.loading-state {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
padding: 48px;
|
|
}
|
|
|
|
.spinner {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 3px solid var(--border-color);
|
|
border-top-color: var(--accent-color);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.prompt-input-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-top: 1px solid var(--border-color);
|
|
background-color: var(--background);
|
|
}
|
|
|
|
.prompt-input-wrapper {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.prompt-input {
|
|
flex: 1;
|
|
min-height: 40px;
|
|
max-height: 200px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
resize: none;
|
|
background-color: var(--background);
|
|
color: inherit;
|
|
outline: none;
|
|
transition: border-color 150ms ease;
|
|
}
|
|
|
|
.prompt-input:focus {
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.prompt-input:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.prompt-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.send-button {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 6px;
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition:
|
|
opacity 150ms ease,
|
|
transform 150ms ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.send-button:hover:not(:disabled) {
|
|
opacity: 0.9;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.send-button:active:not(:disabled) {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.send-button:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.send-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.spinner-small {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-top-color: white;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
.prompt-input-hints {
|
|
padding: 0 16px 8px 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.hint kbd {
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
font-size: 11px;
|
|
font-family: monospace;
|
|
background-color: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 3px;
|
|
margin: 0 2px;
|
|
}
|
|
|
|
.session-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
background-color: var(--background);
|
|
color: inherit;
|
|
}
|
|
|
|
.message-sending {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.prose {
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.prose code {
|
|
background-color: #f1f5f9;
|
|
color: #1e293b;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
}
|
|
|
|
.prose pre {
|
|
background-color: transparent;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.prose pre code {
|
|
background: transparent;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
font-size: 0.875em;
|
|
}
|
|
|
|
.prose a {
|
|
color: #0066ff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.prose a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.prose blockquote {
|
|
border-left: 4px solid #e0e0e0;
|
|
padding-left: 16px;
|
|
font-style: italic;
|
|
color: #666;
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.prose ul,
|
|
.prose ol {
|
|
margin: 8px 0;
|
|
padding-left: 24px;
|
|
}
|
|
|
|
.prose ul {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.prose ol {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.prose li {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.prose h1 {
|
|
font-size: 1.5em;
|
|
font-weight: 700;
|
|
margin: 16px 0 12px 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.prose h2 {
|
|
font-size: 1.25em;
|
|
font-weight: 700;
|
|
margin: 14px 0 10px 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.prose h3 {
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
margin: 12px 0 8px 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.prose table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 12px 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.prose th {
|
|
border: 1px solid #e0e0e0;
|
|
padding: 8px 12px;
|
|
background-color: #f5f5f5;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
}
|
|
|
|
.prose td {
|
|
border: 1px solid #e0e0e0;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.prose p {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.prose hr {
|
|
border: none;
|
|
border-top: 1px solid #e0e0e0;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
[data-theme="dark"] .prose {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
[data-theme="dark"] .prose code {
|
|
background-color: #2a2a2a;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
[data-theme="dark"] .prose a {
|
|
color: #0080ff;
|
|
}
|
|
|
|
[data-theme="dark"] .prose blockquote {
|
|
border-left-color: #3a3a3a;
|
|
color: #999;
|
|
}
|
|
|
|
[data-theme="dark"] .prose th {
|
|
border-color: #3a3a3a;
|
|
background-color: #2a2a2a;
|
|
}
|
|
|
|
[data-theme="dark"] .prose td {
|
|
border-color: #3a3a3a;
|
|
}
|
|
|
|
[data-theme="dark"] .prose hr {
|
|
border-top-color: #3a3a3a;
|
|
}
|
|
|
|
.markdown-code-block {
|
|
position: relative;
|
|
margin: 12px 0;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
background-color: #f8f9fa;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
[data-theme="dark"] .markdown-code-block {
|
|
background-color: #1a1a1a;
|
|
border-color: #3a3a3a;
|
|
}
|
|
|
|
.code-block-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 12px;
|
|
background-color: #f1f5f9;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
[data-theme="dark"] .code-block-header {
|
|
background-color: #2a2a2a;
|
|
border-bottom-color: #3a3a3a;
|
|
}
|
|
|
|
.code-block-language {
|
|
font-size: 12px;
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
color: #666;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
[data-theme="dark"] .code-block-language {
|
|
color: #999;
|
|
}
|
|
|
|
.code-block-copy {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
background-color: transparent;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: #666;
|
|
transition: all 150ms ease;
|
|
margin-left: auto;
|
|
}
|
|
|
|
[data-theme="dark"] .code-block-copy {
|
|
border-color: #3a3a3a;
|
|
color: #999;
|
|
}
|
|
|
|
.code-block-copy:hover {
|
|
background-color: #e0e0e0;
|
|
border-color: #ccc;
|
|
}
|
|
|
|
[data-theme="dark"] .code-block-copy:hover {
|
|
background-color: #3a3a3a;
|
|
border-color: #4a4a4a;
|
|
}
|
|
|
|
.code-block-copy .copy-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.code-block-copy .copy-text {
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
}
|
|
|
|
.markdown-code-block pre {
|
|
margin: 0 !important;
|
|
padding: 12px !important;
|
|
overflow-x: auto;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.markdown-code-block code {
|
|
background: transparent !important;
|
|
padding: 0 !important;
|
|
font-size: 13px !important;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.code-block-inline {
|
|
position: relative;
|
|
margin: 8px 0;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
background-color: #f8f9fa;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
[data-theme="dark"] .code-block-inline {
|
|
background-color: #1a1a1a;
|
|
border-color: #3a3a3a;
|
|
}
|
|
|
|
.code-block-inline .code-block-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 10px;
|
|
background-color: #f1f5f9;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
[data-theme="dark"] .code-block-inline .code-block-header {
|
|
background-color: #2a2a2a;
|
|
border-bottom-color: #3a3a3a;
|
|
}
|
|
|
|
.code-block-inline pre {
|
|
margin: 0 !important;
|
|
padding: 10px !important;
|
|
overflow-x: auto;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.code-block-inline code {
|
|
background: transparent !important;
|
|
padding: 0 !important;
|
|
font-size: 12px !important;
|
|
line-height: 1.5;
|
|
}
|