Files
muse/src/pages/muse/components/MarkDetail.css
2026-03-11 22:31:37 +08:00

179 lines
2.9 KiB
CSS

/* MarkDetail 组件样式 */
.mark-detail-container {
background: #ffffff;
border-radius: 8px;
padding: 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
max-height: 200px;
overflow: hidden;
position: relative;
}
.mark-detail-container.expanded {
max-height: none;
overflow: visible;
}
.mark-detail-container h2 {
margin: 0 0 8px 0;
font-size: 18px;
font-weight: 600;
color: #333;
line-height: 1.4;
}
.mark-detail-container p {
margin: 0 0 12px 0;
color: #666;
line-height: 1.5;
}
/* 封面图片样式 */
.mark-cover {
margin-bottom: 12px;
text-align: center;
}
.mark-cover img {
max-width: 100%;
height: auto;
border-radius: 6px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* 摘要样式 */
.mark-summary {
margin-bottom: 12px;
padding: 12px;
background-color: #f8f9fa;
border-radius: 6px;
border-left: 4px solid #007bff;
}
.mark-summary h3 {
margin: 0 0 8px 0;
font-size: 14px;
font-weight: 600;
color: #333;
}
.mark-summary p {
margin: 0;
font-size: 13px;
color: #555;
line-height: 1.4;
}
/* 链接样式 */
.mark-link {
margin-bottom: 12px;
}
.mark-link a {
color: #007bff;
text-decoration: none;
padding: 6px 12px;
border: 1px solid #007bff;
border-radius: 4px;
display: inline-block;
font-size: 13px;
transition: all 0.2s ease;
}
.mark-link a:hover {
background-color: #007bff;
color: white;
}
/* 类型和日期样式 */
.mark-type,
.mark-date {
margin-bottom: 8px;
font-size: 12px;
color: #666;
}
.mark-type span,
.mark-date span {
background-color: #f1f3f4;
padding: 2px 6px;
border-radius: 3px;
}
/* 标签样式 */
.mark-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 12px;
}
.mark-tag {
background-color: #e3f2fd;
color: #1976d2;
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
}
/* 展开/收起按钮样式 */
.mark-expand-button {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-top: 12px;
padding: 8px 12px;
background-color: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
color: #495057;
transition: all 0.2s ease;
user-select: none;
}
.mark-expand-button:hover {
background-color: #e9ecef;
border-color: #adb5bd;
}
.mark-expand-button:active {
transform: translateY(1px);
}
/* 收起状态下的渐变遮罩 */
.mark-detail-container.collapsed::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 40px;
background: linear-gradient(transparent, white);
pointer-events: none;
}
/* 响应式设计 */
@media (max-width: 768px) {
.mark-detail-container {
padding: 12px;
}
.mark-detail-container h2 {
font-size: 16px;
}
.mark-detail-container p {
font-size: 14px;
}
.mark-expand-button {
font-size: 12px;
padding: 6px 10px;
}
}