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

              
                <div id="browser" class="clear">
  <ul class="tabs">
    <li class="active">
      <img src="http://cdn.flaticon.com/png/64/51767.png">
      <span>Lierrmm</span>
      <a class="close" href="https://lierrmm.github.io">×</a>
    </li>
  </ul>
  <!-- add tab -->
  <a href="#" class="add"> + </a>
  <!-- bar -->
  <div class="bar clear">
    <ul>
      <li><a class="fa fa-arrow-left" href="#"></a></li>
      <li><a class="fa fa-arrow-right" href="#"></a></li>
      <li><a class="fa fa-refresh" href="#"></a></li>
      <li><a class="fa fa-home" href="#"></a></li>
    </ul>
    <input id="favorite" type="checkbox" class="none">
    <label for="favorite" class="favorite icon-star-empty"></label>
    <input placeholder="Search" value="" type="text">
    <ul class="drop">
      <li>
        <input id="panel" type="checkbox">
        <label for="panel" class="fa fa-reorder"></label>
      <ul>
        <li><a href="#">New Tab <span>⌘T</span></a></li>
        <li><a href="#">New Window <span>⌘N</span></a></li>
        <li><a href="#">New Incognita Window <span>⇧⌘N</span></a></li>
        <li><a href="#">Bookmarks <span>▶</span></a></li>
        <li class="slice"></li>
        <li><a href="#">Edit</a></li>
        <li class="slice"></li>
        <li><a href="#">Zoom</a></li>
        <li class="slice"></li>
        <li><a href="#">Save Page As.. <span>⌘S</span></a></li>
        <li><a href="#">Find.. <span>⌘F</span></a></li>
        <li><a href="#">Print.. <span>⌘P</span></a></li>
        <li><a href="#">Tools <span>▶</span></a></li>
        <li class="slice"></li>
        <li><a href="#">History <span>⌘Y</span></a></li>
        <li><a href="#">Downloads <span>⇧⌘J</span></a></li>
        <li class="slice"></li>
        <li><a href="#">Signed in as guest</a></li>
        <li class="slice"></li>
        <li><a href="#">Settings <span>⌘,</span></a></li>
        <li><a href="#">About Google Chrome</a></li>
        <li><a href="#">View Background Pages (8)</a></li>
        <li><a href="#">Help</a></li>
      </ul>
      </li>
    </ul>
  </div>
  <div class="bookmark">
    <ul>
      <li>
        <a href="https://lierrmm.github.io">
          <img src="https://www.flaticon.com/svg/static/icons/svg/2111/2111425.svg">
          <span>Liam on Github</span></a></li>
      <li>
        <a href="https://infinityloader.com">
          <img src="https://www.flaticon.com/svg/static/icons/svg/711/711284.svg">
          <span>Infinity Loader</span></a></li>
    </ul>
  </div>
  
  <div class="page">
    <iframe width="100%" height="100%" src="https://lierrmm.github.io" frameborder="0"></iframe>
  </div>
</div>
<div id="dock-container">
 <div id="dock">
   <ul>
      <li>
        <span>Address Book</span>
        <a href="#"><img src="https://i.pinimg.com/originals/a7/1d/15/a71d15020c4a6c450439b504851ba01a.png"/></a>
      </li>
      <li>
        <span>App Store</span>
        <a href="#"><img src="https://cdn2.iconfinder.com/data/icons/ios7-inspired-mac-icon-set/1024/_app_store_5122x.png"/></a>
      </li>
     <li>
     <span>Messages</span>
        <a href="#"><img src="https://s-media-cache-ak0.pinimg.com/originals/25/9a/ba/259aba10dfd96cd06e490b4e8280f5db.jpg"/></a>
     </li>
      <li>
      <span>Chrome</span>
      <a href="#" onclick="opentab()"><img src="https://maxcdn.icons8.com/Share/icon/Logos//chrome1600.png"/</a>
      </li>
      <li>
        <span>Discord</span>
        <a href="#"><img src="https://vignette1.wikia.nocookie.net/logopedia/images/d/dd/Discord.png/revision/latest?cb=20160802133240"/></a>
      </li>
      <li>
         <span>Trash</span>
         <a href="#"><img src="https://lh3.googleusercontent.com/proxy/7FvsvvKLHiWuZYioGiO9XzLk-msqCh6eaph0IOFTLlnISwEAprsQiqHh37Rrelvla0RaeY-dUUKJCvpDuaTLJDSHSS9zO8dov3F-44oqRazD7sk0v5TQk250y8WlRUT5r6oo2fKTA2oybhfO"/></a>
      </li>
   </ul>
 </div>
