@import "animate.css"; @import "components/timelify/variables"; * { box-sizing: border-box; } .timeline { position: relative; overflow: auto; width: 100%; & hr { margin: 0 0 20px 0; } margin-top: 40px; &::before { content: ''; position: absolute; top: 0; left: 50%; margin: 0 auto; height: 100%; width: 4px; background-color: $timeline-color; } & h2 { margin: 0 auto; width: 130px; color: white; background: $timeline-color; text-align: center; font-size: 30px; position: relative; z-index: 2; } & h3 { color: inherit; font-weight: 300; } & .timeline-items { list-style-type: none; overflow: hidden; padding-top: 110px; padding-left: 0; & .timeline-item { position: relative; margin-bottom: 100px; left: -10px; padding: 20px; background-color: white; width: 45%; & h3 { font-weight: 700; } &.is-hidden { visibility: hidden; } & a { font-weight: 700; } & time::before { font-family: FontAwesome, sans-serif; content: '\f017'; margin-right: 10px; } &::before { content: ''; width: 0; height: 0; position: absolute; right: -1em; top: 0; } &::after { content: ''; background: $timeline-color; width: 30px; height: 30px; position: absolute; top: -15px; border-radius: 100%; left: calc(100% + 10.4%); } &:nth-of-type(2n+1) { background-color: $timeline-item; color: white; & hr { border-top: 1px solid lighten($timeline-item, 5%); } & a { color: #1759a2; } &::before { border-top: 1em solid $timeline-item; border-right: 1em solid transparent; } } &:nth-of-type(2n) { background-color: $timeline-item-inverted; color: white; & hr { border-top: 1px solid lighten($timeline-item-inverted, 5%); } & a { color: #601010; } &::before { border-top: 1em solid $timeline-item-inverted; border-right: 1em solid transparent; } } &.inverted { position: relative; left: 54%; text-align: right; &::before { content: ''; width: 0; height: 0; position: absolute; left: -1em; top: 0; } &::after { content: ''; background: $timeline-color; width: 30px; height: 30px; position: absolute; top: -15px; border-radius: 100%; left: calc(-8.78% - 13px); } &:nth-of-type(2n+1) { background-color: $timeline-item; color: white; & hr { border-top: 1px solid lighten($timeline-item, 5%); } & a { color: #1759a2; } &::before { border-top: 1em solid $timeline-item; border-left: 1em solid transparent; } } &:nth-of-type(2n) { background-color: $timeline-item-inverted; color: white; & hr { border-top: 1px solid lighten($timeline-item-inverted, 5%); } & a { color: #601010; } &::before { border-top: 1em solid $timeline-item-inverted; border-left: 1em solid transparent; } } } &.centered { position: relative; text-align: justify; width: 100%; &::before { content: ''; width: 0; height: 0; position: absolute; left: calc(50% - 4px); top: -12px; } &::after { display: none; } &:nth-of-type(2n+1) { background-color: $timeline-item; color: white; & hr { border-top: 1px solid lighten($timeline-item, 5%); } & a { color: #1759a2; } &::before { border-top: 0; border-left: 1em solid transparent; border-right: 1em solid transparent; border-bottom: 1em solid $timeline-item; } } &:nth-of-type(2n) { background-color: $timeline-item-inverted; color: white; & hr { border-top: 1px solid lighten($timeline-item-inverted, 5%); } & a { color: #601010; } &::before { border-top: 0; border-left: 1em solid transparent; border-right: 1em solid transparent; border-bottom: 1em solid $timeline-item-inverted; } } } } } }