644 lines
11 KiB
CSS
644 lines
11 KiB
CSS
:root {
|
|
--bg-main: #0d1117;
|
|
--bg-card: #161b22;
|
|
--bg-input: #21262d;
|
|
--bg-hover: #30363d;
|
|
--border: #30363d;
|
|
--border-focus: #58a6ff;
|
|
--text-main: #f0f6fc;
|
|
--text-muted: #8b949e;
|
|
--accent: #2f81f7;
|
|
--accent-hover: #388bfd;
|
|
--accent-light: rgba(56, 139, 253, 0.15);
|
|
--success: #238636;
|
|
--danger: #da3633;
|
|
--radius: 12px;
|
|
--shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
|
|
--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
--font-mono: "JetBrains Mono", Consolas, Monaco, monospace;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font);
|
|
background-color: var(--bg-main);
|
|
color: var(--text-main);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.app-layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.main-content {
|
|
flex: 1;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 40px 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Header */
|
|
.app-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.logo-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 14px;
|
|
background: linear-gradient(135deg, #1f6feb 0%, #8957e5 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
box-shadow: 0 4px 16px rgba(31, 111, 235, 0.35);
|
|
}
|
|
|
|
.app-header h1 {
|
|
font-size: 1.6rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.header-badges {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.docker-badge {
|
|
background: rgba(36, 150, 237, 0.15);
|
|
color: #58a6ff;
|
|
border: 1px solid rgba(56, 139, 253, 0.3);
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background-color: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* Input Card */
|
|
.input-card {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.url-input-container {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 6px 10px;
|
|
gap: 10px;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.url-input-container:focus-within {
|
|
border-color: var(--border-focus);
|
|
box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
|
|
}
|
|
|
|
.input-prefix {
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.url-input-container input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
color: var(--text-main);
|
|
font-size: 0.95rem;
|
|
font-family: var(--font);
|
|
}
|
|
|
|
.input-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 16px;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.sample-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.sample-label {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.pill-btn {
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-main);
|
|
padding: 4px 10px;
|
|
border-radius: 14px;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.pill-btn:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-focus);
|
|
}
|
|
|
|
.mode-selector {
|
|
display: flex;
|
|
gap: 16px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.radio-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.radio-label input:checked + span {
|
|
color: var(--text-main);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: all 0.2s;
|
|
font-family: var(--font);
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: var(--accent-hover);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--bg-input);
|
|
border-color: var(--border);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.btn-ghost:hover {
|
|
color: var(--text-main);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 6px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* Status Banner */
|
|
.status-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
background: var(--accent-light);
|
|
border: 1px solid var(--accent);
|
|
border-radius: var(--radius);
|
|
padding: 16px 20px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.status-spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid rgba(88, 166, 255, 0.3);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 1s infinite linear;
|
|
}
|
|
|
|
.btn-spinner {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-top-color: #fff;
|
|
border-radius: 50%;
|
|
animation: spin 1s infinite linear;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.status-title {
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.status-desc {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Meta Card */
|
|
.meta-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 24px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.author-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.author-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 2px solid var(--border);
|
|
}
|
|
|
|
.author-meta h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.author-handle {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.author-handle:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.thread-stats {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.stat-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* Action Bar */
|
|
.action-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.tab-group {
|
|
display: flex;
|
|
gap: 4px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
padding: 4px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
padding: 6px 14px;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-family: var(--font);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--bg-hover);
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.export-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
position: relative;
|
|
}
|
|
|
|
/* Dropdown */
|
|
.dropdown {
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: 6px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow);
|
|
display: none;
|
|
flex-direction: column;
|
|
min-width: 220px;
|
|
z-index: 100;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dropdown-menu.show {
|
|
display: flex;
|
|
}
|
|
|
|
.dropdown-item {
|
|
padding: 10px 14px;
|
|
color: var(--text-main);
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Views */
|
|
.view-card {
|
|
min-height: 400px;
|
|
}
|
|
|
|
.reader-typography {
|
|
font-size: 1.1rem;
|
|
line-height: 1.7;
|
|
color: #e6edf3;
|
|
}
|
|
|
|
.reader-typography h1,
|
|
.reader-typography h2 {
|
|
margin: 1.5rem 0 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.reader-typography p {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.reader-typography ul {
|
|
margin-bottom: 1.25rem;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.reader-typography li {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.reader-typography hr {
|
|
border: 0;
|
|
border-top: 1px solid var(--border);
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.reader-typography img {
|
|
max-width: 100%;
|
|
border-radius: 10px;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
/* Markdown view */
|
|
#view-markdown pre {
|
|
background: var(--bg-input);
|
|
padding: 18px;
|
|
border-radius: 8px;
|
|
overflow-x: auto;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.88rem;
|
|
line-height: 1.5;
|
|
color: #c9d1d9;
|
|
}
|
|
|
|
/* Segments breakdown */
|
|
.segment-item {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
margin-bottom: 14px;
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.segment-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.segment-num {
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.segment-text {
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* Library Sidebar */
|
|
.library-sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
right: -360px;
|
|
width: 340px;
|
|
height: 100vh;
|
|
background: var(--bg-card);
|
|
border-left: 1px solid var(--border);
|
|
box-shadow: -4px 0 24px rgba(0,0,0,0.4);
|
|
transition: right 0.3s ease;
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.library-sidebar.open {
|
|
right: 0;
|
|
}
|
|
|
|
.sidebar-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-search {
|
|
padding: 12px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar-search input {
|
|
width: 100%;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-main);
|
|
padding: 8px 12px;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
}
|
|
|
|
.sidebar-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.history-item {
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
|
|
.history-item:hover {
|
|
border-color: var(--border-focus);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.history-item-title {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.history-item-meta {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
padding: 30px 0;
|
|
}
|
|
|
|
/* Toast */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: #238636;
|
|
color: #fff;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
box-shadow: 0 6px 20px rgba(0,0,0,0.3);
|
|
z-index: 999;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|