Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

              <article class='site-content'>
  <h1>Pagination UI Concept</h1>
  <p>The paginator below is pure css. Hovering the highlighted page number expands and shows all page numbers (tap on iOS or Android). An extreme amount of pages may become problematic. However, the paginator can expand to the width of the page. Only tested in Chrome and Firefox.</p>
  <nav class="content-pagination">
    <a href="#" class='older fontawesome-angle-left' title='Older'></a>
    <ul class='pagination-pages'>
      <li><a href="#">1</a></li>
      <li><a href="#">2</a></li>
      <li><a href="#">3</a></li>
      <li><a href="#">4</a></li>
      <li><a href="#">5</a></li>
      <li><a href="#">6</a></li>
      <li><a href="#">7</a></li>
      <li><a href="#">8</a></li>
      <li><a href="#">9</a></li>
      <li><a href="#">10</a></li>
      <li><a href="#">11</a></li>
      <li><a href="#">12</a></li>
      <li><a href="#">13</a></li>
      <li><a href="#">14</a></li>
      <li><a href="#">15</a></li>
      <li><a href="#">16</a></li>
      <li><a href="#">17</a></li>
      <li><a href="#">18</a></li>
      <li><a href="#">19</a></li>
      <li><a href="#">20</a></li>
      <li><a href="#">21</a></li>
      <li class='current'><a href="#">22</a></li>
      <li><a href="#">23</a></li>
      <li><a href="#">24</a></li>
      <li><a href="#">25</a></li>
      <li><a href="#">26</a></li>
      <li><a href="#">27</a></li>
      <li><a href="#">28</a></li>
      <li><a href="#">29</a></li>
      <li><a href="#">30</a></li>
      <li><a href="#">31</a></li>
      <li><a href="#">32</a></li>
      <li><a href="#">33</a></li>
      <li><a href="#">34</a></li>
      <li><a href="#">35</a></li>
      <li><a href="#">36</a></li>
      <li><a href="#">37</a></li>
      <li><a href="#">38</a></li>
      <li><a href="#">39</a></li>
      <li><a href="#">40</a></li>
      <li><a href="#">41</a></li>
      <li><a href="#">42</a></li>
      <li><a href="#">43</a></li>
      <li><a href="#">44</a></li>
      <li><a href="#">45</a></li>
      <li><a href="#">46</a></li>
      <li><a href="#">47</a></li>
      <li><a href="#">48</a></li>
      <li><a href="#">49</a></li>
      <li><a href="#">50</a></li>
      <li><a href="#">51</a></li>
      <li><a href="#">52</a></li>
      <li><a href="#">53</a></li>
      <li><a href="#">54</a></li>
      <li><a href="#">55</a></li>
      <li><a href="#">56</a></li>
      <li><a href="#">57</a></li>
      <li><a href="#">58</a></li>
      <li><a href="#">59</a></li>
      <li><a href="#">60</a></li>
      <li><a href="#">61</a></li>
      <li><a href="#">62</a></li>
      <li><a href="#">63</a></li>
      <li><a href="#">64</a></li>
      <li><a href="#">65</a></li>
      <li><a href="#">66</a></li>
      <li><a href="#">67</a></li>
      <li><a href="#">68</a></li>
      <li><a href="#">69</a></li>
      <li><a href="#">70</a></li>
      <li><a href="#">71</a></li>
      <li><a href="#">72</a></li>
      <li><a href="#">73</a></li>
      <li><a href="#">74</a></li>
      <li><a href="#">75</a></li>
    <span>of 75</span><!-- Ug. Such ugly markup :( -->
    <a href="#" class='newer fontawesome-angle-right' title='Newer'></a>

<footer class="site-footer">
  <p>This is a site footer. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto deleniti fugiat expedita velit modi omnis inventore rem dolore tempore repudiandae tempora veritatis! Sed ab excepturi commodi eos quidem nihil quo.</p>
              @import "compass/css3";

@import ',400,700';
@import url(;

[class*="fontawesome-"]:before {
  font-family: 'FontAwesome', sans-serif;

// globals
/* apply a natural box layout model to all elements */
*, *:before, *:after {
  -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  color: #555;
  background: #f8f8f8;

body {
  margin: 0;
  padding: 20px 50px;
  font-size: 1.6em;

img {
  max-width: 100%;

h1,h2,h3,h4,h5,h6 {
  font-weight: 300;
  color: $dkblue;

@mixin debug {
  outline: 1px solid rgba(255,0,0,.25);

.content-pagination {
  position: relative;
  a, span {
    display: block;
    line-height: 2em;
    height: 2em;
    padding: 0 .5em;
    text-decoration: none;
    margin: 0;
  span {
    display: inline-block;
    padding: 0;
    margin-left: 2.5em; // got to be a better way to do this
    position: relative;
  .newer, .older {
    display: inline-block;
    vertical-align: top;
    &:hover {
      background: #f8f8f8;
      box-shadow: 0 0 4px -2px rgba(0,0,0,1);
  .pagination-pages {
    border: 1px solid #ddd;
    border-radius: 3px;
    display: inline-block;
    list-style-type: none;
    margin: 0;
    //max-width: 100%;
    //max-height: 10em; // set this if you need too. eg. over 1,000 pages...
    overflow-y: auto;
    padding: 0;
    position: absolute;
    text-align: left;
    vertical-align: top;
    z-index: 10;

    &:hover {
      background: rgba(255,255,255,.95);
      left: 0;
      bottom: 0;
      li {
        display: inline-block;
        width: 3em;
        text-align: center;
        &:hover {
          background: #eee;
          border-radius: 3px;
        } // li:hover
      } // li
      .current a {
        &:link {
          color: #555;
        &:hover {
          background: rgba(255,255,255,.95);
    } // .pagination-pages:hover
  } // .pagination-pages:hover
  li {
    background: #fff;
    display: none;
    margin: 0;
    padding: 0;
  .current {
    display: block;
} //.content-pagination

.site-footer {
  border-top: 1px solid #eee;
  margin: 2em 0 0;
  font-size: .8em;
              // TODO:

// - make it scalable :\
// - should probably write some js to allow closing for touch devices
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.