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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <div class="container">
<h1>Responsive Layout With Flexbox That Works For SEO</h1>

<div class="mainbox">

  <h2>1 Column</h2>
  <div class="wrap cf">
    <main class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
      <div class="main-container">
        <article class="article" role="article" itemscope itemtype="http://schema.org/BlogPosting">
          <header class="article-header clearfix">
            <h1 class="page-title" itemprop="headline">Title goes here</h1>
            <p class="byline vcard">
              Posted <time datetime="2015-03-01 19:00" itemprop="datePublished">01 Mar 2015</time> by <span class="author" itemtype="http://www.data-vocabulary.org/Person/" title="Ryan Yu">Ryan Yu</span>
            </p>
          </header>
          <section class="article-content clearfix" itemprop="articleBody">
            <h2>Donec sed odio dui</h2>
            <p>Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
            <p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
          </section>
          <footer class="article-footer clearfix">
            <p class="tags">Tags: <span class="tags__title">venenatis, mollis, nibh, commodo, ultricies</span></p>
          </footer>
        </article>
      </div>
    </main>
    <aside class="sidebar" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
  </div><!-- /.wrap -->
  
  <h2>2 Columns - Left Sidebar</h2>
  <div class="wrap wrap-2col wrap-2col-left cf">
    <main class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
      <div class="main-container">
        <article class="article" role="article" itemscope itemtype="http://schema.org/BlogPosting">
          <header class="article-header clearfix">
            <h1 class="page-title" itemprop="headline">Title goes here</h1>
            <p class="byline vcard">
              Posted <time datetime="2015-03-01 19:00" itemprop="datePublished">01 Mar 2015</time> by <span class="author" itemtype="http://www.data-vocabulary.org/Person/" title="Ryan Yu">Ryan Yu</span>
            </p>
          </header>
          <section class="article-content clearfix" itemprop="articleBody">
            <h2>Donec sed odio dui</h2>
            <p>Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
            <p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
          </section>
          <footer class="article-footer clearfix">
            <p class="tags">Tags: <span class="tags__title">venenatis, mollis, nibh, commodo, ultricies</span></p>
          </footer>
        </article>
      </div>
    </main>
    <aside class="sidebar" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
  </div><!-- /.wrap -->

  <h2>2 Columns - Right Sidebar</h2>
  <div class="wrap wrap-2col wrap-2col-right cf">
    <main class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
      <div class="main-container">
        <article class="article" role="article" itemscope itemtype="http://schema.org/BlogPosting">
          <header class="article-header clearfix">
            <h1 class="page-title" itemprop="headline">Title goes here</h1>
            <p class="byline vcard">
              Posted <time datetime="2015-03-01 19:00" itemprop="datePublished">01 Mar 2015</time> by <span class="author" itemtype="http://www.data-vocabulary.org/Person/" title="Ryan Yu">Ryan Yu</span>
            </p>
          </header>
          <section class="article-content clearfix" itemprop="articleBody">
            <h2>Donec sed odio dui</h2>
            <p>Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
            <p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
          </section>
          <footer class="article-footer clearfix">
            <p class="tags">Tags: <span class="tags__title">venenatis, mollis, nibh, commodo, ultricies</span></p>
          </footer>
        </article>
      </div>
    </main>
    <aside class="sidebar" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
  </div><!-- /.wrap -->

  <h2>3 Columns - Wings</h2>
  <div class="wrap wrap-3col wrap-3col-wings cf">
    <main class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
      <div class="main-container">
        <article class="article" role="article" itemscope itemtype="http://schema.org/BlogPosting">
          <header class="article-header clearfix">
            <h1 class="page-title" itemprop="headline">Title goes here</h1>
            <p class="byline vcard">
              Posted <time datetime="2015-03-01 19:00" itemprop="datePublished">01 Mar 2015</time> by <span class="author" itemtype="http://www.data-vocabulary.org/Person/" title="Ryan Yu">Ryan Yu</span>
            </p>
          </header>
          <section class="article-content clearfix" itemprop="articleBody">
            <h2>Donec sed odio dui</h2>
            <p>Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
            <p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
          </section>
          <footer class="article-footer clearfix">
            <p class="tags">Tags: <span class="tags__title">venenatis, mollis, nibh, commodo, ultricies</span></p>
          </footer>
        </article>
      </div>
    </main>
    <aside class="sidebar sidebar-left" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
    <aside class="sidebar sidebar-right" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
  </div><!-- /.wrap -->

  <h2>3 Columns - Lefted</h2>
  <div class="wrap wrap-3col wrap-3col-lefted cf">
    <main class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
      <div class="main-container">
        <article class="article" role="article" itemscope itemtype="http://schema.org/BlogPosting">
          <header class="article-header clearfix">
            <h1 class="page-title" itemprop="headline">Title goes here</h1>
            <p class="byline vcard">
              Posted <time datetime="2015-03-01 19:00" itemprop="datePublished">01 Mar 2015</time> by <span class="author" itemtype="http://www.data-vocabulary.org/Person/" title="Ryan Yu">Ryan Yu</span>
            </p>
          </header>
          <section class="article-content clearfix" itemprop="articleBody">
            <h2>Donec sed odio dui</h2>
            <p>Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
            <p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
          </section>
          <footer class="article-footer clearfix">
            <p class="tags">Tags: <span class="tags__title">venenatis, mollis, nibh, commodo, ultricies</span></p>
          </footer>
        </article>
      </div>
    </main>
    <aside class="sidebar sidebar-left" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
    <aside class="sidebar sidebar-right" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
  </div><!-- /.wrap -->

  <h2>3 Columns - Righted</h2>
  <div class="wrap wrap-3col wrap-3col-righted cf">
    <main class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
      <div class="main-container">
        <article class="article" role="article" itemscope itemtype="http://schema.org/BlogPosting">
          <header class="article-header clearfix">
            <h1 class="page-title" itemprop="headline">Title goes here</h1>
            <p class="byline vcard">
              Posted <time datetime="2015-03-01 19:00" itemprop="datePublished">01 Mar 2015</time> by <span class="author" itemtype="http://www.data-vocabulary.org/Person/" title="Ryan Yu">Ryan Yu</span>
            </p>
          </header>
          <section class="article-content clearfix" itemprop="articleBody">
            <h2>Donec sed odio dui</h2>
            <p>Vestibulum id ligula porta felis euismod semper. Nullam quis risus eget urna mollis ornare vel eu leo. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
            <p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec ullamcorper nulla non metus auctor fringilla. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
          </section>
          <footer class="article-footer clearfix">
            <p class="tags">Tags: <span class="tags__title">venenatis, mollis, nibh, commodo, ultricies</span></p>
          </footer>
        </article>
      </div>
    </main>
    <aside class="sidebar sidebar-left" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
    <aside class="sidebar sidebar-right" role="complementary">
      <div class="sidebar-container">
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
        <div class="widget">
          <h3 class="widget__heading">Widget heading goes here</h3>
          <div class="widget__content">
            <p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Donec id elit non mi porta gravida at eget metus. Etiam porta sem malesuada magna mollis euismod.</p>
          </div>
        </div>
      </div>
    </aside>
  </div><!-- /.wrap -->

  <div class="browsers">
    <h2>Supported Browsers:</h2>
    <ul>
      <li class="chrome">Chrome</li>
      <li class="firefox">Firefox</li>
      <li class="safari">Safari</li>
      <li class="opera">Opera</li>
      <li class="ie">IE 9+</li>
    </ul>
  </div><!-- /.browsers -->
  <div class="credit">
    <h2>Credit:</h2>
    <ul>
      <li><a href="https://tympanus.net/codrops/css_reference/flexbox/" target="_blank">https://tympanus.net/codrops/css_reference/flexbox/</a></li>
      <li><a href="http://the-echoplex.net/flexyboxes/" target="_blank">http://the-echoplex.net/flexyboxes/</a></li>
    </ul>
  </div><!-- /.credit -->
  <div class="follow">
    <h2>Follow me:</h2>
    <ul>
      <li>Twitter: <a href="https://twitter.com/iamryanyu" target="_blank">@iamryanyu</li>
    </ul>
  </div><!-- /.follow -->
