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.

            
              div
  .nav.top
    .content
      ul.left
        li 
          a(href='#') Story Archive
      ul.center
      ul.right
        li
          a(href='#') Login
    .menu
  .nav.bottom
    .content
      ul.left
        li
          a(href='#') Stories
      ul.center
      ul.right
        li
          .search
            input(name='search',placeholder='Search')
            button
              i.fa.fa-search(aria-hidden="true")
.content
  .alert.warning
    h3 Warning
    h5.no-bold This site may not function properly under IE/Edge
  .panel
    .panel-header.nav
      .content
        ul.left
          li
            a.rating.m(href='#') M
        ul.center
          li
            a(href='#')
              h3 Ookami to Koushinryou
            br
            a(href='#')
              h5.sub Hasekura, Isuna
    .panel-body
      h4.no-bold The life of a traveling merchant is a lonely one, a fact with which Kraft Lawrence is well acquainted. Wandering from town to town with just his horse, cart, and whatever wares have come his way, the peddler has pretty well settled into his routine—that is, until the night Lawrence finds a wolf goddess asleep in his cart. Taking the form of a fetching girl with wolf ears and a tail, Holo has wearied of tending to harvests in the countryside and strikes up a bargain with the merchant to lend him the cunning of "Holo the Wisewolf" to increase his profits in exchange for taking her along on his travels. What kind of businessman could turn down such an offer? Lawrence soon learns, though, that having an ancient goddess as a traveling companion can be a bit of a mixed blessing. Will this wolf girl turn out to be too wild to tame?
    .panel-footer
      ul.tags
        li.tag
          a(href='#').warning Minor Nudity
        li.tag
          a(href='#').character Holo/Horo/Korbo
        li.tag
          a(href='#').character Kraft Lawrence
        li.tag
          a(href='#').pairings Holo/Kraft Lawrence
        li.tag
          a(href='#').pairings Horo/Kraft Lawrence
        li.tag
          a(href='#').pairings Korbo/Kraft Lawrence
  .panel
    .panel-header.nav
      .content
        ul.left
          li
            a.rating.t(href='#') T
        ul.center
          li
            a(href='#')
              h3 Koe no Katachi
            br
            a(href='#')
              h5.sub Ooima, Yoshitoki
    .panel-body
      h4.no-bold Shouya Ishida, a boy always looking for ways to beat boredom, ends up looking for it in the wrong place. Weirded out by his new classmate, a deaf transfer student named Shouko Nishimiya, he deems her as the target of his ostracizing and bullying. Day after day, Shouya picks on Shouko, unaware of the effects of his thoughtless actions. He finally understands the pain he has inflicted on her when one day, his bullying culminates in her leaving the school, and his classmates begin to shun and harass him every chance they get instead. Determined to right his wrongs, five years later, Shouya, now a third year high school loner, meets Shouko again. Thus begins the story of a young man's path to redemption.
    .panel-footer
      ul.tags
        li.tag
          a(href='#').character Ishida Shouya
        li.tag
          a(href='#').character Nishimiya Shouko
  .panel
    .panel-header
    .panel-body
      .panel
        .panel-header
        .panel-body
          .panel
            .panel-header
            .panel-body
            .panel-footer
        .panel-footer
    .panel-footer
  div
    .nav.respond.panel
      .content
        ul.left
          li
            a(href='/') First
          li
            a(href='/') Previous
        ul.center.flex-center
          li
            a(href='/') 1
          li
            a(href='/') 2
          li
            a(href='/') 3
          li
            a(href='/') 4
        ul.right
          li
            a(href='#') Next
          li
            a(href='#') Last
div
  .nav.top
    .content
      ul.left
        li
          a(href='/') Copyright &copy; 2017, Ian Cronkright.
      ul.center
      ul.right
        li
          a(href='#')

            
          
!
            
              body {
  background-color: #E4E4E4;
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 23px;
  > .content {
    padding: 0.25em;
  }
}

h1 {
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
  font-size: 23px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 23px;
}

h3 {
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
  font-size: 17px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  line-height: 23px;
}

p {
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 23px;
}

blockquote {
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
  font-size: 17px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 23px;
}

pre {
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
  font-size: 11px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 23px;
}

a {
  text-decoration: none;
}

