Created
August 17, 2018 14:45
-
-
Save topleague/05a32733d692a65f7f1da8c050ce57a0 to your computer and use it in GitHub Desktop.
CSS Snippets for Vertical Timeline in Genesis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Snippets for Custom Body Class */ | |
.timeline-body .entry { | |
background-color: transparent; | |
padding: 10px 10px; | |
} | |
.timeline-body .site-inner { | |
max-width: 1280px!important; | |
} | |
.timeline-body { | |
background-color: #474e5d; | |
} | |
/* Snippets for Vertical Timeline */ | |
.container { | |
width: 50%; | |
padding: 10px 40px; | |
position: relative; | |
} | |
.lefthand { | |
left: 0; | |
} | |
.righthand { | |
left: 50%; | |
} | |
.box { | |
background-color: antiquewhite; | |
position: relative; | |
border-radius: 5px; | |
padding: 20px 30px; | |
} | |
.timeline { | |
position: relative; | |
} | |
.timeline::after { | |
content: ''; | |
position: absolute; | |
width: 6px; | |
background-color: white; | |
top: 0; | |
bottom: 0; | |
left: 50%; | |
margin-left: -3px; | |
} | |
.lefthand::before { | |
content: " "; | |
height: 0; | |
position: absolute; | |
top: 22px; | |
width: 0; | |
z-index: 1; | |
right: 30px; | |
border: medium solid white; | |
border-width: 10px 0 10px 10px; | |
border-color: transparent transparent transparent antiquewhite; | |
} | |
.righthand::before { | |
content: " "; | |
height: 0; | |
position: absolute; | |
top: 22px; | |
width: 0; | |
z-index: 1; | |
left: 30px; | |
border: medium solid white; | |
border-width: 10px 10px 10px 0; | |
border-color: transparent antiquewhite transparent white; | |
} | |
.container::after { | |
content: ''; | |
position: absolute; | |
width: 35px; | |
height: 35px; | |
right: -17px; | |
background-color: white; | |
border: 4px solid #FF9F55; | |
top: 15px; | |
border-radius: 50%; | |
z-index: 1; | |
} | |
.righthand::after { | |
left: -17px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment