Template:Flow-timeline/style.css:修订间差异

模板页面
([InPageEdit] 没有编辑摘要)
([InPageEdit] 没有编辑摘要)
第24行: 第24行:
justify-items: end;
justify-items: end;
align-items: center;
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;
}
}


第62行: 第48行:
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
}

div.timeline-emptycell {
div.timeline-emptycell {
height: 3em;
height: 3em;
}
}


@media only screen and (min-width:768px) {
div.mobile-emptycell {
display: none;
}

div.branch:nth-child(4n+2) {
flex-direction: row-reverse;
justify-content: end;
}

div.branch:nth-child(4n) {
top: 3em;
}
}
@media only screen and (max-width: 768px) {
@media only screen and (max-width: 768px) {
div.timeline-framework {
div.timeline-framework {
第83行: 第84行:
left: 0%;
left: 0%;
}
}
div.timeline-mobile-emptycell{
height: 1em;
}
}
}

2023年8月1日 (二) 17:33的版本

            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-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 {
                height: 3em;
            }

            @media only screen and (min-width:768px) {
                div.mobile-emptycell {
                    display: none;
                }

                div.branch:nth-child(4n+2) {
                    flex-direction: row-reverse;
                    justify-content: end;
                }

                div.branch:nth-child(4n) {
                    top: 3em;
                }
            }
			@media only screen and (max-width: 768px) {
                div.timeline-framework {
                    display: flex;
                    flex-wrap: wrap;
                }

                div.timeline-line {
                    min-width: 50px;
                }

                div.timeline-branch {
                    flex-direction: row !important;
                }

                div.timeline-trunk {
                    left: 0%;
                }
			}