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

              
                <!-- <nav class="navigation"></nav> -->


<!-- PALLET -->
<div class="module">
  <h4 class="label">Color Pallete</h4>
  <div class="pallete">
    <div class="pallete-item">
      <div class="circle"></div>
      <p class="info">#9E0009</p>
    </div>
    <div class="pallete-item">
      <div class="circle"></div>
      <p class="info">#FFFCF2</p>
    </div>
    <div class="pallete-item">
      <div class="circle"></div>
      <p class="info">#333333</p>
    </div>
    <div class="pallete-item">
      <div class="circle"></div>
      <p class="info">#C8C7C3</p>
    </div>
    <div class="pallete-item">
      <div class="circle"></div>
      <p class="info">#EDEDED</p>
    </div>
  </div>
</div>

<!-- TYPOGRAPHY -->
<div class="module">
  <h4 class="label">Typography</h4>


  <h1>This is an H1 Heading the Largest Title</h1>
  <p class="overline">Fjalla 40px</p>
  <br>
  <hr>
  <br>
  
  <h2>This is a H2 Heading</h2>
  <p class="overline">Cantarell 24px</p>
  <br>
  <hr>
  <br>
  
  <h3>This is a H3 Heading</h3>
  <p class="overline">Cantarell 16px</p>
  <br>
  <hr>
  <br>
  

  <br>
  <br>
  <p>This first-of-its-kind <a href="#" alt="" title="">exhibit features</a> many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
</div>
  
  <!-- BUTTONS -->
<div class="module">
  <h4 class="label">Buttons</h4>

  <a href="#" class="button">Link</a>
  <button class="button">Button</button>
  
  <br>
  
  <a href="#" class="button red">Link</a>
  <button class="button red">Button</button>
</div>

<!-- Feature -->
<div class="feature">

<div class="carousel">
  
  <div class="slide">
    
    <figure>
      <img src="https://unsplash.it/960/540/?random" alt="Carousel Slide Title" class="image" width="960" height="540">
      <figcaption class="caption">
        <h1><a href="#" title="Carousel Slide Title">Carousel Slide Title</a></h1>
        <h2>Carousel Slide Sub Title</h2>
        <h3>Carousel Slide Sub Sub Title</h3>          
      </figcaption><!-- caption -->
    </figure><!-- figure -->
  </div><!-- Slide -->
</div><!-- Carousel -->

  
</div><!-- /Feature -->






<!-- Section One -->
<section class="one">

<div class="feature two-up">
  
  <h1>This is an H1 Heading the Largest Title</h1>

  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
    <a href="#" title="Buy Tickets" class="button">Buy Tickets</a>
  </div>
  
  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
    <a href="#" title="Plan A Visit" class="button">Plan A Visit</a>
  </div>
  
</div>
<!-- /Feature 2up -->
</section>
<!-- /Section One Tan -->


<!-- Section Two -->
<section class="two">

<!-- Feature 3up -->
<div class="feature three-up">
  
  <h1>This is an H1 Heading the Largest Title</h1>

  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
    <a href="#" title="More" class="button">More</a>
  </div>
  
  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
    <a href="#" title="More" class="button">More</a>
  </div>
  
   <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
     <a href="#" title="More" class="button">More</a>
  </div>
  
</div>
</section>
<!-- /Two Grey -->

<!-- Section Three Tan -->
<section class="three tan">

<div class="feature two-up">
  
  <h1>This is an H1 Heading the Largest Title</h1>

  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
    <a href="#" class="button">Link</a>
  </div>
  
  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
    <a href="#" class="button">Link</a>
  </div>
  
</div>
<!-- /Feature 2up -->
</section>
<!-- /Section Three Tan -->


<!-- Section Four Grey -->
<section class="four grey">

<!-- Feature 3up -->
<div class="feature three-up">
  
  <h1>This is an H1 Heading the Largest Title</h1>

  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
  </div>
  
  <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
  </div>
  
   <div class="feature-item">
    <img src="https://unsplash.it/450/350?random" alt="" title="" class="image" />
    <h2>This is a H2 Heading habitant morbi tristique senectus</h2>
    <p>This first-of-its-kind exhibit features many of the 160 images of the famous abolitionist taken from 1841 to 1895. By comparison, there are 130 images of President Lincoln. Come hear about Douglass' strategic plan to present positive and accurate images of African Americans that contradict negative stereotypes.</p>
  </div>
  
</div>
</section>
<!-- /Four Grey -->


              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Cantarell:400,400i,700|Fjalla+One);


// VARIABLES

// 5px = 0.3125rem
// 16px = 1rem (base)
// 18px = 1.125rem
// 20px = 1.25rem
// 24px = 1.5rem
// 28px = 1.75rem
// 30px = 1.875rem
// 40px = 2.5rem
// 48px = 3rem
// 60px = 3.75rem
// 300px = 18.75rem
// 1280px = 80rem

// Colors
$maroon: #9E0009;
$tan: #FFFCF2;
$grey-one: #333333;
$grey-two: #C8C7C3;
$grey-three: #EDEDED;
$white: #FFFFFF;

