Book_system/app/static/css/notification_detail.css
2025-05-17 15:34:28 +08:00

208 lines
4.1 KiB
CSS

/* Notification Detail Styles - Matches the existing theme */
:root {
--mint-green: #A8E6CF;
--pale-yellow: #FFD3B6;
--coral-pink: #FFAAA5;
--sky-blue: #BDE4F4;
--clean-white: #FFFFFF;
--bright-orange: #FF8C69;
--lemon-yellow: #FFFACD;
--text-dark: #424242;
--text-medium: #757575;
--text-light: #9E9E9E;
--font-title: 'Poppins', sans-serif;
--font-body: 'Nunito Sans', sans-serif;
--card-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
--card-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
--border-radius-main: 12px;
--border-radius-small: 8px;
}
/* Container for detail page */
.notification-detail-container {
padding: 25px 30px;
max-width: 900px;
margin: 30px auto;
}
/* Main notification card */
.notification-card {
background-color: var(--clean-white);
border-radius: var(--border-radius-main);
box-shadow: var(--card-shadow);
padding: 30px;
border-left: 5px solid var(--sky-blue);
transition: box-shadow 0.3s ease;
}
.notification-card:hover {
box-shadow: var(--card-hover-shadow);
}
.notification-card.unread {
border-left-color: var(--mint-green);
background-color: #f6fffb;
}
/* Header section */
.notification-header {
margin-bottom: 30px;
border-bottom: 1px solid #f0f0f0;
padding-bottom: 20px;
}
.notification-meta-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.notification-type {
background-color: var(--sky-blue);
color: #3E84A8;
padding: 5px 15px;
border-radius: 20px;
font-weight: 600;
font-size: 0.85rem;
}
.notification-status .unread-badge {
background-color: var(--bright-orange);
color: white;
font-size: 0.8rem;
padding: 5px 15px;
border-radius: 20px;
font-weight: 600;
}
.notification-status .read-badge {
background-color: #e0e0e0;
color: var(--text-medium);
font-size: 0.8rem;
padding: 5px 15px;
border-radius: 20px;
font-weight: 600;
}
.notification-title {
font-family: var(--font-title);
font-size: 1.8rem;
font-weight: 600;
color: var(--text-dark);
margin: 15px 0;
line-height: 1.3;
}
.notification-time {
color: var(--text-light);
font-size: 0.9rem;
font-style: italic;
}
.notification-time i {
margin-right: 5px;
}
/* Content section */
.notification-content {
margin-bottom: 30px;
padding: 20px 0;
}
.notification-body {
font-family: var(--font-body);
color: var(--text-medium);
line-height: 1.8;
font-size: 1.05rem;
}
.notification-body p {
margin-bottom: 20px;
}
.notification-body h2, .notification-body h3 {
font-family: var(--font-title);
color: var(--text-dark);
margin-top: 25px;
margin-bottom: 15px;
}
/* Footer with buttons */
.notification-footer {
display: flex;
justify-content: space-between;
padding-top: 20px;
border-top: 1px solid #f0f0f0;
}
.btn {
padding: 10px 20px;
border-radius: 25px;
font-family: var(--font-body);
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
font-size: 0.95rem;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
}
.btn i {
margin-right: 8px;
}
.btn-back {
background-color: #f0f0f0;
color: var(--text-medium);
}
.btn-back:hover {
background-color: #e0e0e0;
color: var(--text-dark);
transform: translateY(-2px);
}
.btn-mark-read {
background-color: var(--mint-green);
color: #2A7F62;
box-shadow: 0 2px 8px rgba(168, 230, 207, 0.3);
}
.btn-mark-read:hover {
background-color: #98d8c0;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(168, 230, 207, 0.4);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.notification-detail-container {
padding: 15px;
}
.notification-card {
padding: 20px;
}
.notification-title {
font-size: 1.5rem;
}
.notification-footer {
flex-direction: column;
gap: 15px;
}
.btn {
width: 100%;
}
}