Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <!--

Still a work in progress! Only just began learning the in and outs of the CSS that builds CodePen after becoming a full-time Pro user so still experimenting! 

Pro User? You can easily use this theme by forking it and copying the forked URL in to your theme settings on your profile. You can also change the colours and animated background image by changing the variables set in the CSS. They're at the top for convenience and, well, obvious common sense :D


Next Updates: 

- Make the profile header responsive.
- Create new layout.
- Edit tags.

-->

<iframe src="https://codepen.io/JMDUK" frameborder="0"></iframe>
              
            
!

CSS

              
                /*
  
  CodePen Theme: Nightly
  Author       : James Martin-Davies
  License      : LOL, license a CodePen Theme?! No!
  
  Go Crazy, use it!

*/

/*
  THEME SETTINGS
*/

// Main Colour
$mainCol: #63405B;
// Darker Colour
$baseCol: #362543;
// Secondary Main Colour
$midCol : #2E536B;
// Secondary Darker Colour
$darkCol: #21273A;
// Text Colour
$textCol: #333333;
// Body Background
$body-bg: #ffffff;
// Pro Badge Colours
$badgeProColor: #CC333F;
// Hire Me Badge Colours
$badgeHireColor: #004ECC;
// "This User Follows You" Badge Colour
$badgeFollowsColor: #444444;

// Animated Profile Header Image:
$headerImage: 'http://jan.imghost.us/2Bm5.jpg';

// Animations
@mixin animation ($type, $duration) {
  -webkit-transition: $type $duration cubic-bezier(0.450, 0.120, 0.505, 0.925); 
  -moz-transition: $type $duration cubic-bezier(0.450, 0.120, 0.505, 0.925); 
  -o-transition: $type $duration cubic-bezier(0.450, 0.120, 0.505, 0.925); 
  transition: $type $duration cubic-bezier(0.450, 0.120, 0.505, 0.925);
}

///////////////////

// Preview iframe
iframe {
  position:absolute;
  width: 100%;
  height: 100%;
}

body {
  background:$body-bg;
}

// Give those tags a shade! 
@for $i from 1 through 50 {
  .tag-grid > li:nth-child(#{$i}) > a, 
  .narrow-tag-grid > li:nth-child(#{$i}) > a {
  		  background: lighten($baseCol , $i);
  }

  .tag-grid > li:nth-child(#{$i}) > a:hover, 
  .narrow-tag-grid > li:nth-child(#{$i}) > a:hover {
  
  		background: lighten($mainCol , $i);
  @include animation(all, 75ms);
  }
}

.tag-grid > li {
  background:$darkCol;
}

.tag-grid > li > a, 
.narrow-tag-grid > li > a {
  border-radius:0 !important;
}

.tag-grid > li > a > span, 
.narrow-tag-grid > li > a > span {
  background:$darkCol;
  border-left:solid 1px $midCol;
  border-radius:0 !important;
  top:0;
  right:0;
  height:26px;
  width:26px;
  font-size:100%;
  line-height:1.93em;
  font-weight:300;
}

// Header Style!
.main-header {
  background:$mainCol;
  border-bottom:solid 5px $baseCol;
  
  .logo a {
    background:none;
    background-image:url(https://blog.codepen.io/wp-content/uploads/2012/06/White-Large.png);
    background-size:cover;
    background-repeat:none;
    background-position:0 87px;
  }
  
  .top-button {
    background:$mainCol;
    padding:0;
    margin:0;
    line-height:1;
    border-radius:0;
    border:none;
    height:62px;
    padding:0 20px;
    margin-left:20px;
    color:#fff !important;
    line-height:62px;
    box-shadow: 0 0 0 4px $mainCol,
                0 -10px 0 10px rgba(0,0,0,0.2);
    @include animation(all, 100ms);
    
    &:hover {
      background:$baseCol !important;
      -webkit-transform:scale(0.86);
      box-shadow: 0 0 0 4px $baseCol,
                  0 -3px 0 6px rgba(0,0,0,0.1);
    }
  }
  
  .icon, [data-icon]:before, .activity:before {
    color:#fff;
   }
  
  .logged-in-user-stuff {
    height:62px;
  }
  
  .dropdown {
    background:none;
    box-shadow:none;
    border:none;
    top:0%;
    
    background:$mainCol;
    top:62px;
    margin: -1px -5px 0 0;
    border:solid 1px $baseCol;
    
    li.sep-after {
      border-bottom: 1px solid $baseCol;
      padding-bottom: 5px;
    }
    
    li a:hover, 
    .dropdown li a:active {
      background:none; 
      background:$baseCol;
      @include animation(all, 300ms);
    }
    
  }
  
}

// Profile Header :)
.profile-header {
  background:none;
  box-shadow:none;
  background-image:url($headerImage);
  @include animation(all, 30s);
  -webkit-animation: bgEffect;
	  animation-name: bgEffect;
  -webkit-animation-iteration-count: infinite;
  	-webkit-animation-duration: 36.5s;
  	-webkit-animation-fill-mode: both;
  -webkit-animation-delay:5s;
}

.profile-avatar {
  width:130px !important;
  height:auto !important;
  margin: 5px !important;
  border-radius: 50%;
}

.avatar-wrap {
  width: 0;
  margin-right: 172px;
}

#profile-name-header {
  -webkit-text-fill-color: #fff;
  color:#fff;
  font-weight:400;
  padding:0 0 10px 0;
}

#mini-profile-gravatar {
  border-radius:50%;
}

.follow-block > strong {
  color: #fff;
  font-size: 1.5rem;
  font-weight:300;
}

#profile-location {
  color:#fff !important;
}

