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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <div class="grid">
  <header class="grid__col--12 panel--padded--centered" role="banner"> 
    <a class="site-logo" href="/">
      <b class="srt">Poly - UI Toolkit</b>
    </a>
    <nav class="navbar" role="navigation">
      <span id="toggle" class="icn--nav-toggle is-displayed-mobile">
        <b class="srt">Toggle</b>
      </span>   
      <ul class="nav is-collapsed-mobile">
        <li class="nav__item"><a href="#type">Typography</a></li>
        <li class="nav__item"><a href="#buttons">Buttons</a></li>
        <li class="nav__item"><a href="#forms">Form</a></li>
        <li class="nav__item"><a href="#progbars">Bars</a></li>
        <li class="nav__item"><a href="#images">Images</a></li>
        <li class="nav__item"><a href="#grid">Grid</a></li>
        <li class="nav__item--current"><a href="#nav">Navigation</a></li>
      </ul>
    </nav>
  </header>
</div>

<div class="grid is-hidden-mobile">
  <div class="grid__col--12">
    <img class="img--hero" src="https://treehouse-code-samples.s3.amazonaws.com/poly/img/hero.jpg" alt="Poly - A simple UI Kit">
  </div>
</div>

<h4 id="type" class="grid">Typography</h4>

<div class="grid">
  <div class="centered grid__col--8">
    <h1 class="headline-primary--grouped">Take a look at this amazing headline</h1>
    <h2 class="headline-secondary--grouped">Don't forget about the subtitle</h2>
    <p>This is a typical paragraph for the UI Kit. <a href="#">Here is what a link might look like</a>. The typical font family for this kit is Helvetica Neue.  This kit is intended for clean and refreshing web layouts. No jazz hands here, just the essentials to make dreams come true, with minimal clean web design. The kit comes fully equipped with everything from full responsive media styling to buttons to form fields. <em>I enjoy using italics as well from time to time</em>. Fell free to create the most amazing designs ever with this kit. I truly hope you enjoy not only the kit but this amazing paragraph as well. :)</p>
    <blockquote>You know what really gets me going? A really nice set of block quotes.  That's right, block quotes that say, "Hey, I'm an article you want to read and nurture."</blockquote>
  </div>
</div>

<h4 id="buttons" class="grid">Buttons</h4>

<div class="grid">
  <div class="grid__col--12">
    <a class="btn--default" href="#">Button Default</a>
    <a class="btn--success" href="#">Button Success</a>
    <a class="btn--error" href="#">Button Error</a>
    <button class="btn--warning">Button Warning</button>
    <button class="btn--info">Button Info</button>
  </div>
</div>

<h4 id="forms" class="grid">Form Elements</h4>

<div class="grid">
  <div class="grid__col--7"> 
    <form class="form">
      <label class="form__label--hidden" for="name">Name:</label> 
      <input class="form__input" type="text" id="name" placeholder="Name">

       <label class="form__label--hidden" for="email">Email:</label>
       <input class="form__input" type="email" id="email" placeholder="email@website.com">

       <label class="form__label--hidden" for="msg">Message:</label>
       <textarea class="form__input" id="msg" placeholder="Message..." rows="7"></textarea>

       <input class="btn--default" type="submit" value="Submit">
       <input class="btn--warning" type="reset" value="Reset">
    </form>
  </div>
  <div class="grid__col--4">
    <img class="img--avatar" src="https://treehouse-code-samples.s3.amazonaws.com/poly/img/avatar.png" alt="Avatar">
    <form>
      <label class="form__label--hidden" for="username">Username:</label> 
      <input class="form__input" type="text" id="username" placeholder="Username">
      <label class="form__label--hidden" for="password">Password:</label>
      <input class="form__input" type="password" id="password" placeholder="Password">
      <input class="form__btn" type="submit" value="Login">
    </form>
  </div>
</div>

<h4 id="progbars" class="grid">Progress Bars</h4>

