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.

            
              <header>
  <h1>UXDepot</h1>
  <h2>User Experience Design Team</h2>
  <p><a href="https://twitter.com/RedHatUXD"><i class="fa fa-twitter"></i> @RedHatUXD</a><p>
  <h6><a href="https://www.redhat.com/">Red Hat</a><h6>
</header>
            
          
!
            
              $primary-color: #820000;
$secondary-color: #cc0000;

@mixin reset{
  margin:0;
  padding:0;  
  font-size:1em;
}

body{
  @include reset;
  color:#fff;
}

header{
 &:after{
// background:tan;
 background-image:     url(http://andresgalante.com/pattern.svg);
   background-size: 60px 60px;
   background-position:center ceter;
   
// linear-gradient(45deg, red 25%, transparent 0),
// linear-gradient(45deg, transparent 75%, red 0);
// background-size: 120px 120px;	
// background-position: 0px 0px, 60px 60px;
//  background-blend-mode: multiply;
    content:"";
    position: absolute;
    top:0;
    left:50%;
    right:0;
    bottom:0;
    width:240px;
    height:120px;
//    overflow:hidden;
    z-index: 1;

 clip-path:   polygon(50% 0, 100% 0%, 50% 100%, 0% 100% );
  }
  overflow:hidden;
  position: relative;
  padding:18px 37px;
  background-color: dimgray;
  background-image:
//    linear-gradient(135deg, transparent 55%, transparent 55%, $primary-color 55%, $primary-color 65%, transparent 0),    
    linear-gradient(135deg, $primary-color 60%, transparent 60%),
    linear-gradient(to left, rgba(0,0,0,.7) 0%, transparent 35%),
  url("https://dl.dropboxusercontent.com/u/4371641/pic.jpg");
  background-size:  auto,auto,cover;
  background-position:  0 0, center center, center center;
  background-blend-mode:  multiply, multiply, normal;
 
  h1,h2,h6,p{
    @include reset;
  }
  h6{
    background: url("https://dl.dropboxusercontent.com/u/4371641/rh-logo.svg") no-repeat center center;
    width: 170px;
    position:absolute;
    right:37px;
    top:0;
    bottom:0;
    cursor:pointer;
    text-indent:-9999px;
  }
  h1{
    font-size: 42px;
//    background:tan;
    margin-bottom:1rem;
  }
  h2, p{
    display:inline-block;
    margin-right:3rem;
    font-weight: normal;
//    background:red;
  }
  a{
    color:white;
    text-decoration:none;
    &:hover{
      text-decoration:underline;
    }
  }
}
            
          
!
999px
Loading ..................

Console