.nav {
  height: 3.125em;
  display: flex;
  .content {
    display: flex;
    flex: 1 0 auto;
    width: auto;
  }
  .menu {
    flex: 0 1 auto;
    width: auto;
  }
  &.panel {
    ul {
      a {
        color: #000000;
        &:hover {
          color: lighten(#000000, 30%);
        }
      }
    }
  }
  @media only screen and (max-width: 500px) {
    &.respond {
      height: (3.125em * 3);
      .content {
        flex-wrap: wrap;
        .left {
          display: flex;
          flex: 1 0 auto;
          justify-content: center;
          width: 100%;
        }
        .center {
          flex: 1 0 auto;
          width: 100%;
        }
        .right {
          display: flex;
          flex: 1 0 auto;
          justify-content: center;
          width: 100%;
        }
      }
    }
  }
  .left {
    flex: 0 0 auto;
    width: auto;
  }
  .center {
    flex: 1 0 auto;
    width: auto;
    &.flex-center {
      display: flex;
      justify-content: center;
    }
  }
  .right {
    flex: 0 1 auto;
    width: auto;
  }
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    li {
      display: inline-block;
      a {
        color: #ffffff;
        display: inline-block;
        height: 3.125em;
        line-height: 3.125em;
        padding: 0 (3.125em / 4);
        transition: color 0.1s ease;
        &:hover {
          color: darken(#ffffff, 10%);
        }
      }
      .search {
        display: inline-block;
        font-size: 0;
        height: 3.125em;
        padding: 0 (3.125em / 4);
        transition: color 0.1s ease;
        &:hover,
        &:active,
        &:focus {
          button {
            color: darken(#ffffff, 20%);
          }
        }
        input {
          background-color: #080C15;
          border: none;
          border-radius: 4px 0 0 4px;
          color: #ffffff;
          font-size: 16px;
          height: (3.125em / 2);
          padding: 0 0 0 (3.125em / 4);
          margin: (3.125em / 4) 0;
          max-width: 9.375em;
          &::placeholder {
            color: darken(#ffffff, 20%);
          }
        }
        button {
          background-color: #080C15;
          border: none;
          border-radius: 0 4px 4px 0;
          color: #ffffff;
          font-size: 16px;
          height: (3.125em / 2);
          padding: 0 (3.125em / 4);
          margin: (3.125em / 4) (3.125em / 4) (3.125em / 4) 0;
          transition: color 0.1s ease;
          &:hover {
            color: darken(#ffffff, 20%);
          }
        }
      }
    }
  }
  &.panel-header {
    a {
      height: auto;
      line-height: initial;
    }
    .rating {
      color: #ffffff;
      font-weight: bold;
      height: 3.125em;
      line-height: 3.125em;
      padding: 0;
      text-align: center;
      transition: background-color 0.1s ease;
      width: 3.125em;
      &.k {
        background-color: #EDB92D;
        &:hover {
          background-color: darken(#EDB92D, 10%);
        }
      }
      &.t {
        background-color: #3DCEC7;
        &:hover {
          background-color: darken(#3DCEC7, 10%);
        }
      }
      &.m,
      &.ma {
        background-color: #F74F4C;
        &:hover {
          background-color: darken(#F74F4C, 10%);
        }
      }
    }
  }
  &.top {
    background-color: #191B20;
  }
  &.bottom {
    background-color: #2E3138;
  }
}

.panel {
  background-color: #F8F8F8;
  margin-bottom: 0.25em;
  .panel {
    background-color: #E4E4E4;
    .panel {
      background-color: #F8F8F8;
    }
  }
  &-header,
  &-body,
  &-footer {
    padding: 0.25em;
  }
  &-header {
    a {
      display: inline-block;
    }
    h3 {
      color: #000000;
      transition: color 0.1s ease;
      &:hover {
        color: lighten(#000000, 30%);
      }
    }
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
  }
}

.sub {
  color: lighten(#000000, 50%);
  font-style: normal;
  font-weight: normal;
}

ul {
  font-size: 0;
  li {
    font-size: 16px;
  }
  &.tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    .tag {
      background-color: #E4E4E4;
      display: inline-block;
      margin-bottom: 0.25em;
      margin-right: 0.25em;
      a {
        color: #ffffff;
        display: inline-block;
        padding: 0.25em;
        transition: background-color 0.1s ease;
        &.warning {
          background-color: #F74F4C;
          &:hover {
            background-color: darken(#F74F4C, 10%);
          }
        }
        &.character {
          background-color: #EDB92D;
          &:hover {
            background-color: darken(#EDB92D, 10%);
          }
        }
        &.pairings {
          background-color: #654682;
          &:hover {
            background-color: darken(#654682, 10%);
          }
        }
      }
    }
  }
}

.group {
  zoom: 1;
  &:before,
  &:after {
    content: "";
    display: table;
  }
  &:after {
    clear: both;
  }
}

.no-bold {
  font-weight: normal;
}

.alert {
  margin-bottom: 0.25em;
  padding: 0.25em;
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
  }
  &.warning {
    background-color: #F74F4C;
    color: #ffffff;
    &:hover {
      background-color: darken(#F74F4C, 10%);
    }
  }
}

.no {
  &-margin {
    margin: 0;
  }
  &-paadding {
    padding: 0;
  }
}
            
          
!
            
              // Mario
// https://codepen.io/gapcode/pen/vEJNZN
function detectIE() {
  var ua = window.navigator.userAgent;
  
  var msie = ua.indexOf('MSIE ');
  if (msie > 0) {
    return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
  }

  var trident = ua.indexOf('Trident/');
  if (trident > 0) {
    var rv = ua.indexOf('rv:');
    return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
  }

  var edge = ua.indexOf('Edge/');
  if (edge > 0) {
    return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
  }
  
  return false;
}

if (!detectIE()) {
  document.getElementById("ieWarning").style.display = "none";
}
            
          
!
999px
🕑 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.

Console