MediaWiki:Common.css:修订间差异
无编辑摘要 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
无编辑摘要 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
||
| 第70行: | 第70行: | ||
} | } | ||
/* | /* 折叠开关:设为相对定位的块级元素 */ | ||
.timeline-toggle { | .timeline-toggle { | ||
position: relative; | |||
display: block; | |||
padding-right: 25px; /* 右侧留出空位给箭头,防止文字盖住箭头 */ | |||
text-align: left; | |||
cursor: pointer; | cursor: pointer; | ||
font-weight: bold; | font-weight: bold; | ||
line-height: 1.5; | |||
. | |||
} | } | ||
/* | /* 标题部分:正常显示 */ | ||
.timeline-title { | .timeline-title { | ||
display: inline; | |||
} | } | ||
/* | /* 箭头:绝对定位,钉死在右上角 */ | ||
.timeline-arrow { | .timeline-arrow { | ||
position: absolute; | |||
right: 0; | |||
top: 0; | |||
line-height: 1.5; /* 与标题第一行的行高保持一致,实现对齐 */ | |||
font-size: 0.9em; | font-size: 0.9em; | ||
} | |||
/* ===== 手机端专属适配:减小内边距,给文字留空间 ===== */ | |||
@media screen and (max-width: 600px) { | |||
/* 减小时间线整体的左边距(原本是70px) */ | |||
.timeline-item { | |||
padding-left: 50px !important; | |||
padding-right: 10px !important; | |||
} | |||
/* 减小卡片的内部边距(原本是20px 30px) */ | |||
.timeline-content { | |||
padding: 12px 15px !important; | |||
} | |||
/* 强制文字左对齐,防止被意外居中 */ | |||
.timeline-toggle { | |||
text-align: left !important; | |||
} | |||
} | } | ||