ts
This commit is contained in:
+450
-27
@@ -1,24 +1,24 @@
|
||||
/* 小红书采集器样式表 */
|
||||
/* 小红书采集器样式表 - 绿色基调 */
|
||||
|
||||
/* ========== CSS 变量 ========== */
|
||||
:root {
|
||||
--bg-primary: #f5f7fa;
|
||||
--bg-primary: #f0f7f4;
|
||||
--bg-secondary: #ffffff;
|
||||
--bg-tertiary: #e8ecf1;
|
||||
--text-primary: #2c3e50;
|
||||
--text-secondary: #5a6c7d;
|
||||
--text-muted: #8b95a5;
|
||||
--border-color: #d1d9e6;
|
||||
--primary-color: #ff2442; /* 小红书红 */
|
||||
--primary-hover: #e01f3a;
|
||||
--bg-tertiary: #e1f0e8;
|
||||
--text-primary: #1a2e23;
|
||||
--text-secondary: #4a5c52;
|
||||
--text-muted: #7a8a7f;
|
||||
--border-color: #b8d4c2;
|
||||
--primary-color: #10b981; /* 翠翠绿 */
|
||||
--primary-hover: #059669;
|
||||
--success-color: #10b981;
|
||||
--warning-color: #f59e0b;
|
||||
--error-color: #ef4444;
|
||||
--info-color: #3b82f6;
|
||||
--debug-color: #8b95a5;
|
||||
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
||||
--debug-color: #7a8a7f;
|
||||
--shadow-sm: 0 1px 2px 0 rgba(16, 185, 129, 0.05);
|
||||
--shadow-md: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(16, 185, 129, 0.1);
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
@@ -26,13 +26,13 @@
|
||||
|
||||
/* 深色主题 */
|
||||
body.dark-theme {
|
||||
--bg-primary: #1a1d23;
|
||||
--bg-secondary: #242830;
|
||||
--bg-tertiary: #2d333d;
|
||||
--text-primary: #e8eaed;
|
||||
--text-secondary: #9aa0a6;
|
||||
--text-muted: #5f6368;
|
||||
--border-color: #3c4043;
|
||||
--bg-primary: #0d1f17;
|
||||
--bg-secondary: #1a2e23;
|
||||
--bg-tertiary: #233a2e;
|
||||
--text-primary: #e8f0ec;
|
||||
--text-secondary: #8a9a8f;
|
||||
--text-muted: #5a6a5f;
|
||||
--border-color: #2d4a3a;
|
||||
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
|
||||
@@ -71,6 +71,7 @@ body {
|
||||
background: var(--bg-secondary);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
border-left: 4px solid var(--primary-color);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
@@ -161,6 +162,15 @@ body {
|
||||
background: var(--border-color);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: var(--success-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-success:hover:not(:disabled) {
|
||||
background: var(--primary-hover);
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
@@ -210,14 +220,23 @@ body {
|
||||
}
|
||||
|
||||
/* ========== 输入框 ========== */
|
||||
.input-small {
|
||||
padding: 4px 8px;
|
||||
.input-small, .input-medium {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 12px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.input-small {
|
||||
width: 150px;
|
||||
font-size: 12px;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
.input-medium {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* ========== 线程控制 ========== */
|
||||
@@ -232,6 +251,56 @@ body {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* ========== 账号管理 ========== */
|
||||
.account-section {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.account-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.account-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 12px;
|
||||
background: var(--bg-tertiary);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--error-color);
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
.status-indicator.online {
|
||||
background: var(--success-color);
|
||||
}
|
||||
|
||||
.status-indicator.offline {
|
||||
background: var(--error-color);
|
||||
}
|
||||
|
||||
.status-indicator.loading {
|
||||
background: var(--warning-color);
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
/* ========== 进度卡片 ========== */
|
||||
.progress-section {
|
||||
margin-bottom: 20px;
|
||||
@@ -261,7 +330,7 @@ body {
|
||||
|
||||
.progress-bar {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--primary-color), #ff6b8a);
|
||||
background: linear-gradient(90deg, var(--primary-color), #34d399);
|
||||
border-radius: var(--radius-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -314,12 +383,12 @@ body {
|
||||
/* ========== 主内容区 ========== */
|
||||
.main-content {
|
||||
display: grid;
|
||||
grid-template-columns: 300px 1fr;
|
||||
grid-template-columns: 350px 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.main-content.with-threads {
|
||||
grid-template-columns: 300px 250px 1fr;
|
||||
grid-template-columns: 350px 250px 1fr;
|
||||
}
|
||||
|
||||
/* ========== 面板 ========== */
|
||||
@@ -361,6 +430,63 @@ body {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
/* ========== 账号管理面板 ========== */
|
||||
.account-panel {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.account-input-group {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.account-input-group input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.account-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.account-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
background: var(--bg-tertiary);
|
||||
border-radius: var(--radius-md);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.account-item:hover {
|
||||
background: var(--border-color);
|
||||
}
|
||||
|
||||
.account-item-id {
|
||||
flex: 1;
|
||||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.account-item-remove {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--error-color);
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
padding: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.account-item-remove:hover {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
|
||||
/* ========== 用户列表 ========== */
|
||||
.user-list {
|
||||
display: flex;
|
||||
@@ -539,7 +665,7 @@ body {
|
||||
}
|
||||
|
||||
.log-level.DEBUG {
|
||||
background: rgba(139, 149, 165, 0.15);
|
||||
background: rgba(122, 138, 127, 0.15);
|
||||
color: var(--debug-color);
|
||||
}
|
||||
|
||||
@@ -567,6 +693,299 @@ body {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* ========== 模态框 ========== */
|
||||
.modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
z-index: 1000;
|
||||
animation: fadeIn 0.2s;
|
||||
}
|
||||
|
||||
.modal.show {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background: var(--bg-secondary);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-lg);
|
||||
width: 90%;
|
||||
max-width: 600px;
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: slideIn 0.3s;
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
padding: 20px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.modal-header h3 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 24px;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
line-height: 1;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.modal-close:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* ========== 登录状态 ========== */
|
||||
.login-status-section {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.login-status-section h4 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.login-info {
|
||||
background: var(--bg-tertiary);
|
||||
padding: 12px;
|
||||
border-radius: var(--radius-md);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.login-status-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.login-status-item:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.status-label {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.status-value {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.login-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* ========== 用户管理 ========== */
|
||||
.users-management-section {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.users-management-section h4 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.user-input-group {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.user-tips {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.users-list-container {
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.users-list-header {
|
||||
padding: 12px 16px;
|
||||
background: var(--bg-tertiary);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.users-list {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.modal-user-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 16px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.modal-user-item:hover {
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.modal-user-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.modal-user-id {
|
||||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
color: var(--text-primary);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.modal-user-remove {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--error-color);
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
padding: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.modal-user-remove:hover {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
|
||||
/* ========== 批量导入 ========== */
|
||||
.batch-import-section {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.batch-import-section h4 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.batch-import-controls {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* ========== 登录二维码 ========== */
|
||||
.qr-login-container {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.qr-code-section {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#qrcodeContainer {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
margin: 0 auto 12px;
|
||||
background: white;
|
||||
padding: 16px;
|
||||
border-radius: var(--radius-md);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.qr-tips {
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ========== 浮动提示 ========== */
|
||||
.toast {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
padding: 12px 20px;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
transform: translateY(100px);
|
||||
opacity: 0;
|
||||
transition: all 0.3s;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
.toast.show {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toast.success {
|
||||
border-left: 4px solid var(--success-color);
|
||||
}
|
||||
|
||||
.toast.error {
|
||||
border-left: 4px solid var(--error-color);
|
||||
}
|
||||
|
||||
.toast.warning {
|
||||
border-left: 4px solid var(--warning-color);
|
||||
}
|
||||
|
||||
/* ========== 动画 ========== */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
transform: translateY(-20px);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========== 滚动条样式 ========== */
|
||||
.panel-body::-webkit-scrollbar,
|
||||
.log-container::-webkit-scrollbar {
|
||||
@@ -617,4 +1036,8 @@ body {
|
||||
.stat-value {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.account-input-group {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user