Book_system/app/static/css/announcement-list.css
2025-05-12 19:44:22 +08:00

131 lines
2.1 KiB
Plaintext

.announcement-container {
padding: 20px;
}
.page-header {
margin-bottom: 25px;
border-bottom: 1px solid #e3e3e3;
padding-bottom: 10px;
}
.announcement-list {
margin-top: 20px;
}
.announcement-item {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
padding: 20px;
margin-bottom: 20px;
position: relative;
transition: transform 0.2s, box-shadow 0.2s;
}
.announcement-item:hover {
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.announcement-item.pinned {
border-left: 4px solid #dc3545;
background-color: #fff9f9;
}
.pin-badge {
position: absolute;
top: 0;
right: 0;
background-color: #dc3545;
color: white;
padding: 5px 10px;
border-radius: 0 8px 0 8px;
font-size: 0.8rem;
}
.announcement-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.announcement-header h3 {
margin: 0;
font-size: 1.3rem;
}
.announcement-header h3 a {
color: #333;
text-decoration: none;
}
.announcement-header h3 a:hover {
color: #007bff;
}
.date {
color: #6c757d;
font-size: 0.9rem;
}
.announcement-preview {
margin: 15px 0;
color: #495057;
line-height: 1.6;
}
.announcement-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #f1f1f1;
}
.publisher {
color: #6c757d;
font-style: italic;
font-size: 0.9rem;
}
.read-more {
color: #007bff;
text-decoration: none;
font-weight: 500;
display: flex;
align-items: center;
}
.read-more i {
margin-left: 5px;
transition: transform 0.2s;
}
.read-more:hover i {
transform: translateX(3px);
}
.pagination-container {
margin-top: 30px;
display: flex;
justify-content: center;
}
.no-records {
text-align: center;
padding: 50px 20px;
background-color: #f8f9fa;
border-radius: 8px;
color: #6c757d;
}
.no-records i {
font-size: 3rem;
margin-bottom: 15px;
}
.no-records p {
font-size: 1.2rem;
}