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

              
                <!--Google Fonts-->
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Raleway:400,300,700,900' rel='stylesheet' type='text/css'>
<!--Font Awesome-->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

<div class="overlay"></div>
<div class="pat">
  <ul class="user clearfix">
    <li><a href="#"><i class="fa fa-user"></i>Sign In</a></li>
    <li><a href="#"><i class="fa fa-cog"></i>Settings</a></li>
  </ul>
  <div class="wrapper">
    <div class="form">
      <h1>Yioop</h1>
      <input type="search" class="search" placeholder="Search.......">
      <a class="gif"></a>
      <p class="result">Generating Results...</p>
      <ul class="yioop clearfix">
        <li><a href="#"><i class="fa fa-photo"></i>Yioop Images</a></li>
        <li><a href="#"><i class="fa fa-film"></i>Yioop Videos</a></li>
        <li><a href="#"><i class="fa fa-newspaper-o"></i>Yioop News</a></li>
      </ul>
      <ul class="res clearfix">
        <li><h3>Search Result</h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at metus enim. Suspendisse et egestas enim. Suspendisse varius in urna et hendrerit. Nam tincidunt aliquet consequat.</p></li>
        <li><h3>Search Result</h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at metus enim. Suspendisse et egestas enim. Suspendisse varius in urna et hendrerit. Nam tincidunt aliquet consequat.</p></li>
        <li><h3>Search Result</h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at metus enim. Suspendisse et egestas enim. Suspendisse varius in urna et hendrerit. Nam tincidunt aliquet consequat.</p></li>
        <li><h3>Search Result</h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at metus enim. Suspendisse et egestas enim. Suspendisse varius in urna et hendrerit. Nam tincidunt aliquet consequat.</p></li>
       </ul>
    </div>
    <div class="footer">
      <div class="footer-wrap">
        <ul>
          <li><a href="#">Blog</a></li>
          <li><a href="#">Privacy</a></li>
          <li><a href="#">Terms</a></li>
          <li><a href="#">Tools</a></li>
          <li><a href="#">YioopBot</a></li>
          <li><a href="#">Developed at SeekQuarry</a></li>
          <li><a href="#"> | &copy; Copyright 2014 Yioop</a></li>
        </ul>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /*Reset*/
*{
  list-style:none;
  margin:0px;
}

/*Mixins*/
@mixin standard-font{
  color:#FFF;
  text-decoration:none;
  font:16px Lobster;
  text-shadow:#000 0px 2px 2px;
}

/*Overlay*/
.overlay{
    background: url(http://cdn.wonderfulengineering.com/wp-content/uploads/2014/05/city-wallpaper-10.jpg) center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  position: fixed;
  width:100%;
  height:100%;
  top:0;
  left:0;
  z-index:-1;
}

/*Pattern Overlay*/
.pat{
  position:fixed;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.4) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQIW2NkYGD4D8SMQAwGcAY2AbBKDBUAVuYCBQPd34sAAAAASUVORK5CYII=");
  max-width:100%;
}

/*Wrappers*/
.wrapper{
  width:500px;
  margin:0 auto;
  margin-top:14%;
  
/*Typography*/
  h1{
    font:70px Lobster;
    color:#FFF;
    text-align:center;
    text-shadow:#000 0px 2px 2px;
    margin-bottom:40px;
  }
  
  a{
    @include standard-font;
  }
  
  a:hover{
    color:#ccc;
    -webkit-transition:0.5s ease;
    -moz-transition:0.5s ease;
    -o-transition:0.5s ease;
    -ms-transition:0.5s ease;
    transition:0.5s ease;
  }

/*Form*/
  input{
    width:100%;
    padding:10px;
    border:none;
    border-radius:50px;
    box-shadow:#000 0px 1px 5px;
    margin-bottom:10px;
    outline:none;
    font:14px Raleway;
    color:#bdbdbd;
  }
  
/*Result*/
  .result{
    @include standard-font;
    text-align:center;
    display:none;
    margin-bottom:20px;
  }
  
  ul{

    li{
      float:left;
      padding:0px 0px 0px 25px;
    }
  }
}

   .user{
     position:fixed;
     top:20px;
     right:20px;
     
     li{
       list-style:none;
       float:left;
       padding:2px;
     }
     
     li a{
      @include standard-font;
     }
     
     li a:hover{
     color:#ccc;
    -webkit-transition:0.5s ease;
    -moz-transition:0.5s ease;
    -o-transition:0.5s ease;
    -ms-transition:0.5s ease;
    transition:0.5s ease;
     }
  }

.gif{
  width:16px;
  height:10px;
  display:block;
  background:url("http://marshall-design.com/codepen/gif.gif");
   margin-left:47%;
  display:none;
}

.footer{
  position:fixed;
  bottom:20px;
  right:20px;
  li{
    float:left;
    list-style:none;
    padding:5px;
  }
  
  li a{
    color:#FFF; 
    text-decoration:none;
    font:16px Lobster;
    text-shadow:#000 0px 2px 2px;
  }
  
  li a:hover{
    color:#ccc;
    -webkit-transition:0.5s ease;
    -moz-transition:0.5s ease;
    -o-transition:0.5s ease;
    -ms-transition:0.5s ease;
    transition:0.5s ease;
  }
}

.form{
  position:relative;
}

.res{
  clear:both;
  margin-top:10px;
  width:85%;
  li{
    display:none;
    margin-bottom:30px;
  }
  h3,p{
    color:#FFF;
  }
  
  h3{
    font:17px Raleway;
    font-weight:700;
    margin-bottom:6px;
    text-shadow:#000 0px 2px 2px;
  }
  
  p{
     font:13px Raleway;
  }
}

/*Clearfix*/
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
 
.clearfix {
    display: inline-block;
}
 
html[xmlns] .clearfix {
    display: block;
}
 
* html .clearfix {
    height: 1%;
}

/*Yioop Menu*/
.yioop{
  position:absolute;
  top:120;
}

/*Font Awesome Fix*/
 .fa{
  margin-right:5px;
 }

.fa-cog{
  margin-left:15px;
}

              
            
!

JS

              
                //ready the dom.
$(document).ready(function(){
  
  //when the search box is entered
  $(".search").focus(function(){
    //slideDown the results div
    $(".result").slideDown(200);
    //slideDown the loading gif
    $(".gif").slideDown(200);
    //animate the form to the top
    $(".form").animate({
      top:"-190px",
    });
    //fadeOut out the yioop menu
    $(".yioop").fadeOut(500);
    //fadeIn the seearch results
    $(".res li").fadeIn(1000);
    //when the search box is unfocused:
  }).blur(function(){
    //slideUp the results div
    $(".result").slideUp(200);
    //slideUp the loading gif
    $(".gif").slideUp(200);
    //animate the form back to its original position
    $(".form").animate({
      top:"0px",
    });
    //fadeIn the yioop menu
    $(".yioop").fadeIn(1000);
    //fadeOut the search results
    $(".res li").fadeOut(500);
  });
  
});



              
            
!
999px

Console