cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <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">
    Demo by Julian Ćwirko. <a href="https://www.npmjs.com/package/s-grid">sGrid on Npm</a>
  </div>
</footer>
            
          
!
            
              
/* ...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
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console