模板:时间轴/Timeline.css:修订间差异
< 模板:时间轴
ChthollyRoot(讨论 | 贡献) (创建页面,内容为“body { font-size: 14px; line-height: 1.5; } h1 { font-size: 2rem; margin-bottom: .5em; } p { font-family: 'Roboto', sans-serif; font-size: .8rem; } .contain…”) |
ChthollyRoot(讨论 | 贡献) 无编辑摘要 |
||
| 第2行: | 第2行: | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 1.5; | line-height: 1.5; | ||
} | |||
h0 { | |||
font-size: 14px; | |||
margin-bottom: 0px; | |||
} | } | ||
| 第41行: | 第46行: | ||
height: 10px; | height: 10px; | ||
display: block; | display: block; | ||
top: | top: 3.3em; | ||
position: absolute; | position: absolute; | ||
left: -7px; | left: -7px; | ||
2020年4月6日 (一) 16:41的版本
body {
font-size: 14px;
line-height: 1.5;
}
h0 {
font-size: 14px;
margin-bottom: 0px;
}
h1 {
font-size: 2rem;
margin-bottom: .5em;
}
p {
font-family: 'Roboto', sans-serif;
font-size: .8rem;
}
.container {
max-width: 1024px;
width: 90%;
margin: 0 auto;
}
.timeline-item {
padding: 3em 2em 2em;
position: relative;
color: #1D1D1D;
border-left: 2px solid ;
}
.timeline-item::before {
content: attr(date-is);
position: absolute;
left: 2em;
font-weight: bold;
top: 1em;
display: block;
font-family: 'Roboto', sans-serif;
font-weight: 700;
font-size: .785rem;
}
.timeline-item::after {
width: 10px;
height: 10px;
display: block;
top: 3.3em;
position: absolute;
left: -7px;
border-radius: 10px;
content: '';
border: 2px solid;
background: white;
}