Spaces:
Paused
Paused
Download web/static/style.css from QwertOs/DiscordBot: direct link, hf CLI and curl.
- Browser
- Download file 6.68 kB
-
https://huggingface.co/spaces/QwertOs/DiscordBot/resolve/main/web/static/style.css
- Command line
-
hf download hf://spaces/QwertOs/DiscordBot/web/static/style.css
-
curl -L -o style.css https://huggingface.co/spaces/QwertOs/DiscordBot/resolve/main/web/static/style.css
6.68 kB
| /* Discord Bot Web Dashboard - Styles */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| :root { | |
| --primary-color: #5865f2; | |
| --secondary-color: #4752c4; | |
| --success-color: #3ba55d; | |
| --danger-color: #ed4245; | |
| --warning-color: #faa81a; | |
| --bg-dark: #36393f; | |
| --bg-darker: #2f3136; | |
| --bg-darkest: #202225; | |
| --text-primary: #dcddde; | |
| --text-secondary: #b9bbbe; | |
| --border-color: #40444b; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background-color: var(--bg-dark); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| } | |
| .container { | |
| display: flex; | |
| min-height: 100vh; | |
| } | |
| /* 侧边栏 */ | |
| .sidebar { | |
| width: 250px; | |
| background-color: var(--bg-darkest); | |
| padding: 20px; | |
| border-right: 1px solid var(--border-color); | |
| } | |
| .logo { | |
| text-align: center; | |
| margin-bottom: 30px; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .logo h1 { | |
| font-size: 24px; | |
| margin-bottom: 5px; | |
| } | |
| .bot-id { | |
| font-size: 12px; | |
| color: var(--text-secondary); | |
| } | |
| .nav-menu { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| .nav-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 12px 15px; | |
| color: var(--text-secondary); | |
| text-decoration: none; | |
| border-radius: 8px; | |
| transition: all 0.3s ease; | |
| } | |
| .nav-item:hover { | |
| background-color: var(--bg-darker); | |
| color: var(--text-primary); | |
| } | |
| .nav-item.active { | |
| background-color: var(--primary-color); | |
| color: white; | |
| } | |
| .nav-item .icon { | |
| font-size: 20px; | |
| } | |
| /* 主内容区 */ | |
| .main-content { | |
| flex: 1; | |
| padding: 30px; | |
| overflow-y: auto; | |
| } | |
| .top-bar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 30px; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .top-bar h2 { | |
| font-size: 28px; | |
| } | |
| .status-indicator { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 8px 15px; | |
| background-color: var(--bg-darker); | |
| border-radius: 20px; | |
| } | |
| .status-dot { | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| background-color: var(--warning-color); | |
| animation: pulse 2s infinite; | |
| } | |
| .status-dot.connected { | |
| background-color: var(--success-color); | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| /* Tab 内容 */ | |
| .tab-content { | |
| display: none; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| animation: fadeIn 0.3s ease; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* 统计卡片网格 */ | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 20px; | |
| margin-bottom: 30px; | |
| } | |
| .stat-card { | |
| background-color: var(--bg-darker); | |
| padding: 25px; | |
| border-radius: 12px; | |
| display: flex; | |
| align-items: center; | |
| gap: 20px; | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .stat-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); | |
| } | |
| .stat-icon { | |
| font-size: 40px; | |
| } | |
| .stat-info h3 { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| margin-bottom: 5px; | |
| } | |
| .stat-value { | |
| font-size: 28px; | |
| font-weight: bold; | |
| color: var(--primary-color); | |
| } | |
| /* 信息卡片 */ | |
| .info-section { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| gap: 20px; | |
| } | |
| .info-card { | |
| background-color: var(--bg-darker); | |
| padding: 20px; | |
| border-radius: 12px; | |
| } | |
| .info-card h3 { | |
| margin-bottom: 10px; | |
| font-size: 18px; | |
| } | |
| .info-card p { | |
| font-size: 24px; | |
| color: var(--primary-color); | |
| font-weight: bold; | |
| } | |
| /* 面板头部 */ | |
| .panel-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 20px; | |
| } | |
| .panel-header h3 { | |
| font-size: 22px; | |
| } | |
| /* 按钮 */ | |
| .btn { | |
| padding: 10px 20px; | |
| border: none; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| font-weight: 600; | |
| transition: all 0.3s ease; | |
| } | |
| .btn-primary { | |
| background-color: var(--primary-color); | |
| color: white; | |
| } | |
| .btn-primary:hover { | |
| background-color: var(--secondary-color); | |
| } | |
| .btn-danger { | |
| background-color: var(--danger-color); | |
| color: white; | |
| } | |
| .btn-danger:hover { | |
| background-color: #c03537; | |
| } | |
| /* 表格 */ | |
| .table-container { | |
| background-color: var(--bg-darker); | |
| border-radius: 12px; | |
| overflow: hidden; | |
| } | |
| .data-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| } | |
| .data-table thead { | |
| background-color: var(--bg-darkest); | |
| } | |
| .data-table th { | |
| padding: 15px; | |
| text-align: left; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| border-bottom: 2px solid var(--border-color); | |
| } | |
| .data-table td { | |
| padding: 15px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .data-table tbody tr:hover { | |
| background-color: rgba(88, 101, 242, 0.1); | |
| } | |
| .data-table .loading { | |
| text-align: center; | |
| color: var(--text-secondary); | |
| padding: 40px; | |
| } | |
| /* 广播面板 */ | |
| .broadcast-panel { | |
| background-color: var(--bg-darker); | |
| padding: 30px; | |
| border-radius: 12px; | |
| max-width: 800px; | |
| } | |
| .broadcast-panel h3 { | |
| margin-bottom: 10px; | |
| font-size: 22px; | |
| } | |
| .hint { | |
| color: var(--text-secondary); | |
| margin-bottom: 20px; | |
| font-size: 14px; | |
| } | |
| textarea { | |
| width: 100%; | |
| padding: 15px; | |
| background-color: var(--bg-dark); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| resize: vertical; | |
| margin-bottom: 20px; | |
| } | |
| textarea:focus { | |
| outline: none; | |
| border-color: var(--primary-color); | |
| } | |
| .broadcast-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 15px; | |
| } | |
| #broadcast-result { | |
| color: var(--success-color); | |
| font-weight: 600; | |
| } | |
| /* 响应式设计 */ | |
| @media (max-width: 768px) { | |
| .container { | |
| flex-direction: column; | |
| } | |
| .sidebar { | |
| width: 100%; | |
| border-right: none; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .stats-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .top-bar { | |
| flex-direction: column; | |
| gap: 15px; | |
| align-items: flex-start; | |
| } | |
| } | |