Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

              
                <base href="https://raw-dot-custom-elements.appspot.com/JeffLeFoll/slate-font-awesome/4.7.3/slate-font-awesome/">
<script src="../webcomponentsjs/webcomponents-lite.js"></script>

<link rel="icon" href="demo/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="demo/favicon.ico" type="image/x-icon" />

<script>
  // setup Polymer options
  window.Polymer = { lazyRegister: true, dom: "shadow" };
  // load webcomponents polyfills
  (function() {
    if (
      "registerElement" in document &&
      "import" in document.createElement("link") &&
      "content" in document.createElement("template")
    ) {
      // browser has web components
    } else {
      // polyfill web components
      var e = document.createElement("script");
      e.src = "../../webcomponentsjs/webcomponents-lite.js";
      document.head.appendChild(e);
    }
  })();
</script>

<link rel="import" href="../polymer/polymer-element.html">
<link rel="import" href="../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="slate-font-awesome.html">

<custom-style>
  <style is="custom-style" include="demo-pages-shared-styles slate-font-awesome">
    .centered {
      max-width: 50vw;
    }
  </style>
</custom-style>

<body unresolved>
  <div class="centered">
    <h4>Icons</h4>
    <demo-snippet>
      <template>
        <dom-module id="slate-font-awesome-example">
          <template>
            <style include="slate-font-awesome"></style>
            <i class="fa fa-camera-retro lg"></i> fa-lg <br>
            <i class="fa fa-camera-retro fa-2x"></i> fa-2x <br>
            <i class="fa fa-camera-retro fa-3x"></i> fa-3x <br>
            <i class="fa fa-fighter-jet fa-spin fa-3x fa-fw"></i> Top Gun Style :) <br>
            <span class="fa-stack fa-lg">
              <i class="fa fa-camera fa-stack-1x"></i>
              <i class="fa fa-ban fa-stack-2x" style="color: red;"></i>
            </span> fa-ban on fa-camera
          </template>

          <script>
            HTMLImports.whenReady( function() {
              class SlateFontAwesomeExample extends Polymer.Element {
                static get is() {
                  return "slate-font-awesome-example";
                }
              }
              window.customElements.define(
                SlateFontAwesomeExample.is,
                SlateFontAwesomeExample
              );
            });
          </script>
        </dom-module>
        <slate-font-awesome-example></slate-font-awesome-example>
      </template>
    </demo-snippet>
  </div>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console