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 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


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.


                - let arr


- arr = new Array(2)
  each val in arr

- arr = new Array(3)
  each val in arr
- arr = new Array(4)
  each val in arr
- arr = new Array(6)
  each val in arr
- arr = new Array(8)
  each val in arr

- arr = new Array(12)
  each val in arr

- arr = new Array(24)
  each val in arr



  margin 12px
  overflow hidden

    border-radius 4px
    height 36px

      background: #d3dce6
      background: lighten(#d3dce6, 30%)

$prefix = 'el-'
$cols = 24
$query = {
  normal: '',
  xs: 'max-width: 768px',
  sm: 'min-width: 768px',
  md: 'min-width: 992px',
  lg: 'min-width: 1200px',
  xl: 'min-width: 1920px',

  position relative
  box-sizing border-box
    content: ''
    clear both

media($class = '')
  $class += '-' unless $class == ''

    display none

  for $c in 1..$cols
    $percent = (100 / $cols * $c)%

      width $percent
      margin-left $percent
      position relative
      right $percent
      position relative
      left $percent

  float left
  box-sizing border-box

for $k, $v in $query
  if $k == 'normal'
    @media only screen and ({$v})