css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

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

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              doctype html
- app_name = 'My App'
- app_slogan = 'Company slogan'

mixin list(css, number)
  ul(class != css)
    - for (var n=1; n <=number; n++)
       li

// 
.page.fixie
  // Quick links : Accessibility navigation
  
  // Main header section 
  header#header
    .wrapper
      nav.responsive-menu.js-menumaker
        .head-desktop
          a
            .brand #{app_name}
            .baseline #{app_slogan}
        .head-mobile
          button.mobile-button Navigation
          .brand #{app_name}
          .baseline #{app_slogan}
        .menu-container
          ul
            li
              a
            li
              a
            li.has-sub
              a
              ul
                li
                  a
                  
  // Breadcrumb section      
  #breadcrumb
    .wrapper
      ol
        li
          a Acceuil
        li
          a Category
        li
          item
        
  // main content section
  main#content
    .wrapper
      article.content(itemscope itemtype="http://schema.org/Article")
        header.content-header.clearfix
          .header-media
            img
          .header-copy  
            h1(itemprop="headline")
        .content-main(itemprop="articleBody")
          .typeset(itemprop="text")
            .row.bordered
              .col
                p
                p
              .col.double
                p
                p
            hr
            .row
              .col
                p
                p
              .col
                p
                p
              .col
                p
                p
            hr
          // Notes and poscriptums signatures bio    
          footer.content-footer
            p.notes
            p.ps
          // Additional informations extra navs
          //aside.content-aside
          // Optional Other additionals content : comments threads, galleries
          //aside.content-extra  
  // Footer
  footer#footer
    .wrapper
      +list('corporate', 5)
      +list('socials-links', 3)
      +list('colophon', 5)
            
          
!
            
              $base-layout-s: layout(2 1/4 split) !default;
$base-layout-m: layout(4 1/4 after) !default;
$base-layout-l: layout(1050px 8 1/4 after) !default;

$max-width: 1050px !default;


.wrapper {
  @include container($base-layout-s);
  
  @include media('>phone'){
    @include container($base-layout-m);
  }
  
  @include media('>desktop'){
    @include container($base-layout-l);
  }
  
}

#header {
  
  
}

#breadcrumb {
  ul, ol >li {
    display: inline-block;
    list-style-type: none;
  }
}


#content .content {
  .content-header {
    @include media('>phone'){
      .header-media{
        @include span(3 $base-layout-l);
      }
    
      .header-copy{
        @include span(5 last $base-layout-l);
      }
   }
    
  }
  
  .typeset,.content-footer {
    max-width: 750px;
    margin: 0 auto;
  }
  
}


#footer .wrapper {
  display: flex;
  flex-direction: column;
  .corporate,.socials-links,.colophon{
    flex:1;
  }
  @include media('>phone'){
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

// Simple grid system
.row,
.col {
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  @include media('>phone'){
    flex-wrap: nowrap;
    flex-direction: row;
    flex-shrink: 1 ;
  }
}

.col {
  @include media('>phone'){
    flex: 1;
    padding-right: $small-spacing;
    margin-right: $small-spacing;
    &:last-of-type {
      padding-right: 0;
      margin-right: 0;
    }
  }
}


// Sizing
/** 


$width - 
$gutter - 

$breakpoint-small: 33.75em; // 540px
$breakpoint-med: 45em; // 720px
$breakpoint-large: 60em; // 960px
*/
$width: 96%;
$gutter: 4%;
// width: ($width / (12 / 11)) - ($gutter * 1 / 12);
$nb_col: 12 ;

$i:1;
@each $col in $nb_col {
  .col-#{$i}{
    width:  ($width / (12 / 11)) - ($gutter * 1 / 12);
  }
  $i: $i + 1;
}


// Utilities
.col.double{
  flex: 2;
}
.row.bordered .col {
  @include media('>phone'){
    border-right: 1px solid black;
    &:last-of-type {
      border-right: 0px transparent;
    }
  }
}
            
          
!
            
              jQuery(function($){
  // fixie.init();
  
  
});
            
          
!
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