Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
  <div class="timeline clearfix">
  <div class="vertical-line">
    <div id="post-1" class="vesti-col timeline-post">
      <div class="vesti-content-wrapper">
        <div class="photo">
          <img src="http://res.cloudinary.com/do5ht5y0y/image/upload/v1501322753/post-img-2_zpse1ce0jta_sktijn.jpg">
          <div class="vesti-date-wrapper">
            <div class="vesti-date">
              <span class="day">14</span>
              <br>
              <span class="month">DEC</span>
            </div>
          </div>
        </div>
        <div class="vesti-desc">
          <a class="desc-a" href="#">
            <h4>Deleniti dignissimos perferendis</h4>
          </a>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quas necessitatibus laboriosam est, suscipit recusandae. Velit eius voluptatem non, fuga numquam a, quisquam sint autem praesentium laudantium explicabo eligendi.</p>
        </div>
      </div>
    </div>
    <div id="post-2" class="vesti-col timeline-post">
      <div class="vesti-content-wrapper">
        <div class="photo">
          <img src="http://res.cloudinary.com/do5ht5y0y/image/upload/v1501322753/post-img-1_zpsergopcgw_w5k5bz.jpg">
          <div class="vesti-date-wrapper">
            <div class="vesti-date">
              <span class="day">25</span>
              <br>
              <span class="month">NOV</span>
            </div>
          </div>
        </div>
        <div class="vesti-desc">
          <a class="desc-a" href="#">
            <h4>Facilis ipsa fugit</h4>
          </a>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum suscipit eaque, quasi aperiam officiis ex, odio quisquam hic, ab iure placeat, possimus magnam blanditiis.</p>
        </div>
      </div>
    </div>
    <div id="post-3" class="vesti-col timeline-post">
      <div class="vesti-content-wrapper">
        <div class="photo">
          <img src="http://res.cloudinary.com/do5ht5y0y/image/upload/v1501322753/post-img-4_zpsazehwtua_ewyer0.jpg">
          <div class="vesti-date-wrapper">
            <div class="vesti-date">
              <span class="day">16</span>
              <br>
              <span class="month">NOV</span>
            </div>
          </div>
        </div>
        <div class="vesti-desc">
          <a class="desc-a" href="#">
            <h4>Rerum commodi</h4>
          </a>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Debitis, incidunt eius totam animi, alias non iste similique perspiciatis aut, dolor harum dolores explicabo sunt cum consequatur sint maiores, ullam corrupti.</p>
        </div>
      </div>
    </div>
    <div id="post-4" class="vesti-col timeline-post">
      <div class="vesti-content-wrapper">
        <div class="photo">
          <img src="http://res.cloudinary.com/do5ht5y0y/image/upload/v1501322753/post-img-3_zpsxo9mx2fx_lqohzy.jpg">
          <div class="vesti-date-wrapper">
            <div class="vesti-date">
              <span class="day">4</span>
              <br>
              <span class="month">OCT</span>
            </div>
          </div>
        </div>
        <div class="vesti-desc">
          <a class="desc-a" href="#">
            <h4>Necessitatibus velit</h4>
          </a>
          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium quibusdam expedita sequi, possimus optio perferendis.</p>
        </div>
      </div>
    </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                *,
*:after, 
*:before {
-webkit-box-sizing: border-box; 
-moz-box-sizing: border-box; 
box-sizing: border-box;}

