Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <h3 class="bp-0 text-center mt-3">Breakpoint <code>&gt;0px</code></h3>
<h3 class="bp-768 text-center mt-3">Breakpoint <code>&gt;768px</code></h3>
<h3 class="bp-992 text-center mt-3">Breakpoint <code>&gt;992px</code></h3>
<h3 class="bp-1200 text-center mt-3">Breakpoint <code>&gt;1200px</code></h3>

<ul class="list-unstyled issues-list">
  <li class="issues-list-item">
    <div class="item-body">
      <div class="item-contents">
        <div class="issue-title d-inline-flex align-items-center">
          <i class="fa fa-circle-o mr-2" aria-hidden="true"></i>
          <a href="#"
            >Numquam corporis adipisci animi ut molestiae reiciendis officia
            earum reiciendis officia
            earum.</a
          >
        </div>
        <div class="issue-meta">
          <div class="issue-path-id">#38</div>
          <div class="issue-meta-child">
           <span class="issue-milestone">
             <i class="fa fa-clock-o" aria-hidden="true"></i>
             <span class="milestone-title">Sprint - Neque voluptatum iusto illum voluptate qui.</span>
           </span>
           <span class="issue-due-date">
             <i class="fa fa-calendar-check-o" aria-hidden="true"></i>
             <span class="milestone-title">Dec 31</span>
           </span>
           <span class="issue-weight">
             <i class="fa fa-cube" aria-hidden="true"></i>
             <span class="weight">5</span>
           </span>
          </div>
          <div class="issue-assignees d-inline-flex">
            <a href="#">
              <img
                src="https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon"
                alt=""
              />
            </a>
            <a href="#">
              <img
                src="https://www.gravatar.com/avatar/f50b06e286425c32422db260d272933a?s=80&d=identicon"
                alt=""
              />
            </a>
            <span class="assignees-counter"> +4 </span>
          </div>
        </div>
      </div>
      <button type="button" class="btn-remove">
        <i class="fa fa-times" aria-hidden="hidden"></i>
      </button>
    </div>
  </li>
  <li class="issues-list-item">
    <div class="item-body">
      <div class="item-contents">
        <div class="issue-title d-inline-flex align-items-center">
          <i class="fa fa-stop-circle-o mr-2" aria-hidden="true"></i>
          <i class="fa fa-eye-slash" aria-hidden="true"></i>
          <a href="#"
            >Numquam corporis adipisci animi ut molestiae reiciendis officia
            earum.</a
          >
        </div>
        <div class="issue-meta">
          <div class="issue-path-id">gitlab-org/gitlab-shell#6</div>
          <div class="issue-meta-child">
            <span class="issue-milestone">
              <i class="fa fa-clock-o" aria-hidden="true"></i>
              <span class="milestone-title">11.6</span>
            </span>
            <span class="issue-due-date">
              <i class="fa fa-calendar-check-o" aria-hidden="true"></i>
              <span class="milestone-title">Jan 31, 2019</span>
            </span>
            <span class="issue-weight">
              <i class="fa fa-cube" aria-hidden="true"></i>
              <span class="weight">10</span>
            </span>
          </div>
          <div class="issue-assignees d-inline-flex">
            <a href="#">
              <img
                src="https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon"
                alt=""
              />
            </a>
          </div>
        </div>
      </div>
      <button type="button" class="btn-remove">
        <i class="fa fa-times" aria-hidden="hidden"></i>
      </button>
    </div>
  </li>
  <li class="issues-list-item">
    <div class="item-body">
      <div class="item-contents">
        <div class="issue-title d-inline-flex align-items-center">
          <i class="fa fa-circle-o mr-2" aria-hidden="true"></i>
          <a href="#"
            >Numquam corporis adipisci animi ut molestiae reiciendis officia
            earum.</a
          >
        </div>
        <div class="issue-meta">
          <div class="issue-path-id">#45</div>
          <div class="issue-meta-child">
            <span class="issue-milestone">
              <i class="fa fa-clock-o" aria-hidden="true"></i>
              <span class="milestone-title">&ndash;</span>
            </span>
            <span class="issue-due-date">
              <i class="fa fa-calendar-check-o" aria-hidden="true"></i>
              <span class="milestone-title">&ndash;</span>
            </span>
            <span class="issue-weight">
              <i class="fa fa-cube" aria-hidden="true"></i>
              <span class="weight">4</span>
            </span>
          </div>
          <div class="issue-assignees d-inline-flex">
            <a href="#">
              <img
                src="https://www.gravatar.com/avatar/7d625a6ebeacac689bbe925c32061e90?s=80&d=identicon"
                alt=""
              />
            </a>
            <a href="#">
              <img
                src="https://www.gravatar.com/avatar/c81643fab6d1fb1c98b3e087181f914b?s=80&d=identicon"
                alt=""
              />
            </a>
          </div>
        </div>
      </div>
      <button type="button" class="btn-remove">
        <i class="fa fa-times" aria-hidden="hidden"></i>
      </button>
    </div>
  </li>
  <li class="issues-list-item">
    <div class="item-body">
      <div class="item-contents">
        <div class="issue-title d-inline-flex align-items-center">
          <i class="fa fa-circle-o mr-2" aria-hidden="true"></i>
          <i class="fa fa-eye-slash" aria-hidden="true"></i>
          <a href="#"
            >Numquam corporis adipisci animi ut molestiae reiciendis officia
            earum.</a
          >
        </div>
        <div class="issue-meta">
          <div class="issue-path-id">#3</div>
          <div class="issue-meta-child">
            <span class="issue-milestone">
              <i class="fa fa-clock-o" aria-hidden="true"></i>
              <span class="milestone-title">12.0</span>
            </span>
            <span class="issue-due-date">
              <i class="fa fa-calendar-check-o" aria-hidden="true"></i>
              <span class="milestone-title">Mar 31, 2019</span>
            </span>
            <span class="issue-weight">
              <i class="fa fa-cube" aria-hidden="true"></i>
              <span class="weight">5</span>
            </span>
          </div>
          <div class="issue-assignees d-inline-flex"></div>
        </div>
      </div>
      <button type="button" class="btn-remove">
        <i class="fa fa-times" aria-hidden="hidden"></i>
      </button>
    </div>
  </li>
