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.

            
              <div class="wrapper">
  <!-- Begin Top Buttons -->
  <div class="top-panel">
    <div class="right username" id="initial">t
    </div>
    <section class="left">
    <div class="short-nav">
      <div id="social-share">
        <span class="entypo-share"></span>
      </div>
    </div>
    <div class="clearfix"></div>
  </div>
    <!-- Begin Panel Content -->
    <div class="content">
      <!-- Social Media Links -->
      <div id="social">
        <ul>
          <li><span class="entypo-mail"></span></li>
          <li><span class="entypo-facebook"></span></li>
          <li><span class="entypo-twitter"></span></li>
          <li><span class="entypo-linkedin"></span></li>
          <li><span class="entypo-dribbble"></span></li>
          <li><span class="entypo-github"></span></li>
          <li><span class="entypo-behance"></span></li>
          <li><span class="entypo-skype"></span></li>
        </ul>
      </div>
      <!-- Name & Title Objects -->
      <div class="contact-info">
        <span class="entypo-vcard"></span>
        <h1>Tim Ruby</h1>
        <h2>Web Designer &amp; Developer</h2>
        <p>I am a freelance designer, front-end web designer and developer from blustery, 
        occasionally decent Northeast Ohio. I am currently working at upping my UX/UI 
        capabilities, learning more jQuery and Advanced SASS methods and techniques.</p>
        <p>I enjoy making new friends so don't be bashful. Let's make it happen people!</p>
        <hr />
        <span class="entypo-graduation-cap"></span>
         <dl>
           <dt>Skill Set</dt>
           <dd>Design</dd>
           <dd>Front-End Development</dd>
           <dd>Responsive Design</dd>
           <dd>Mobile Development</dd>
           <dd>Web Graphics</dd>
           <dd>User Experience</dd>
           <dd>User Interface</dd>
           <dd>Branding/Identity</dd>
           <dd>Email Marketing</dd>
           <dd>S.M.M.</dd>
         </dl>
      </div>     
      <!-- Clear Positioned V-Card Objects -->
      <div class="clearfix"></div>
      <!-- Begin Contact Methods -->
      <div class="wepa">
        <table>
          <thead>
            <th><span class="entypo-monitor"></span> Website:</th>
            <th><span class="entypo-mail"></span> Email:</th>
            <th><span class="entypo-mobile"></span> Phone:</th>
            <th><span class="entypo-map"></span> Address:</th>
          </thead>
          <tbody>
            <tr>
              <td><a href="http://timruby.me">www.timruby.me</a></td>
              <td><a href="mailto:hello@timruby.me">hello@timruby.me</a></td>
              <td><span class="entypo-lock"></span> Private</td>
              <td><span class="entypo-lock"></span> Private</td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
</div>
<!-- Add User Modal Window -->
<div id="modal">
  <span class="entypo-cancel" id="close"></span>
  <h2>Add User</h2>
  <p>Woohoo! You want to be friends. That sounds like a wonderful idea! Just click that button 
  down there and you're all set!</p>
  <a href="#" id="confirm"><span class="entypo-thumbs-up"></span> Confirm Request</a>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700);
@import url(http://weloveiconfonts.com/api/?family=entypo);

/* entypo */
[class*="entypo-"]:before {
  font-family: 'entypo', sans-serif;
}

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

.cf {
    *zoom: 1;
}
$snow:     #FEFEFE;
$smoke:    #F3F5F4;
$banana:   #FAE3B4;
$cherry:   #F34A53;
$olive:    #437356;
$mint:     #AAC789;
$spruce:   #1E4147;

* {
 -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
         box-sizing: border-box; 
}

body {
  background: $banana url(https://i.imgur.com/JHckSLZ.png) top left repeat;
  font-family: 'Open Sans', sans-serif;
}

hr { 
  margin: 30px 0 0;
  border: none;
  border-bottom: 2px solid darken($smoke, 5%);
}

.left {
  float: left;
}

.right { 
  float: right;
}

.active { display: block; }
.hidden { display: none; }

.wrapper {
  position: relative;
  overflow: hidden;
  margin: 40px auto;
  padding: 0;
  width: 640px;
  background-color: $snow;
  border: 1px solid $mint;
  -webkit-border-radius: 8px;
     -moz-border-radius: 8px;
          border-radius: 8px;
  -webkit-box-shadow: 0 12px 6px -10px darken($spruce, 50%);
     -moz-box-shadow: 0 12px 6px -10px darken($spruce, 50%);
          box-shadow: 0 12px 6px -10px darken($spruce, 50%);
  
  .top-panel {
    width: 100%;
    height: 50px;
    background-color: $spruce;
  }
  
  .username {
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    height: 48px;
    width: 50px;
    text-align: center;
    line-height: 46px;
    font-size: 30px;
    font-weight: 700;
    color: $mint;
    border-left: solid 2px darken($spruce, 1%);
    cursor: pointer;
  }
  
  .short-nav {
    margin-left: 15px;
    line-height: 46px;
  }
  
  .short-nav > a, .short-nav #social-share {
    padding: 0 15px 0 0;
    color: $mint;
    text-align: center;
    text-decoration: none;
    font-size: 20px; 
  }
  
  .short-nav a:hover, .short-nav #social-share:hover {
    color: lighten($mint, 10%);
    cursor: pointer;
  }
}

