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

              
                <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
<div class="stendig">
  <h2 class="year">2014</h2><h2 class="month">October</h2>
  <table>
    <thead>
      <tr>
        <td>M</td>
        <td>T</td>
        <td>W</td>
        <td>T</td>
        <td>F</td>
        <td>S</td>
        <td>S</td>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td></td>
        <td></td>
        <td>1</td>
        <td>2</td>
        <td>3</td>
        <td>4</td>
        <td>5</td>
      </tr>
      <tr>
        <td>6</td>
        <td>7</td>
        <td>8</td>
        <td>9</td>
        <td class="k10">10</td>
        <td class="k13">11</td>
        <td class="k10">12</td>
      </tr>
      <tr>
        <td class="k10">13</td>
        <td class="k10">14</td>
        <td class="k10">15</td>
        <td class="k10">16</td>
        <td class="k10">17</td>
        <td class="k10">18</td>
        <td class="k10">19</td>
      </tr>
      <tr>
        <td class="k3">20</td>
        <td>21</td>
        <td class="k3">22</td>
        <td class="k3">23</td>
        <td>24</td>
        <td>25</td>
        <td>26</td>
      </tr>
      <tr>
        <td>27</td>
        <td class="k3">28</td>
        <td class="k3">29</td>
        <td class="k3">30</td>
        <td class="k10">31</td>
        <td></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</div>
<div class="controls">
  <a target="_blank" href="http://stendigcalendar.website">
    <svg class="svg-icon" viewBox="0 0 20 20">
      <path fill="none" d="M3.936,7.979c-1.116,0-2.021,0.905-2.021,2.021s0.905,2.021,2.021,2.021S5.957,11.116,5.957,10
        S5.052,7.979,3.936,7.979z M3.936,11.011c-0.558,0-1.011-0.452-1.011-1.011s0.453-1.011,1.011-1.011S4.946,9.441,4.946,10
        S4.494,11.011,3.936,11.011z M16.064,7.979c-1.116,0-2.021,0.905-2.021,2.021s0.905,2.021,2.021,2.021s2.021-0.905,2.021-2.021
        S17.181,7.979,16.064,7.979z M16.064,11.011c-0.559,0-1.011-0.452-1.011-1.011s0.452-1.011,1.011-1.011S17.075,9.441,17.075,10
        S16.623,11.011,16.064,11.011z M10,7.979c-1.116,0-2.021,0.905-2.021,2.021S8.884,12.021,10,12.021s2.021-0.905,2.021-2.021
        S11.116,7.979,10,7.979z M10,11.011c-0.558,0-1.011-0.452-1.011-1.011S9.442,8.989,10,8.989S11.011,9.441,11.011,10
        S10.558,11.011,10,11.011z"></path>
    </svg>
  </a>
  <a href="#" class="toggle-bg">
    <svg class="svg-icon" viewBox="0 0 20 20">
      <path fill="none" d="M3.183,9.381H0.704v1.239h2.479V9.381z M2.989,16.135l0.876,0.877l1.752-1.754l-0.876-0.875L2.989,16.135z
       M17.012,3.866l-0.877-0.876l-1.752,1.752l0.875,0.876L17.012,3.866z M10.62,0.705H9.38v2.479h1.239V0.705z M5.618,4.742
      L3.865,2.989L2.989,3.866l1.753,1.752L5.618,4.742z M14.383,15.258l1.752,1.754l0.877-0.877l-1.754-1.752L14.383,15.258z
      M9.38,19.297h1.239v-2.48H9.38V19.297z M16.816,9.381v1.239h2.479V9.381H16.816z M10,5.042c-2.738,0-4.958,2.22-4.958,4.958
      c0,2.738,2.22,4.959,4.958,4.959c2.738,0,4.958-2.221,4.958-4.959C14.958,7.263,12.738,5.042,10,5.042z M10,13.727
      c-2.058,0-3.726-1.668-3.726-3.727c0-2.058,1.668-3.726,3.726-3.726c2.059,0,3.727,1.668,3.727,3.726
      C13.727,12.059,12.059,13.727,10,13.727z"></path>
    </svg>
  </a>
  <a target="_blank" href="https://chrome.google.com/webstore/detail/stendig-calendar-tab/afdhlpappobhcghgnjgkgacfmnjgibga">
    <svg class="svg-icon" viewBox="0 0 20 20">
      <path fill="none" d="M18.208,2.958H8.875V1.792c0-0.644-0.522-1.167-1.167-1.167H1.875c-0.644,0-1.167,0.522-1.167,1.167v16.333
                           c0,0.645,0.522,1.166,1.167,1.166h16.333c0.645,0,1.167-0.521,1.167-1.166v-14C19.375,3.48,18.853,2.958,18.208,2.958z
                           M18.208,17.542c0,0.322-0.261,0.583-0.583,0.583H2.458c-0.323,0-0.583-0.261-0.583-0.583V6.458h16.333V17.542z M17.625,5.292
                           H1.875V2.375c0-0.323,0.261-0.583,0.583-0.583h4.667c0.323,0,0.583,0.261,0.583,0.583v1.75h9.917c0.322,0,0.583,0.261,0.583,0.583
                           C18.208,5.031,17.947,5.292,17.625,5.292z"></path>
    </svg>
    <span>Get the Chrome Extension</span>
  </a>