.badge-pro, 
.badge-hire, 
.badge-follows {
  color:#fff !important;
  font-weight:300;
  font-size:12px !important;
  padding:3px 8px;
  @include animation(all, 300ms);
  
    &:hover {
      background:$baseCol;
    }
}

.badge-pro {
  background:$badgeProColor;
  
  &:hover {
    background:darken($badgeProColor, 10%);
  }
  
  &:before {
    content:"I'm ";
  }
  
  &:after {
    content:"fessional ★";
  }
}

.badge-hire {
  background:$badgeHireColor;
  
  &:hover {
    background:darken($badgeHireColor, 10%);
  }
}

.badge-follows {
  background:$badgeFollowsColor;
  
  &:hover {
    background:darken($badgeFollowsColor, 10%);
  } 
}

.profile-follow a {
  color:#fff;
}

@-webkit-keyframes bgEffect {
  0%, 100% {
  }
  50% {
    background-position:50% 75%;
  }
}

@-moz-keyframes bgEffect {
  0%, 100% {
  }
  50% {
    background-position:50% 75%;
  }
}

@-ms-keyframes bgEffect {
  0%, 100% {
  }
  50% {
    background-position:50% 75%;
  }
}

@-o-keyframes bgEffect {
  0%, 100% {
  }
  50% {
    background-position:50% 75%;
  }
}

@keyframes bgEffect {
  0%, 100% {
  }
  50% {
    background-position:50% 75%;
  }
}

// General Layout Stuff!
.view-switcher .button {
  background:none;
  border:none;
  border-radius:0;
  font-weight:normal;
  font-size:14px;
  background:$mainCol !important;
  @include animation(all, 300ms);
}

.button:hover {
    text-shadow:0;
    background:$baseCol !important;
  }

.explore-tabs {
  border:none;
  box-shadow:none;
}

.profile-grid a {
  color:#8e8e8e;
  font-size:12px;
}

.profile-grid a.active {
  color:#333;
} 

.module {
  background:none;
}

.module, 
.tag-grid > li > a:before, 
.narrow-tag-grid > li > a:before {
  box-shadow:none;
}

#profile-search {
  padding:0;
  
  .search-input {
    width:100%;
    border-radius:0 !important;
    border:solid 10px rgba(0,0,0,0.05);
    background:#ccc;
    color:#333;
    padding:20px;
    font-size:24px;
    font-family: 'Gotham SSm A', 'Gotham SSm B';
    font-weight:300;
    margin-top:57px;
    @include animation(all, 300ms);
    
    &:focus {
      background:$baseCol;
      color:#fff;
    }
  }
}

// The Pens :)

.single-pen {
  border:solid 1px #eee;
}

.meta {
  background:$mainCol !important;
  min-height:40px;
}

.meta .stats {
  line-height:3.33em;
}

.meta .stats .single-stat {
  background:none;
  border:none !important;
  color:#fff;
  font-size:14px !important;
  font-weight:300;
  @include animation(all, 300ms);
  &:hover {
        background: $baseCol;
  }
  
  &:last-of-type {
    padding-right:20px;
  }
  
  &:first-of-type {
    padding-right:10px;
  }
  
  &:nth-child(2) {
    padding:0 10px;
  }
}

.meta-icon, .meta .stats .loves .icon-heart, .meta .stats .comments:after, .meta .stats .views:after {
  color:#fff;
}

.iframe-wrap > .meta-overlay {
  background:$baseCol;
  opacity:0;
  @include animation(all, 300ms);
}

.iframe-wrap:hover > .meta-overlay {
  background:$baseCol;
  opacity:1;
  @include animation(all, 300ms);
}

.iframe-wrap > .meta-overlay h2 {
  color:#fff;
}

.context-menu > .icon {
  background:$darkCol !important;
}
.context-menu ul {
  opacity:0;
}

.context-menu ul {
  background:$darkCol;
  opacity:1;
  @include animation(all, 740ms);
}

.context-menu ul a:hover, .context-menu ul a:active {
  background:$mainCol;
  color:#fff !important;
}

// Right Sidebar Tabs 
.explore-tabs a.active {
  font-weight:bold;
  display: inline-block;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  background:$mainCol;
  color:#fff;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: bottom;
  transition-property: bottom;
  @include animation(all, 300ms);
  
  &:before {
    pointer-events: none;
    position: absolute;
    z-index: -1;
    content: '';
    border-style: solid;
    opacity:1;
    @include animation(all, 300ms);
    left: -webkit-calc(50% - 10px);
    left: calc(50% - 10px);
    bottom: -10px;
    border-width: 10px 10px 0 10px;
    border-color: $mainCol transparent transparent transparent;
  }
}

.explore-tabs a {
  @include animation(all, 300ms);
}

.explore-tabs a:hover {
  color:#333;
  @include animation(all, 300ms);
}

.explore-tabs a.active:hover {
  color:#fff;
}

#profile-grid .explore-tabs {
  padding:10px 0;
}

.site-footer {
  background:$mainCol;
  color:#fff;
  border:none;
  box-shadow:none;
  border-top:solid 1px $baseCol;
  text-transform:uppercase;
  line-height:2.68em;
  
  a {
    @include animation(all, 175ms);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console