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 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.

HTML

              
                <div class="wrapper">
  <input type="checkbox" name="nav-check" id="nav-check" />
  <section class="sec-about" id="sec-about">
    <div class="content">
      <h1>who am i?</h1>
      <p>my name is alex devero.</p>
      <p>i am web designer and developer.</p>
      <p>over the years of everyday practice,</p>
      <p>i built solid expertise in html, css and javascript.</p>
      <p>i focus on creating clean and unique design.</p>
    </div>
  </section>
  <section class="sec-portfolio" id="sec-portfolio">
    <div class="row">
      <div class="col-big"><img src="http://alexdevero.com/img/_Paraguay--demo--05-paraguay.png" alt="Project Paraguay snapshot" /></div>
      <div class="col-big"><img src="http://alexdevero.com/img/_Smoothie--demo--04-smoothie.png" alt="Project Smoothie snapshot" /></div>
    </div>
    <div class="row">
      <div class="col-big"><img src="http://alexdevero.com/img/_Stilleto--demo--05-stilleto.png" alt="Project Stilleto  snapshot" /></div>
      <div class="col-big"><img src="http://alexdevero.com/img/_Salamander--demo--03-salamander.png" alt="Project Salamander snapshot" /></div>
    </div>
  </section>
  <section class="sec-contact" id="sec-contact">
    <ul class="soc-media">
      <li><a href="https://twitter.com/AlexDevero" class="fa fa-twitter" target="_blank"></a></li>
      <li><a href="https://www.facebook.com/lex.devero" class="fa fa-facebook" target="_blank"></a></li>
      <li><a href="http://postman0.deviantart.com/" class="fa fa-deviantart" target="_blank"></a></li>
      <li><a href="https://www.behance.net/d3v3r0" class="fa fa-behance" target="_blank"></a></li>
      <li><a href="mailto:deveroalex@gmail.com" class="fa fa-envelope"></a></li>
    </ul>
  </section>
  <section class="sec-home" id="sec-home">
    <div class="content">
      <h1>hi and welcome on my portfolio.</h1>
      <h2><a href="#sec-about">who</a> am i?</h2>
      <h2><a href="#sec-portfolio">what</a> i do?</h2>
      <h2><a href="#sec-contact">where</a> to find me?</h2>
    </div>
  </section>
  <nav role="navigation">
    <label for="nav-check"></label>
    <ul class="navigation">
      <li><a href="#sec-home">home</a></li>
      <li><a href="#sec-about">about</a></li>
      <li><a href="#sec-portfolio">portfolio</a></li>
      <li><a href="#sec-contact">contact</a></li>
    </ul>
  </nav>
</div>
              
            
!

CSS

              
                // Variables
$chocolate: #d2691e;
$darkSalmon: #e9967a;
$indianRed: #cd5c5c;
$seaShell: #fff5ee;
$yellow: #ffeb3b;
$wheat: #f5deb3;

// Mixins
@mixin transition($property) {
  transition: $property .5s ease;
}

/*Typography*/
html {font: 16px 'Indie Flower';}
h1 {font-size: 2.5em;}
h2 {font-size: 2.25em;}
h3 {font-size: 2em;}
h4 {font-size: 1.75em;}
p {font-size: 1.5em;}
h1,
h2,
h3,
h4,
p {line-height: 1.375em;}
/*Base*/
* {box-sizing: border-box;}
html,
body {
  width: 100%;
  height: 100%;
}
/*Layout*/
.wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.content {width: 60%;}
/*Navigation*/
nav {
  float: right;
  width: 5%;/*9.375em;/*150px*/
  min-height: 100%;
  background: $darkSalmon;
  color: #fff;
  overflow: hidden;
  @include transition(width);
}
nav label {
  display: block;
  position: relative;
  width: 100%;
  padding: .25em 0;
  height: 2.5em;
  cursor: pointer;
  &:before {
    content: "\f0c9";
    position: absolute;
    width: 100%;
    font-family: fontAwesome;
    font-size: 2em;
    text-align: center;
    text-shadow: 2px 2px 0 #666;
    @include transition(all);
  }
  &:hover:before {text-shadow: none;}
}
:target {
  z-index: 2;
  opacity: 1;
}
/*Hidding mechanism*/
input {display: none;}
input:checked ~ section {width: 85%;}
input:checked ~ nav {width: 15%;}
input:checked ~ nav > label:before {content: "\f00d";}
input:checked ~ nav > label + .navigation {display: flex;}
/*close - "\f00d"*/
.navigation {
  display: none;
  flex-direction: column;
  width: 100%;
}
.navigation a {
  display: block;
  align-self: center;
  padding: .5em 0;
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 0 #666;
}
nav label,
.navigation a {
  border-bottom: 1px dashed #eda790;
  @include transition(all);
  &:hover {
    background: #e58564;
    text-shadow: none;
  }
  &:active {background: #eda790;}
}
/*Sections*/
section {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 95%;
  min-height: 100%;
  opacity: 0;
  overflow: hidden;
  transition: width .5s, opacity .5s;
}
.content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
/*Home*/
.sec-home {
  float: left;
  position: relative;
  background: $seaShell;
  color: $darkSalmon;
  opacity: 1;
}
.sec-home a {
  color: #eda790;
  text-decoration-style: dashed;
  &:hover {
    color: #e58564;
  }
  &:active {color: #eda790;}
}
.sec-home .content {
  height: 50%;
  text-align: center;
}
/*About*/
.sec-about {
  background: $indianRed;
  color: #fff;
}
.sec-about .content {
  height: 55%;
  text-align: center;
}
/*Portfolio*/
.sec-portfolio {background: $yellow;overflow: hidden;}
.sec-portfolio .col-big {
  float: left;
  position: relative;
  width: 25%;
  height: 20vw;
}
.sec-portfolio img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: .1;
  @include transition(all);
  &:hover {opacity: 1;}
}
/*Contact*/
.sec-contact {
  background: $wheat;
}
.soc-media {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  align-self: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.soc-media li {float: left;}
.soc-media li:not(:first-child) a {margin-left: .75em;}
.soc-media a {
  display: block;
  color: #aaa;
  font-size: 3em;
  text-decoration: none;
  @include transition(color);
  &:hover {color: #333;}
  &:active {color: #666;}
}
              
            
!

JS

              
                /*
Created by Alex Devero
More information on http://alexdevero.com
To learn about HTML, CSS and Javascript visit http://alexsblog.org
*/
              
            
!
999px

Console