123

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.

            
              * [About](#)
* [Articles](#)
* [Projects](#)

# w.barlow
## Student, Software Engineer,<br /> & Wishful Thinker
## They let me have a dot com!
            
          
!
            
              $page_width:800px
$top_margin:100px

$primary_color:#003351
$accent_color:#d70004

$titles_font:Quicksand
$nav_font:Comfortaa

=angle-right($width, $height, $color)
  height: 0
  width: 0
  border-top: $height solid $color
  border-right: $width solid transparent

=angle-left($width, $height, $color)
  height: 0
  width: 0
  border-top: $height solid $color
  border-left: $width solid transparent
  
/* the carbon-fiber background tile */
body
  /* note: this was originally a pure CSS pattern,
     i've converted it to an image tile only for performance.
     source: http://lea.verou.me/css3patterns/ */
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gkJFx8eusR8DAAAANNJREFUOMudk7sKhDAQRU8eYiEIWpjCKv//ZzYRIWjAmK1clsVsdG+VDEwyM+eOAFLbtgzDwHEc3JGUkmmaWJYF3fc9xhj2feeuhBCM44jWGmmtRQhBjPH2AzFGhBBYa9HzPJNS4qm2bSOEgPwn+VRKCfmrz6vzt3QuOYSAcw6Aruuo6/qyVZ0rzTmH9/4dM8ZcI70KKqVQSmXvxQqAN+fz95xPdI5zVVVYawFY1zXrE13ifM7kEYXPYRb3osS55BPRNE36xbnkE+m9xzn3aB8+ffICH2tsiRxpms4AAAAASUVORK5CYII=')
  min-width: $page_width + 100px

/* the blue card */
h1:before
  content: ""
  display: block
  position: absolute
  z-index: -1
  width: $page_width
  height: 300px
  background-color: $primary_color
  box-shadow: 8px 8px 35px #101010
  margin-left: 35px

h1, h2
  position: absolute
  width: $page_width
  left: 50%
  margin-left: -($page_width/2 + 35px)
  top: $top_margin
  font-family: $titles_font
  color: #ddd
  text-align: right
  text-transform: lowercase

h1
  font-size: 100px
h2
  font-size: 20px
  letter-spacing: 6px
  margin-top: 100px

/* body of the white ribbon */
h2:nth-of-type(2) 
  position: absolute
  margin-top: 200px
  margin-left: -($page_width/2 - 25px)
  height: 39px
  width: $page_width - 10px
  padding-top: 11px
  padding-right: 10px
  background-color: #ddd
  color: #222
  box-shadow: 0px 2px 8px #000

/* the small triangular tuck at the bottom right of the white ribbon */
h2:nth-of-type(2):before
  content: ""
  display: block
  position: absolute
  right: 0px
  top: 50px
  z-index: -2
  +angle_right(25px, 15px, $accent_color)

/* the forked tail of the white ribbon */
h2:nth-of-type(2):after
  content: ""
  display: block
  position: absolute
  left: $page_width - 25px
  top: 25px
  z-index: -3
  width: 40px
  height: 0
  border-top: 25px solid #ddd
  border-bottom: 25px solid #ddd
  border-right: 35px solid transparent

/* body of the red banner */
ul
  z-index: 6
  position: absolute
  +angle_right(100px, 300px, $accent_color)
  width: 100px
  left: 50%
  margin-left: -($page_width/2 + 20px)
  top: $top_margin - 20px
  list-style: none
  /* navigation links */
  a
    text-decoration: none
    text-transform: lowercase
    color: #ddd
    font-size: 50px
    font-family: $nav_font
    opacity: 0
    padding-bottom: 10px
    &:hover
      transition: color 0.25s ease 0s
      color: #000
  /* font awesome icons */
  a:before
    display: block
    float: left
    padding-right: 15px
    padding-bottom: -10px
    font-family: FontAwesome
    color: darken($accent_color, 30%)
    opacity: 1
  li
    position: absolute
    padding-left: 25px
  /* first nav entry: about */
  li:nth-of-type(1)
    margin-top: -290px
    a:before 
      content: "\f007" /* font awesome .fa-user */
  /* second nav entry: articles */
  li:nth-of-type(2)
    margin-top: -190px
    a:before 
      content: "\f1dd" /* font awesome .fa-paragraph */
  /* third nav entry: projects */
  li:nth-of-type(3)
    margin-top: -90px
    a:before 
      content: "\f188" /* font awesome .fa-bug */

/* the small triangular tuck at the bottom left of the red banner */
ul:before
  content: ""
  display: block
  z-index: -2
  +angle_left(20px, 10px, darken($accent_color, 20%))

/* entering animation controls */
ul:hover
  transition: width 1.5s ease 0s
  width: 400px
  a
    transition: opacity 0.5s ease 1s
    opacity: 1
  a:before
    transition: color 0.5s ease 1s
    color: #000
  ~ h1:before
    transition: background-color 1.5s ease 0s, box-shadow 1.5s ease 0s
    background-color: darken($primary_color,5%)
    box-shadow: 8px 8px 50px #131313
  ~ h1, ~ h2:nth-of-type(1)
    transition: color 1.5s ease 0s
    color: $primary_color
  ~ h2:nth-of-type(2)
    transition: background-color 1.5s ease 0s
    background-color: darken(#ddd,50%)
  ~ h2:nth-of-type(2):after
    transition: border 1.5s ease 0s
    border-top: 25px solid darken(#ddd,50%)
    border-bottom: 25px solid darken(#ddd,50%)

/* exiting animation controls */
ul
  transition: width 1.5s ease 0.5s
  a
    transition: opacity 0.5s ease 0s
  a:before
    transition: color 0.5s ease 0s
  ~ h1:before
    transition: background-color 1.5s ease 0.5s, box-shadow 1.5s ease 0.5s
  ~ h1, ~ h2:nth-of-type(1)
    transition: color 1.5s ease 0.5s
  ~ h2:nth-of-type(2)
    transition: background-color 1.5s ease 0.5s
  ~ h2:nth-of-type(2):after
    transition: border 1.5s ease 0.5s
            
          
!
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.

Console