Kamixitong/static/css/custom.css
2025-12-12 11:35:14 +08:00

167 lines
4.5 KiB
CSS
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 自定义样式 */
.main-content {
padding-top: 20px;
}
.card-stats {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
/* 仪表盘卡片标题字体颜色改为黑色 */
.card-stats .card-title {
color: black !important;
}
.loading {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9999;
}
.spinner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.sidebar .nav-link.active {
background-color: #495057;
color: #fff;
}
/* 删除确认弹窗样式优化 - 增强特异性 */
.modal-content.custom-modal-content,
div.modal-content.custom-modal-content {
border: none !important;
border-radius: 0.5rem !important;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.modal-header.custom-modal-header,
div.modal-header.custom-modal-header {
background-color: #f8f9fa !important;
border-bottom: 1px solid #e9ecef !important;
border-radius: 0.5rem 0.5rem 0 0 !important;
padding: 1rem 1.5rem !important;
}
.modal-title.custom-modal-title,
div.modal-title.custom-modal-title {
font-weight: 600 !important;
color: #495057 !important;
font-size: 1.25rem !important;
}
.modal-body.custom-modal-body,
div.modal-body.custom-modal-body {
padding: 1.5rem !important;
font-size: 1rem !important;
line-height: 1.5 !important;
}
.modal-footer.custom-modal-footer,
div.modal-footer.custom-modal-footer {
background-color: #f8f9fa !important;
border-top: 1px solid #e9ecef !important;
border-radius: 0 0 0.5rem 0.5rem !important;
padding: 1rem 1.5rem !important;
}
.btn-close.custom-btn-close,
button.btn-close.custom-btn-close {
box-sizing: content-box !important;
width: 1em !important;
height: 1em !important;
padding: 0.25em 0.25em !important;
color: #000 !important;
background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
border: 0 !important;
border-radius: 0.375rem !important;
opacity: 0.5 !important;
}
.btn-close.custom-btn-close:hover,
button.btn-close.custom-btn-close:hover {
opacity: 0.75 !important;
}
/* 按钮样式 */
.btn-secondary.custom-btn-secondary,
button.btn-secondary.custom-btn-secondary {
background-color: #6c757d !important;
border-color: #6c757d !important;
color: #fff !important;
padding: 0.375rem 0.75rem !important;
font-size: 0.875rem !important;
border-radius: 0.25rem !important;
border: 1px solid transparent !important;
}
.btn-secondary.custom-btn-secondary:hover,
button.btn-secondary.custom-btn-secondary:hover {
background-color: #5a6268 !important;
border-color: #545b62 !important;
}
.btn-danger.custom-btn-danger,
button.btn-danger.custom-btn-danger {
background-color: #dc3545 !important;
border-color: #dc3545 !important;
color: #fff !important;
padding: 0.375rem 0.75rem !important;
font-size: 0.875rem !important;
border-radius: 0.25rem !important;
border: 1px solid transparent !important;
}
.btn-danger.custom-btn-danger:hover,
button.btn-danger.custom-btn-danger:hover {
background-color: #c82333 !important;
border-color: #bd2130 !important;
}
/* 警告消息样式 */
.alert-warning.custom-alert-warning,
div.alert-warning.custom-alert-warning {
background-color: #fff3cd !important;
border-color: #ffeaa7 !important;
color: #856404 !important;
border-radius: 0.375rem !important;
padding: 0.75rem 1.25rem !important;
margin-top: 1rem !important;
margin-bottom: 0 !important;
}
.alert-warning.custom-alert-warning:hover,
div.alert-warning.custom-alert-warning:hover {
background-color: #ffefba !important;
}
.alert-warning.custom-alert-warning::before,
div.alert-warning.custom-alert-warning::before {
content: " " !important;
margin-right: 0.5rem !important;
}
/* 强制删除按钮样式 */
.btn-warning {
background-color: #ffc107 !important;
border-color: #ffc107 !important;
color: #000 !important;
}
.btn-warning:hover {
background-color: #ffb300 !important;
border-color: #ffb300 !important;
}
.icon icon-shape bg-white text-info rounded-circle shadow{
width: 1050px;
}