The Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.
Line 8: | Line 8: | ||
} | } | ||
− | + | html, body { | |
− | + | margin: 0; | |
− | + | padding: 0; | |
− | + | font-family: Helvetica, sans-serif; | |
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | body { | |
− | + | background: #fafafa; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
+ | section#timeline { | ||
+ | width: 70%; | ||
+ | margin: 20px auto; | ||
+ | position: relative; | ||
− | + | } | |
− | + | section#timeline:before { | |
− | + | content: ''; | |
− | display: | + | display: block; |
− | position: | + | position: absolute; |
− | left: | + | left: 50%; |
top: 0; | top: 0; | ||
− | width: | + | margin: 0 0 0 -1px; |
+ | width: 2px; | ||
height: 100%; | height: 100%; | ||
+ | background: #F0D423 ; | ||
} | } | ||
− | + | section#timeline article { | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
width: 100%; | width: 100%; | ||
− | + | margin: 0 0 20px 0; | |
− | + | position: relative; | |
} | } | ||
− | + | section#timeline article:after { | |
− | + | content: ''; | |
− | + | ||
display: block; | display: block; | ||
− | + | clear: both; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | section#timeline article div.inner { | |
− | + | width: 40%; | |
− | div. | + | float: left; |
+ | margin: 5px 0 0 0; | ||
+ | border-radius: 6px; | ||
+ | } | ||
+ | section#timeline article div.inner span.date { | ||
display: block; | display: block; | ||
− | + | width: 60px; | |
− | height: 0; | + | height: 50px; |
− | + | padding: 5px 0; | |
− | text- | + | position: absolute; |
− | + | top: 0; | |
− | + | left: 50%; | |
+ | margin: 0 0 0 -32px; | ||
+ | border-radius: 100%; | ||
+ | font-size: 12px; | ||
+ | font-weight: 900; | ||
+ | text-transform: uppercase; | ||
+ | background: #25303B; | ||
+ | color: rgba(255,255,255,0.5); | ||
+ | border: 2px solid rgba(255,255,255,0.2); | ||
+ | box-shadow: 0 0 0 7px #25303B; | ||
} | } | ||
− | + | section#timeline article div.inner span.date span { | |
− | div. | + | display: block; |
− | + | text-align: center; | |
− | + | } | |
+ | section#timeline article div.inner span.date span.day { | ||
+ | font-size: 10px; | ||
} | } | ||
− | + | section#timeline article div.inner span.date span.month { | |
− | + | font-size: 18px; | |
− | . | + | } |
− | + | section#timeline article div.inner span.date span.year { | |
− | + | font-size: 10px; | |
+ | } | ||
+ | section#timeline article div.inner h2 { | ||
+ | padding: 15px; | ||
+ | margin: 0; | ||
+ | color: #fff; | ||
+ | font-size: 20px; | ||
+ | text-transform: uppercase; | ||
+ | letter-spacing: -1px; | ||
+ | border-radius: 6px 6px 0 0; | ||
position: relative; | position: relative; | ||
− | + | } | |
− | + | section#timeline article div.inner h2:after { | |
− | + | content: ''; | |
− | + | position: absolute; | |
− | + | top: 20px; | |
− | + | right: -5px; | |
− | + | width: 10px; | |
− | + | height: 10px; | |
− | + | -webkit-transform: rotate(-45deg); | |
− | + | } | |
+ | section#timeline article div.inner p { | ||
+ | padding: 15px; | ||
margin: 0; | margin: 0; | ||
− | + | font-size: 14px; | |
− | + | background: #fff; | |
− | + | color: #656565; | |
+ | border-radius: 0 0 6px 6px; | ||
+ | } | ||
+ | section#timeline article:nth-child(2n+2) div.inner { | ||
+ | float: right; | ||
+ | } | ||
+ | section#timeline article:nth-child(2n+2) div.inner h2:after { | ||
+ | left: -5px; | ||
+ | } | ||
+ | section#timeline article:nth-child(1) div.inner h2 { | ||
+ | background: #17A3B5; | ||
+ | } | ||
+ | section#timeline article:nth-child(1) div.inner h2:after { | ||
+ | background: #17A3B5 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(2) div.inner h2 { | ||
+ | background: #EDA194 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(2) div.inner h2:after { | ||
+ | background: #EDA194 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(3) div.inner h2 { | ||
+ | background: #DF5939 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(3) div.inner h2:after { | ||
+ | background: #DF5939 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(4) div.inner h2 { | ||
+ | background: #A8D5D8 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(4) div.inner h2:after { | ||
+ | background: #A8D5D8 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(5) div.inner h2 { | ||
+ | background: #efb521 ; | ||
+ | } | ||
+ | section#timeline article:nth-child(5) div.inner h2:after { | ||
+ | background:#efb521 ; | ||
} | } | ||
− | |||
Line 111: | Line 151: | ||
− | + | <section id="timeline"> | |
− | + | <article> | |
− | < | + | <div class="inner"> |
− | < | + | <span class="date"> |
− | < | + | <span class="day">30<sup>th</sup></span> |
− | + | <span class="month">Jan</span> | |
− | + | <span class="year">2014</span> | |
− | < | + | </span> |
− | + | <h2>The Title</h2> | |
− | + | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.</p> | |
− | + | </div> | |
− | + | </article> | |
− | + | <article> | |
− | + | <div class="inner"> | |
− | + | <span class="date"> | |
− | + | <span class="day">26<sup>th</sup></span> | |
− | + | <span class="month">Jan</span> | |
− | + | <span class="year">2014</span> | |
− | + | </span> | |
− | + | <h2>The Title</h2> | |
− | + | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.</p> | |
− | + | </div> | |
− | + | </article> | |
− | + | <article> | |
− | + | <div class="inner"> | |
− | + | <span class="date"> | |
− | + | <span class="day">26<sup>th</sup></span> | |
− | + | <span class="month">Jan</span> | |
− | < | + | <span class="year">2014</span> |
− | + | </span> | |
− | + | <h2>The Title</h2> | |
− | + | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.</p> | |
− | + | </div> | |
− | + | </article> | |
− | + | <article> | |
− | + | <div class="inner"> | |
− | + | <span class="date"> | |
− | + | <span class="day">26<sup>th</sup></span> | |
− | + | <span class="month">Jan</span> | |
− | + | <span class="year">2014</span> | |
− | + | </span> | |
− | + | <h2>The Title</h2> | |
− | + | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.</p> | |
− | + | </div> | |
− | + | </article> | |
− | + | <article> | |
− | + | <div class="inner"> | |
− | + | <span class="date"> | |
− | + | <span class="day">26<sup>th</sup></span> | |
− | + | <span class="month">Jan</span> | |
− | + | <span class="year">2014</span> | |
− | + | </span> | |
− | < | + | <h2>The Title</h2> |
− | < | + | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.</p> |
− | + | </div> | |
− | < | + | </article> |
− | + | </section> | |
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | + | ||
− | + | ||
− | < | + | |
− | < | + | |
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </p> | + | |
− | </ | + | |
− | </ | + | |
− | < | + | |
− | + | ||
− | <div class=" | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | < | + | |
− | </ | + | |
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | The | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </p> | + | |
− | </ | + | |
− | </ | + | |
− | < | + | |
− | + | ||
− | <div class=" | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | < | + | |
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </p> | + | |
− | </ | + | |
− | </ | + | |
− | </ | + | |
− | + | ||
− | + | ||
</body> | </body> | ||
<html> | <html> |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis rutrum nunc, eget dictum massa. Nam faucibus felis nec augue adipiscing, eget commodo libero mattis.