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

              
                <link href='https://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>

<div id="wrap">
  <div class="hex-background"></div>

  <div class="hex-borders-l-r"></div>
  <div class="hex-borders-ul-lr"></div>
  <div class="hex-borders-ll-ur"></div>

  <div id="n-left"></div>
  <div id="n-center-rear"></div>
  <div id="n-center-front"></div>
  <div id="n-right"></div>
</div>
<div id="title"><span>nick</span>brombal</div>
              
            
!

CSS

              
                @import "compass/css3";

/*** VARIABLES ***/
$primary-color: rgb(0,128,128);
$secondary-color: rgb(45,80,80);
$border-color: rgb(128,128,128);
$gradient-top: rgb(0,125,35);
$gradient-bottom: rgb(0,35,125);

/*** MIXINS ***/
@mixin hex-border($angle) {
  width: 170px;
  height: 115px;
  position: absolute;
  border-left: 15px solid $border-color;
  border-right: 15px solid $border-color;
  @include transform(rotate($angle)); 
}
@mixin size-and-position($top,$left,$w,$h) {
  position: absolute;
  top: $top;
  left: $left;
  width: $w;
  height: $h;
}

/*** STYLES ***/
* { margin: 0; padding: 0; border: 0; outline: 0; }
body {
  height: 100%;
  background: -webkit-linear-gradient(-45deg, $gradient-top 0%, $gradient-bottom 100%);
  background-attachment: fixed;
}

#wrap {
  width: 200px;
  height: 200px;
  display: block;
  position: relative;
  margin: 0 auto;
  margin-top: 5%;
}

/* Black transparent backing */
.hex-background {
  @include size-and-position(10px,10px,180px,100px);
  background: black;
  opacity: 0.5;
  &:before {
    content: "";
    position: absolute;
    top: -55px;
    border: {
      left: 90px solid transparent;
      right: 90px solid transparent;
      bottom: 55px solid black;
    }
  }
  &:after {
    content: "";
    position: absolute;
    bottom: -55px;
    border: {
      left: 90px solid transparent;
      right: 90px solid transparent;
      top: 55px solid black;
    }
  }
}

/* Grey borders to the hexagon */
.hex-borders-l-r {
  @include hex-border(0deg);
}
.hex-borders-ul-lr {
  @include hex-border(60deg);
}
.hex-borders-ll-ur {
  @include hex-border(-60deg);
}

/* Strokes of the "N" symbol */
#n-left {
  @include size-and-position(5px,40px,0px,75px);
  border-right: 30px solid $primary-color;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
#n-center-front {
  background: $primary-color;
  @include size-and-position(36px,70px,60px,45px);
  @include transform(skewY(46deg));
}
#n-center-rear {
  background: $secondary-color;
  @include size-and-position(36px,70px,60px,45px);
  @include transform(skewY(-46deg));
}
#n-right {
  @include size-and-position(5px,130px,0px,75px);
  border-left: 30px solid $primary-color;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

/* Title text below mark */
#title {
  font: 40px/10px electrolize;
  text-align: center;
  color: $border-color;
  span { color: $primary-color; }
}
              
            
!

JS

              
                
              
            
!
999px

Console