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

              
                <!-- 
Live: https://melanieseltzer.github.io/es6-all-the-things/
Repo: https://github.com/melanieseltzer/es6-all-the-things
-->

<section class="hero is-primary">
  <div class="hero-body">
    <div class="columns">
      <div class="column is-12">
        <div class="container content">
          <i class="is-large fab fa-js"></i> 
          <i class="is-large fas fa-code"></i>
          <h1 class="title">ES6 <em>All</em> The Things</h1>
          <h3 class="subtitle">
            Collection of ES6 goodies for next-level dev 🤓💻
          </h3>
          <a href="https://github.com/melanieseltzer" target="_blank" class="button is-primary is-large">
            <span class="icon">
              <i class="fab fa-github"></i>
            </span>
            <span>Github</span>
          </a>
        </div>
      </div>
    </div>
  </div>
</section>

<section class="section">
  <div class="container">
    <div class="columns">
      <div class="column is-3">
        <aside class="is-medium menu">
          <p class="menu-label">
            New Variables
          </p>
          <ul class="menu-list">
            <li><a href="#const">const</a></li>
            <li><a href="#let">let</a></li>
          </ul>
          <p class="menu-label">
            More to come...
          </p>
          <ul class="menu-list">
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
            <li><a href="#">lorem</a></li>
            <li><a href="#">ipsum</a></li>
          </ul>
        </aside>
      </div>

      <div class="column is-9">
        <div class="content is-medium">
          <h3 class="title is-3">New Variables</h3>
          <div class="box">
            <h4 id="const" class="title is-3">const</h4>
            <article class="message is-primary">
              <span class="icon has-text-primary">
                <i class="fas fa-info-circle"></i>
              </span> 
              <div class="message-body">
                Block-scoped. Cannot be re-assigned. Not immutable.
              </div>
            </article>
            <pre><code class="language-javascript">const test = 'test';</code></pre>
          </div>

          <div class="box">
            <h4 id="let" class="title is-3">let</h4>
            <article class="message is-primary">
              <span class="icon has-text-primary">
                <i class="fas fa-info-circle"></i>
              </span> 
              <div class="message-body">
                Block-scoped. Can be re-assigned.
              </div>
            </article>
            <pre><code class="language-javascript">let i = 0;</code></pre>
          </div>

          <h3 class="title is-3">More to Come...</h3>
          <div class="box">
            <h4 id="lorem" class="title is-4">More to come...</h4>
            <article class="message is-primary">
              <span class="icon has-text-primary">
                <i class="fas fa-info-circle"></i>
              </span> 
              <div class="message-body">
                Lorem ipsum dolor sit amet, mea ne viderer veritus menandri, id scaevola gloriatur instructior sit.
              </div>
            </article>
            <pre><code class="language-javascript">let i = 0;</code></pre>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
              
            
!

CSS

              
                $grey-darker: hsl(0, 0%, 85%);
$grey-lighter: hsl(0, 0%, 95%);

body {
  border-top: 10px solid salmon;
  border-bottom: 10px solid salmon;
  border-left: 0;
  border-right: 0;
  border-image: linear-gradient(to right, #00d1b2, salmon) 1 stretch;
}

body,
html {
  background: $grey-lighter;
}

pre,
.message {
  max-width: 960px;
}

// Bulma overrides
.hero.is-primary {
  background: linear-gradient(to left, #da4453, #89216b);
}
.box {
  box-shadow: 0 2px 6px 0 hsla(0, 0%, 0%, 0.2);
}
.box span.icon {
  float: right;
  font-size: 1.7em;
  padding: 2rem 2rem 0 0;
}
.is-large.fab {
  font-size: 7em;
}
.is-large.fas {
  font-size: 5em;
  margin-left: 0.2em;
}
.menu-list li a:hover {
  background: $grey-darker;
}

// Fixes for Prisma/Bulma class conflict
.token.number {
  display: inline;
  padding: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
  vertical-align: inherit;
  border-radius: inherit;
  font-weight: inherit;
  white-space: inherit;
  background: inherit;
  margin: inherit;
}
              
            
!

JS

              
                
              
            
!
999px

Console