259 lines
4.5 KiB
CSS
259 lines
4.5 KiB
CSS
.mail-detail-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
background: var(--pm-surface-glass);
|
|
border-radius: var(--pm-radius-xl);
|
|
box-shadow: var(--pm-shadow-md);
|
|
border: 1px solid var(--pm-glass-border);
|
|
backdrop-filter: blur(18px);
|
|
overflow: hidden;
|
|
animation: pm-rise-in 0.34s var(--pm-ease-out);
|
|
}
|
|
|
|
.mail-detail-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 24px;
|
|
border-bottom: 1px solid var(--pm-border-color);
|
|
background: var(--pm-surface-glass-soft);
|
|
}
|
|
|
|
.back-btn {
|
|
border-radius: 12px;
|
|
font-size: 16px;
|
|
padding: 8px 10px;
|
|
transition: transform 0.2s var(--pm-ease-out);
|
|
}
|
|
|
|
.back-btn:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.action-buttons .el-button {
|
|
border-radius: 12px;
|
|
font-size: 16px;
|
|
transition: transform 0.2s var(--pm-ease-out);
|
|
}
|
|
|
|
.action-buttons .el-button:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.mail-detail-content {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
padding: 28px 30px;
|
|
}
|
|
|
|
.mail-detail-state {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 32px 20px;
|
|
text-align: center;
|
|
color: var(--pm-text-secondary);
|
|
}
|
|
|
|
.mail-detail-state h1 {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
color: var(--pm-text-primary);
|
|
}
|
|
|
|
.mail-detail-state p {
|
|
margin: 0;
|
|
}
|
|
|
|
.mail-detail-state-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.mail-detail-state-actions .el-button + .el-button {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.mail-subject {
|
|
font-size: 36px;
|
|
font-weight: 600;
|
|
color: var(--pm-text-primary);
|
|
margin: 0 0 22px 0;
|
|
line-height: 1.3;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.mail-meta-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 18px;
|
|
padding: 16px 18px;
|
|
border-radius: var(--pm-radius-lg);
|
|
border: 1px solid var(--pm-border-color);
|
|
background: var(--pm-surface-glass);
|
|
}
|
|
|
|
.meta-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.avatar-placeholder {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--pm-primary-light-3), var(--pm-primary-color));
|
|
color: white;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sender-line {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.sender-name {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
color: var(--pm-text-primary);
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.sender-email {
|
|
color: var(--pm-text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.receivers-line {
|
|
font-size: 13px;
|
|
color: var(--pm-text-secondary);
|
|
}
|
|
|
|
.meta-label {
|
|
color: var(--pm-text-muted);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.cc-section {
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.meta-right {
|
|
color: var(--pm-text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.custom-divider {
|
|
margin: 10px 0 26px 0;
|
|
}
|
|
|
|
.mail-body {
|
|
font-size: 16px;
|
|
line-height: 1.7;
|
|
color: var(--pm-text-primary);
|
|
min-height: 200px;
|
|
}
|
|
|
|
.body-html :deep(img) {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.body-text {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.attachments-section {
|
|
margin-top: 32px;
|
|
}
|
|
|
|
.attachments-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
margin-bottom: 16px;
|
|
color: var(--pm-text-primary);
|
|
}
|
|
|
|
.attachments-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
}
|
|
|
|
.attachment-card {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border: 1px solid var(--pm-border-color);
|
|
border-radius: 14px;
|
|
background-color: var(--pm-surface-muted);
|
|
transition: transform 0.2s var(--pm-ease-out), box-shadow 0.2s var(--pm-ease-out), border-color 0.2s;
|
|
min-width: 200px;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.attachment-card:hover {
|
|
border-color: var(--pm-primary-color);
|
|
background-color: var(--pm-bg-hover);
|
|
box-shadow: var(--pm-shadow-sm);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.att-icon {
|
|
font-size: 24px;
|
|
color: var(--pm-text-secondary);
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.att-name {
|
|
flex-grow: 1;
|
|
font-size: 14px;
|
|
color: var(--pm-text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.att-download {
|
|
color: var(--pm-primary-color);
|
|
font-size: 18px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.mail-detail-header {
|
|
padding: 12px 16px;
|
|
}
|
|
.mail-detail-content {
|
|
padding: 20px 16px;
|
|
}
|
|
.mail-subject {
|
|
font-size: 22px;
|
|
}
|
|
.mail-meta-card {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.meta-right {
|
|
padding-left: 64px; /* align with text */
|
|
}
|
|
.avatar-placeholder {
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 16px;
|
|
}
|
|
}
|