</div><!-- /.mainbox -->
</div><!-- /.container -->
              
            
!

CSS

              
                @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Droid+Sans:400,700);

/*-- Variables --*/
$white: unquote(#fff);
$black: #000;
$black-light: #232323;
$yellow: #f2c100;
$pink: #e804c5;
$green: #01c925;

$pg-bg-color: $black-light;
$content-bg-color: $white;

$heading-color: $yellow;
$subheading-color: $pink;
$subheading-color-2: $green;

$mq-tablet-small: "screen and (min-width: 37.500em)"; // 600px
$mq-tablet: "screen and (min-width: 48.000em)"; // 768px
$mq-desktop: "screen and (min-width: 64.000em)"; // 1024px

$base-font-pixel: 16;

$width-main-2col: 73%;
$width-sidebar-2col: 25%;
$width-main-3col: 57%;
$width-sidebar-3col: 20%;
$width-padding-ie9: 1.5%;

/*-- Placeholder --*/
%list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

%cf {
  /**
   * For IE 6/7 only
   * Include this rule to trigger hasLayout and contain floats.
   */
  *zoom: 1;

  // credit: http://nicolasgallagher.com/micro-clearfix-hack/
  &:before,
  &:after {
    content: " "; /* 1 */
    display: table; /* 2 */
    line-height: 0;
  }

  &:after {
    clear: both;
  }
}

%cf-flexbox {
  &:before,
  &:after {
    display: none;

    .lt-ie10 & {
      display: table;
    }
  }
}

/*-- Mixins --*/
@mixin font-size($side-value: 1) {
  font-size: ($side-value * $base-font-pixel) + px;
  font-size: $side-value + rem;
}

// this is for 3 cols, unit in %
// $area - 1: wrap-inner, 2: main, 3: sidebar
@mixin wrap-inner-size($main-size, $sidebar-size, $area, $extra-padding: 0) {
  $total-size: 100% - $sidebar-size;
  $new-sidebar-size: $sidebar-size / ($main-size + $sidebar-size) * 100%;

  @if $area == 1 {
    width: $total-size;
  } @else if $area == 2 {
    width: 100% - $new-sidebar-size - ($extra-padding * 2);
    margin: 0 $extra-padding;
  } @else if $area == 3 {
    width: $new-sidebar-size;
  }
}

/*-- Utilities --*/
.cf {
  @extend %cf;
}

/*-- General --*/
* {
  box-sizing: border-box;
}

body {
  font-family: 'Droid Sans', sans-serif;
  background-color: $pg-bg-color;
  color: $white;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.main,
.sidebar {
  background-color: $content-bg-color;
  overflow: auto;
}

.main-container,
.sidebar-container {
  padding: 0 20px;
}

.wrap {
  color: $black-light;
}

h1 {
  color: $heading-color;
}

h2 {
  color: $subheading-color;
}

h3 {
  color: $subheading-color-2;
}

a {
  color: $white;
}

.sidebar-left {
  background: #ccc;
}

// browsers
.browsers {
  margin: 50px 0;
  overflow: hidden;

  ul {
    @extend %list-reset;
  }

  li {
    float: left;
    text-align: center;
    padding-top: 80px;
    margin-right: 25px;
    background-size: 400px;
    background-image: url('http://outdatedbrowser.com/public/imgs/browsers-bg.png');
    background-repeat: no-repeat;

    @include font-size(.8125);
  }

  .chrome {
    width: 67px;
    background-position: -6px -83px;
  }

  .firefox {
    width: 69px;
    background-position: -85px -83px;
  }

  .safari {
    width: 69px;
    background-position: -246px -83px;
  }

  .opera {
    width: 66px;
    background-position: -327px -83px;
  }

  .ie {
    width: 70px;
    background-position: -165px -83px;
  }
}

// credit
.credit {
  margin: 0 0 50px;
}

/*-- Layout --*/
.wrap {
  @extend %cf-flexbox;
}

.wrap-2col,
.wrap-3col {
  // flexbox
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: stretch;
  align-items: stretch;

  @media #{$mq-desktop} {
    flex-wrap: nowrap;
  }

  .main,
  .sidebar {
    order: 0;
    flex: 0 1 100%;
    align-self: auto;
  }
}

.wrap-2col {
  .main {
    @media #{$mq-desktop} {
      flex-basis: $width-main-2col;
    }
  }

  .sidebar {
    @media #{$mq-desktop} {
      flex-basis: $width-sidebar-2col;
    }
  }
}

