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 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

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="main_cont">
  <div class="left_col">
    <div class="menu_location">
      <div class="menu_btn zmdi zmdi-menu"></div>
      <div class="store_location">152 Riverside Ave</div>
    </div>
    <div class="tabs_cont">
      <div class="tap_item selected_tab">Today</div>
      <div class="tap_item">Future</div>
      <div class="tap_item">Past</div>
    </div>
    <div class="orders_section_header">
      <div class="section_header_left_title">On Deck</div>
      <div class="section_header_right_title">Due in</div>
    </div>
    
    <input type="radio" name="order_bar_radio" id="order3" personname="Julia H">
    <label class="order_bar pulsing_red_bar" for="order3">
      <div class="num_of_items">14</div>
      <div class="order_name">Julia H</div>
      <div class="pickup_time red_text">-8 min</div>
    </label>
    
    
    
    <input type="radio" name="order_bar_radio" id="order2" personname="Jason B">
    <label class="order_bar" for="order2">
      <div class="num_of_items yellow_bg">12</div>
      <div class="order_name">Jason B</div>
      <div class="pickup_time red_text">4 min</div>
    </label>

    <input type="radio" name="order_bar_radio" id="order4" personname="Elizabeth B" checked>
    <label class="order_bar" for="order4">
      <div class="num_of_items">6</div>
      <div class="order_name">Elizabeth B</div>
      <div class="pickup_time">5 min</div>
    </label>

    <input type="radio" name="order_bar_radio" id="order5" personname="Robert Z">
    <label class="order_bar" for="order5">
      <div class="num_of_items">8</div>
      <div class="order_name">Robert Z</div>
      <div class="pickup_time">11 min</div>
    </label>

    <input type="radio" name="order_bar_radio" id="order6" personname="Eric S">
    <label class="order_bar" for="order6">
      <div class="num_of_items">3</div>
      <div class="order_name">Eric S</div>
      <div class="pickup_time">13 min</div>
    </label>

    <input type="radio" name="order_bar_radio" id="order1" personname="Rebecca M">
    <label class="order_bar" for="order1">
      <div class="num_of_items yellow_bg">7</div>
      <div class="order_name">Rebecca M</div>
      <div class="pickup_time">15 min</div>
    </label>
    
    <div class="orders_section_header">Later Today</div>
    <div class="lead_time_btn_container">
      <a href="#?" class="lead_time_btn">Lead time = 15 min</a>
    </div>
  </div>
  <div class="right_col">
    <h1 class="order_name_big">Elizabeth B</h1>
    <p class="order_num">21009</p>
    
<svg style="margin-top: 40px; max-width: 100%;" viewBox="0 0 616 316" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <g id="New" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.100000001">
        <g id="6-Upcoming-orders-Copy-30" transform="translate(-384.000000, -157.000000)" fill="#000000">
            <g id="Group-4" transform="translate(384.000000, 157.000000)">
                <rect id="Rectangle" x="0" y="0" width="219" height="26"></rect>
                <rect id="Rectangle-Copy-4" x="0" y="80" width="449" height="16"></rect>
                <rect id="Rectangle-Copy-9" x="572" y="80" width="44" height="16"></rect>
                <rect id="Rectangle-Copy-5" x="0" y="135" width="449" height="16"></rect>
                <rect id="Rectangle-Copy-10" x="572" y="135" width="44" height="16"></rect>
                <rect id="Rectangle-Copy-6" x="0" y="190" width="449" height="16"></rect>
                <rect id="Rectangle-Copy-11" x="572" y="190" width="44" height="16"></rect>
                <rect id="Rectangle-Copy-7" x="0" y="245" width="449" height="16"></rect>
                <rect id="Rectangle-Copy-12" x="572" y="245" width="44" height="16"></rect>
                <rect id="Rectangle-Copy-8" x="0" y="300" width="449" height="16"></rect>
                <rect id="Rectangle-Copy-13" x="572" y="300" width="44" height="16"></rect>
                <rect id="Rectangle-Copy-3" x="517" y="0" width="99" height="26"></rect>
            </g>
        </g>
    </g>