</div>
              
            
!

CSS

              
                html, body {
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  display: flex;
  margin: 0;
  line-height: 1.5;
}

body.dark {
  background: #101010;
  color: #eaeaea;
}

.stendig {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  width: 520px;
  margin: auto;
  position: relative;
  padding-top: 88px;
  top: -44px;
}

.stendig h2 {
  position: absolute;
  top: 0;
  letter-spacing: -1px;
  font-size: 1.2em;
}

.stendig .year {
  left: 288px;
}

.stendig .month {
  left: 360px;
}

.stendig table {
  width: 504px;
  font-size: 56px;
  border-spacing: 0;

  thead {
    vertical-align: top;
  }

  &:hover td.today {
    color: #7512ed;
  }
}

// Kerning mixins
.stendig table td {
  width: 72px;
  height: 44px;
  line-height: 40px;
  text-align: left;
  border-left: 1px solid #000;
  vertical-align: top;
  transition: color 300ms ease-in;
  letter-spacing: -5px;

  // Kerning mixins
  &.k3 {
    letter-spacing: -3px;
  }

  &.k10 {
    letter-spacing: -10px;
  }

  &.k13 {
    letter-spacing: -13px;
  }
}

body.dark .stendig {
  table td {
    border-color: #fff;
  }

  &:hover td.today {
    color: #ed1278;
  }
}


// Responsive Styles
@media (max-width:660px) {
  .stendig {
    width: 320px;

    .k10 {
      letter-spacing: -5px;
    }

    .k13 {
      letter-spacing: -8px;
    }
    
    h2 {
      font-size: 1em;
    }

    table {
      width: 320px;
      font-size: 35px;
    }

    table td {
      width: 46px;
      height: 27px;
      letter-spacing: -3px;
    }

    .year {
      left: 184px;
    }

    .month {
      left: 230px;
    }
  }
}

/* -----
SVG Icons - svgicons.sparkk.fr
----- */

@base: #4691f6;

.svg-icon{
  width: 2em;
  height: 2em;

  path,
  polygon,
  rect{
    fill: @base;
  }

  circle{
    stroke: @base;
    stroke-width: 1;
  }
}

.controls {
  position: absolute;
  bottom: 1em;
  right: 1em;
  
  a {
    display: inline-block;
    color: @base;
    text-decoration: none;
    transition: color 300ms ease-in;
    margin-left: 1.5em;
    
    span {
      position: relative;
      top: -8px;
    }
    
    &:hover {
      color: darken(@base, 50);
    }
  }
}
              
            
!

JS

              
                document.querySelector('.toggle-bg').addEventListener('click', function(e) {
  e.preventDefault();
  document.body.classList.toggle('dark');
})
              
            
!
999px

Console