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="column twelve last buffer"></div> <!-- Just making some room -->
<div class="column ten push-one container">
  <div class="column twelve last orderup" id="123456789012">
    <div class="column two reset buffer-bottom dayte">
      <span>05</span>
      January 2015
    </div>
    <div class="column ten last reset">
      <div class="column twelve reset last topbar">
        <div class="column two reason new">
          NEW
        </div>
        <div class="column seven no-overflow no-wrap ellipsis">
          01/05/2015: Order note goes here if a sales rep enters one.
        </div>
        <div class="column three last orderid no-overflow no-wrap ellipsis text-center">
          123456789012
        </div>
      </div>
      <div class="column twelve last notes hidden">
        <h3>Notes</h3>
        <table>
          <tr>
            <td><span>Reason For Hold</span><hr /></td>
            <td class="text-center"><span><a>Cancel Order</a></span></td>
          </tr>
          <tr>
            <td>
              <ul>
                <li><a>New</a></li>
                <li><a>Vendor</a></li>
                <li><a>Production</a></li>
              </ul>
            </td>
            <td>
              <ul>
                <li><a>Customer</a></li>
                <li><a>Payment</a></li>
                <li><a>Customer Question</a></li>
              </ul>
            </td>
          </tr>
        </table>
        <input type="text" placeholder="Short note goes here." value="Order note goes here if a sales rep enters one."/><button type="submit">Save</button>
      </div>
      <div class="column six buffer no-buffer-bottom company no-wrap no-overflow ellipsis">
        <span>B:</span> Billing Company Name
      </div>
      <div class="column six last buffer no-buffer-bottom company no-wrap no-overflow ellipsis">
        <span>S:</span> Shipping Company Name
      </div>
      <div class="column twelve last buffer no-buffer-bottom text-right total">
        Total: <span>$5678.90</span>
      </div>
    </div>
  </div>
</div>
<div class="column five last meta invisible">
  <div class="column twelve last text-center info">
    January 5 2014 | 123456789012
  </div>
  <div class="column twelve last buffer-bottom"></div> <!-- Just making some room -->
  <div class="column twelve last buffer-left address billing no-wrap no-overflow ellipsis">
    Billing Company Name<br />
    Billing Name<br />
    Billing Address<br />
    City, State  Postal Code  Country
  </div>
  <div class="column twelve last buffer-top"></div> <!-- Just making some room -->
  <div class="column twelve last buffer-left address shipping no-wrap no-overflow ellipsis">
    Shipping Company Name<br />
    Shipping Name<br />
    Shipping Address<br />
    City, State  Postal Code  Country
  </div>
  <div class="column twelve last buffer-top"></div> <!-- Just making some room -->
  <div class="column twelve last buffer-left contact">
    <span>P:</span> 206-555-5555<br />
    <span>E:</span> address@domain.com
  </div>
  <div class="column twelve last buffer-top"></div> <!-- Just making some room -->
  <div class="column twelve last buffer-left">
    Via FedEx Ground
  </div>
  <div class="column twelve last buffer-top"><hr /></div> <!-- Just making some room -->
  <div class="column twelve last">
    <table class="squeeze no-wrap no-overflow ellipsis">
      <tr>
        <th>Qty.</th>
        <th>P/N</th>
        <th>Desc.</th>
        <th>Price</th>
      </tr>
      <tr>
        <td>50</td>
        <td>1234-567</td>
        <td>Product Description</td>
        <td>$19.95</td>
      </tr>
    </table>
  </div>
  <div class="column twelve last"><hr /></div> <!-- Just making some room -->
  <div class="column twelve last text-center">
    <button type="button" class="bg-red">Unclaim</button>
    <button type="button" class="bg-blue">Notes</button>
    <button type="button" class="bg-green">Enter Order</button>
  </div>
  <div class="column twelve last buffer-left">
    <h4>Customer Notes/Feedback</h4>
    <p>
      Customers could enter notes and supply feedback when they placed their orders. Its first appearance in the order entry process is here.
    </p>
  </div>
</div>
<div class="column twelve last buffer"></div> <!-- Just making some room -->
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto:300);

* {
  font-family: Roboto;
}

h3 {
  margin: 0;
  color: #192b80;
}

h4 {
  color: #192b80;
}

a {
  color: #3c54c4;
  text-decoration: none;
}

a:hover {
  color: #d04e15;
}

button {
  margin: 2px;
  font-size: 110%;
  border: 0;
  transition: 100ms linear;
}

button:hover {
  box-shadow: 2px 2px 2px #000;
}

.container {
  background: #fff;
}

.orderup {
  background: #fff;
  border: 1px solid #666;
  border-top: 3px solid #666;
  cursor: pointer;
  transition: 150ms linear;
}

.orderup:hover {
  border-top: 3px solid #f80;
}

.active {
  box-shadow: 3px 3px 10px #000;
}

.dayte {
  background: #192b80;
  color: #fff;
  text-align: center;
}

.dayte span {
  margin-bottom: -10px;
  font-size: 250%;
  display: block;
}

.topbar {
  border-bottom: 1px solid #666;
}

.new {
  background: #080;
  color: #fff;
  text-align: center;
}

.orderid {
  border-left: 1px solid #666;
  color: #333;
}

.company span {
  margin-left: -1.1em;
  color: #192b80;
}

.total span {
  color: #080;
}

.notes {
  padding: 0 10px;
}

.info {
  color: #ccc;
}

.notes span {
  font-weight: bold;
}

.notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes input[type="text"] {
  width: 100%;
}

.meta {
  position: fixed;
  right: -100%;
  height: 100%;
  background: #fff;
  border-left: 2px solid #666;
  overflow: scroll;
  transition: 150ms linear;
}

.meta .address {
  position: relative;
}

.meta .address.billing:before {
  content: "B";
  position: absolute;
  top: -30px;
  right: 0;
  color: #ddd;
  font-size: 100px;
  z-index: -1;
}

.meta .address.shipping:before {
  content: "S";
  position: absolute;
  top: -30px;
  right: 0;
  color: #ddd;
  font-size: 100px;
  z-index: -1;
}

.meta .contact span {
  color: #192b80;
  margin-left: -1.1em;
}

.bg-red {
  background: #f00;
  color: #fff;
}

.bg-blue {
  background: #06f;
  color: #fff;
}

.bg-green {
  background: #080;
  color: #fff;
}

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

.text-right {
  text-align: right;
}

.no-wrap {
  white-space: nowrap;
}

.no-overflow {
  overflow: hidden;
}

.ellipsis {
  text-overflow: ellipsis
}
              
            
!

JS

              
                function toggleNotes() {
  //$('.meta').toggleClass('invisible');
  //$('.meta').toggleClass('visible');
  if ( $('.meta').hasClass('invisible') ) {
    $('.meta').animate({
      right: 0
    }, 50);
    $('.meta').removeClass('invisible');
    $('.company').slideToggle('fast');
    $('.notes').slideToggle('fast');
    $('.container').toggleClass('ten');
    $('.container').toggleClass('six');
  }
  else {
    $('.meta').animate({
      right: '-100%'
    }, {
      duration: 100,
      complete: function() {
        $('.meta').addClass('invisible');
        $('.company').slideToggle('fast');
        $('.notes').slideToggle('fast');
        $('.container').toggleClass('ten');
        $('.container').toggleClass('six');
      }
    });
  }
}

$('.orderup').on('click', function() {
  $(this).toggleClass('active');
  toggleNotes();
});

$('.orderup a, .orderup button').on('click', function(e) {
  e.stopPropagation();
})
              
            
!
999px

Console