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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console