.container {
  margin: 50px auto;
  max-width: 1600px;
  padding: 30px 20px;

  position: relative;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.clearfix:after {
  content: " ";
  display: table;
  clear: both;
} 

@media (min-width: 760px) {
  .vertical-line::after {
    top: -10px;
    right: 50%;
    background-color: #a6a6a6;
    overflow: hidden;
    position: absolute;
    content: "";
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin-right: -5px;
  }
  .vertical-line::before {
    top: -10px;
    right: 50%;
    background-color: #a6a6a6;
    overflow: hidden;
    position: absolute;
    content: "";
    display: block;
    height: 100%;
    width: 2px;
    margin-right: -2px;
  }
  .vesti-date-wrapper::before {
    top: 50%;
    background-color: #a6a6a6;
    overflow: hidden;
    position: absolute;
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    margin-top: -2px;
    z-index: -10;
  }
}
.vesti-col {
  width: 100%;
}

.timeline-post {
  position: relative;
}

.timeline-post:nth-child(odd) {
  margin-top: 20px;
}

.timeline-post:nth-child(even) {
  margin-bottom: 0;
  margin-top: 100px;
}

.photo {
  position: relative;
}
/*Vesti date*/

.vesti-date-wrapper {
  position: absolute;
  right: 50%;
  margin-right: -25px;
  bottom: -25px;
}

.vesti-date-wrapper .vesti-date {
  width: 50px;
  height: 50px;
  text-align: center;
  background: #fff;
  padding-top: 14px;
  border-width: 2px;
  border-style: solid;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  border-color: #a6a6a6;
}

.vesti-date-wrapper .vesti-date .day {
  font-size: 20px;
  color: #2d3e4f;
  line-height: 0px;
  display: block;
}

.vesti-date-wrapper .vesti-date .month {
  font-size: 12px;
  color: #2d3e4f;
  line-height: 0px;
  display: block;
  text-transform: uppercase;
}

/*izmedju - remove later */

.timeline-post:nth-child(2n+3) {
  clear: both;
}

.timeline-post:nth-child(odd) .vesti-date-wrapper .vesti-date {
  float: right;
}

.timeline-post:nth-child(even) {
  /*float: right;*/
  margin-bottom: 0;
  margin-top: 20px;
}

.timeline-post:nth-child(even) .vesti-date-wrapper {
  bottom: -25px;
  right: 50%;
  margin-right: -25px;
}

/*Vesti typography*/

.vesti-desc {
  text-align: center;
}

.vesti-desc h4 {
  color: #2d3e4f;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 800;
  margin-top: 35px;
  margin-bottom: 15px;
  transition-delay: 0s;
  transition-duration: 0.2s;
  transition-property: all;
  transition-timing-function: ease-out
}

.owl-item .vesti-desc h4 {
  margin-top: 50px;
}

.vesti-desc h4:hover {
  color: #00b388 !important;
}

.vesti-desc p {
  color: #2d3e4f;
  font-size: 16px !important;
  font-weight: 400;
}

@media (min-width: 768px) {
  #section_2 .owl-item {
    padding: 0 20px;
  }
  .post-type-archive-vesti .container {
    max-width: 1600px;
  }
  .archive .site-content {
    margin-top: 100px;
  }
  .vesti-col {
    width: 43%;
  }
/*  .timeline {
    margin-top: 20px;
    margin-bottom: 50px;
    padding-top: 20px;
  }*/
  .vesti-date-wrapper {
    position: absolute;
    right: 150px;
    margin-right: 0px;
    bottom: auto;
  }
  .timeline-post:nth-child(odd) {
    float: left;
    margin-top: 0;
  }
  .timeline-post:nth-child(even) {
    float: right;
    margin-bottom: 0;
    margin-top: 50px;
  }
  .vesti-desc h4 {
    margin-bottom: 15px;
    margin-top: 20px;
    font-size: 30px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -77px;
    top: 55px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -77px;
    bottom: 15px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 77px;
  }
}

@media (min-width: 850px) {
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -85px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -85px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 85px;
  }
}

@media (min-width: 1000px) {
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -95px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -95px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 95px;
  }
}

@media (min-width: 1100px) {
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -100px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -100px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 100px;
  }
}
  
@media (min-width: 1200px) {
/*  .timeline {
    margin-top: 40px;
  }*/
  .timeline-post:nth-child(even) {
    margin-top: 100px;
  }
  .vesti-date-wrapper .vesti-date {
    width: 100px;
    height: 100px;
    padding: 23px;
  }
  .vesti-date-wrapper .vesti-date .day {
    font-size: 40px;
    line-height: 20px;
  }
  .vesti-date-wrapper .vesti-date .month {
    font-size: 20px;
    line-height: 5px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -132px;
    top: 55px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -132px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 132px;
  }
  .owl-item .vesti-desc h4 {
    margin-top: 75px;
  }
}

@media (min-width: 1300px) {
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -140px;
    top: 55px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -140px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 140px;
  }
}

@media (min-width: 1400px) {
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -146px;
    top: 55px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -146px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 146px;
  }
}

@media (min-width: 1500px) {
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -155px;
    top: 55px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -155px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 155px;
  }
}

@media (min-width: 1600px) {
  .timeline-post:nth-child(odd) .vesti-date-wrapper {
    right: -160px;
    top: 55px;
  }
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    left: -160px;
  }
  .timeline-post:nth-child(odd) .vesti-date-wrapper,
  .timeline-post:nth-child(even) .vesti-date-wrapper {
    width: 160px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console