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

              
                <section class="s-grid-jumbo">
  <div class="s-grid-jumbo-wrapper">
    <div class="s-grid-logo">
      <i class="fa fa-fw fa-rocket"></i>
    </div>
    <div class="s-grid-headline">
      Lorem Ipsum
    </div>
    <div class="s-grid-subheadline">
      Lorem ipsum dolor sit amet
    </div>
  </div>
</section>

<section class="s-grid-content">
  <div class="s-grid-container">
    <div class="my-custom-header">
      <h1>Lorem ipsum dolor sit!</h1>
    </div>
    <div class="my-custom-column">
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eveniet rem dolor, facilis iusto consectetur repudiandae quidem quod quo voluptatibus corporis laborum non aliquam quia repellat delectus? A incidunt hic ipsum iure adipisci explicabo ex rerum, accusantium reprehenderit dicta. Voluptatibus numquam dolore impedit facere incidunt eaque commodi iste, officia magni quod.
    </div>
    <div class="my-custom-column">
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eveniet rem dolor, facilis iusto consectetur repudiandae quidem quod quo voluptatibus corporis laborum non aliquam quia repellat delectus? A incidunt hic ipsum iure adipisci explicabo ex rerum, accusantium reprehenderit dicta. Voluptatibus numquam dolore impedit facere incidunt eaque commodi iste, officia magni quod.
    </div>
  </div>
</section>

<footer>
  <div class="foot-left">Yay this is a footer...</div> 
  <div class="foot-right">
    <a href="https://www.npmjs.com/package/s-grid">sGrid on Npm</a>
  </div>
</footer>
              
            
!

CSS

              
                
/* ...grid styles are loaded from another pen... you can find sGrid code here: https://github.com/juliancwirko/s-grid */
    
/* Custom demo styles */

/* settings */
color-main-dark = #000
color-main-light = #fff
color-main-contrast = #62c4d7 //#45ADA8 //#127A97
font-headers = 'Lato', sans-serif

/* -------------- */

/* custom styles */
body
  background-color color-main-light
.s-grid-jumbo
    grid(justify: 'center')
    height 100vh
    background-color color-main-contrast
    color color-main-light
    .s-grid-jumbo-wrapper
        cell(1, 1, align: 'center', g: 30)
        text-align center
        .s-grid-logo
          font-size rem-calc(70)
          @media screen and (min-width: rem-calc(breakpoints[md]))
            font-size rem-calc(120)
        .s-grid-headline,
        .s-grid-subheadline
            font-family font-headers
        .s-grid-headline
            font-size rem-calc(45)
            @media screen and (min-width: rem-calc(breakpoints[md]))
              font-size rem-calc(75)
            font-weight 900
        .s-grid-subheadline
            font-size rem-calc(25)
            font-weight 600

.s-grid-container
  center(960)
  padding rem-calc(30)
  background-color darken(color-main-light, 2%)
  grid()
  .my-custom-header
    stack()
  .my-custom-column
    stack()
    @media screen and (min-width: rem-calc(breakpoints[md]))
      cell(1, 2)
footer
  grid()
  background-color color-main-dark
  color color-main-light
  font-size rem-calc(14)
  padding-top rem-calc(15)
  padding-bottom rem-calc(15)
  a
    color color-main-light
  .foot-left,
  .foot-right
    stack()
  @media screen and (min-width: rem-calc(breakpoints[md]))
    .foot-left,
    .foot-right
      cell(1, 2)
    .foot-right
      text-align right
              
            
!

JS

              
                
              
            
!
999px

Console