</div>
              
            
!

CSS

              
                /* reset */
* {
    margin: 0;
    padding: 0;
}
#browser {
  visibility: hidden;
}
.clear:before,
.clear:after {
    content: " ";
    display: table;
}
.clear:after { clear: both; }
.clear { *zoom: 1;}
.none { display: none;}
:focus,
:active { outline: 0 }
a { text-decoration: none }
li { list-style: none }
h1{ color: black; }
/* main */
html{ background: #f9c2c9;
background: -moz-linear-gradient(-45deg,  hsla(352,82%,87%,1) 0%, hsla(198,42%,67%,1) 100%);
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,hsla(352,82%,87%,1)), color-stop(100%,hsla(198,42%,67%,1)));
background: -webkit-linear-gradient(-45deg,  hsla(352,82%,87%,1) 0%,hsla(198,42%,67%,1) 100%);
background: -o-linear-gradient(-45deg,  hsla(352,82%,87%,1) 0%,hsla(198,42%,67%,1) 100%);
background: -ms-linear-gradient(-45deg,  hsla(352,82%,87%,1) 0%,hsla(198,42%,67%,1) 100%);
background: linear-gradient(135deg,  hsla(352,82%,87%,1) 0%,hsla(198,42%,67%,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9c2c9', endColorstr='#88bacf',GradientType=1 );
}

body {
    font: normal 12px/1.3 Arial, sans-serif;
    color: #333;
    
}

/* frame */

#browser {
    width: 90%;
    min-width: 900px;
    margin: 40px 5%;
    background: #ccc;
    border: 1px solid #666;
    border-radius: 5px;
    overfloww: hidde;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 60px rgba(0,0,0,.6);
}

/* tabs */

.tabs {
    float: left;
    margin-left: 20px;
    height: 40px;
}

.tabs li,
.tabs li:before {
    cursor: default;
    z-index: 1;
    position: relative;
    border: 1px solid #aaa;
    border-bottom: 0;
    transform: skewX(25deg);
    float: left;
    height: 29px;
    margin: 10px 0 0 12px;
    padding: 0 15px;
    width: 160px;
    border-radius: 5px 5px 0 0;
    box-shadow: inset -1px 1px 0 rgba(255,255,255,.5);
    background: #ddd;
}


.tabs li:nth-child(1) { z-index: 7 }
.tabs li:nth-child(2) { z-index: 6 }
.tabs li:nth-child(3) { z-index: 5 }
.tabs li:nth-child(4) { z-index: 4 }
.tabs li:nth-child(5) { z-index: 3 }
.tabs li:nth-child(6) { z-index: 2 }
.tabs li:nth-child(7) { z-index: 1 }

