MediaWiki:Common.css:修订间差异
无编辑摘要 |
无编辑摘要 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
||
| 第79行: | 第79行: | ||
.timeline-toggle:hover { | .timeline-toggle:hover { | ||
color: #00E5FF; | color: #00E5FF; | ||
} | |||
/* 折叠开关的弹性布局 */ | |||
.timeline-toggle { | |||
display: flex; | |||
justify-content: space-between; /* 标题靠左,三角标靠右 */ | |||
align-items: flex-start; /* 顶部对齐,防止换行时三角标掉下去 */ | |||
width: 100%; | |||
cursor: pointer; | |||
box-sizing: border-box; | |||
gap: 10px; /* 文字和三角标之间的最小距离 */ | |||
} | |||
/* 标题部分:占据剩余宽度,允许换行 */ | |||
.timeline-title { | |||
flex: 1; | |||
word-break: break-word; | |||
line-height: 1.4; | |||
} | |||
/* 三角标:固定在右侧,禁止被压缩,微调垂直位置与第一行文字对齐 */ | |||
.timeline-arrow { | |||
flex-shrink: 0; | |||
font-size: 0.9em; | |||
margin-top: 3px; /* 根据字体大小微调,让箭头和第一行文字居中对齐 */ | |||
} | } | ||