小 (云卷云舒移动页面User:云卷云舒/Flow-timeline/style.css至Template:Flow-timeline/style.css,不留重定向:快速重命名 → T:Flow-timeline/style.css (移动子页面)) |
小 (已保护“Template:Flow-timeline/style.css”([编辑=仅允许模板编辑员](无限期)[移动=仅允许模板编辑员](无限期))) |
(没有差异)
|
2023年7月29日 (六) 19:28的版本
div.timeline-framework {
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-rows: max-content;
gap: 5px;
position: relative;
}
div.timeline-trunk {
content: '';
position: absolute;
top: 0;
bottom:0;
left: 50%;
width: 5px;
transform: translateX(-50%);
background-color: black;
}
div.timeline-branch {
position: relative;
display: flex;
justify-content: center;
justify-items: end;
align-items: center;
}
div.timeline-branch:nth-child(even) {
grid-column-start: -3;
grid-column-end: -2;
justify-content: end;
flex-direction: row-reverse;
}
div.timeline-branch:nth-child(odd) {
top: 50px;
grid-column-start: -2;
grid-column-end: -1;
justify-content: start;
}
div.timeline-line {
position: relative;
background-color: black;
height: 2px;
min-width:100px;
}
div.timeline-text {
position: relative;
background-color: white;
border: 2px solid black;
border-radius: 5px;
max-width: 500px;
padding: 5%;
}
span.timeline-id {
position: relative;
margin-left: 10%;
margin-top: 2px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
div.timeline-emptycell {
max-height: 5em;
min-height: 3em;
}
@media only screen and (max-width: 768px) {
div.timeline-line {
min-width:50px;
}
}