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.

            
              <section class="header-banner">
  <div class="stripe-grid blue">
    <div class="stripe zero"></div>
    <div class="stripe first"></div>
    <div class="stripe second"></div>
    <div class="stripe third"></div>
    <div class="stripe fourth"></div>
  </div>
  <div class="content-wrap row cf">
      <section class="content">
        <h1 class="hero-title"><span>Stripe Fancy Grid</h1>
        <p class="hero-subtitle">Here we can see how using several layers with gradients and transforms can give an awesome looking effect to our layouts.</p>
        <div class="button-group">
          <a href="#">
            <div class="button primary-button">Primary Action</div>
          </a>
          <a href="#">
            <div class="button secondary-button">Secondary Action</div>
          </a>
        </div>
      </section>
        <!--  https://beyond.dev.elevate360.com.au/wp-content/uploads/2017/02/brain.png -->
      <section class="image"><img src="https://image.ibb.co/b598MQ/Git_Icon_White.png"></section>
  </div>
</section>
<section class="main-content row">
  <h2>Secondary Title Here</h2>
  <p>Here we have secondary content for the page, we outline some content along with other stuff and things. Here's some lorem ipsum</p>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent posuere lorem et commodo sollicitudin. Donec viverra mattis dolor. Fusce eu tincidunt ex. Mauris id orci volutpat, ultrices ligula porttitor, hendrerit odio. </p>
  <p>Sed quis ligula porta, posuere nibh et, lobortis leo. Curabitur eros justo, molestie id sapien eu, molestie tempor sem. Vestibulum pretium laoreet scelerisque. Praesent eget purus facilisis, posuere mauris vitae, bibendum mauris. Sed rhoncus, elit in tempor pulvinar.</p>
</section>
<section class="footer">
  <div class="row">
    <p>Copyright goes here</p>
  </div>
</section>
            
          
!
            
              $color__blue_regular: #00c5d7;
$color__blue_light: #1ADFF1;
$color__blue_dark: #009dab;
$color__gray_light: #eeeeee;
$color__gray_regular: #f6f9fc;

body{
  padding: 0px;
}

.row{
  position: relative;
  max-width: 1024px;
  margin: auto;
  padding-left: 15px;
  padding-right: 15px;
}

//clearfixes
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

//Main styling for strip elements + hero
.header-banner{
  position: relative;
  padding-top: 0px;
  
  //Stripe grid
  .stripe-grid{
    position: absolute;
    top: 0px;
    left: 0%;
    width: 100%;
    height: 100%;
    transform: skewY(-11deg); 
    
    //used to hide jagged effect at the bottom of the container
    &:after{
      position: absolute;
      width: 100%;
      height:1px;
      background-color: #fff;
      bottom: -1px;
      content: '';
      left: 0%;
    }
    
    //each singular stripe (sizing / position)
    .stripe{
      position: absolute;
      height: 22%;
      width: 100%;

      &.zero{
        top: -50%;
        height: 50%;
      }
      &.first{
        width: 75%;
        left: 0%;
      }
      &.second{    
        right: 0%;
        width: 25%;
        top: 25%;
      }
      &.third{ 
        bottom: 0%;
        width: 50%;
        right: 0px;
      }
      &.fourth{  
        bottom: 0%;
        width: 50%;
        left: 0%;
      }
    }
    //blue grid
    &.blue{
      background: $color__blue_regular;
      
      .zero{
        background-color: $color__blue_regular;
      }
      .first{
        background-color: $color__blue_regular;
        background: linear-gradient(90deg, $color__blue_light, $color__blue_regular);
      }
      .second{
        background-color: $color__blue_regular;
        background: linear-gradient(90deg, $color__blue_regular, lighten($color__blue_light, 20%));
      }
      .third{
        background-color: $color__blue_regular;
        background: linear-gradient(90deg, $color__blue_regular,  $color__blue_dark);
      }
      .fourth{
        background-color: $color__gray_light;
        background: linear-gradient(90deg, $color__gray_light, $color__gray_regular);
      }

    }
    
   }
  
  //content + image
  .content-wrap{
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
    
    .content{
      float: left;
      width: 65%;
      
      .hero-title{
        font-size: 2.8rem;
        margin-bottom: 1.9rem;
        color: #fff;
      }
      .hero-subtitle{
        font-size: 1.5rem;
        margin-bottom: 2rem;
        color: #eee;
      }
      .button-group{
        margin-bottom: 10px;
       }
      .button{
        float: left;
        margin-right:15px;
        padding: 10px 17px;
        background: #2c3e50;
        color: #fff;
        transition: all 220ms ease-out;

        &:focus{
          background: #34495e;
        }
      }
    }
    .image{
      float: left;
      width: 35%;
      padding: 0px 10px;
      img{
        max-width: 100%;
        height: auto;
      }
    }
    
  }

}
//Misc content styles
.main-content{
  padding-bottom: 60px;
  
  h2{
    margin-bottom: 30px;
  }
}
//Misc footer styles
.footer{
  background-color: #2c3e50;
  padding-top: 15px;
  padding-bottom: 15px;
  color: #fff;
  
  p{
    margin-bottom: 0px;
  }
}

//Additional adjustements for smaller screens
@media screen and (max-width: 768px){
  .header-banner{
    .content-wrap{
      .image{
        display: none;
        border: solid 1px red;
      }
      .content{
        width: 100%;
      }
    }
    
  }
}
            
          
!
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