//Clearfix!
@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

//Border Radius
@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
     -moz-border-radius: $radius;
      -ms-border-radius: $radius;
          border-radius: $radius;
}

//.box { @include border-radius(10px); }



// STYLEGUIDE STYLES
body {
  // padding-left: 20px;
  font-size:16px;
}
.module {
  margin: 2.5rem auto; 
  width:980px;
}
.label {
  font-family: 'Cantarell', sans-serif;
  color: #4A4A4A;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  padding-left: 1.25rem;
  clear:both;
  background-color: #e6e6e6;
  text-transform: none;
}

/* Pallete */
.pallete {
  overflow: hidden; // bad but quickie clearfix
  
  .pallete-item {
    float:left;
    margin: 0 12px 20px 0;
    text-align:center;
    width: 85px;
    height: 140px;

    .circle {
      border: 1px solid #4A4A4A;
      width: 85px;
      height: 85px;
      border-radius: 50%;
    }

    &:nth-child(1) .circle {
      background-color: $maroon;
    }
    &:nth-child(2) .circle {
      background-color: $tan;
    }
    &:nth-child(3) .circle {
      background-color: $grey-one;
    }
    &:nth-child(4) .circle {
      background-color: $grey-two;
    }
    &:nth-child(5) .circle {
      background-color: $grey-three;
    }
  }
}



//navigation
.navigation {
  background-color: $grey-three;
  width:290px;
  height:300px;
  
  position:fixed;
  top:0;
  left:0;
  z-index:1;
  
}



/* Typography */
h1, h2, h3, h4, h5, h6, p, a {
  margin-bottom:1.25rem;
}
h1{
  font-family: 'Fjalla One', sans-serif;
  font-size: 2.5rem;
  line-height: 3rem;
  margin-bottom:1.875rem;
  color: $grey-one;
  //text-align: center;
}
h2 {
  font-family: 'Cantarell', sans-serif;
  font-size: 1.5rem;
  line-height: 1.875rem;
  text-transform: none;
  font-weight: 400;
  color: $grey-one;
}
h3 {
  font-family: 'Cantarell', sans-serif;
  font-size: 1rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: $maroon;
}
h4 {
  font-family: 'Cantarell', sans-serif;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #353535;
}

p {
  font-family: 'Cantarell', sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: $grey-one;
}

a {
  text-decoration: underline;
  color: $maroon;
  font-weight: 400;
}

a:hover {
  color: $grey-two;
  text-decoration: none;
}

.image {
  @include border-radius(2px);
  border-top:0.3125rem solid $maroon;
  -webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,.15);
  box-shadow: 0 5px 20px 0 rgba(0,0,0,.15);
}




/* Buttons */
.button {
  background-color: transparent;
  border: 1px solid $maroon;
  color: $maroon;
  display:inline-block;
  font-family: 'Cantarell', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height:2.5rem;
  padding:0 1.25rem;
  text-transform: uppercase;
  text-decoration:none;
  transition: .1s;
 
  &:hover {
   background-color: $maroon;
   color: $white;
   cursor:pointer;
  }
  
  &.red {
    background-color:$maroon;
    border: 1px solid $white;
    color: $white;
    
    &:hover {
     background-color: $white;
     border: 1px solid $maroon;
     color: $maroon;
     cursor:pointer;
    }
  }
}

//CAROUSEL 
.carousel {
  height:auto;
  width:100%;
  
  .slide {
    position:relative;
    
    img {
      display:block;
      height:auto;
      margin:0;
      padding:0;
      width:100%;
    }
    
    h1,h2,h3,h4,p {
      clear:left;
      color:$white;
      float:left;
      margin-bottom:.625rem;
      
      a {
        color:$white;
        text-decoration:none;
        
        &:hover {
          color:$maroon;
        }
      }
    }//fonts
    
    .caption {
      background-color:rgba(0,0,0,.5);
      box-sizing: border-box;
      display:block;
      margin:0;
      padding:1.25rem;
      width:100%;
      
      //positioning
      position:absolute;
      bottom:0;
      left:0;
      z-index:1;
      
    }//caption
  }//slide
}//carousel


//FEATURE 
.feature {
  @include clearfix;
  box-sizing: border-box;
  margin:0 auto 2.5rem;
  max-width:80rem;
  padding:0 4.75rem 0 18.75rem;
  
  .feature-item {
     float:left;
    
    img {
      height:auto;
      margin-bottom:1.25rem;
      width:100%;
    }
   }//feature-item
  
  &.two-up {
    
    .feature-item {
      width:46%;
      
      &:nth-child(odd) {
        margin-left: 4%;
      }
      
      &:nth-child(even) {
        margin-right: 4%;
      }
    }//feature-item
  }//two-up
  
  &.three-up {
    
    .feature-item {
      width:30%;
      
      &:nth-child(odd) {
        margin:0 4%;
      }
    }//feature-item
  }//two-up
}//feature


//Sections

section {
  width:100%;
  padding:2.5rem 0;
  
   &.tan {
    background-color:$tan;
  }
  
  &.grey {
    background-color:$grey-three;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console