cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <nav>
  <div class="menu-toggle"><i class="fa fa-bars"></i></div>
  <ul>
    <li><a href="">Anasayfa</a></li>
    <li><a href="">Hakkımda</a></li>
    <li class="dropdown">
      <a href="">Galeri</a>
      <ul class="dropdown-menu">
        <li><a href="">Video Galeri</a></li>
        <li><a href="">Foto Galeri</a></li>
      </ul>
    </li>
    <li><a href="">Blog</a></li>
    <li class="dropdown">
      <a href="">İletişim</a>
      <ul class="dropdown-menu">
        <li><a href="">Alt Menü 1</a></li>
        <li><a href="">Alt Menü 2</a></li>
        <li><a href="">Alt Menü 3</a></li>
        <li><a href="">Alt Menü 4</a></li>
      </ul>
    </li>
  </ul>
</nav>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Poppins:300,400,700&subset=latin-ext');
@color:#F22613;

*{margin:0; padding:0;}
body{
  background-color: @color;
}
.clear() {
    &:before,
    &:after {
        content: "";
        display: table;
    }
    &:after {
        clear: both;
    }
}
nav{
  position:absolute;
  font-family:'Poppins';
  width:100%;
  background:#fff;
  margin:150px auto;
  box-shadow:0 0 30px fade(black,20%);
  ul{
    margin:0;
    padding:0;
    list-style:none;
    .clear;
    >li{
      float:left;
      >a{
        position:relative;
        display:block;
        padding:16px 25px;
        color:#444;
        font-size:15px;
        text-decoration:none;
        &::after{
          content:'';
          position:absolute;
          bottom:0;
          left:0;
          right:0;
          margin:auto;
          width:0%;
          height:3px;
          background-color:darken(@color,5%);
          transition:all 200ms;
        }
       &:hover{
         color:@color;
         &::after{width:100%;}
        }
      }
      
      &.dropdown{
        position:relative;
        &:hover{
          .dropdown-menu{
            top:100%;
            opacity:1;
            visibility:visible;
          }
        }
        > a{
          &::after{
            position:static;
            content:"\f107";
            font-family:'FontAWesome';
            background:transparent;
            margin-left:10px;
          }
        }
        .dropdown-menu{
          width:180px;
          position:absolute;
          top:500%;
          opacity:0;
          visibility:hidden;
          background-color:#fff;
          margin-top:20px;
          transition: all 250ms;
          box-shadow:0 0 15px fade(black,8%);
          &::before{
            content:"";
            width: 0; 
            height: 0; 
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid #fff;
            margin-top:-8px;
            margin-left:20px;
          }
          li{
            width:100%;
            border-bottom:1px solid #f1f1f1;
            margin-top:5px;
            a{
              color:#444;
              width:100%;
              display:block;
              font-size:14px;
              padding:8px 20px;
              &::after{display:none;}
              &:hover{color:@color;}
            }
          }
        }
      }
    }
  }
  .menu-toggle{
    display:none;
    width:30px;
    height:30px;
    border:1px solid @color;
    text-align:center;
    line-height:30px;
    color:@color;
    box-shadow: 0 0 12px fade(black,12%);
    margin:auto;
    &:hover{color:#fff; background-color:@color; cursor:pointer;}
  }
}


/* responsive */
@media (max-width:991px) {
  nav{
      padding:20px 0;
    > ul{
      display:none;
      margin-top:20px;
      border-top:1px solid #eaeaea;
      > li{
        float:none;
        > a{
          text-align:center;
        }
        &.dropdown{
          &:hover{.dropdown-menu{display:block;}}
          .dropdown-menu{
            display:none;
            position:relative;
            margin:auto;
            background-color:@color;
            &::before{
              display:none;
            }
            li{
              a{
                color:#fff;
                text-align:center;
                padding:8px 0;
                &:hover{color:#fff;}
              }
            }
          }
        }
      }
    }
    .menu-toggle{display:block;}
  }
}

@media (min-width:991px) {
  nav{> ul{display:block!important;}}
}
            
          
!
            
              $('.menu-toggle').click(function(){
  $('nav > ul').slideToggle(200);
});
            
          
!
999px
Loading ..................

Console