Book_system/app/static/css/overdue.css
superlishunqin 29914a4178 0506
2025-05-06 12:01:11 +08:00

397 lines
7.9 KiB
CSS

/* overdue.css - 适合文艺少女的深棕色调设计 */
body {
font-family: 'Georgia', 'Times New Roman', serif;
color: #4a3728;
background-color: #fcf8f3;
}
.container {
background-color: #fff9f5;
border-radius: 8px;
box-shadow: 0 3px 15px rgba(113, 66, 20, 0.1);
padding: 25px;
margin-top: 20px;
margin-bottom: 20px;
border: 1px solid #e8d9cb;
position: relative;
}
.page-title {
margin-bottom: 0;
color: #5d3511;
font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
font-weight: 600;
letter-spacing: 0.5px;
}
.d-flex {
position: relative;
}
.d-flex:after {
content: "";
display: block;
height: 2px;
width: 100%;
background: linear-gradient(to right, #d9c7b8, #8d6e63, #d9c7b8);
margin-top: 15px;
margin-bottom: 20px;
}
.alert-warning {
background-color: #f9e8d0;
border: 1px solid #ebd6ba;
color: #8a6d3b;
border-radius: 8px;
padding: 15px;
margin-bottom: 25px;
box-shadow: 0 2px 5px rgba(138, 109, 59, 0.1);
position: relative;
overflow: hidden;
}
.alert-warning:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(to right, #d4a76a, transparent);
}
/* 表格样式 */
.overdue-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin-bottom: 25px;
box-shadow: 0 2px 10px rgba(113, 66, 20, 0.05);
border-radius: 8px;
overflow: hidden;
border: 1px solid #e8d9cb;
}
.overdue-table th,
.overdue-table td {
padding: 15px 18px;
text-align: left;
border-bottom: 1px solid #e8d9cb;
}
.overdue-table th {
background-color: #f1e6dd;
color: #5d3511;
font-weight: 600;
letter-spacing: 0.5px;
}
.overdue-item:hover {
background-color: #f8f0e5;
}
.overdue-item:last-child td {
border-bottom: none;
}
.book-cover img {
width: 65px;
height: 90px;
object-fit: cover;
border-radius: 6px;
box-shadow: 0 3px 8px rgba(113, 66, 20, 0.15);
border: 2px solid #fff;
transition: transform 0.3s ease;
}
.book-cover img:hover {
transform: scale(1.05);
}
.book-title {
font-weight: 600;
font-family: 'Georgia', 'Times New Roman', serif;
}
.book-title a {
color: #5d3511;
text-decoration: none;
transition: color 0.3s ease;
}
.book-title a:hover {
color: #a66321;
text-decoration: underline;
}
.book-author {
color: #8d6e63;
font-size: 0.9em;
margin-top: 5px;
font-style: italic;
}
.user-info a {
color: #5d3511;
text-decoration: none;
font-weight: 600;
transition: color 0.3s ease;
}
.user-info a:hover {
color: #a66321;
text-decoration: underline;
}
.user-nickname {
color: #8d6e63;
font-size: 0.9em;
margin-top: 3px;
}
.user-contact {
margin-top: 8px;
}
.user-contact a {
color: #8d6e63;
margin-right: 10px;
text-decoration: none;
}
.user-contact a:hover {
color: #704214;
}
.email-link, .phone-link {
display: inline-block;
padding: 4px 10px;
font-size: 0.85em;
background-color: #f1e6dd;
border-radius: 15px;
border: 1px solid #e8d9cb;
transition: all 0.3s ease;
}
.email-link:hover, .phone-link:hover {
background-color: #e8d9cb;
}
.text-danger {
color: #a15950 !important;
}
.overdue-days {
font-weight: 600;
}
/* 徽章 */
.badge {
padding: 5px 12px;
border-radius: 20px;
font-weight: 500;
font-size: 0.85em;
letter-spacing: 0.5px;
}
.badge-danger {
background-color: #a15950;
color: white;
}
.badge-warning {
background-color: #d4a76a;
color: #4a3728;
}
.badge-info {
background-color: #6a8da9;
color: white;
}
/* 按钮 */
.btn {
border-radius: 20px;
padding: 8px 16px;
transition: all 0.3s ease;
letter-spacing: 0.3px;
}
.btn-outline-secondary {
color: #704214;
border-color: #d9c7b8;
background-color: transparent;
}
.btn-outline-secondary:hover {
color: #fff;
background-color: #8d6e63;
border-color: #8d6e63;
}
.btn-success {
background-color: #5b8a72;
border-color: #5b8a72;
}
.btn-success:hover, .btn-success:focus {
background-color: #4a7561;
border-color: #4a7561;
}
.btn-warning {
background-color: #d4a76a;
border-color: #d4a76a;
color: #4a3728;
}
.btn-warning:hover, .btn-warning:focus {
background-color: #c29355;
border-color: #c29355;
color: #4a3728;
}
.btn-primary {
background-color: #704214;
border-color: #704214;
}
.btn-primary:hover, .btn-primary:focus {
background-color: #5d3511;
border-color: #5d3511;
}
.actions .btn {
margin-right: 5px;
margin-bottom: 6px;
}
/* 空状态 */
.no-records {
text-align: center;
padding: 60px 20px;
background-color: #f8f0e5;
border-radius: 8px;
margin: 25px 0;
border: 1px dashed #d9c7b8;
position: relative;
}
.no-records:before, .no-records:after {
content: "❦";
position: absolute;
color: #d9c7b8;
font-size: 24px;
}
.no-records:before {
top: 20px;
left: 20px;
}
.no-records:after {
bottom: 20px;
right: 20px;
}
.empty-icon {
font-size: 4.5em;
color: #5b8a72;
margin-bottom: 25px;
}
.empty-text {
color: #5b8a72;
margin-bottom: 25px;
font-style: italic;
font-size: 1.1em;
}
/* 分页 */
.pagination-container {
display: flex;
justify-content: center;
margin-top: 25px;
}
.pagination .page-link {
color: #5d3511;
border-color: #e8d9cb;
margin: 0 3px;
border-radius: 4px;
}
.pagination .page-item.active .page-link {
background-color: #704214;
border-color: #704214;
}
.pagination .page-link:hover {
background-color: #f1e6dd;
color: #5d3511;
}
/* 模态框定制 */
.modal-content {
border-radius: 8px;
border: 1px solid #e8d9cb;
box-shadow: 0 5px 20px rgba(113, 66, 20, 0.15);
background-color: #fff9f5;
}
.modal-header {
border-bottom: 1px solid #e8d9cb;
background-color: #f1e6dd;
border-radius: 8px 8px 0 0;
}
.modal-title {
color: #5d3511;
font-family: 'Georgia', 'Times New Roman', serif;
font-weight: 600;
}
.modal-footer {
border-top: 1px solid #e8d9cb;
}
/* 装饰元素 */
.container:before {
content: "";
position: absolute;
top: 0;
right: 0;
width: 150px;
height: 150px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23d9c7b8' fill-opacity='0.2' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E");
opacity: 0.3;
pointer-events: none;
z-index: -1;
}
/* 响应式设计 */
@media (max-width: 992px) {
.actions .btn {
display: block;
width: 100%;
margin-bottom: 8px;
}
.no-records:before, .no-records:after {
display: none;
}
}
@media (max-width: 768px) {
.overdue-table {
display: block;
overflow-x: auto;
}
.book-cover img {
width: 50px;
height: 70px;
}
}