</svg>
  </div>
  
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: #F2F2F5;
  font-size: 16px;
  background: #2D2D32;
}

label:hover {
  cursor: pointer;
  background: rgba(0,0,0,0.03);
  transition: all ease-in-out 0.15s;
}

.main_cont {
  background: lightblue;
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: 1024px;
  height: 768px;
  margin: 0 auto;
}

.left_col {
  background: #F2F2F5;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
  height: 100%;
}

.menu_location {
  display: flex;
  padding: 16px;
}
.menu_btn {
  font-size: 24px;
  line-height: 24px;
  color: rgba(0,0,0,0.3);
}

.store_location {
  align-self: center;
  margin: auto;
}

.tabs_cont {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  margin-bottom: 16px;
  padding: 0 16px;
}
.tap_item {
  padding: 8px 4px;
  display: flex;
  justify-content: center;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}
.selected_tab {
  border-bottom: 2px solid #02A8CD;
}

.orders_section_header {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 8px;
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  text-transform: uppercase;
  padding: 0 16px 8px;
  margin-top: 16px;
  display: flex;
}
.section_header_right_title {
  margin-left: auto;
}


.order_bar {
  display: flex;
  padding: 16px;
  align-items: center;
  transition: all ease-in-out 0.15s;
}

.num_of_items {
  background: rgba(0,0,0,0.05);
  color: black;
  width: 32px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  font-size: 14px;
  line-height: 16px;
}

.pickup_time {
  margin-left: auto;
  text-align: right;
}

.right_col {
  background: white;
  width: 100%;
  padding: 24px;
}

.lead_time_btn_container {
  background: #F2F2F5;
  padding: 16px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
}

.lead_time_btn {
  text-decoration: none;
  color: rgba(0,0,0,0.6);
  width: 100%;
  display: block;
  padding: 14px;
  text-align: center;
  border: 1px solid #B9BCC6;
  border-radius: 5px;
  transition: all ease-in-out 0.15s;
}
.lead_time_btn:hover {
  border: 1px solid #9094A2;
  background: rgba(0,0,0,0.02);
}









.yellow_bg, .green_bg {
  color: white;
}
.yellow_bg {
  background: #F09F0D;
}
.green_bg {
  background: #63C561;
}

.red_text {
  color: #FF0201;
}

.pulsing_red_bar {
  position: relative;
}
.pulsing_red_bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 59, 48, 0.2);
  animation: pulsing_background 0.7s cubic-bezier(0.71, 0.04, 0.85, 2.08) infinite alternate;
}

@keyframes pulsing_background {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


input[type="radio"] {
display: none;
}


/* Selected state 1 */
/* input[type="radio"]:checked + label {
  background: rgba(0,0,0,0.1);
} */

/* Selected state 2 */
input[type="radio"]:checked + label {
  background: #595A62;
  color: white;
}
input[type="radio"]:checked + label .num_of_items {
  background: rgba(0,0,0,0.2);
  color: white;
}
input[type="radio"]:checked + label .red_text {
  color: white;
}

/* Selected state 3 */
/* input[type="radio"]:checked + label {
  background: #02A8CD;
  color: white;
}
input[type="radio"]:checked + label .num_of_items {
  background: rgba(0,0,0,0.2);
  color: white;
}
input[type="radio"]:checked + label .red_text {
  color: white;
} */
              
            
!

JS

              
                
var
  radioInputs = Array.prototype.slice.call(document.querySelectorAll('input')),
  orderName = document.querySelector('.order_name_big')
;
    
radioInputs.forEach(function(elm){
  elm.addEventListener('change', function(){
    if (elm.checked) {
      // Add order name to the main screen
      orderName.innerHTML = elm.getAttribute('personname');
    }
  });
});


              
            
!
999px

Console