.wrap-3col {
  .main {
    @media #{$mq-desktop} {
      flex-basis: $width-main-3col;
    }
  }

  .sidebar {
    @media #{$mq-desktop} {
      flex-basis: $width-sidebar-3col;
    }
  }
}

.main {
  .wrap-2col-left & {
    @media #{$mq-desktop} {
      order: 2;
    }

    .lt-ie10 & {
      float: right;
      width: $width-main-2col;
    }
  }

  .wrap-2col-right & {
    @media #{$mq-desktop} {
      order: 0;
    }

    .lt-ie10 & {
      float: left;
      width: $width-main-2col;
    }
  }

  .wrap-3col-wings & {
    @media #{$mq-desktop} {
      order: 2;
    }

    .lt-ie10 & {
      float: right;
      
      @include wrap-inner-size($width-main-3col, $width-sidebar-3col, 2, $width-padding-ie9);
    }
  }

  .wrap-3col-lefted & {
    @media #{$mq-desktop} {
      order: 3;
    }

    .lt-ie10 & {
      float: right;
      width: $width-main-3col;
    }
  }

  .wrap-3col-righted & {
    @media #{$mq-desktop} {
      order: 1;
    }

    .lt-ie10 & {
      float: left;
      width: $width-main-3col;
    }
  }
}