.content {
  color: darken($smoke, 50%);
  font-weight: 400;
  
  #social { display: none; }
  
  #social ul {
    margin: 0 auto;
    width: 100%;
    height: 60px;
    background-color: $mint;
  }
  
  #social ul li {
    display: inline-table;
    width: 70px;
    font-size: 18px;
    line-height: 58px;
    text-align: center;
    color: $olive;
    cursor: pointer;
    -webkit-transition: all 0.5s ease-in-out;
		   -moz-transition: all 1s ease-in-out;
        -ms-transition: all 1s ease-in-out;
         -o-transition: all 1s ease-in-out;
		        transition: all 0.25s ease-in-out;
    
    &:first-child {
      margin-left: 30px;
    }
    
    &:hover { line-height: 50px; font-size: 26px; color: $spruce; }
  }   
}

.contact-info {
  margin-bottom: 0px;
  padding: 0 25px 25px;
  
  span {
    position: relative;
    top: 30px;
    left: 10px;
    z-index: 10;
    font-size: 28px;
  }
  
  h1 { 
    display: block;
    width: 100%;
    padding-left: 50px;
    font-size: 24px;
    text-transform: uppercase;
  }
  
  h2 {
    display: block;
    width: 100%;
    padding: 7px 0 14px 50px;
    font-size: 14px;
    color: $mint;
    text-transform: uppercase;
    font-style:italic;
  }
  
  p {
    padding: 20px 0 0 50px;
    margin: 0; 
    line-height: 24px;
    font-size: 14px;
    font-weight: 300;
  }
  
  dl {
    padding: 10px 0 0 50px;
  }
  
  dl dt { 
    margin-bottom: 20px;
    font-weight: 600;
  }
  
  dl dd {
    display: inline-table;
    width: auto;
    font-size: 12px;
    padding: 10px;
    margin-bottom: 5px;
    text-align: center;
    background-color: $spruce;
    color: $smoke;
    cursor: pointer;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    
  }
}

.wepa { 
  padding: 25px;
  background-color: $mint;

  table {
    margin-left: 40px;
    font-size: 12px;
    color: $olive;
  }
  
  table thead th {
    padding-bottom: 5px;
    line-height: 24px;
    width: 160px;
    text-align: left;
    font-weight: 600;
  }
  
  table tr td {
   line-height: 20px; 
  }
  
  .entypo-lock, .entypo-monitor, .entypo-mail, .entypo-mobile, .entypo-map, .entypo-user-add {
    padding-right: 5px;
    font-size: 12px;
    color: $olive;
  }
  
  table tr td a { 
    text-decoration: none;
    color: $spruce;
  }
    
  tfoot tr td a {
    float: right;
    font-weight: 600;
    margin: 0;
  }
}

// Modal Window CSS

#modal {
  display: none;
  position: fixed;
  z-index: 100;
  top: 40%;
  left: 50%;
  margin-top: -125px;
  margin-left: -200px;
  height: 220px;
  width: 400px;
  background-color: $smoke;
  -webkit-border-radius: 8px;
     -moz-border-radius: 8px;
          border-radius: 8px;
  -webkit-box-shadow: 0 0 0 999px rgba(30,65,71,0.9);
     -moz-box-shadow: 0 0 0 999px rgba(30,65,71,0.9);
          box-shadow: 0 0 0 999px rgba(30,65,71,0.9);
  
  &:after {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(30,65,71,0.9);
  }
  
  h2 {
    padding: 10px 15px;
    font-size: 20px;
    line-height: 30px;
    color: $smoke;
    font-weight: 300;
    width: 100%;
    background-color: $spruce;
    text-transform: uppercase;
    -webkit-border-radius: 6px 6px 0 0;
       -moz-border-radius: 6px 6px 0 0;
            border-radius: 6px 6px 0 0;
    
  }
  
  .entypo-cancel {
    position: absolute;
    top: 10px;
    right: 7px;
    z-index: 200;
    padding: 5px 10px;
    font-size: 18px;
    color: $snow;
    background-color: $olive;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    cursor: pointer;
  }
  
  p {
    padding: 20px;
    line-height: 20px;
    font-size: 14px;
  }
  
  #confirm {
    display: block;
    margin: 10px auto;
    width: 200px;
    padding: 10px 5px;
    background-color: lighten($olive, 10%);
    text-align: center;
    text-decoration: none;
    color: $smoke;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    
     &:hover {
      background-color: $olive;
    }
    
    .entypo-thumbs-up {
      color: $smoke;
      padding-right: 5px;
    }
  }
}


            
          
!
            
              // Social Sharing Dropdown
$( "#social-share" ).click(function() {
  $("#social").toggleClass("visible").slideToggle(200);
});

// Follow User Button
$(".username")
  .hover(function addUser() {
    $(this).text("+");
  }, function() {
    $(this).text("t");    
});

// Open Modal Window
$("#initial").click(function(e) {
  $("#modal").toggleClass("visible").slideToggle(200);
});

// Close Modal Window
$("#close").click(function() {
  $("#modal").toggleClass("hidden").toggle();
});
            
          
!
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