.tabs li.active,
.tabs li.active:before {
    z-index: 9 !important;
    background: #eee;
    height: 30px;
    margin-bottom: -1px;
    border-color: #888;
}
.tabs li:before {
    content: '';
    position: absolute;
    left: -18px;
    top: -1px;
    transform: skewX(140deg);
    border-right: 0;
    margin: 0;
    padding: 0;
    width: 30px;
    border-radius: 5px 0 0 0;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.5);
}
.tabs li img {
    z-index: 9;
    position: absolute;
    left: -6px;
    top: 6px;
    width: 16px;
    height: 16px;
    transform: skewX(-25deg);
    border-radius: 3px;
}
.tabs li a {
    z-index: 3;
    position: absolute;
    right: 10px;
    top: 7px;
    font-size: 18px;
    color: #777;
    width: 15px;
    height: 15px;
    line-height: 16px;
    text-align: center;
    transform: skewX(-25deg);
    border-radius: 100%;
}
.tabs li a:hover {
    color: #fff;
    background-color: #e05d68;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
}
.tabs li a:active { background-color: #d83240 }
.tabs li span {
    display: block;
    width: 98%;
    line-height: 30px;
    transform: skewX(-25deg);
    white-space: nowrap;
    overflow: hidden;
}
.tabs li span:after {
    content: '';
    width: 25px;
    height: 28px;
    position: absolute;
    right: 0;
    top: 1px;
    background: -webkit-linear-gradient(left, hsla(0,0%,87%,0) 0%,hsla(0,0%,87%,1) 77%,hsla(0,0%,87%,1) 100%);
}
.tabs li.active span:after { background: -webkit-linear-gradient(left,  hsla(0,0%,93%,0) 0%,hsla(0,0%,93%,1) 77%,hsla(0,0%,93%,1) 100%) }

/* tab add */

.add {
    text-align: center;
    font-weight: bold;
    color: #ccc;
    line-height: 17px;
    font-size: 15px;
    float: left;
    margin: 16px 8px 0;
    width: 23px;
    height: 16px;
    background: #ddd;
    border-radius: 5px;
    border: 1px solid #aaa;
    transform: skewX(25deg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.add:hover {
    box-shadow: inset 0 1px 0 rgba(255,255,255,1);
    background: #f8f8f8;
}
.add:active {
    box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
    background: #ccc;
    color: #555;
}

/* bar */

.bar {
  z-index: 3;
  position: relative;
    clear: both;
    padding: 6px;
    background: #eee;
    border-top: 1px solid #aaa;
}

.bar ul {
  float: left;}

.bar > ul > li {
  position: relative;
    float: left;
    margin: 0 2px;
}
.bar > ul > li > a,
.bar ul li label{
    display: block;
    width: 26px;
    height: 26px;
    color: #444;
    text-align: center;
    line-height: 26px;
    font-size: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
}
.bar > ul > li > a:hover,
.bar ul li label:hover {
    border: 1px solid #ccc;
    background: #eee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 1px rgba(0,0,0,.1);
}
.bar > ul > li > a:active ,
.bar ul li label:active,
.bar ul.drop li input:checked ~ label {
    border: 1px solid #bbb;
    background: #ccc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.bar .favorite {
  z-index: 5;
  position: absolute;
  right:48px;
  top: 8px;
    width: 26px;
    height: 26px;
    color: #888;
    text-align: center;
    line-height: 26px;
    font-size: 24px;
}


.bar input:checked  ~ .favorite {
    color: #e8bc02;
    text-shadow: 0 1px 1px rgba(0,0,0,.2);
}

.bar input:checked  ~ .icon-star-empty:before { content: "\f005"; }

/* addres bar */

.bar input {
    display:block;
    float:left;
    left: 130px;
    right: 45px;
    position: absolute;
    margin-left: 10px;
    border: 1px solid #bbb;
    height: 26px;
    font-size: 13px;
    line-height: 26px;
    border-radius: 5px;
    padding: 0 10px;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,1);
}

/* menu .drop */

.bar ul.drop {
  float: right;
}

.bar ul.drop li input {
  display: none;
}

.bar ul.drop li ul { 
  display: none; 
  position: absolute;
  right: 0;
  top: 30px;
  width: 230px;
  padding: 5px 0;
  background-color: rgba(255,255,255,.94);
  box-shadow: 0 1px 7px rgba(0,0,0,.4);
  border-radius: 5px;
  border-top: 1px solid #ddd;
}

.bar ul.drop li input:checked ~ ul {
  display: block; 
}


.bar ul.drop li ul li.slice {
  margin: 6px 0;
  height: 2px;
  border-top: 1px solid #ddd;
}

.bar ul.drop li ul li a {
  display: block;
  height: 20px;
  line-height: 20px;
  padding-left: 10px;
  font-size: 13px;
  color: #222;
}

.bar ul.drop li ul li a:hover,
.bar ul.drop li ul li a:hover span{
  background: -webkit-linear-gradient(top, #5da4ea 0%,#4096ee 100%);
  color: #fff;
}

.bar ul.drop li ul li a span {
  float: right;
  margin-right: 10px;
  color: #999;
}

/* bookmarks */

.bookmark {
    position: relative;
    z-index: 2;
    clear: both;
    background: #eee;
    border-bottom: 1px solid #bbb;
}
.bookmark ul {
    overflow: hidden;
    margin: 0 5px;
    height: 32px;
}
.bookmark ul li {
    float: left;
    margin: 0 0 5px;
}
.bookmark ul li a {
    position: relative;
    display: block;
    max-width: 130px;
    padding: 0 8px 0 28px;
    height: 25px;
    line-height: 25px;
    background: #eee;
    border-radius: 5px;
    border: 1px solid #eee;
    color: #444;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: all .2s ease;
}
.bookmark ul li a:hover {
    border: 1px solid #ccc;
    background: #eee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 1px rgba(0,0,0,.1);
}
.bookmark ul li a:active {
    border: 1px solid #bbb;
    background: #ddd;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
}
.bookmark ul li a img {
    width: 16px;
    position: absolute;
    left: 7px;
    top: 4px;
    border-radius: 3px;
}
.bookmark ul li a span { }

/* page - iframe */

.page {
    clear: both;
    height: 550px;
    background: #c5c5c5;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}
body {
  margin-top: 0px;
  margin-left: 0px;
  background: url('http://media.idownloadblog.com/wp-content/uploads/2016/06/macOS-Sierra-Wallpaper-Macbook-Wallpaper.jpg');
}
#mainimage {
  visibility: hidden;
}
#dock-container {
            position: fixed;
            bottom: 0;
            text-align: center;
            right: 20%;
            left: 20%;
            width: 60%;
            background: rgba(255,255,255,0.2);
            border-radius: 10px 10px 0 0;
        }
        #dock-container li {
            list-style-type: none;
            display: inline-block;
            position: relative;
        }
   #dock-container li img {
          width: 64px;
          height: 64px;
          -webkit-box-reflect: below 2px
                    -webkit-gradient(linear, left top, left bottom, from(transparent),
                    color-stop(0.7, transparent), to(rgba(255,255,255,.5)));
          -webkit-transition: all 0.3s;
          -webkit-transform-origin: 50% 100%;
        }