</ul>
              
            
!

CSS

              
                .bp-768,
.bp-992,
.bp-1200 {
 display: none;
}

code {
 background: #F7F7F7;
 padding: 2px;
 border-radius: 4px;
}

body {
 background-color: #E6EFC2;
}

.issues-list {
 margin: 10%;
 padding: 5px;
 background-color: #fafafa;
 border: 1px solid #e5e5e5;
 border-radius: 0.25rem;
 
 .issues-list-item {
  margin-bottom: 6px;
 }
}

.item-body {
 padding: 4px;
 background-color: #fff;
 background-clip: border-box;
 border: 1px solid #e5e5e5;
 border-radius: 0.25rem;
 
 .issue-meta {
  color: gray;
  
  .issue-meta-child {
   .issue-milestone,
   .issue-due-date {
    margin-right: 10px;
   }
  }
  
  .issue-path-id,
  .issue-milestone,
  .issue-due-date,
  .issue-weight {
   display: inline-block;
   text-overflow: ellipsis;
   overflow: hidden;
   white-space: nowrap;
  }
  
  .issue-assignees {
   order: 2;
  }
 }
}

.issue-assignees {
 align-items: center;

 img,
 .assignees-counter {
  border-radius: 50%;
  border: 1px solid transparent;
  
  &:hover {
   border-color: gray;
  }
 }
 
 a {
  img {
   vertical-align: bottom;
   width: 24px;
   height: 24px;
  }
  
  &:nth-child(1) {
   z-index: 3;
  }
  
  &:nth-child(2) {
   z-index: 2;
  }
 }
 
 .assignees-counter {
  height: 24px;
  width: 24px;
  background-color: #919191;
  color: #fff;
  border: 1px solid #f5f5f5;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
 }
}

.fa {
 &.fa-eye-slash {
  color: orange;
  margin-right: 5px;
 }
 
 &.fa-circle-o {
  color: green;
 }
 
 &.fa-stop-circle-o {
  color: blue;
 }
}

.item-body {
 display: flex;
 position: relative;
 align-items: flex-start;

 .item-contents {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-grow: 1;
  
  .issue-title {
   margin-bottom: 10px;
  }
  
  .issue-meta {
   display: flex;
   flex-wrap: wrap;
   flex-basis: 100%;

   .issue-path-id {
     order: 1;
     margin-top: 10px;
     max-width: 160px;
   }

   .issue-meta-child {
    order: 0;
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
 
    .issue-milestone {
     max-width: 150px;
    }
   }
   
   .issue-assignees {
    align-self: flex-end;
    margin-left: auto;
   }
  }
 }
 
 .btn-remove {
  right: 0;
  margin-right: 5px;
  position: absolute;
 }
}

/* Small devices (landscape phones, 768px and up) */
@media (min-width: 768px) {
 body {
  background: #98D3A6;
 }
 
 .bp-0,
 .bp-992,
 .bp-1200 {
  display: none;
 }
 
 .bp-768 {
  display: block;
 }
 
 .item-body {
  .item-contents {
   .issue-meta {
    .issue-path-id {
     order: 0;
     margin-top: 0;
    }
    
    .issue-meta-child {
     flex-basis: unset;
     margin-left: auto;
    }

    .issue-assignees {
     margin-bottom: 0;
     margin-left: 10px;
     order: 2;
    }
   }
  }
  
  .btn-remove {
   order: 1;
  }
 }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
  body {
   background: #37AFA8;
  }

  .bp-0,
  .bp-768,
  .bp-1200 {
   display: none;
  }
 
  .bp-992 {
   display: block;
  }
 
  .item-body {
   padding: 10px;
   
   .btn-remove {
    margin-right: 10px;
   }
  }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  body {
   background: #496E7D;
  }

  .bp-0,
  .bp-768,
  .bp-992 {
   display: none;
  }
 
  .bp-1200 {
   display: block;
  }
 
  .item-body {
   padding-left: 16px;
 
   .item-contents {
    flex-wrap: nowrap;
    overflow: hidden;
 
    .issue-title {
     display: flex;
     margin-bottom: 0;
     min-width: 0;
     flex-basis: unset;
     
     a {
      display: block;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
     }
    }
    
    .issue-meta {
     margin-top: 0;
     justify-content: flex-end;
     flex: 1;
     flex-wrap: nowrap;
     
     .issue-path-id {
      order: 0;
      margin-top: 0;
      margin-left: 10px;
      margin-right: auto;

      .fa-circle-o,
      .fa-stop-circle-o {
       display: none;
      }
     }
     
     .issue-meta-child {
      margin-left: 10px;
      flex-wrap: nowrap;
      
      .issue-milestone {
       max-width: 120px;
      }
      
      .issue-weight {
       max-width: 48px;
      }
     }
     
     .issue-assignees {
      flex-grow: 0;
      margin-right: 10px;
      margin-top: 0;
     }
    }
   }
   
   .btn-remove {
    position: relative;
    align-self: center;
    right: 0;
    margin-right: 0;
   }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console