模板:Audio/styles.css
来自CalcWiki
更多操作
< 模板:Audio
/* ===== 音频模板样式 - 电脑端进度条 ===== */
/* 进度条容器:默认隐藏 */
.audio-progress-container {
display: none;
margin-top: 16px;
padding-top: 12px;
border-top: 1px solid #edf2f7;
}
/* 进度条内部布局 */
.audio-progress-inner {
display: flex;
align-items: center;
gap: 12px;
}
/* 进度标签 */
.audio-progress-label {
font-size: 13px;
color: #4a5568;
min-width: 45px;
}
/* 进度条轨道 */
.audio-progress-track {
flex: 1;
height: 6px;
background: #e2e8f0;
border-radius: 10px;
overflow: hidden;
}
/* 进度条填充 */
.audio-progress-fill {
height: 100%;
background: #4299e1;
border-radius: 10px;
width: 45%; /* 默认值,由模板参数覆盖 */
}
/* 电脑端提示 */
.audio-progress-hint {
font-size: 12px;
color: #718096;
}
/* ===== 响应式:仅电脑端显示 ===== */
@media screen and (min-width: 769px) {
.audio-progress-container {
display: block !important;
}
}
/* ===== 公民主题兼容 ===== */
.citizen-themed .audio-progress-container {
border-top-color: var(--border-color-base, #edf2f7);
background: var(--color-surface-0, transparent);
}
.citizen-themed .audio-progress-label,
.citizen-themed .audio-progress-hint {
color: var(--color-base, #4a5568);
}
.citizen-themed .audio-progress-track {
background: var(--color-surface-2, #e2e8f0);
}
.citizen-themed .audio-progress-fill {
background: var(--color-progressive, #4299e1);
}
/* ===== 深色模式优化 ===== */
@media (prefers-color-scheme: dark) {
.audio-progress-container {
border-top-color: #2d3748;
}
.audio-progress-track {
background: #2d3748;
}
}