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

              
                <head>
  <link rel='stylesheet' href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
  <link href="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.dark.css" rel="stylesheet"/>
<!--<link href="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.forest.css" rel="stylesheet"/>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.slim.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaidAPI.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaidAPI.slim.js"></script>
</head>
<div class="row">
  <div class="col s12">
    
      <span class="title">Css parsing</span>
      <div class="mermaid">
graph TD
  cdn["fa:fa-globe<br>CDN global resources"]
  R["fa:fa-file-code-o<br>API extracts into R"]
  tochar["parse the raw<br> html into a <br>character vector"]
  clean["Clean out comments"]
  extract["Extract all style rules"]
  theme["fa:fa-universal-access<br> apply user themes"]
  media["media selectors"]
  forms["form inputs"]
  universals["universal rules"]
  idss["id applied rules"]
  classed["class selectors"]
  reformat["reformat back into initial css blocks"]
  writeNew["create new css file"]
  cat["cat the new formatted string to the file"]
  source["Source the new file as an R environment"]
  glob["make globally available to all rterial specs"]
  
  cdn-->R
  R-->tochar
  tochar-->clean
  clean-->extract
  extract---media
  extract---forms
  extract---universals
  extract---idss
  extract---classed
  media---theme
  forms---theme
  universals---theme
  idss---theme
  classed---theme
  theme-->reformat
  reformat-->writeNew
  writeNew-->cat
  cat-->source
  source-->theme
  theme-->glob
  glob-->R
</div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                body{
  background:#212121
}

.fa{text-align:center;padding-left:45%}
              
            
!

JS

              
                var config = {
  startOnLoad: true,
  flowchart: {
    useMaxWidth: false,
    htmlLabels: true
  }
};
mermaid.initialize(config);
              
            
!
999px

Console