#dock-container li:hover img { 
          -webkit-transform: scale(2);
          margin: 0 2em;
        }
        #dock-container li:hover + li img,
        #dock-container li.prev img {
          -webkit-transform: scale(1.5);
          margin: 0 1.5em;
        }
  #dock-container li span {
            display: none;
            position: absolute;
            bottom: 140px;
            left: 0;
            width: 100%;
            background-color: rgba(0,0,0,0.75);
            padding: 4px 0;
            border-radius: 12px;
        }
        #dock-container li:hover span {
            display: block;
            color: #fff;
        }
              
            
!

JS

              
                function opentab() {
  if($('#browser').css('visibility') == 'hidden'){
  $('#browser').css('visibility', 'visible');
  }
  else if($('#browser').css('visibility') == 'visible')
    $('#browser').css('visibility', 'hidden');
}

$("a[href^='#']").on("click", function(e){
  e.preventDefault();
  //return false;
});

// tab New
$(".add").on("click", function(e){ 
  if($(".tabs li").length < 4){ 
    $(".tabs li.active").removeClass("active");
    $(".tabs").append('<li class="active"><span>New Tab</span><a class="close" href="#">×</a></li>');
    $(".page iframe").attr("src", "https://bing.com");
  }
});
  

// tab Click.active
$(".tabs li").on("click", function(e){
  
  //önce active olan class'ı silelim
  $(".tabs li.active").removeClass("active");
  $(this).addClass("active");
  
 
  $(".page iframe").attr("src", $(this).find("a").attr("href"));
  
  e.preventDefault();
});
  

// tab Close
$(".tabs li a.close").on("click", function(e){
  $(this).closest("li").remove();
  if($(".tabs li").length == 0){
    $(".tabs").append('<li><span>New Tab</span><a class="close" href="#">×</a></li>');
  }
  
  $(".tabs li:last-child").addClass("active");
  e.preventDefault();
});


// bookmark link
$(".bookmark ul li a").on("click", function(e){
  $(".page iframe").attr("src", $(this).attr("href"));
  e.preventDefault();
});
              
            
!
999px

Console