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


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


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.


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.


                mixin getIcon(icon, title)
  span.icon(title=title, class="fa fa-#{icon}", aria-hidden=true)(class!=attributes.class)
    if block

mixin getListItem(title, subtitle, icon, status)"#")
      +getIcon(icon, title)(class="mx-player-listview-item-icon")
      .mx-player-listview-item-content title
          if status
   status subtitle

  .mx-player-header Videos
    - var headerActions = [{icon: "refresh", title: "Refresh Videos"}, {icon: "search", title: "Search"}, {icon: "ellipsis-v", title: "Options"}]
      each action in headerActions

            +getIcon(action.icon, action.title)
    - var directories = [{directory: "Internal Memory", folders: 2, status: "New"}, {directory: "sdcard1", folders: 4, status: "New"}]
    each directory in directories
        +getListItem(, directory.folders + " folders", "folder", directory.status)"Play last-selected media")


                $mxPlayerBackground ?= #232323
$mxPlayerSelectedLinkColour ?= #68D1F9

  background $mxPlayerBackground
  font-family Roboto, menu
  color white
    font-size 0.5em
    text-transform uppercase
    font-weight bold
    padding 0.25em 0.6em
    border-radius 0.2em
    color inherit
    margin 0 1em
    display inline-block
      background red
    color white
    display flex
    justify-content space-between
    padding 1em
    background transparentify($mxPlayerBackground, 0.3)
    & + .mx-player-listview
      height calc(100vh - 3.5em)
      font-size 1.5em
      font-weight 300
      float right
      & + &
        margin-left 1em
      display inline-block
        background inherit
        color inherit
        border inherit
        padding 0.4em
        cursor pointer
    box-shadow inset 0 1px transparentify(white, 0.3)
    color inherit
    cursor pointer
    background transparentify($mxPlayerBackground + 35, 0.5)
    border inherit
    padding 0.4em 0.6em
    border-radius 50%
    font-size 1.3em
    position fixed
    bottom 1.5rem
    right 0.5rem
        display inline-block
        margin 0 0.5em 0.5em 0.5em
        opacity 0.5
        font-size 1.2em
        display inline-block
        vertical-align middle
        color inherit
        padding 0.5em 1em
        display block
        text-decoration none
        color inherit
        transition 0.5s linear background, border-color
        border-left 0.25em solid transparent
        &:hover, &:active
          background $mxPlayerBackground + 35
        &:visited, &:active
          color $mxPlayerSelectedLinkColour
          border-color $mxPlayerSelectedLinkColour
        font-size 1em
        font-weight 300
        display block
        font-size 0.8em
        font-weight 300
        display block
        opacity 0.7