<div class="grid">
  <div class="grid__col--12">
    <div class="progbar">
      <span class="progbar__status--default"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--success"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--error"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--warning"></span>
    </div>
    <div class="progbar">
      <span class="progbar__status--info"></span>
    </div>
  </div>
</div>

<h4 id="images" class="grid">Images</h4>

<div class="grid">
  <div class="grid__col--5">
    <img src="https://treehouse-code-samples.s3.amazonaws.com/poly/img/sample.jpg" alt="sample image">
  </div>
  <div class="grid__col--5">
    <img class="img--wrap" src="https://treehouse-code-samples.s3.amazonaws.com/poly/img/sample.jpg" alt="sample image">
  </div>
  <div class="grid__col--2">
    <img class="img--avatar" src="https://treehouse-code-samples.s3.amazonaws.com/poly/img/avatar.png" alt="Avatar">
  </div>
</div>

<h4 id="grid" class="grid">Grid System</h4>

<div class="theme__poly">
  <div class="grid">
    <div class="grid__col--12">.grid__col--12</div>
  </div>
  <div class="grid">
    <div class="grid__col--6">.grid__col--6</div>
    <div class="grid__col--6">.grid__col--6</div>
  </div>
  <div class="grid">
    <div class="grid__col--4">.grid__col--4</div>
    <div class="grid__col--4">.grid__col--4</div>
    <div class="grid__col--4">.grid__col--4</div>
  </div>
  <div class="grid">
    <div class="grid__col--3">.grid__col--3</div>
    <div class="grid__col--3">.grid__col--3</div>
    <div class="grid__col--3">.grid__col--3</div>
    <div class="grid__col--3">.grid__col--3</div>
  </div>
  <div class="grid">
    <div class="grid__col--5">.grid__col--5</div>
    <div class="grid__col--7">.grid__col--7</div>
  </div>
  <div class="grid">
    <div class="grid__col--8">.grid__col--8</div>
    <div class="grid__col--4">.grid__col--4</div>
  </div>
  <div class="grid">
    <div class="centered grid__col--7">.centered .grid__col--7</div>
  </div>
</div>

<div class="grid">
  <div class="grid__col--7">
    <h4 id="nav">Navigation</h4>
    <ul class="nav" role="navigation">
      <li class="nav__item"><a href="#">Nav Link</a></li>
      <li class="nav__item"><a href="#">Nav Link 2</a>
      <li class="nav__item--current"><a href="#">Nav Current</a></li>
    </ul>
    <p>This is what the navigation menu looks like when the screen is at 769px or higher. When the screen is less than 769px, you will have the option to display a toggle menu icon.</p>
  </div>

  <div class="grid__col--4">
    <h4>Offcanvas Menu</h4>
    <div class="offcanvas">
      <span class="icn--close">
        <b class="srt">close</b>
      </span>
      <ul class="menu" role="navigation">
        <a class="menu__link" href="#">Link 1</a>
        <a class="menu__link" href="#">Link 2</a>
        <a class="menu__link" href="#">Link 3</a>
        <a class="menu__link--end" href="#">Link 4</a>
      </ul>
    </div>
  </div>
</div>

<h4 class="grid">Footer</h4>

<div class="grid">
  <footer class="grid__col--12 panel--padded--centered" role="contentinfo">
    <a class="site-logo" href="#">
      <b class="srt">Poly - UI Toolkit</b>
    </a>
    <p>A simple UI Kit for everyone to share and enjoy.     <a href="https://github.com/Guilh/Poly"> Grab it from GitHub</a>.</p>
  </footer>
</div>
            
          
!

CSS

            
              /* 

Grab all the files on GitHub: https://github.com/Guilh/Poly

Watch the Treehouse course "Modular CSS with Sass" to see how I built Poly: http://teamtreehouse.com/library/modular-css-with-sass

Design by @MatHelme

*/
            
          
!

JS

            
              $('#toggle').click(function() {
  $(this).next('.nav').toggleClass("is-collapsed-mobile");
});
            
          
!
999px

Console