Gem2a / app /static /css /metrics.css
misonL's picture
Modularize frontend CSS and JavaScript assets
19bd286
Raw
History Blame Contribute Delete
3.08 kB
/* app/static/css/metrics.css - 服务指标模块样式 */
.metrics-section {
width: 100%; /* 确保占据全部宽度 */
box-sizing: border-box; /* 包含 padding 和 border 在宽度内 */
}
/* 服务指标网格样式 */
.metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 调整最小宽度 */
gap: 20px; /* 增加间距 */
}
.metric-item {
background-color: var(--background-medium); /* 指标项背景 */
padding: 20px; /* 增加内边距 */
border-radius: 10px; /* 调整圆角 */
text-align: center;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* 内部阴影 */
}
.metric-item h4 {
margin-top: 0;
margin-bottom: 8px;
color: var(--secondary-color); /* 灰色标题 */
font-size: 1rem;
font-weight: 500;
}
.metric-item p {
margin: 0;
font-size: 2rem; /* 增大数值字体 */
font-weight: bold;
color: var(--primary-color); /* 指标数值颜色 */
}
/* 模型信息与限制模块样式 */
.model-info-section {
width: 100%; /* 确保占据全部宽度 */
box-sizing: border-box; /* 包含 padding 和 border 在宽度内 */
}
.model-info-section table {
width: 100%;
border-collapse: collapse; /* 合并边框 */
margin-top: 20px;
font-size: 0.95rem; /* 调整字体大小 */
border: 1px solid var(--border-color); /* 整体边框 */
border-radius: 8px; /* 圆角边框 */
overflow: hidden; /* 隐藏超出圆角的部分 */
}
.model-info-section th,
.model-info-section td {
padding: 12px 15px; /* 增加内边距 */
text-align: left;
border-bottom: 1px solid var(--border-color); /* 底部边框 */
border-right: 1px solid var(--border-color); /* 右侧边框 */
}
.model-info-section th:last-child,
.model-info-section td:last-child {
border-right: none; /* 最后一列没有右侧边框 */
}
.model-info-section thead th {
background-color: var(--primary-color); /* 表头背景色 */
color: var(--text-light); /* 表头文字颜色 */
font-weight: 600;
text-transform: uppercase; /* 文本大写 */
letter-spacing: 0.5px; /* 字母间距 */
}
.model-info-section tbody tr:nth-child(even) {
background-color: var(--background-light); /* 隔行变色 */
}
.model-info-section tbody tr:hover {
background-color: var(--background-medium); /* 鼠标悬停高亮 */
transition: background-color 0.3s ease;
}
.model-info-section td strong {
color: var(--primary-dark); /* 强调文字颜色 */
}
.model-info-section ul {
list-style: none; /* 移除默认列表样式 */
padding: 0;
margin: 15px 0;
}
.model-info-section ul li {
margin-bottom: 8px;
padding-left: 20px;
position: relative;
}
.model-info-section ul li::before {
content: '•'; /* 使用圆点作为列表标记 */
color: var(--primary-color);
position: absolute;
left: 0;
font-size: 1.2rem;
line-height: 1;
}
.model-info-section p.small-text {
font-size: 0.85rem;
color: var(--secondary-color);
margin-top: 20px;
}