.sidebar {
  .wrap-2col-left & {
    @media #{$mq-desktop} {
      order: 1;
    }

    .lt-ie10 & {
      float: left;
      width: $width-sidebar-2col;
    }
  }

  .wrap-2col-right & {
    @media #{$mq-desktop} {
      order: 0;
    }

    .lt-ie10 & {
      float: right;
      width: $width-sidebar-2col;
    }
  }
}

.sidebar-left {
  .wrap-3col-wings & {
    @media #{$mq-desktop} {
      order: 1;
    }

    .lt-ie10 & {
      float: left;
      
      @include wrap-inner-size($width-main-3col, $width-sidebar-3col, 3);
    }
  }

  .wrap-3col-lefted & {
    @media #{$mq-desktop} {
      order: 1;
    }

    .lt-ie10 & {
      float: left;
      width: $width-sidebar-3col;
    }
  }

  .wrap-3col-righted & {
    @media #{$mq-desktop} {
      order: 2;
    }

    .lt-ie10 & {
      float: left;
      width: $width-sidebar-3col;
      margin-left: $width-padding-ie9;
    }
  }
}

.sidebar-right {
  .wrap-3col-wings & {
    @media #{$mq-desktop} {
      order: 3;
    }

    .lt-ie10 & {
      float: right;
      width: $width-sidebar-3col;
    }
  }

  .wrap-3col-lefted & {
    @media #{$mq-desktop} {
      order: 2;
    }

    .lt-ie10 & {
      float: left;
      width: $width-sidebar-3col;
      margin-left: $width-padding-ie9;
    }
  }

  .wrap-3col-righted & {
    @media #{$mq-desktop} {
      order: 3;
    }

    .lt-ie10 & {
      float: right;
      width: $width-sidebar-3col;
    }
  }
}

.wrap-inner {
  .wrap-3col-wings & {
    float: left;

    @include wrap-inner-size($width-main-3col, $width-sidebar-3col, 1);
  }
}

              
            
!

JS

              
                ###global Modernizr:true ###
'use strict'

(($) ->
  $.fn.extend
    pgLayout: (options) ->
      ### Support IE9 ###
      # declear vars
      $wrap = $('.wrap')
      $ie9 = $('.lt-ie10')

      # funcs
      wrapWings = ->
        if ($ie9.length)
          $wrap.each ->
            $this = $(this)
            $thisWings = $this.children('.main, .sidebar-left')

            # left sideabr
            if $this.hasClass 'wrap-3col-wings'
              $($thisWings).wrapAll '<div class="wrap-inner" />'

            return

      # call funcs
      wrapWings()

      ### Window Resize Changes ###
      window.addEventListener 'resize', ->
        #updatePrevText()
  # END mgPgnation()
      
  # call function here 
  $('.wrap').pgLayout()

) jQuery

              
            
!
999px

Console