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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="app-container" mv-app="mavoChecklist" mv-mode="edit" mv-storage="local" mv-autosave="0">
  
  <div class="checklist">
    <p> Completed [count(complete)] of [count(checklistItem)] </p>
    <progress class="checklist__progress-bar" value="[count(complete)]" max="[count(checklistItem)]"></progress>
    
    <ul class="checklist__list">
      <li class="checklist__list-item" property="checklistItem" mv-multiple>
        <input class="checklist__list-item-control" type="checkbox" property="complete"/>
        <span class="checklist__list-item-title" property="title"> Checklist Item </span>
      </li>
    </ul>
  </div>
</div>
              
            
!

CSS

              
                *
  box-sizing: border-box

html, body
  height: 100%
  font-family: "Helvetica Neue", helvetica
  font-size: 16px
  background-color: #f6f6f6

// Mavo UI
[mv-app]
  .mv-ui
    &.mv-bar
      display: none
    &.mv-item-bar
      top: 0
      right: 0
      height: 100%
      border: none
      filter: none
      button
        width: 2em
        height: 100%
        box-sizing: border-box
        border-top: none
        border-bottom: none
      button:first-child
        border-top-left-radius: 0
        border-bottom-left-radius: 0
      button:last-child
        border-right: none
        border-top-right-radius: 0
        border-bottom-right-radius: 0
      button.mv-add
        display: none
  button.mv-add-checklistItem
    display: block
    width: 100%
    height: 2.5em
    margin-top: 1em
    color: #fff
    background-color: #4285f4
    border: 1px solid #3262ba
    border-radius: 2px
    font-size: 0.8em
    font-weight: bold
    cursor: pointer
    transition: all 0.1s ease
    &:hover
      background-color: #3262ba
    
  
// Container
.app-container
  display: flex
  justify-content: center
  align-items: center
  height: 100%
  
// Checklist Component Styles
.checklist
  width: 16em
  padding: 1em
  background-color: #fff
  border: 1px solid #ddd
  border-radius: 2px
  box-shadow: 0 10px 50px -20px rgba(0,0,0,0.5)
  
.checklist__progress-bar
  width: 100%
  height: 1.5em
  
.checklist__list
  padding-top: 1em
  
.checklist__list-item
  padding: 0.5em 0.25em
  border: 1px solid #ddd
  border-radius: 2px
  margin-bottom: 0.5em
  
.checklist__list-item-control
  float: left
  
.checklist__list-item-title
  margin-left: 0.25em
  transition: color 0.15s ease
  .checklist__list-item-control:checked + &
    text-decoration: line-through
    color: #ccc
    
              
            
!

JS

              
                
              
            
!
999px

Console