模板:Theory/styles.css
外观
/* 容器 */
.portable-infobox {
border: 1px solid #dcdcdc !important;
border-radius: 4px;
background: #ffffff !important;
overflow: hidden;
}
.portable-infobox .pi-title {
background: #1b2a41 !important;
color: #f7f7f7 !important;
font-size: 16px;
font-weight: bold;
padding: 10px 16px;
border-left: 4px solid #b08d57 !important;
margin: 0;
}
.portable-infobox .pi-header {
background: #f7f7f7 !important;
color: #1b2a41 !important;
font-weight: bold;
font-size: 13px;
letter-spacing: 0.5px;
padding: 8px 16px;
border-left: 4px solid #b08d57 !important;
border-top: 1px solid #dcdcdc !important;
border-bottom: 1px solid #dcdcdc !important;
}
/* 数据行:标签靠左、值靠右分布 */
.portable-infobox .pi-data {
display: flex;
padding: 12px 16px;
border-bottom: 1px solid #f7f7f7 !important;
}
.portable-infobox .pi-item:last-child .pi-data {
border-bottom: none;
}
.portable-infobox .pi-data-label {
flex: 0 0 110px;
color: #2b2621 !important;
font-weight: bold;
font-size: 13px;
}
.portable-infobox .pi-data-value {
flex: 1;
color: #2b2621 !important;
font-size: 13px;
}
/* 图片说明文字(若以后加图) */
.portable-infobox .pi-caption {
background: #f7f7f7 !important;
color: #6b5f4f !important;
font-size: 11px;
padding: 6px 10px;
text-align: center;
}
/* 深色模式 */
@media (prefers-color-scheme: dark) {
.portable-infobox {
border-color: #3a4a63 !important;
background: #1b2a41 !important;
}
.portable-infobox .pi-title {
background: #1b2a41 !important;
color: #ede4d3 !important;
border-left-color: #b08d57 !important;
}
.portable-infobox .pi-header {
background: #22334c !important;
color: #c9a66b !important;
border-top-color: #3a4a63 !important;
border-bottom-color: #3a4a63 !important;
}
.portable-infobox .pi-data {
border-bottom-color: #22334c !important;
}
.portable-infobox .pi-data-label,
.portable-infobox .pi-data-value {
color: #ede4d3 !important;
}
.portable-infobox .pi-caption {
background: #22334c !important;
color: #c9bba0 !important;
}
}