mirror of
https://github.com/dqzboy/Docker-Proxy.git
synced 2026-01-12 16:25:42 +08:00
3441 lines
72 KiB
CSS
3441 lines
72 KiB
CSS
/* 现代化UI样式 - 面向C端用户 */
|
||
:root {
|
||
/* 主色调 */
|
||
--primary-color: #3D7CF4;
|
||
--primary-light: #5D95FD;
|
||
--primary-dark: #2F62C9;
|
||
--primary-dark-color: #2c5282; /* 深蓝色,可以根据您的主题调整 */
|
||
/* 辅助色 */
|
||
--secondary-color: #FF6B6B;
|
||
--secondary-light: #FF8E8E;
|
||
--secondary-dark: #DA5151;
|
||
|
||
/* 中性色 */
|
||
--background-color: #F7F9FC;
|
||
--container-bg: #FFFFFF;
|
||
--card-bg: #FFFFFF;
|
||
|
||
/* 文字颜色 */
|
||
--text-primary: #2A3749;
|
||
--text-secondary: #5A6A80;
|
||
--text-muted: #8896AB;
|
||
|
||
/* 边框和分隔线 */
|
||
--border-color: #E2E8F0;
|
||
--border-light: #EDF1F7;
|
||
|
||
/* 状态颜色 */
|
||
--success-color: #32D583;
|
||
--warning-color: #FFB547;
|
||
--danger-color: #FF5252;
|
||
--info-color: #4AADD4;
|
||
|
||
/* 阴影 */
|
||
--shadow-sm: 0 2px 4px rgba(11, 31, 77, 0.04);
|
||
--shadow-md: 0 4px 12px rgba(11, 31, 77, 0.08);
|
||
--shadow-lg: 0 8px 24px rgba(11, 31, 77, 0.12);
|
||
|
||
/* 圆角 */
|
||
--radius-sm: 4px;
|
||
--radius-md: 8px;
|
||
--radius-lg: 16px;
|
||
|
||
/* 动画 */
|
||
--transition-fast: 0.15s ease;
|
||
--transition-normal: 0.25s ease;
|
||
--transition-slow: 0.4s ease;
|
||
|
||
/* 字体 */
|
||
--font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
||
}
|
||
|
||
/* 基础样式 */
|
||
body {
|
||
font-family: var(--font-sans);
|
||
line-height: 1.6;
|
||
margin: 0;
|
||
padding: 0;
|
||
background-color: var(--background-color);
|
||
color: var(--text-primary);
|
||
min-height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow-x: hidden;
|
||
}
|
||
|
||
/* 头部导航 */
|
||
.header {
|
||
background-color: #ffffff; /* 白色背景 */
|
||
padding: 20px 0; /* 增加上下padding */
|
||
position: relative;
|
||
border-bottom: 1px solid #e0e0e0; /* 添加边框分隔 */
|
||
}
|
||
|
||
.header-content {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
padding: 0 30px; /* 增加左右padding */
|
||
}
|
||
|
||
.logo {
|
||
height: 60px; /* 将原来的40px增大到60px */
|
||
width: auto;
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
.logo:hover {
|
||
transform: scale(1.05); /* 添加悬停效果 */
|
||
}
|
||
|
||
/* 导航菜单修复 */
|
||
.nav-menu {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.menu-toggle {
|
||
display: none;
|
||
font-size: 24px;
|
||
color: #333333; /* 深色图标 */
|
||
cursor: pointer;
|
||
}
|
||
|
||
.nav-list {
|
||
display: flex;
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.nav-list li {
|
||
margin-left: 20px;
|
||
}
|
||
|
||
/* 注意:菜单项的具体样式由JS中的内联样式控制 */
|
||
|
||
/* 移动设备适配 */
|
||
@media (max-width: 768px) {
|
||
.menu-toggle {
|
||
display: block;
|
||
}
|
||
|
||
.nav-list {
|
||
position: absolute;
|
||
top: 100%;
|
||
right: 20px;
|
||
background-color: #ffffff; /* 白色背景 */
|
||
border-radius: 5px;
|
||
padding: 20px;
|
||
flex-direction: column;
|
||
display: none;
|
||
z-index: 100;
|
||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
||
border: 1px solid #e0e0e0;
|
||
}
|
||
|
||
.nav-menu.active .nav-list {
|
||
display: flex;
|
||
}
|
||
|
||
.nav-list li {
|
||
margin: 10px 0;
|
||
}
|
||
}
|
||
|
||
.no-menu, .menu-error {
|
||
color: #ff6b6b;
|
||
font-size: 14px;
|
||
margin-right: 20px;
|
||
}
|
||
|
||
/* 主容器 */
|
||
.container {
|
||
width: 90%;
|
||
max-width: 1320px;
|
||
margin: 2rem auto;
|
||
padding: 0;
|
||
flex: 1 0 auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.page-title {
|
||
font-size: 2.2rem;
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
margin-bottom: 1.5rem;
|
||
text-align: center;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.page-subtitle {
|
||
font-size: 1.1rem;
|
||
color: var(--text-secondary);
|
||
margin-top: -0.5rem;
|
||
margin-bottom: 2rem;
|
||
text-align: center;
|
||
max-width: 700px;
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
}
|
||
|
||
/* 选项卡 */
|
||
.tab-container {
|
||
display: flex;
|
||
margin-bottom: 2rem;
|
||
background: var(--container-bg);
|
||
border-radius: var(--radius-lg);
|
||
padding: 0.5rem;
|
||
box-shadow: var(--shadow-sm);
|
||
justify-content: center;
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
|
||
.tab {
|
||
padding: 0.8rem 1.8rem;
|
||
border: none;
|
||
background: none;
|
||
color: var(--text-secondary);
|
||
cursor: pointer;
|
||
font-weight: 600;
|
||
position: relative;
|
||
transition: all var(--transition-normal);
|
||
border-radius: var(--radius-md);
|
||
font-size: 1rem;
|
||
flex: 1;
|
||
text-align: center;
|
||
max-width: 180px;
|
||
}
|
||
|
||
.tab:hover {
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.tab.active {
|
||
color: var(--primary-color);
|
||
background-color: rgba(61, 124, 244, 0.08);
|
||
}
|
||
|
||
/* 内容区域 */
|
||
.content {
|
||
display: none;
|
||
background: var(--container-bg);
|
||
padding: 2.5rem;
|
||
border-radius: var(--radius-lg);
|
||
box-shadow: var(--shadow-md);
|
||
flex: 1;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
animation: fadeIn 0.3s ease-in-out;
|
||
}
|
||
|
||
@keyframes fadeIn {
|
||
from { opacity: 0; transform: translateY(10px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
|
||
.content.active {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
/* 输入框和按钮 */
|
||
input[type="text"] {
|
||
width: 100%;
|
||
padding: 0.9rem 1.2rem;
|
||
border: 2px solid var(--border-color);
|
||
border-radius: var(--radius-md);
|
||
font-size: 1rem;
|
||
transition: all var(--transition-fast);
|
||
background-color: var(--container-bg);
|
||
color: var(--text-primary);
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
input[type="text"]:focus {
|
||
border-color: var(--primary-color);
|
||
box-shadow: 0 0 0 3px rgba(61, 124, 244, 0.2);
|
||
outline: none;
|
||
}
|
||
|
||
input[type="text"]::placeholder {
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
button {
|
||
background-color: var(--primary-color);
|
||
color: white;
|
||
border: none;
|
||
padding: 0.9rem 1.8rem;
|
||
border-radius: var(--radius-md);
|
||
cursor: pointer;
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
transition: all var(--transition-fast);
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
button:hover {
|
||
background-color: var(--primary-dark);
|
||
transform: translateY(-2px);
|
||
box-shadow: var(--shadow-md);
|
||
}
|
||
|
||
button:active {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
/* 搜索区域 */
|
||
.search-container {
|
||
display: flex;
|
||
gap: 1rem;
|
||
margin-bottom: 2rem;
|
||
}
|
||
|
||
.search-container input {
|
||
flex: 1;
|
||
}
|
||
|
||
.search-container button {
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* ===== 搜索结果样式 - 现代设计 ===== */
|
||
#searchResults {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
||
gap: 20px;
|
||
margin-top: 24px;
|
||
}
|
||
|
||
.search-result-item {
|
||
background: white;
|
||
border-radius: 16px;
|
||
border: 1px solid #e5e7eb;
|
||
padding: 24px;
|
||
transition: all 0.25s ease;
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.search-result-item:hover {
|
||
transform: translateY(-3px);
|
||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
|
||
border-color: #3b82f6;
|
||
}
|
||
|
||
.search-result-item h3 {
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
margin: 0 0 8px 0;
|
||
color: #1e293b;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.search-result-item h3 a {
|
||
color: #1e293b;
|
||
text-decoration: none;
|
||
transition: color 0.15s ease;
|
||
}
|
||
|
||
.search-result-item h3 a:hover {
|
||
color: #3b82f6;
|
||
}
|
||
|
||
.search-result-item p {
|
||
color: #64748b;
|
||
margin: 0 0 16px 0;
|
||
font-size: 14px;
|
||
line-height: 1.6;
|
||
flex-grow: 1;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
min-height: 44px;
|
||
}
|
||
|
||
.official-badge {
|
||
background: linear-gradient(135deg, #10b981, #059669);
|
||
color: white;
|
||
padding: 4px 12px;
|
||
border-radius: 20px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.official-badge i {
|
||
font-size: 10px;
|
||
}
|
||
|
||
.image-stats {
|
||
display: flex;
|
||
gap: 20px;
|
||
margin: 8px 0 0 0;
|
||
padding: 0;
|
||
border: none;
|
||
}
|
||
|
||
.stars, .pull-count {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 13px;
|
||
color: #64748b;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.stars i {
|
||
color: #f59e0b;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.pull-count i {
|
||
color: #3b82f6;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.button-group {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-top: auto;
|
||
padding-top: 16px;
|
||
border-top: 1px solid #f1f5f9;
|
||
}
|
||
|
||
.button-group button {
|
||
flex: 1;
|
||
font-size: 14px;
|
||
padding: 12px 20px;
|
||
border-radius: 10px;
|
||
font-weight: 600;
|
||
transition: all 0.2s ease;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.view-tags-btn {
|
||
background: #f8fafc;
|
||
color: #3b82f6;
|
||
border: 1px solid #e2e8f0;
|
||
}
|
||
|
||
.view-tags-btn:hover {
|
||
background: #f1f5f9;
|
||
border-color: #3b82f6;
|
||
color: #2563eb;
|
||
}
|
||
|
||
.use-image-btn, .button-group button:first-child:not(.view-tags-btn) {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
border: none;
|
||
}
|
||
|
||
.use-image-btn:hover, .button-group button:first-child:not(.view-tags-btn):hover {
|
||
background: linear-gradient(135deg, #2563eb, #1d4ed8);
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
|
||
}
|
||
|
||
/* 加速命令区 */
|
||
.input-group {
|
||
display: flex;
|
||
gap: 1rem;
|
||
margin-bottom: 2rem;
|
||
}
|
||
|
||
.input-group input {
|
||
flex: 1;
|
||
}
|
||
|
||
#result {
|
||
background-color: var(--background-color);
|
||
padding: 1.5rem;
|
||
border-radius: var(--radius-lg);
|
||
margin-top: 2rem;
|
||
}
|
||
|
||
#result h2 {
|
||
margin-top: 0;
|
||
color: var(--text-primary);
|
||
font-size: 1.5rem;
|
||
font-weight: 600;
|
||
margin-bottom: 1.5rem;
|
||
}
|
||
|
||
.step {
|
||
background: var(--container-bg);
|
||
padding: 1.2rem; /* 减小内边距 */
|
||
border-radius: var(--radius-md);
|
||
margin-bottom: 1rem; /* 减小步骤之间的间距 */
|
||
box-shadow: var(--shadow-sm);
|
||
border: 1px solid var(--border-light);
|
||
transition: transform var(--transition-normal);
|
||
}
|
||
|
||
.step:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: var(--shadow-md);
|
||
}
|
||
|
||
.step h3 {
|
||
color: var(--primary-color);
|
||
margin: 0 0 0.5rem 0; /* 减小标题下方间距 */
|
||
font-size: 1.1rem;
|
||
font-weight: 600;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.step h3::before {
|
||
content: "";
|
||
display: inline-block;
|
||
width: 24px;
|
||
height: 24px;
|
||
background-color: var(--primary-light);
|
||
border-radius: 50%;
|
||
color: white;
|
||
text-align: center;
|
||
line-height: 24px;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
/* 命令终端样式优化 */
|
||
.command-terminal {
|
||
background: #1F2937;
|
||
border-radius: var(--radius-md);
|
||
overflow: visible; /* 修改为visible以避免复制按钮被裁剪 */
|
||
position: relative;
|
||
margin-bottom: 0.75rem; /* 减小命令之间的间距 */
|
||
min-height: fit-content; /* 设置最小高度为内容自适应 */
|
||
}
|
||
|
||
.command-terminal pre {
|
||
margin: 0;
|
||
padding: 0;
|
||
background: transparent;
|
||
display: flex; /* 使用弹性布局 */
|
||
align-items: center; /* 垂直居中 */
|
||
min-height: 44px; /* 设置最小高度 */
|
||
}
|
||
|
||
.command-terminal code {
|
||
display: block;
|
||
padding: 0.6rem 1rem; /* 减小内边距 */
|
||
color: #F3F4F6;
|
||
font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
|
||
font-size: 0.95rem;
|
||
line-height: 1.4;
|
||
flex: 1; /* 占据剩余空间 */
|
||
}
|
||
|
||
/* 文档页面代码块样式 */
|
||
#documentationText .command-terminal pre {
|
||
max-height: none; /* 移除最大高度限制 */
|
||
overflow: visible; /* 移除滚动条 */
|
||
}
|
||
|
||
.terminal-header {
|
||
background: #111827;
|
||
padding: 8px 12px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.terminal-button {
|
||
width: 12px;
|
||
height: 12px;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.button-red { background: #FF5F57; }
|
||
.button-yellow { background: #FEBC2E; }
|
||
.button-green { background: #28C840; }
|
||
|
||
.copy-btn {
|
||
position: absolute;
|
||
top: 8px; /* 调整位置在终端标题栏右侧 */
|
||
right: 8px;
|
||
padding: 0.35rem 0.7rem;
|
||
font-size: 0.8rem;
|
||
background-color: rgba(255, 255, 255, 0.1);
|
||
border-radius: var(--radius-sm);
|
||
opacity: 0;
|
||
transition: opacity var(--transition-fast);
|
||
z-index: 10; /* 确保按钮始终在顶层 */
|
||
color: #F3F4F6;
|
||
border: none;
|
||
}
|
||
|
||
.command-terminal:hover .copy-btn {
|
||
opacity: 1;
|
||
}
|
||
|
||
.copy-btn:hover {
|
||
background-color: rgba(255, 255, 255, 0.3);
|
||
transform: translateY(0); /* 覆盖默认的按钮hover效果 */
|
||
}
|
||
|
||
/* ===== 标签展示区域 - 现代设计 ===== */
|
||
#imageTagsView {
|
||
width: 100%;
|
||
background: white;
|
||
border-radius: 20px;
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||
margin: 0;
|
||
padding: 32px;
|
||
border: 1px solid #f3f4f6;
|
||
}
|
||
|
||
.tag-header {
|
||
margin-bottom: 32px;
|
||
padding-bottom: 24px;
|
||
border-bottom: 1px solid #f3f4f6;
|
||
}
|
||
|
||
.tag-breadcrumb {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.tag-breadcrumb a {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
color: #6b7280;
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
font-size: 14px;
|
||
padding: 8px 16px;
|
||
border-radius: 8px;
|
||
background: #f3f4f6;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.tag-breadcrumb a:hover {
|
||
background: #e5e7eb;
|
||
color: #374151;
|
||
}
|
||
|
||
.tag-breadcrumb a::before {
|
||
content: "←";
|
||
font-size: 14px;
|
||
}
|
||
|
||
#currentImageTitle {
|
||
font-size: 28px;
|
||
font-weight: 700;
|
||
margin: 0 0 12px 0;
|
||
color: #111827;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
.image-description {
|
||
color: #6b7280;
|
||
margin-bottom: 20px;
|
||
line-height: 1.7;
|
||
font-size: 15px;
|
||
background: #f9fafb;
|
||
padding: 16px 20px;
|
||
border-radius: 12px;
|
||
border-left: 4px solid #3b82f6;
|
||
}
|
||
|
||
.image-meta {
|
||
display: flex;
|
||
gap: 24px;
|
||
margin-top: 16px;
|
||
}
|
||
|
||
.image-meta span {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 14px;
|
||
color: #6b7280;
|
||
}
|
||
|
||
.image-meta span i {
|
||
font-size: 16px;
|
||
}
|
||
|
||
.tag-search-container {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-bottom: 24px;
|
||
max-width: 480px;
|
||
}
|
||
|
||
.tag-search-container input {
|
||
flex: 1;
|
||
padding: 12px 16px;
|
||
border: 1px solid #e5e7eb;
|
||
border-radius: 10px;
|
||
font-size: 14px;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.tag-search-container input:focus {
|
||
outline: none;
|
||
border-color: #3b82f6;
|
||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||
}
|
||
|
||
/* 标签表格样式 - 现代设计 */
|
||
.tag-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
border-spacing: 0;
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
border: 1px solid #e5e7eb;
|
||
}
|
||
|
||
.tag-table th {
|
||
background: #f9fafb;
|
||
color: #374151;
|
||
text-align: left;
|
||
padding: 14px 20px;
|
||
font-weight: 600;
|
||
font-size: 13px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
border-bottom: 1px solid #e5e7eb;
|
||
}
|
||
|
||
.tag-table td {
|
||
padding: 16px 20px;
|
||
border-bottom: 1px solid #f3f4f6;
|
||
background: white;
|
||
font-size: 14px;
|
||
color: #374151;
|
||
}
|
||
|
||
.tag-table tr:last-child td {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.tag-table tbody tr {
|
||
transition: background-color 0.1s ease;
|
||
}
|
||
|
||
.tag-table tbody tr:hover td {
|
||
background: #fafbfc;
|
||
}
|
||
|
||
.tag-table td:first-child {
|
||
font-weight: 600;
|
||
color: #3b82f6;
|
||
}
|
||
|
||
.tag-table th:last-child,
|
||
.tag-table td:last-child {
|
||
text-align: right;
|
||
}
|
||
|
||
/* 标签名称样式 */
|
||
.tag-name {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-family: 'SF Mono', 'Monaco', monospace;
|
||
font-size: 13px;
|
||
background: #eff6ff;
|
||
color: #1d4ed8;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
/* OS/ARCH样式 */
|
||
.tag-os-arch {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin: 0;
|
||
}
|
||
|
||
.tag-os-arch-item {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 5px 10px;
|
||
background: #f3f4f6;
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
color: #4b5563;
|
||
font-family: 'SF Mono', 'Monaco', monospace;
|
||
}
|
||
|
||
.tag-os-arch-more {
|
||
color: #3b82f6;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
padding: 5px 10px;
|
||
text-decoration: none;
|
||
background: #eff6ff;
|
||
border-radius: 6px;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.tag-os-arch-more:hover {
|
||
background: #dbeafe;
|
||
}
|
||
|
||
.tag-os-arch-all {
|
||
display: none;
|
||
margin-top: 8px;
|
||
padding-left: 12px;
|
||
border-left: 2px solid #e5e7eb;
|
||
}
|
||
|
||
.tag-os-arch-all.show {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
}
|
||
|
||
/* 标签操作按钮 */
|
||
.tag-table .btn {
|
||
padding: 8px 14px;
|
||
border-radius: 8px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
/* 分页控件 - 现代设计 */
|
||
.pagination-container {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 16px;
|
||
margin-top: 32px;
|
||
padding-top: 24px;
|
||
border-top: 1px solid #f3f4f6;
|
||
}
|
||
|
||
.pagination-container button {
|
||
padding: 10px 20px;
|
||
border-radius: 10px;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
background: #f3f4f6;
|
||
color: #374151;
|
||
border: none;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.pagination-container button:hover:not(:disabled) {
|
||
background: #e5e7eb;
|
||
color: #111827;
|
||
}
|
||
|
||
.pagination-container button:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.pagination-container span {
|
||
font-size: 14px;
|
||
color: #6b7280;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.pagination-container button:disabled {
|
||
background-color: var(--text-muted);
|
||
cursor: not-allowed;
|
||
transform: none;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.pagination-container span {
|
||
display: flex;
|
||
align-items: center;
|
||
color: var(--text-secondary);
|
||
font-weight: 500;
|
||
}
|
||
|
||
/* ===== 文档区样式 - 2024现代设计 ===== */
|
||
#documentationContent.active {
|
||
display: grid;
|
||
grid-template-columns: 300px 1fr;
|
||
gap: 32px;
|
||
align-items: start;
|
||
}
|
||
|
||
/* 文档列表侧边栏 */
|
||
#documentList {
|
||
position: sticky;
|
||
top: 100px;
|
||
background: white;
|
||
border-radius: 16px;
|
||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.05);
|
||
padding: 24px;
|
||
max-height: calc(100vh - 140px);
|
||
overflow-y: auto;
|
||
}
|
||
|
||
#documentList h2 {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
margin: 0 0 20px 0;
|
||
padding: 0 0 16px 0;
|
||
border-bottom: 1px solid #f3f4f6;
|
||
color: #6b7280;
|
||
}
|
||
|
||
#documentList ul {
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0;
|
||
}
|
||
|
||
#documentList li {
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
#documentList a {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 12px 16px;
|
||
color: #374151;
|
||
text-decoration: none;
|
||
border-radius: 10px;
|
||
transition: all 0.15s ease;
|
||
font-weight: 500;
|
||
font-size: 14px;
|
||
border: 1px solid transparent;
|
||
}
|
||
|
||
#documentList a i {
|
||
font-size: 16px;
|
||
color: #9ca3af;
|
||
transition: color 0.15s ease;
|
||
width: 20px;
|
||
text-align: center;
|
||
}
|
||
|
||
#documentList a:hover {
|
||
background: #f9fafb;
|
||
color: #111827;
|
||
border-color: #f3f4f6;
|
||
}
|
||
|
||
#documentList a:hover i {
|
||
color: #3b82f6;
|
||
}
|
||
|
||
#documentList a.active {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
|
||
border-color: transparent;
|
||
}
|
||
|
||
#documentList a.active i {
|
||
color: white;
|
||
}
|
||
|
||
/* ===== 文档内容区域优化样式 ===== */
|
||
#documentationText {
|
||
padding: 40px 48px;
|
||
max-width: 100%;
|
||
line-height: 1.75;
|
||
font-size: 16px;
|
||
color: #374151;
|
||
background: white;
|
||
border-radius: 16px;
|
||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.05);
|
||
margin: 0;
|
||
}
|
||
|
||
/* 标题样式层次化 - 现代设计 */
|
||
#documentationText h1 {
|
||
font-size: 2.25em;
|
||
font-weight: 700;
|
||
color: #111827;
|
||
margin: 0 0 24px 0;
|
||
padding-bottom: 20px;
|
||
border-bottom: 1px solid #f3f4f6;
|
||
letter-spacing: -0.025em;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
#documentationText h2 {
|
||
font-size: 1.5em;
|
||
font-weight: 600;
|
||
color: #111827;
|
||
margin: 48px 0 20px 0;
|
||
padding-bottom: 12px;
|
||
border-bottom: 1px solid #f3f4f6;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
#documentationText h2:first-of-type {
|
||
margin-top: 32px;
|
||
}
|
||
|
||
#documentationText h3 {
|
||
font-size: 1.25em;
|
||
font-weight: 600;
|
||
color: #1f2937;
|
||
margin: 32px 0 16px 0;
|
||
}
|
||
|
||
#documentationText h4 {
|
||
font-size: 1.1em;
|
||
font-weight: 600;
|
||
color: #374151;
|
||
margin: 24px 0 12px 0;
|
||
}
|
||
|
||
#documentationText h5 {
|
||
font-size: 1em;
|
||
font-weight: 600;
|
||
color: #4b5563;
|
||
margin: 20px 0 10px 0;
|
||
}
|
||
|
||
#documentationText h6 {
|
||
font-size: 0.875em;
|
||
font-weight: 600;
|
||
color: #6b7280;
|
||
margin: 16px 0 8px 0;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
}
|
||
|
||
/* 段落和文本样式 */
|
||
#documentationText p {
|
||
margin-bottom: 20px;
|
||
font-size: 16px;
|
||
line-height: 1.75;
|
||
color: #4b5563;
|
||
}
|
||
|
||
#documentationText p:first-of-type {
|
||
font-size: 17px;
|
||
color: #374151;
|
||
font-weight: 400;
|
||
}
|
||
|
||
/* 列表样式优化 - 现代设计 */
|
||
#documentationText ul, #documentationText ol {
|
||
padding-left: 0;
|
||
margin: 24px 0;
|
||
list-style: none;
|
||
}
|
||
|
||
#documentationText ul li {
|
||
position: relative;
|
||
margin-bottom: 12px;
|
||
padding-left: 24px;
|
||
line-height: 1.7;
|
||
color: #4b5563;
|
||
}
|
||
|
||
#documentationText ul li::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 8px;
|
||
top: 10px;
|
||
width: 6px;
|
||
height: 6px;
|
||
background: #3b82f6;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
#documentationText ol {
|
||
counter-reset: ordered-list;
|
||
}
|
||
|
||
#documentationText ol li {
|
||
position: relative;
|
||
margin-bottom: 12px;
|
||
padding-left: 32px;
|
||
counter-increment: ordered-list;
|
||
line-height: 1.7;
|
||
color: #4b5563;
|
||
}
|
||
|
||
#documentationText ol li::before {
|
||
content: counter(ordered-list);
|
||
position: absolute;
|
||
left: 0;
|
||
top: 2px;
|
||
width: 22px;
|
||
height: 22px;
|
||
background: #eff6ff;
|
||
color: #3b82f6;
|
||
border-radius: 6px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-weight: 600;
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* 嵌套列表样式 */
|
||
#documentationText ul ul, #documentationText ol ul {
|
||
margin: 8px 0;
|
||
padding-left: 16px;
|
||
}
|
||
|
||
#documentationText ul ul li::before {
|
||
background: #93c5fd;
|
||
width: 5px;
|
||
height: 5px;
|
||
}
|
||
|
||
/* 代码块样式 - 现代设计 */
|
||
#documentationText pre {
|
||
background: #1e293b;
|
||
color: #e2e8f0;
|
||
padding: 0;
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
margin: 24px 0;
|
||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||
border: 1px solid #334155;
|
||
position: relative;
|
||
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
|
||
}
|
||
|
||
/* 代码块头部 - 终端样式 */
|
||
#documentationText pre::before {
|
||
content: '';
|
||
display: block;
|
||
padding: 12px 16px;
|
||
background: #334155;
|
||
border-bottom: 1px solid #475569;
|
||
position: relative;
|
||
}
|
||
|
||
/* 模拟终端按钮 */
|
||
#documentationText pre::after {
|
||
content: '';
|
||
position: absolute;
|
||
top: 14px;
|
||
left: 16px;
|
||
width: 12px;
|
||
height: 12px;
|
||
background: #ef4444;
|
||
border-radius: 50%;
|
||
box-shadow:
|
||
18px 0 #eab308,
|
||
36px 0 #22c55e;
|
||
}
|
||
|
||
#documentationText pre code {
|
||
display: block;
|
||
padding: 20px 24px;
|
||
background: transparent;
|
||
color: inherit;
|
||
border: none;
|
||
border-radius: 0;
|
||
font-family: inherit;
|
||
font-size: 14px;
|
||
line-height: 1.65;
|
||
white-space: pre;
|
||
overflow-x: auto;
|
||
}
|
||
|
||
/* 行内代码样式 */
|
||
#documentationText code {
|
||
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
|
||
background: #f1f5f9;
|
||
color: #0f172a;
|
||
padding: 3px 8px;
|
||
border-radius: 6px;
|
||
font-size: 14px;
|
||
border: 1px solid #e2e8f0;
|
||
}
|
||
|
||
/* 代码块头部 - doc-content 类 */
|
||
.doc-content pre::before {
|
||
content: attr(data-language, 'Code');
|
||
display: block;
|
||
padding: 12px 16px;
|
||
background: #334155;
|
||
color: #94a3b8;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
border-bottom: 1px solid #475569;
|
||
position: relative;
|
||
}
|
||
|
||
/* 模拟 macOS 窗口按钮 */
|
||
.doc-content pre::after {
|
||
content: '';
|
||
position: absolute;
|
||
top: 14px;
|
||
right: 16px;
|
||
width: 12px;
|
||
height: 12px;
|
||
background: #ef4444;
|
||
border-radius: 50%;
|
||
box-shadow:
|
||
-18px 0 #eab308,
|
||
-36px 0 #22c55e;
|
||
}
|
||
|
||
.doc-content pre code {
|
||
display: block;
|
||
padding: 20px 24px;
|
||
background: transparent;
|
||
color: inherit;
|
||
border: none;
|
||
border-radius: 0;
|
||
font-family: inherit;
|
||
font-size: 14px;
|
||
line-height: 1.65;
|
||
white-space: pre;
|
||
overflow-x: auto;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
|
||
}
|
||
|
||
.doc-content pre code::-webkit-scrollbar {
|
||
height: 6px;
|
||
}
|
||
|
||
.doc-content pre code::-webkit-scrollbar-track {
|
||
background: transparent;
|
||
}
|
||
|
||
.doc-content pre code::-webkit-scrollbar-thumb {
|
||
background: rgba(255, 255, 255, 0.3);
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.doc-content pre code::-webkit-scrollbar-thumb:hover {
|
||
background: rgba(255, 255, 255, 0.5);
|
||
}
|
||
|
||
/* 行内代码样式优化 */
|
||
.doc-content code {
|
||
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
|
||
font-size: 14px;
|
||
background: #f1f5f9;
|
||
color: #0f172a;
|
||
padding: 3px 8px;
|
||
border-radius: 6px;
|
||
border: 1px solid #e2e8f0;
|
||
}
|
||
|
||
/* 链接样式优化 */
|
||
.doc-content a {
|
||
color: #3b82f6;
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.doc-content a:hover {
|
||
color: #2563eb;
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* 引用块样式 - 现代设计 */
|
||
.doc-content blockquote {
|
||
margin: 24px 0;
|
||
padding: 20px 24px;
|
||
background: #f8fafc;
|
||
border-left: 4px solid #3b82f6;
|
||
border-radius: 0 12px 12px 0;
|
||
}
|
||
|
||
.doc-content blockquote p {
|
||
margin: 0;
|
||
color: #475569;
|
||
font-size: 15px;
|
||
line-height: 1.7;
|
||
}
|
||
|
||
.doc-content blockquote p:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
/* 表格样式 - 现代设计 */
|
||
.doc-content table {
|
||
border-collapse: collapse;
|
||
border-spacing: 0;
|
||
margin: 24px 0;
|
||
width: 100%;
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
border: 1px solid #e5e7eb;
|
||
}
|
||
|
||
.doc-content th {
|
||
background: #f9fafb;
|
||
color: #374151;
|
||
font-weight: 600;
|
||
padding: 14px 20px;
|
||
text-align: left;
|
||
font-size: 13px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
border-bottom: 1px solid #e5e7eb;
|
||
}
|
||
|
||
.doc-content td {
|
||
padding: 14px 20px;
|
||
border-bottom: 1px solid #f3f4f6;
|
||
background: white;
|
||
color: #4b5563;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.doc-content tr:nth-child(even) td {
|
||
background: #fafbfc;
|
||
}
|
||
|
||
.doc-content tr:last-child td {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.doc-content tr:hover td {
|
||
background: #f3f4f6;
|
||
}
|
||
|
||
/* 分隔线样式 */
|
||
.doc-content hr {
|
||
border: none;
|
||
height: 1px;
|
||
background: #e5e7eb;
|
||
margin: 32px 0;
|
||
}
|
||
|
||
/* 图片样式优化 */
|
||
.doc-content img {
|
||
max-width: 100%;
|
||
height: auto;
|
||
border-radius: 12px;
|
||
border: 1px solid #e5e7eb;
|
||
margin: 24px 0;
|
||
}
|
||
|
||
/* 强调文本样式 */
|
||
.doc-content strong {
|
||
font-weight: 600;
|
||
color: #111827;
|
||
}
|
||
|
||
.doc-content em {
|
||
font-style: italic;
|
||
color: #6b7280;
|
||
}
|
||
|
||
/* 复制按钮样式优化 */
|
||
.copy-btn {
|
||
position: absolute;
|
||
top: 0.8rem;
|
||
right: 4rem;
|
||
background: rgba(255, 255, 255, 0.1);
|
||
color: #d1d5db;
|
||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
padding: 8px 16px;
|
||
border-radius: 8px;
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.copy-btn:hover {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
color: white;
|
||
}
|
||
|
||
/* 元数据样式优化 */
|
||
.doc-meta {
|
||
margin-top: 40px;
|
||
padding: 16px 20px;
|
||
background: #f9fafb;
|
||
border-radius: 10px;
|
||
font-size: 13px;
|
||
color: #6b7280;
|
||
border: 1px solid #f3f4f6;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 8px;
|
||
}
|
||
|
||
.doc-meta i {
|
||
font-size: 14px;
|
||
color: #9ca3af;
|
||
}
|
||
|
||
.doc-meta span {
|
||
line-height: 1;
|
||
}
|
||
|
||
/* 空内容和错误状态样式 */
|
||
.empty-content, .error-container {
|
||
text-align: center;
|
||
padding: 64px 32px;
|
||
color: #9ca3af;
|
||
}
|
||
|
||
.empty-content i, .error-container i {
|
||
font-size: 48px;
|
||
margin-bottom: 20px;
|
||
color: #d1d5db;
|
||
}
|
||
|
||
.empty-content h2, .error-container h2 {
|
||
color: #374151;
|
||
margin-bottom: 8px;
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.empty-content p, .error-container p {
|
||
color: #6b7280;
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* 加载状态样式优化 */
|
||
.loading-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 64px 32px;
|
||
color: #3b82f6;
|
||
}
|
||
|
||
.loading-container i {
|
||
font-size: 24px;
|
||
margin-bottom: 16px;
|
||
animation: spin 1s linear infinite;
|
||
}
|
||
|
||
@keyframes spin {
|
||
0% { transform: rotate(0deg); }
|
||
100% { transform: rotate(360deg); }
|
||
}
|
||
|
||
/* 文档列表样式优化 */
|
||
.doc-list {
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0;
|
||
}
|
||
|
||
.doc-item {
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.doc-item a {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 12px 16px;
|
||
color: #374151;
|
||
text-decoration: none;
|
||
border-radius: 10px;
|
||
transition: all 0.15s ease;
|
||
border: 1px solid transparent;
|
||
font-weight: 500;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.doc-item a:hover {
|
||
background: #f9fafb;
|
||
color: #111827;
|
||
border-color: #f3f4f6;
|
||
}
|
||
|
||
.doc-item a.active {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
|
||
border-color: transparent;
|
||
}
|
||
|
||
.doc-item a i {
|
||
font-size: 16px;
|
||
color: #9ca3af;
|
||
width: 20px;
|
||
text-align: center;
|
||
transition: color 0.15s ease;
|
||
}
|
||
|
||
.doc-item a:hover i {
|
||
color: #3b82f6;
|
||
}
|
||
|
||
.doc-item a.active i {
|
||
color: white;
|
||
}
|
||
|
||
/* 响应式优化 */
|
||
@media (max-width: 768px) {
|
||
#documentationContent.active {
|
||
grid-template-columns: 1fr;
|
||
gap: 20px;
|
||
}
|
||
|
||
#documentList {
|
||
position: static;
|
||
max-height: none;
|
||
}
|
||
|
||
#documentationText {
|
||
padding: 24px;
|
||
}
|
||
|
||
#documentationText h1 {
|
||
font-size: 1.75rem;
|
||
}
|
||
|
||
#documentationText h2 {
|
||
font-size: 1.35rem;
|
||
margin: 32px 0 16px 0;
|
||
}
|
||
}
|
||
|
||
/* 加载中和消息提示 */
|
||
.loading-indicator {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
padding: 3rem 0;
|
||
color: var(--text-secondary);
|
||
font-size: 1.1rem;
|
||
}
|
||
|
||
.loading-indicator::after {
|
||
content: "...";
|
||
animation: loading-dots 1.5s infinite;
|
||
}
|
||
|
||
@keyframes loading-dots {
|
||
0%, 20% { content: "."; }
|
||
40% { content: ".."; }
|
||
60%, 100% { content: "..."; }
|
||
}
|
||
|
||
.message-container {
|
||
padding: 3rem 0;
|
||
text-align: center;
|
||
color: var(--text-secondary);
|
||
font-size: 1.1rem;
|
||
}
|
||
|
||
/* TAG搜索无结果提示 */
|
||
.no-filter-results {
|
||
margin: 1rem 0;
|
||
border-radius: var(--radius-md);
|
||
border: 1px dashed var (--border-color);
|
||
color: var(--text-muted);
|
||
text-align: center;
|
||
padding: 2rem;
|
||
}
|
||
|
||
/* 复制按钮位置调整 */
|
||
.copy-btn {
|
||
position: absolute;
|
||
top: 8px; /* 调整位置在终端标题栏右侧 */
|
||
right: 8px;
|
||
padding: 0.35rem 0.7rem;
|
||
font-size: 0.8rem;
|
||
background-color: rgba(255, 255, 255, 0.1);
|
||
border-radius: var(--radius-sm);
|
||
opacity: 0;
|
||
transition: opacity var(--transition-fast);
|
||
z-index: 10; /* 确保按钮始终在顶层 */
|
||
color: #F3F4F6;
|
||
border: none;
|
||
}
|
||
|
||
.command-terminal:hover .copy-btn {
|
||
opacity: 1;
|
||
}
|
||
|
||
.copy-btn:hover {
|
||
background-color: rgba(255, 255, 255, 0.3);
|
||
transform: translateY(0); /* 覆盖默认的按钮hover效果 */
|
||
}
|
||
|
||
/* 标签展示区域 - 已在上方定义,这里覆盖移动端适配 */
|
||
|
||
/* 标签搜索栏优化 */
|
||
.tag-search-container {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-bottom: 24px;
|
||
max-width: 480px;
|
||
}
|
||
|
||
.tag-search-container input {
|
||
flex: 1;
|
||
padding: 12px 16px;
|
||
border: 1px solid #e5e7eb;
|
||
border-radius: 10px;
|
||
font-size: 14px;
|
||
background: white;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.tag-search-container input:focus {
|
||
outline: none;
|
||
border-color: #3b82f6;
|
||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||
}
|
||
|
||
.tag-search-container .search-btn {
|
||
padding: 12px 20px;
|
||
white-space: nowrap;
|
||
background: #3b82f6;
|
||
color: white;
|
||
border: none;
|
||
border-radius: 10px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.tag-search-container .search-btn:hover {
|
||
background: #2563eb;
|
||
}
|
||
|
||
/* 标签统计信息 */
|
||
.tag-search-stats {
|
||
margin-bottom: 16px;
|
||
padding: 12px 16px;
|
||
background: #f9fafb;
|
||
border-radius: 10px;
|
||
color: #6b7280;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.tag-search-stats p {
|
||
margin: 0;
|
||
}
|
||
|
||
.tag-search-stats strong {
|
||
color: #3b82f6;
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* 标签表格容器 */
|
||
.tag-table-container {
|
||
width: 100%;
|
||
overflow-x: auto;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
/* 加载容器样式 */
|
||
.loading-container {
|
||
width: 100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
padding: 48px 0;
|
||
}
|
||
|
||
/* 优化分页控件样式 */
|
||
.pagination-container {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 1.5rem;
|
||
margin-top: 2rem;
|
||
padding: 1rem 0;
|
||
border-top: 1px solid var(--border-light);
|
||
}
|
||
|
||
.pagination-container button {
|
||
padding: 0.6rem 1.2rem;
|
||
border-radius: var(--radius-md);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.pagination-container button:disabled {
|
||
background-color: var(--text-muted);
|
||
cursor: not-allowed;
|
||
transform: none;
|
||
box-shadow: none;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.pagination-container span {
|
||
display: flex;
|
||
align-items: center;
|
||
color: var(--text-secondary);
|
||
font-weight: 500;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
/* 优化按钮样式 */
|
||
.primary-btn {
|
||
background-color: var(--primary-color);
|
||
color: white;
|
||
border: none;
|
||
padding: 0.5rem 1rem;
|
||
border-radius: var(--radius-md);
|
||
font-size: 0.9rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all var(--transition-fast);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.primary-btn:hover {
|
||
background-color: var(--primary-dark);
|
||
transform: translateY(-2px);
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
/* 页脚 */
|
||
.footer {
|
||
background-color: var(--container-bg);
|
||
padding: 2rem 0;
|
||
text-align: center;
|
||
margin-top: 4rem;
|
||
border-top: 1px solid var(--border-light);
|
||
position: relative;
|
||
}
|
||
|
||
.footer p {
|
||
color: var(--text-secondary);
|
||
font-size: 0.95rem;
|
||
margin: 0;
|
||
}
|
||
|
||
.footer a {
|
||
color: var(--primary-color);
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
position: relative;
|
||
}
|
||
|
||
.footer a::after {
|
||
content: '';
|
||
position: absolute;
|
||
bottom: -2px;
|
||
left: 0;
|
||
width: 0;
|
||
height: 1px;
|
||
background-color: var(--primary-color);
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.footer a:hover::after {
|
||
width: 100%;
|
||
}
|
||
|
||
.copyright-text {
|
||
font-weight: 600;
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
/* ===== 返回顶部按钮 ===== */
|
||
.back-to-top-btn {
|
||
position: fixed;
|
||
bottom: 32px;
|
||
right: 32px;
|
||
width: 48px;
|
||
height: 48px;
|
||
border-radius: 50%;
|
||
background: #3b82f6;
|
||
color: white;
|
||
border: none;
|
||
cursor: pointer;
|
||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
|
||
z-index: 1000;
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transform: translateY(20px);
|
||
transition: all 0.3s ease;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 18px;
|
||
}
|
||
|
||
.back-to-top-btn.visible {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.back-to-top-btn:hover {
|
||
background: #2563eb;
|
||
transform: translateY(-4px);
|
||
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
|
||
}
|
||
|
||
.back-to-top-btn:active {
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.back-to-top-btn {
|
||
bottom: 20px;
|
||
right: 20px;
|
||
width: 44px;
|
||
height: 44px;
|
||
font-size: 16px;
|
||
}
|
||
}
|
||
|
||
/* 响应式设计 */
|
||
@media (max-width: 1200px) {
|
||
.container {
|
||
width: 95%;
|
||
}
|
||
.page-title {
|
||
font-size: 2rem;
|
||
}
|
||
/* 优化标签页面在中等屏幕上的显示 */
|
||
.tag-table th, .tag-table td {
|
||
padding: 0.75rem 1rem;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 992px) {
|
||
.input-group, .search-container {
|
||
flex-direction: column;
|
||
}
|
||
.page-title {
|
||
font-size: 2rem;
|
||
}
|
||
.content {
|
||
padding: 2rem;
|
||
}
|
||
|
||
#searchResults {
|
||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||
}
|
||
#documentationContent.active {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
#documentList {
|
||
border-right: none;
|
||
padding-right: 0;
|
||
padding-bottom: 1.5rem;
|
||
margin-bottom: 1.5rem;
|
||
}
|
||
/* 优化标签页面在平板上的显示 */
|
||
.tag-table th:nth-child(2),
|
||
.tag-table td:nth-child(2) {
|
||
max-width: 150px; /* 限制OS/ARCH列宽度 */
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.tab-container {
|
||
flex-wrap: wrap;
|
||
}
|
||
.tab {
|
||
max-width: none;
|
||
flex: 0 0 100%;
|
||
}
|
||
.header-content {
|
||
flex-direction: column;
|
||
padding: 1rem;
|
||
}
|
||
.nav-menu {
|
||
width: 100%;
|
||
margin-top: 1rem;
|
||
justify-content: center;
|
||
}
|
||
.content {
|
||
padding: 1.5rem;
|
||
}
|
||
.search-result-item {
|
||
padding: 1.2rem;
|
||
}
|
||
/* 调整标签视图在移动设备上的显示 */
|
||
#imageTagsView {
|
||
padding: 1rem;
|
||
}
|
||
|
||
.tag-header {
|
||
margin-bottom: 1rem;
|
||
}
|
||
|
||
.tag-table th:nth-child(4),
|
||
.tag-table td:nth-child(4),
|
||
.tag-table th:nth-child(3),
|
||
.tag-table td:nth-child(3) {
|
||
display: none; /* 在小屏幕上隐藏日期和大小列 */
|
||
}
|
||
}
|
||
|
||
@media (max-width: 576px) {
|
||
.page-title {
|
||
font-size: 1.8rem;
|
||
}
|
||
#searchResults {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.tag-table th, .tag-table td {
|
||
padding: 0.8rem;
|
||
}
|
||
}
|
||
|
||
/* 新增: 特性卡片样式 */
|
||
.features {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||
gap: 2rem;
|
||
margin-top: 2rem;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
.feature-card {
|
||
background: var(--container-bg);
|
||
padding: 2rem;
|
||
border-radius: var(--radius-lg);
|
||
text-align: center;
|
||
transition: all var(--transition-normal);
|
||
border: 1px solid var(--border-light);
|
||
}
|
||
|
||
.feature-card:hover {
|
||
transform: translateY(-5px);
|
||
box-shadow: var(--shadow-lg);
|
||
}
|
||
|
||
.feature-card i {
|
||
font-size: 2.5rem;
|
||
color: var(--primary-color);
|
||
margin-bottom: 1.5rem;
|
||
}
|
||
|
||
.feature-card h3 {
|
||
color: var(--text-primary);
|
||
margin-bottom: 1rem;
|
||
}
|
||
|
||
.feature-card p {
|
||
color: var(--text-secondary);
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
/* 搜索结果项样式优化 */
|
||
.result-header {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.title-badge {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.title-badge h3 {
|
||
margin: 0;
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
color: #1e293b;
|
||
}
|
||
|
||
.result-stats {
|
||
display: flex;
|
||
gap: 16px;
|
||
color: #64748b;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.stats {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.stats i {
|
||
font-size: 13px;
|
||
}
|
||
|
||
.stats i.fa-star {
|
||
color: #fbbf24;
|
||
}
|
||
|
||
.stats i.fa-download {
|
||
color: #3b82f6;
|
||
}
|
||
|
||
.result-description {
|
||
margin: 0 0 16px 0;
|
||
color: #64748b;
|
||
font-size: 14px;
|
||
line-height: 1.6;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
flex-grow: 1;
|
||
}
|
||
|
||
.result-actions {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-top: auto;
|
||
padding-top: 16px;
|
||
border-top: 1px solid #f1f5f9;
|
||
}
|
||
|
||
.action-btn {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
padding: 12px 20px;
|
||
border-radius: 10px;
|
||
font-weight: 600;
|
||
font-size: 14px;
|
||
transition: all 0.2s ease;
|
||
cursor: pointer;
|
||
border: none;
|
||
}
|
||
|
||
.action-btn.primary {
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
}
|
||
|
||
.action-btn.primary:hover {
|
||
background: linear-gradient(135deg, #2563eb, #1d4ed8);
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
|
||
}
|
||
|
||
.action-btn.secondary {
|
||
background: #f8fafc;
|
||
color: #3b82f6;
|
||
border: 1px solid #e2e8f0;
|
||
}
|
||
|
||
.action-btn:hover {
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.action-btn.secondary:hover {
|
||
background: #f1f5f9;
|
||
color: #2563eb;
|
||
border-color: #3b82f6;
|
||
}
|
||
|
||
/* 通知提示样式 */
|
||
.notification-container {
|
||
position: fixed;
|
||
top: 20px;
|
||
right: 20px;
|
||
z-index: 1000;
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.notification {
|
||
background: white;
|
||
border-radius: var(--radius-md);
|
||
padding: 1rem 1.5rem;
|
||
margin-bottom: 10px;
|
||
box-shadow: var(--shadow-lg);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
animation: slideIn 0.3s ease-out;
|
||
}
|
||
|
||
.notification.success {
|
||
border-left: 4px solid var(--success-color);
|
||
}
|
||
|
||
.notification.error {
|
||
border-left: 4px solid var(--danger-color);
|
||
}
|
||
|
||
@keyframes slideIn {
|
||
from {
|
||
transform: translateX(100%);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: translateX(0);
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
/* 加载动画样式 */
|
||
.loading-overlay {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(255, 255, 255, 0.9);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1000;
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.loading-overlay.active {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
}
|
||
|
||
.loading-spinner {
|
||
width: 40px;
|
||
height: 40px;
|
||
border: 3px solid var(--border-light);
|
||
border-top-color: var(--primary-color);
|
||
border-radius: 50%;
|
||
animation: spin 1s linear infinite;
|
||
}
|
||
|
||
@keyframes spin {
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
/* 快速指南样式 */
|
||
.quick-guide {
|
||
background: #f8f9fa;
|
||
padding: 1.5rem;
|
||
border-radius: 8px;
|
||
margin: 2rem 0;
|
||
border: 1px solid var(--border-color);
|
||
}
|
||
|
||
/* TAG页面样式优化 */
|
||
.image-meta-info {
|
||
margin: 1.5rem 0;
|
||
padding: 1rem;
|
||
background: var(--background-color);
|
||
border-radius: var(--radius-lg);
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.image-stats-large {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2rem;
|
||
}
|
||
|
||
.stat-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.stat-value {
|
||
font-size: 1.5rem;
|
||
font-weight: 600;
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.stat-label {
|
||
font-size: 0.9rem;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.stat-divider {
|
||
width: 1px;
|
||
height: 40px;
|
||
background: var(--border-light);
|
||
}
|
||
|
||
.official-badge-large {
|
||
background: var(--success-color);
|
||
color: white;
|
||
padding: 0.5rem 1rem;
|
||
border-radius: var(--radius-md);
|
||
font-weight: 500;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.image-description-card {
|
||
background: var(--background-color);
|
||
border-radius: var(--radius-lg);
|
||
padding: 1.5rem;
|
||
margin: 1.5rem 0;
|
||
border-left: 4px solid var(--primary-color);
|
||
}
|
||
|
||
.image-description-card h3 {
|
||
color: var(--text-primary);
|
||
margin-bottom: 1rem;
|
||
font-size: 1.1rem;
|
||
}
|
||
|
||
.image-description-card p {
|
||
color: var(--text-secondary);
|
||
line-height: 1.6;
|
||
margin: 0;
|
||
}
|
||
|
||
.tag-search-container {
|
||
background: var(--container-bg);
|
||
padding: 1rem;
|
||
border-radius: var(--radius-lg);
|
||
box-shadow: var(--shadow-sm);
|
||
margin: 1.5rem 0;
|
||
}
|
||
|
||
/* 标签表格样式优化 */
|
||
.tag-table {
|
||
background: var(--container-bg);
|
||
margin-top: 1.5rem;
|
||
border: 1px solid var(--border-light);
|
||
box-shadow: var(--shadow-sm);
|
||
}
|
||
|
||
.tag-table th {
|
||
background: var (--primary-color);
|
||
color: white;
|
||
padding: 1rem;
|
||
font-weight: 600;
|
||
text-align: left;
|
||
}
|
||
|
||
.tag-table td {
|
||
padding: 1rem;
|
||
border-bottom: 1px solid var(--border-light);
|
||
background-color: var(--container-bg);
|
||
}
|
||
|
||
.tag-table tr:hover td {
|
||
background: rgba(61, 124, 244, 0.05);
|
||
}
|
||
|
||
.tag-table button {
|
||
background: var(--primary-color);
|
||
color: white;
|
||
padding: 0.5rem 1rem;
|
||
border-radius: var(--radius-md);
|
||
border: none;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.tag-table button:hover {
|
||
background: var(--primary-dark);
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
/* 搜索结果容器样式 */
|
||
#searchResultsContainer {
|
||
width: 100%;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
/* 搜索结果列表样式 */
|
||
#searchResultsList {
|
||
width: 100%;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
.no-filter-results {
|
||
margin: 1rem 0;
|
||
border-radius: var(--radius-md);
|
||
border: 1px dashed var(--border-color);
|
||
color: var(--text-muted);
|
||
text-align: center;
|
||
padding: 2rem;
|
||
transition: all var(--transition-normal);
|
||
}
|
||
|
||
/* 提示消息样式 */
|
||
.toast-notification {
|
||
position: fixed;
|
||
top: 20px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
background-color: var(--container-bg);
|
||
color: var(--text-primary);
|
||
padding: 1rem 2rem;
|
||
border-radius: var(--radius-md);
|
||
box-shadow: var(--shadow-lg);
|
||
z-index: 1100;
|
||
animation: fadeIn 0.3s ease-in;
|
||
text-align: center;
|
||
max-width: 90%;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.toast-notification i {
|
||
font-size: 1.2rem;
|
||
}
|
||
|
||
.toast-notification.error {
|
||
border-left: 4px solid var(--danger-color);
|
||
}
|
||
|
||
.toast-notification.error i {
|
||
color: var(--danger-color);
|
||
}
|
||
|
||
.toast-notification.info {
|
||
border-left: 4px solid var(--info-color);
|
||
}
|
||
|
||
.toast-notification.info i {
|
||
color: var(--info-color);
|
||
}
|
||
|
||
.toast-notification.fade-out {
|
||
opacity: 0;
|
||
transition: opacity 0.3s ease-out;
|
||
}
|
||
|
||
/* 标签排序容器样式 */
|
||
.tag-sort-container {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 16px;
|
||
padding: 12px 16px;
|
||
background: #f9fafb;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
.tag-sort-container label {
|
||
font-weight: 500;
|
||
color: #6b7280;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.tag-sort-container select {
|
||
padding: 8px 16px;
|
||
border: 1px solid #e5e7eb;
|
||
border-radius: 8px;
|
||
background: white;
|
||
color: #374151;
|
||
font-size: 14px;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.tag-sort-container select:focus {
|
||
border-color: #3b82f6;
|
||
outline: none;
|
||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||
}
|
||
|
||
/* 增强标签列表用户体验 */
|
||
.tag-table {
|
||
table-layout: fixed; /* 固定表格布局以提高渲染性能 */
|
||
width: 100%;
|
||
}
|
||
|
||
.tag-table td {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: normal; /* 允许文本换行 */
|
||
}
|
||
|
||
/* 优化分页样式 */
|
||
.pagination-container {
|
||
margin-top: 2rem;
|
||
padding-top: 1rem;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
border-top: 1px solid var(--border-light);
|
||
}
|
||
|
||
.pagination-container .pagination-info {
|
||
font-size: 0.9rem;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.pagination-controls {
|
||
display: flex;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.pagination-container button {
|
||
padding: 0.5rem 1rem;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
/* 优化加载指示器 */
|
||
.loading-indicator {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
padding: 3rem;
|
||
color: var(--text-secondary);
|
||
font-size: 1.1rem;
|
||
}
|
||
|
||
/* 标签动作区域 */
|
||
.tag-actions {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 2rem;
|
||
gap: 1.5rem;
|
||
}
|
||
|
||
/* 修改标签搜索容器样式以适应新布局 */
|
||
.tag-search-container {
|
||
display: flex;
|
||
gap: 1rem;
|
||
padding: 1rem;
|
||
background-color: var(--background-color);
|
||
border-radius: var(--radius-lg);
|
||
box-shadow: var(--shadow-sm);
|
||
flex: 1;
|
||
margin: 0; /* 覆盖之前的margin设置 */
|
||
}
|
||
|
||
/* 加载全部标签按钮 */
|
||
.load-all-btn {
|
||
white-space: nowrap;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 12px 20px;
|
||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||
color: white;
|
||
font-weight: 500;
|
||
font-size: 14px;
|
||
border: none;
|
||
border-radius: 10px;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
|
||
}
|
||
|
||
.load-all-btn:hover:not(:disabled) {
|
||
background: linear-gradient(135deg, #2563eb, #1d4ed8);
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
|
||
}
|
||
|
||
.load-all-btn:disabled {
|
||
background: #9ca3af;
|
||
cursor: not-allowed;
|
||
transform: none;
|
||
box-shadow: none;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
/* 旋转加载图标动画 */
|
||
@keyframes spin {
|
||
0% { transform: rotate(0deg); }
|
||
100% { transform: rotate(360deg); }
|
||
}
|
||
|
||
.fa-spin {
|
||
animation: spin 1s linear infinite;
|
||
}
|
||
|
||
/* 提示消息增强样式 */
|
||
.toast-notification {
|
||
position: fixed;
|
||
top: 20px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
/* Glassmorphism styles - Simplified & Reinforced */
|
||
background-color: rgba(250, 250, 250, 0.4); /* 调整了Alpha值,使其更透明一些 */
|
||
backdrop-filter: blur(12px); /* 调整模糊值 */
|
||
-webkit-backdrop-filter: blur(12px); /* Safari 兼容 */
|
||
border: 1px solid rgba(255, 255, 255, 0.2); /* 边框更柔和 */
|
||
color: #2A3749; /* 使用了您CSS变量中的 --text-primary */
|
||
padding: 1rem 1.5rem;
|
||
border-radius: 12px; /* 圆角调整 */
|
||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* 调整阴影 */
|
||
z-index: 1100;
|
||
animation: fadeIn 0.3s ease-in-out; /* 使用 ease-in-out */
|
||
text-align: center;
|
||
min-width: 250px; /* 最小宽度 */
|
||
max-width: 350px; /* 最大宽度,避免过宽 */
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.8rem; /* 图标与文字间距 */
|
||
}
|
||
|
||
.toast-notification i {
|
||
font-size: 1.25rem; /* 图标大小 */
|
||
color: inherit; /* 默认继承文本颜色 */
|
||
}
|
||
|
||
/* 状态特定样式 */
|
||
.toast-notification.success {
|
||
/* background-color: rgba(230, 245, 230, 0.4); /* 可选:为成功状态叠加一层淡淡的绿色玻璃感 */
|
||
/* border-left: none !important; /* 强制移除任何可能的旧左边框 */
|
||
}
|
||
|
||
.toast-notification.success i {
|
||
color: var(--success-color); /* 使用CSS变量 */
|
||
}
|
||
|
||
.toast-notification.error {
|
||
/* background-color: rgba(250, 230, 230, 0.4); /* 可选:为错误状态叠加一层淡淡的红色玻璃感 */
|
||
/* border-left: none !important; */
|
||
}
|
||
|
||
.toast-notification.error i {
|
||
color: var(--danger-color); /* 使用CSS变量 */
|
||
}
|
||
|
||
.toast-notification.info {
|
||
/* background-color: rgba(230, 240, 250, 0.4); /* 可选:为信息状态叠加一层淡淡的蓝色玻璃感 */
|
||
/* border-left: none !important; */
|
||
}
|
||
|
||
.toast-notification.info i {
|
||
color: var(--info-color); /* 使用CSS变量 */
|
||
}
|
||
|
||
/* 优化标签表格性能 */
|
||
.tag-table {
|
||
border-collapse: separate;
|
||
border-spacing: 0;
|
||
width: 100%;
|
||
}
|
||
|
||
/* 响应式调整 */
|
||
@media (max-width: 768px) {
|
||
.tag-actions {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.tag-search-container {
|
||
width: 100%;
|
||
}
|
||
|
||
.load-all-btn {
|
||
width: 100%;
|
||
justify-content: center;
|
||
}
|
||
}
|
||
|
||
/* 标签数量警告样式 */
|
||
.tag-count-warning {
|
||
margin: 1rem 0 2rem;
|
||
padding: 1rem 1.5rem;
|
||
background-color: rgba(255, 87, 87, 0.1);
|
||
border-left: 4px solid var(--danger-color);
|
||
border-radius: var(--radius-md);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.tag-count-warning.moderate {
|
||
background-color: rgba(255, 181, 71, 0.1);
|
||
border-left: 4px solid var(--warning-color);
|
||
}
|
||
|
||
.tag-count-warning i {
|
||
font-size: 1.5rem;
|
||
color: var(--danger-color);
|
||
}
|
||
|
||
.tag-count-warning.moderate i {
|
||
color: var(--warning-color);
|
||
}
|
||
|
||
.tag-count-warning p {
|
||
margin: 0;
|
||
color: var(--text-primary);
|
||
font-size: 0.95rem;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.tag-count-warning strong {
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* 添加标签加载进度样式 */
|
||
.loading-progress {
|
||
width: 100%;
|
||
height: 4px;
|
||
background-color: var(--background-color);
|
||
border-radius: 2px;
|
||
margin: 10px 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.progress-bar {
|
||
height: 100%;
|
||
background-color: var(--primary-color);
|
||
width: 0%;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.loading-indicator {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
padding: 3rem 0;
|
||
color: var(--text-secondary);
|
||
font-size: 1.1rem;
|
||
text-align: center;
|
||
}
|
||
|
||
/* 登录页面特定样式 - 确保按钮正确显示 */
|
||
.login-container .captcha-area {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
justify-content: space-between !important;
|
||
gap: 10px !important;
|
||
width: 100% !important;
|
||
}
|
||
|
||
.login-container #captcha {
|
||
flex: 1.5 !important;
|
||
min-width: 0 !important;
|
||
margin: 0 !important;
|
||
}
|
||
|
||
.login-container #captchaText {
|
||
flex: 1 !important;
|
||
min-width: 80px !important;
|
||
height: 44px !important;
|
||
text-align: center !important;
|
||
line-height: 44px !important;
|
||
background-color: #f5f7fa !important;
|
||
border: 1px solid #ddd !important;
|
||
border-radius: 5px !important;
|
||
margin: 0 !important;
|
||
}
|
||
|
||
.login-container .btn-login {
|
||
flex: 1 !important;
|
||
min-width: 80px !important;
|
||
height: 44px !important;
|
||
margin: 0 !important;
|
||
white-space: nowrap !important;
|
||
width: auto !important;
|
||
background-color: var(--primary-color) !important;
|
||
color: white !important;
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
}
|
||
|
||
/* 处理登录按钮在hover时的行为 */
|
||
.login-container .btn-login:hover {
|
||
background-color: var(--primary-dark) !important;
|
||
transform: none !important; /* 防止按钮hover时的上移效果导致布局变化 */
|
||
}
|
||
|
||
/* 确保登录表单中的其他按钮不受影响 */
|
||
.login-container button:not(.btn-login) {
|
||
width: 100%;
|
||
}
|
||
|
||
/* 修复在移动设备上的显示 */
|
||
@media (max-width: 480px) {
|
||
.login-container .captcha-area {
|
||
flex-wrap: wrap !important;
|
||
}
|
||
|
||
.login-container #captcha {
|
||
flex: 100% !important;
|
||
margin-bottom: 10px !important;
|
||
}
|
||
|
||
.login-container #captchaText {
|
||
flex: 1 !important;
|
||
}
|
||
|
||
.login-container .btn-login {
|
||
flex: 1 !important;
|
||
}
|
||
}
|
||
|
||
/* 登录按钮样式 */
|
||
#loginButton {
|
||
display: block !important;
|
||
width: 100% !important;
|
||
padding: 10px !important;
|
||
background-color: var(--primary-color) !important;
|
||
color: white !important;
|
||
border: none !important;
|
||
border-radius: 5px !important;
|
||
cursor: pointer !important;
|
||
font-size: 16px !important;
|
||
margin-top: 15px !important;
|
||
}
|
||
|
||
#loginButton:hover {
|
||
background-color: var(--primary-dark-color) !important;
|
||
}
|
||
|
||
.login-form button {
|
||
background-color: var(--primary-color) !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.login-form button:hover {
|
||
background-color: var(--primary-dark-color) !important;
|
||
color: white !important;
|
||
}
|
||
|
||
.login-modal .login-content .login-form #loginButton:hover {
|
||
background-color: var(--primary-dark-color) !important;
|
||
color: white !important;
|
||
}
|
||
|
||
/* ======================
|
||
文档内容样式 (Doc Content) - 优化版
|
||
====================== */
|
||
|
||
/* 文档文本容器整体调整 */
|
||
#documentationText {
|
||
padding: 0.5rem 1.5rem; /* 增加左右内边距 */
|
||
max-width: 900px; /* 限制最大宽度以提高可读性 */
|
||
/* margin-left: auto; 移除左边距自动 */
|
||
/* margin-right: auto; 移除右边距自动 */
|
||
}
|
||
|
||
.doc-content {
|
||
font-family: 'Georgia', 'Times New Roman', 'Source Han Serif CN', 'Songti SC', serif; /* 使用更适合阅读的衬线字体 */
|
||
line-height: 1.8; /* 增加行高 */
|
||
color: #333;
|
||
padding-top: 0; /* 移除顶部padding,让标题控制间距 */
|
||
margin-bottom: 2rem; /* 内容和元数据之间的间距 */
|
||
}
|
||
|
||
/* 标题样式调整 */
|
||
.doc-content h1:first-of-type, /* 优先将第一个h1作为主标题 */
|
||
.doc-content h2:first-of-type,
|
||
.doc-content h3:first-of-type {
|
||
margin-top: 0; /* 移除主标题上方的间距 */
|
||
margin-bottom: 1rem; /* 主标题下方间距 */
|
||
padding-bottom: 0.5rem; /* 标题下划线间距 */
|
||
border-bottom: 2px solid var(--primary-color); /* 强调主标题下划线 */
|
||
font-size: 2.5em; /* 增大主标题字号 */
|
||
font-weight: 700;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.doc-content h2 {
|
||
font-size: 1.8em;
|
||
margin-top: 2.5em;
|
||
margin-bottom: 1em;
|
||
border-bottom: 1px solid #eaecef;
|
||
padding-bottom: 0.4em;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.doc-content h3 {
|
||
font-size: 1.5em;
|
||
margin-top: 2em;
|
||
margin-bottom: 0.8em;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.doc-content h4 {
|
||
font-size: 1.25em;
|
||
margin-top: 1.8em;
|
||
margin-bottom: 0.7em;
|
||
font-weight: 600;
|
||
color: #444;
|
||
}
|
||
|
||
/* 段落样式 */
|
||
.doc-content p {
|
||
margin-bottom: 1.5rem; /* 增大段落间距 */
|
||
font-size: 1.05rem; /* 稍微增大正文字号 */
|
||
}
|
||
|
||
/* 列表样式 */
|
||
.doc-content ul,
|
||
.doc-content ol {
|
||
padding-left: 1.8em; /* 调整缩进 */
|
||
margin-bottom: 1.5rem;
|
||
}
|
||
|
||
.doc-content li {
|
||
margin-bottom: 0.6rem;
|
||
}
|
||
|
||
/* 元数据 (更新时间) 样式 */
|
||
.doc-meta {
|
||
font-size: 13px;
|
||
color: #6b7280;
|
||
margin-top: 40px;
|
||
padding: 16px 20px;
|
||
background: #f9fafb;
|
||
border-radius: 10px;
|
||
border: 1px solid #f3f4f6;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 8px;
|
||
}
|
||
|
||
/* 代码块样式统一 */
|
||
.doc-content pre {
|
||
background-color: #1F2937; /* 深色背景 */
|
||
color: #F3F4F6; /* 浅色文字 */
|
||
padding: 1.2rem 1.5rem; /* 调整内边距 */
|
||
border-radius: var(--radius-md);
|
||
overflow-x: auto;
|
||
margin: 1.8rem 0; /* 增加垂直外边距 */
|
||
line-height: 1.6; /* 调整行高 */
|
||
border: 1px solid #374151; /* 深色边框 */
|
||
font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; /* 使用适合编程的字体 */
|
||
font-size: 0.95rem; /* 标准化字体大小 */
|
||
position: relative; /* 为复制按钮定位 */
|
||
}
|
||
|
||
.doc-content pre::before {
|
||
content: ''; /* 模拟终端窗口的顶部栏 */
|
||
display: block;
|
||
height: 28px; /* 顶部栏高度 */
|
||
background-color: #111827; /* 顶部栏颜色 */
|
||
border-top-left-radius: var(--radius-md);
|
||
border-top-right-radius: var(--radius-md);
|
||
margin: -1.2rem -1.5rem 1rem -1.5rem; /* 定位和添加下方间距 */
|
||
position: relative;
|
||
}
|
||
|
||
/* 模拟窗口按钮 */
|
||
.doc-content pre::after {
|
||
content: '';
|
||
position: absolute;
|
||
top: 8px;
|
||
left: 15px;
|
||
width: 12px;
|
||
height: 12px;
|
||
background-color: #FF5F57;
|
||
border-radius: 50%;
|
||
box-shadow: 20px 0 #FEBC2E, 40px 0 #28C840;
|
||
}
|
||
|
||
.doc-content pre code {
|
||
display: block; /* 确保代码块充满 pre */
|
||
background-color: transparent;
|
||
padding: 0;
|
||
margin: 0;
|
||
color: inherit;
|
||
border-radius: 0;
|
||
border: none;
|
||
line-height: inherit;
|
||
font-family: inherit;
|
||
white-space: pre; /* 保留空格和换行 */
|
||
font-size: inherit; /* 继承 pre 的字号 */
|
||
}
|
||
|
||
/* 行内代码样式 */
|
||
.doc-content code {
|
||
font-family: 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
||
font-size: 0.9em; /* 调整大小 */
|
||
background-color: rgba(61, 124, 244, 0.1); /* 更柔和的背景 */
|
||
padding: 0.25em 0.5em;
|
||
margin: 0 0.1em;
|
||
border-radius: 4px;
|
||
color: #2c5282; /* 主色调的深色 */
|
||
border: 1px solid rgba(61, 124, 244, 0.2);
|
||
vertical-align: middle; /* 垂直对齐 */
|
||
}
|
||
|
||
/* 链接样式 */
|
||
.doc-content a {
|
||
color: var(--primary-dark); /* 使用更深的蓝色 */
|
||
text-decoration: underline;
|
||
text-decoration-color: rgba(61, 124, 244, 0.4);
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.doc-content a:hover {
|
||
color: var(--primary-color);
|
||
text-decoration-color: var(--primary-color);
|
||
background-color: rgba(61, 124, 244, 0.05);
|
||
}
|
||
|
||
/* 引用块样式 */
|
||
.doc-content blockquote {
|
||
margin: 2em 0;
|
||
padding: 1em 1.5em;
|
||
color: #555;
|
||
border-left: 4px solid var(--primary-light);
|
||
background-color: #f8faff; /* 淡蓝色背景 */
|
||
border-radius: var(--radius-sm);
|
||
}
|
||
|
||
.doc-content blockquote p:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
/* 表格样式 */
|
||
.doc-content table {
|
||
border-collapse: separate; /* 使用 separate 以应用圆角 */
|
||
border-spacing: 0;
|
||
margin: 1.8rem 0;
|
||
width: 100%;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: var(--radius-md);
|
||
overflow: hidden; /* 应用圆角 */
|
||
}
|
||
|
||
.doc-content th,
|
||
.doc-content td {
|
||
border-bottom: 1px solid #e2e8f0;
|
||
padding: 0.8em 1.2em;
|
||
text-align: left;
|
||
}
|
||
|
||
.doc-content tr:last-child td {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.doc-content th {
|
||
font-weight: 600;
|
||
background-color: #f7f9fc; /* 更浅的表头背景 */
|
||
color: #4a5568;
|
||
}
|
||
|
||
.doc-content tr:nth-child(even) td {
|
||
background-color: #fafcff; /* 斑马纹 */
|
||
}
|
||
|
||
/* 提示消息增强样式 - 修改为居中模态样式 */
|
||
.toast-notification {
|
||
position: fixed;
|
||
/* top: 20px; */ /* 移除顶部定位 */
|
||
top: 50%; /* 垂直居中 */
|
||
left: 50%;
|
||
transform: translate(-50%, -50%); /* 水平垂直居中 */
|
||
background-color: white; /* 使用白色背景更像弹窗 */
|
||
color: var(--text-primary);
|
||
padding: 2rem 2.5rem; /* 增加内边距 */
|
||
border-radius: var(--radius-lg); /* 更大的圆角 */
|
||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* 更明显的阴影 */
|
||
z-index: 1100;
|
||
/* animation: fadeIn 0.3s ease-in; */ /* 可以保留或换成缩放动画 */
|
||
animation: fadeInScale 0.3s ease-out; /* 使用新的缩放动画 */
|
||
text-align: center;
|
||
min-width: 300px; /* 设置最小宽度 */
|
||
max-width: 90%;
|
||
display: flex;
|
||
flex-direction: column; /* 让图标和文字垂直排列 */
|
||
align-items: center;
|
||
gap: 1rem; /* 图标和文字之间的间距 */
|
||
border-left: none; /* 移除之前的左边框 */
|
||
border-top: 5px solid var(--info-color); /* 使用顶部边框指示类型 */
|
||
}
|
||
|
||
/* 不同类型的顶部边框颜色 */
|
||
.toast-notification.error {
|
||
border-top-color: var(--danger-color);
|
||
}
|
||
|
||
.toast-notification.success {
|
||
border-top-color: var(--success-color);
|
||
}
|
||
|
||
.toast-notification.info {
|
||
border-top-color: var(--info-color);
|
||
}
|
||
|
||
/* 图标样式 */
|
||
.toast-notification i {
|
||
font-size: 2.5rem; /* 增大图标 */
|
||
margin-bottom: 0.5rem; /* 图标下方间距 */
|
||
}
|
||
|
||
.toast-notification.error i {
|
||
color: var(--danger-color);
|
||
}
|
||
|
||
.toast-notification.success i {
|
||
color: var(--success-color);
|
||
}
|
||
|
||
.toast-notification.info i {
|
||
color: var(--info-color);
|
||
}
|
||
|
||
/* 消息文本样式 */
|
||
.toast-notification span {
|
||
font-size: 1.1rem;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* 淡出动画 */
|
||
.toast-notification.fade-out {
|
||
opacity: 0;
|
||
transform: translate(-50%, -50%) scale(0.9); /* 淡出时缩小 */
|
||
transition: opacity 0.3s ease-out, transform 0.3s ease-out;
|
||
}
|
||
|
||
/* 新增:淡入和缩放动画 */
|
||
@keyframes fadeInScale {
|
||
from {
|
||
opacity: 0;
|
||
transform: translate(-50%, -50%) scale(0.8);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translate(-50%, -50%) scale(1);
|
||
}
|
||
}
|
||
|
||
/* ... 其他样式 ... */
|
||
|
||
/* 表格通用样式 */
|
||
.admin-container table {
|
||
/* ... (现有表格样式) ... */
|
||
}
|
||
|
||
/* Docker 状态表格特定样式 */
|
||
#dockerStatusTable {
|
||
table-layout: fixed; /* 固定表格布局,让列宽设定生效 */
|
||
width: 100%;
|
||
border-collapse: collapse; /* 合并边框 */
|
||
margin-top: 1rem; /* 与上方元素保持距离 */
|
||
}
|
||
|
||
#dockerStatusTable th,
|
||
#dockerStatusTable td {
|
||
padding: 0.8rem 1rem; /* 统一内边距 */
|
||
border: 1px solid var(--border-light, #e5e7eb); /* 添加边框 */
|
||
vertical-align: middle;
|
||
font-size: 0.9rem; /* 稍小字体 */
|
||
}
|
||
|
||
#dockerStatusTable thead th {
|
||
background-color: var(--table-header-bg, #f9fafb); /* 表头背景色 */
|
||
color: var(--text-secondary, #6b7280);
|
||
font-weight: 600; /* 表头字体加粗 */
|
||
position: sticky; /* 尝试粘性定位,如果表格滚动 */
|
||
top: 0; /* 配合 sticky */
|
||
z-index: 1; /* 确保表头在加载提示之上 */
|
||
}
|
||
|
||
/* 为 ID 列设置较窄宽度 */
|
||
#dockerStatusTable th:nth-child(1),
|
||
#dockerStatusTable td:nth-child(1) {
|
||
width: 120px; /* 或 10% */
|
||
}
|
||
|
||
/* 为 名称 列设置最大宽度和文本溢出处理 */
|
||
#dockerStatusTable th:nth-child(2),
|
||
#dockerStatusTable td:nth-child(2) {
|
||
width: 25%; /* 将宽度从原来的过大值减小到25% */
|
||
max-width: 250px; /* 限制最大宽度 */
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/* 为 镜像 列设置最大宽度和文本溢出处理 */
|
||
#dockerStatusTable th:nth-child(3),
|
||
#dockerStatusTable td:nth-child(3) {
|
||
max-width: 300px; /* 可以比名称宽一些 */
|
||
width: 35%; /* 尝试百分比宽度 */
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* 为 状态 列设置宽度 */
|
||
#dockerStatusTable th:nth-child(4),
|
||
#dockerStatusTable td:nth-child(4) {
|
||
width: 100px; /* 或 10% */
|
||
text-align: center; /* 状态居中 */
|
||
}
|
||
|
||
/* 为 操作 列设置宽度 */
|
||
#dockerStatusTable th:nth-child(5),
|
||
#dockerStatusTable td:nth-child(5) {
|
||
width: 20%;
|
||
text-align: center; /* 操作按钮居中 */
|
||
}
|
||
|
||
/* 确保 title 属性的提示能正常显示 */
|
||
#dockerStatusTable td:nth-child(2),
|
||
#dockerStatusTable td:nth-child(3) {
|
||
cursor: default; /* 或 help,提示用户悬停可查看完整信息 */
|
||
}
|
||
|
||
/* 加载提示行样式调整 */
|
||
#dockerStatusTable .loading-container td {
|
||
background-color: rgba(255, 255, 255, 0.8); /* 半透明背景,避免完全遮挡 */
|
||
padding: 2rem 0; /* 增加垂直内边距 */
|
||
text-align: center;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
/* --- 新增:操作下拉菜单样式 --- */
|
||
.action-cell {
|
||
position: relative; /* 确保下拉菜单相对于单元格定位 */
|
||
text-align: center; /* 让按钮居中 */
|
||
}
|
||
|
||
.action-dropdown .dropdown-toggle {
|
||
padding: 0.3rem 0.6rem;
|
||
font-size: 0.85rem; /* 按钮字体小一点 */
|
||
background-color: var(--container-bg);
|
||
border: 1px solid var(--border-color);
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.action-dropdown .dropdown-toggle:hover,
|
||
.action-dropdown .dropdown-toggle:focus {
|
||
background-color: var(--background-color);
|
||
border-color: var(--border-dark);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.action-dropdown .dropdown-menu {
|
||
min-width: 160px; /* 设置最小宽度 */
|
||
box-shadow: var(--shadow-md);
|
||
border: 1px solid var(--border-light);
|
||
padding: 0.5rem 0;
|
||
margin-top: 0.25rem; /* 微调与按钮的距离 */
|
||
}
|
||
|
||
.action-dropdown .dropdown-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 0.6rem 1.2rem; /* 调整内边距 */
|
||
font-size: 0.9rem;
|
||
color: var(--text-secondary);
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.action-dropdown .dropdown-item:hover {
|
||
background-color: var(--background-color);
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.action-dropdown .dropdown-item i {
|
||
width: 16px; /* 固定图标宽度 */
|
||
text-align: center;
|
||
color: var(--text-muted);
|
||
transition: color var(--transition-fast);
|
||
}
|
||
|
||
.action-dropdown .dropdown-item:hover i {
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.action-dropdown .dropdown-item.text-danger,
|
||
.action-dropdown .dropdown-item.text-danger:hover {
|
||
color: var(--danger-color) !important;
|
||
}
|
||
.action-dropdown .dropdown-item.text-danger i {
|
||
color: var(--danger-color) !important;
|
||
}
|
||
/* --- 结束:操作下拉菜单样式 --- */
|
||
|
||
|
||
/* --- 新增:详情弹窗表格样式 --- */
|
||
.details-swal-popup .details-table-container {
|
||
max-height: 70vh;
|
||
overflow-y: auto;
|
||
text-align: left; /* 确保内容左对齐 */
|
||
}
|
||
|
||
.details-swal-popup .details-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
.details-swal-popup .details-table thead th {
|
||
background-color: var(--table-header-bg, #f9fafb);
|
||
color: var(--text-secondary, #6b7280);
|
||
font-weight: 600;
|
||
text-align: left; /* 确保表头左对齐 */
|
||
padding: 0.8rem 1rem;
|
||
border-bottom: 2px solid var(--border-dark, #e5e7eb);
|
||
position: sticky; /* 表头粘性定位 */
|
||
top: 0;
|
||
z-index: 1;
|
||
}
|
||
|
||
.details-swal-popup .details-table tbody td {
|
||
padding: 8px 12px;
|
||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||
word-break: break-word;
|
||
font-family: monospace;
|
||
white-space: pre-wrap;
|
||
text-align: left; /* 确保文本左对齐 */
|
||
font-size: 14px;
|
||
}
|
||
|
||
.details-swal-popup .details-table tbody tr:last-child td {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.details-swal-popup .details-table tbody tr:hover td {
|
||
background-color: var(--background-color, #f8f9fa);
|
||
}
|
||
|
||
.details-swal-popup .details-table .badge {
|
||
font-size: 0.8rem; /* 状态徽章字体稍小 */
|
||
}
|
||
/* --- 结束:详情弹窗表格样式 --- */
|
||
|
||
/* --- 新增:资源详情表格特殊样式 (两列) --- */
|
||
.details-swal-popup .resource-details-table td.label {
|
||
font-weight: 600; /* 标签加粗 */
|
||
width: 40%; /* 设定标签列宽度 */
|
||
color: var(--text-secondary); /* 标签颜色稍浅 */
|
||
padding-right: 1.5rem; /* 标签和值之间的距离 */
|
||
white-space: nowrap; /* 防止标签换行 */
|
||
}
|
||
|
||
.details-swal-popup .resource-details-table td {
|
||
border-bottom: 1px dashed var(--border-light, #e5e7eb); /* 使用虚线分隔行 */
|
||
}
|
||
/* --- 结束:资源详情表格特殊样式 --- */
|
||
|
||
/* --- 新增:资源详情类 Excel 表格样式 --- */
|
||
.details-swal-popup .resource-details-excel {
|
||
table-layout: fixed; /* 固定布局 */
|
||
width: 100%;
|
||
margin-top: 0; /* 移除与容器的顶部距离 */
|
||
}
|
||
|
||
.details-swal-popup .resource-details-excel thead th {
|
||
text-align: center; /* 表头居中 */
|
||
white-space: nowrap;
|
||
border: 1px solid var(--border-dark, #dee2e6); /* 使用更深的边框 */
|
||
padding: 0.6rem 0.5rem; /* 调整内边距 */
|
||
}
|
||
|
||
.details-swal-popup .resource-details-excel tbody td {
|
||
text-align: center; /* 数据居中 */
|
||
padding: 0.6rem 0.5rem;
|
||
border: 1px solid var(--border-color, #dee2e6);
|
||
word-break: break-all; /* 允许长内容换行 */
|
||
}
|
||
/* --- 结束:资源详情类 Excel 表格样式 --- */
|
||
|
||
/* ... 其他样式 ... */
|
||
|
||
/* 导航菜单样式 */
|
||
.nav-menu {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.nav-menu .nav-list {
|
||
display: flex;
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.nav-menu .nav-list li {
|
||
margin-left: 20px;
|
||
}
|
||
|
||
.nav-menu .nav-list li a {
|
||
color: #fff;
|
||
text-decoration: none;
|
||
font-size: 14px;
|
||
transition: color 0.3s;
|
||
}
|
||
|
||
.nav-menu .nav-list li a:hover {
|
||
color: #3d7cf4;
|
||
}
|
||
|
||
.menu-toggle {
|
||
display: none;
|
||
cursor: pointer;
|
||
font-size: 1.5rem;
|
||
color: #fff;
|
||
}
|
||
|
||
/* 移动设备适配 */
|
||
@media (max-width: 768px) {
|
||
.nav-menu {
|
||
position: relative;
|
||
}
|
||
|
||
.menu-toggle {
|
||
display: block;
|
||
}
|
||
|
||
.nav-menu .nav-list {
|
||
position: absolute;
|
||
top: 100%;
|
||
right: 0;
|
||
flex-direction: column;
|
||
background-color: #111;
|
||
padding: 20px;
|
||
border-radius: 5px;
|
||
display: none;
|
||
box-shadow: 0 5px 15px rgba(0,0,0,0.5);
|
||
z-index: 1000;
|
||
}
|
||
|
||
.nav-menu.active .nav-list {
|
||
display: flex;
|
||
}
|
||
|
||
.nav-menu .nav-list li {
|
||
margin: 10px 0;
|
||
}
|
||
}
|
||
|
||
.no-menu, .menu-error {
|
||
color: #ff6b6b;
|
||
font-size: 14px;
|
||
margin-right: 20px;
|
||
}
|
||
|
||
/* 操作按钮布局优化 */
|
||
.action-cell {
|
||
white-space: nowrap;
|
||
text-align: center;
|
||
display: flex;
|
||
justify-content: center;
|
||
gap: 5px; /* 使用gap来控制按钮间隔 */
|
||
}
|
||
|
||
.action-cell button,
|
||
.action-cell .btn {
|
||
margin: 0;
|
||
padding: 5px 8px;
|
||
font-size: 13px;
|
||
display: inline-block;
|
||
min-width: auto; /* 防止按钮过宽 */
|
||
flex-shrink: 0; /* 防止按钮被压缩 */
|
||
}
|
||
|
||
/* 确保操作按钮保持在一行 */
|
||
#dockerStatusTable th:last-child,
|
||
#dockerStatusTable td:last-child {
|
||
width: auto;
|
||
min-width: 180px; /* 确保有足够的空间放置按钮 */
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* 日志弹窗内容优化 */
|
||
.log-content {
|
||
text-align: left;
|
||
font-family: 'Courier New', monospace;
|
||
white-space: pre-wrap;
|
||
overflow-x: auto;
|
||
background-color: #f5f5f5;
|
||
padding: 15px;
|
||
border-radius: 5px;
|
||
max-height: 60vh;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* 确保SweetAlert2弹窗内容左对齐 */
|
||
.swal2-html-container {
|
||
text-align: left !important;
|
||
}
|
||
|
||
/* 确保弹窗样式优先级最高 */
|
||
.swal2-popup .swal2-html-container,
|
||
.swal2-popup .swal2-content {
|
||
text-align: left !important;
|
||
}
|
||
|
||
.swal2-popup pre,
|
||
.swal2-popup code,
|
||
.swal2-popup .log-content {
|
||
text-align: left !important;
|
||
direction: ltr !important;
|
||
font-family: 'Courier New', monospace !important;
|
||
font-size: 14px !important;
|
||
line-height: 1.5 !important;
|
||
}
|
||
|
||
/* 调整容器表格布局 */
|
||
#dockerStatusTable {
|
||
table-layout: fixed;
|
||
width: 100%;
|
||
}
|
||
|
||
/* 容器ID/名称列宽度 */
|
||
#dockerStatusTable th:nth-child(1),
|
||
#dockerStatusTable td:nth-child(1) {
|
||
width: 20%;
|
||
}
|
||
|
||
/* 镜像名称列宽度 */
|
||
#dockerStatusTable th:nth-child(2),
|
||
#dockerStatusTable td:nth-child(2) {
|
||
width: 25%;
|
||
max-width: 250px;
|
||
}
|
||
|
||
/* 容器状态列宽度 */
|
||
#dockerStatusTable th:nth-child(3),
|
||
#dockerStatusTable td:nth-child(3) {
|
||
width: 15%;
|
||
}
|
||
|
||
/* 创建时间列宽度 */
|
||
#dockerStatusTable th:nth-child(4),
|
||
#dockerStatusTable td:nth-child(4) {
|
||
width: 20%;
|
||
}
|
||
|
||
/* 操作列宽度 */
|
||
#dockerStatusTable th:nth-child(5),
|
||
#dockerStatusTable td:nth-child(5) {
|
||
width: 20%;
|
||
}
|
||
|
||
/* 新增:使教程页面的代码块在悬停时也显示复制按钮 */
|
||
#documentationText pre:hover .copy-btn,
|
||
.doc-content pre:hover .copy-btn {
|
||
opacity: 1;
|
||
} |