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

              
                
<body>
<div class="container" id="page">

 <div class="row">
     <div class=".col-sm-12 a1222">
    <div id="header" role="banner">
        <div class="header">
  <div class="burger">
    <div class="burger__patty"></div>
    <div class="burger__patty"></div>
    <div class="burger__patty"></div>
  </div>

  <nav class="menu_sadegh">
    <div class="menu__brand">
      <a href=""><div class="logo">
          <img alt="alikhani" class="img-responsive img-circle" class=" lazyloaded" src="http://alikhani98.ir/wp-content/uploads/elementor/thumbs/alikhani-e1498677199742-naparph1lxszcrrdrgupiccs1xb5lxixvscijyz1nw.png">
          
      </div></a>
    </div>
    <ul class="menu__list">
      <li class="menu__item"><a href="http://alikhani98.ir/" class="menu__link">Home</a></li>
      <li class="menu__item"><a href="http://alikhani98.ir/about-me/" class="menu__link">About Me</a></li>
            <li class="menu__item"><a href="http://alikhani98.ir/contact" class="menu__link">Contact</a></li>
 
      <li class="menu__item">
        <a href="https://www.instagram.com/alikhani98/" target="_blank" class="menu__link menu__link--social"><div class='instagram'></div></a>
      </li>
    </ul>
  </nav>

</div>
		<h1><a href="<?php echo get_option('home'); ?>/">test</a></h1>
		<div class="description">test</div>
	</div>
</div>
</div>
</div>
  </body>
              
            
!

CSS

              
                Theme name: WordPress Default - kubrick -
Editors: Navid Kashani
Persian WordPress Project : wp-persian.com
*/
body, .commentlist li, #commentform input, #commentform textarea, #commentform p, #sidebar, #wp-calendar caption  {
	font-family:tahoma, arial;
}

h1, h2, h3, #sidebar H2, #sidebar ul ul, #sidebar ul o {
	font-family: 'IRANSans', tahoma, arial ;
}
.commentlist li .avatar {
	float:left;
}

.commentlist li {
	padding: 5px 10px 10px 5px;
	}
.commentlist li ul li { 
	margin-left: -5px;
	margin-right: 10px;
}

.commentlist p {
	margin: 10px 0 10px 5px;
}

.narrowcolumn {
	float:right;
	padding-right: 3px;
}
.widecolumn {
	margin: 5px 150px 0 0;
}
.widecolumn .smallattachment {
	margin: 5px 0 5px 5px;
}
.postmetadata {
	clear:right;
}
img.alignright {
	margin: 0 7px 2px 0;
}

img.alignleft {
	margin: 0 0 2px 7px;
}

.alignright {
	float: left;
}

.alignleft {
	float: right;
}
code {
	display:block;
	direction:ltr;
	text-align:left;
}
acronym, abbr, span.caps {
	letter-spacing:0; /* fix opera bug */
}

#sidebar ul ul, #sidebar ul ol {
	    text-align: center;
}
#sidebar ul ul ul, #sidebar ul ol {
	margin: 0 10px 0 0;
}
#commentform {
    text-align: right;
	}


.children .even, .alt {
	border-left: 0;
	border-right: 1px solid #ddd;
}

#wp-calendar #next a {
	padding-right:0;
	padding-left:10px;
	text-align:left;
}
#wp-calendar #prev a {
	padding-left:0;
	padding-right:10px;
	text-align:right;
}

#email, #url {
	direction:ltr;
}




#footer {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    clear: both;
    background: white;
}



body {
    color: #444;
    background-color: #eee;
    text-align: center;
    margin: 20px 0 30px;
    font-family: Tahoma;
    font-size: 8pt;
 /*overflow-x: hidden;
 overflow-y: scroll; */
}
  
.class {
 overflow-x: hidden;
 overflow-y: scroll;
}
#id {
 overflow-x: hidden;
 overflow-y: scroll;
}
#header {
    position: relative;
    height: 110px;
    background: #39b4e0;
    border-radius: 3px;
}
#header h1{position:relative;font-family:'IRANSans', Arial;font-size: 18pt; font-weight: bold;color:white;text-align:center;padding-top:40px;margin-bottom:10px;margin:0px}
#header A:link{font-family: 'IRANSans', Arial; font-size: 18pt; font-weight: bold;color:white;text-decoration:none;text-shadow: 2px 3px 3px rgba(119, 119, 119, 0.48);}
#header A:hover{font-family: 'IRANSans', Arial; font-size: 18pt; font-weight: bold;color:white;text-decoration:none}
#header A:visited  {font-family: 'IRANSans', Arial; font-size: 18pt; font-weight: bold;color:white;text-decoration:none}
#header .subtitle {color:white;font-family: 'IRANSans', Tahoma; font-size: 9pt;text-align:center;margin-top:0px;}
#sidebar {
text-align: right;
}
@media (min-width: 1200px) {
#page {
    width: 790px;
    border: 1px solid rgb(197, 188, 188);
    border-radius: 3px;
    
}
h2.widgettitle {
    margin-top: -20px;
    color: #333;
    background: white;
    text-align: center;
    /* width: 100%; */
    border-right: 4px solid rgba(255, 255, 255, 0);
    border-radius: 84% 37%;
    border-left: 4px solid rgba(255, 255, 255, 0);
    font-size: 20px;
    /* padding: 0; */
    width: 50%;
}
}
@media (min-width: 992px){
#page {
    width: 790px;
    border: 1px solid rgb(197, 188, 188);
    border-radius: 3px;
}
}
@media (min-width: 768px){
#page {
    width: 790px;
    border: 1px solid rgb(197, 188, 188);
    border-radius: 3px;
}
}


blockquote {
  background: #f9f9f9;
  border-right: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
  border-left: none;
    font-size: 1.0em;
}
blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}
blockquote p {
  display: inline;
}
.input-group-addon:first-child {
    background: none;
    border: 0;
    text-shadow: 2px 3px 3px rgba(119, 119, 119, 0.48);
}
.naz1 {
    
    padding-right: 4px;
}
.naza {
        float: left;
    font-family: tahoma, arial;
    padding-right: 4px;
}

.naza a {
    color: #333;
    text-decoration: none;
}
.a1222 {
        padding: 7px 7px 0px 7px;
}
.description {
        color: white;
}
@media (min-width: 992px){
.col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9 {
    float: right;
} }
.back-to-top {
  visibility: hidden;
  background-color: #444;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 48px;
  position: fixed;
  bottom: 65px;
  right: 35px;
  z-index: 90;
  cursor: pointer;
  border-radius: 1px;
  opacity: 0;
  -webkit-transform: translateZ(0);
  transition: all .6s
}

.back-to-top .fa {
  font-size: 18px;
  color: #fff;
  vertical-align: middle;
  
}

.back-to-top:hover {
  background-color: #fc4f3f;
  opacity: 1
}

.back-to-top.show {
  visibility: visible;
  bottom: 35px;
  opacity: 1;
}
.fa-chevron-up {
    color: white;
    font-size: 15pt;
    margin: 0;
    top: 13px;
}
.a98 {
    border-style: solid;
    border-width: 20px 20px 20px 20px;
    -moz-border-image: url(http://alikhani98.ir/wp-content/themes/default/images/a98-min.jpg) 61 76 71 88 repeat;
    -webkit-border-image: url(http://alikhani98.ir/wp-content/themes/default/images/a98-min.jpg) 61 76 71 88 repeat;
    -o-border-image: url(http://alikhani98.ir/wp-content/themes/default/images/a98-min.jpg) 61 76 71 88 repeat;
    border-image: url(http://alikhani98.ir/wp-content/themes/default/images/a98-min.jpg) 61 76 71 88 fill repeat;
}
.widgettitle H2 {
    text-align: center;
    font-size: large; 
    
}
.tooltip {
    font-family: tahoma;
    text-align: right; 
}
.brand-primary {color:#337ab7}
.brand-success {color: #5cb85c;}
.brand-info {color: #5bc0de;}
.brand-warning {color: #f0ad4e;}
.brand-danger {color: #d9534f;}

.burger {
  position: absolute;
  z-index: 201;
  right: 25px;
  top: 25px;
  cursor: pointer;
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
  -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.burger__patty {
  width: 28px;
  height: 5px;
  margin: 0 0 4px 0;
  background: white;
  -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.burger__patty:last-child {
  margin-bottom: 0;
}
.burger--close {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.burger--close .burger__patty:nth-child(1) {
  -webkit-transform: rotate(45deg) translate(4px, 4px);
          transform: rotate(45deg) translate(4px, 4px);
}
.burger--close .burger__patty:nth-child(2) {
  opacity: 0;
}
.burger--close .burger__patty:nth-child(3) {
  -webkit-transform: rotate(-45deg) translate(8px, -8px);
          transform: rotate(-45deg) translate(8px, -8px);
}

.menu_sadegh {
  position: fixed;
  top: 0;
  width: 100%;
  visibility: hidden;
      z-index: 1;
}
.menu_sadegh--active {
    visibility: inherit;
    position: absolute;
    z-index: 200;
}
.menu__brand, .menu__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: column wrap;
      flex-flow: column wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  float: left;
  width: 50%;
  height: 100vh;
  overflow: hidden;
}
.menu__list {
  margin: 0;
  padding: 0;
  background: #2d9e94;
  list-style-type: none;
  -webkit-transform: translate3d(0, -100%, 0);
          transform: translate3d(0, -100%, 0);
  -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu__list--active {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
.menu__brand {
  background: #38C5B9;
  -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-transform: translate3d(0, 100%, 0);
          transform: translate3d(0, 100%, 0);
}
.menu__brand--active {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
.menu__item {
  -webkit-transform: translate3d(500px, 0, 0);
          transform: translate3d(500px, 0, 0);
  -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu__item--active {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
.menu__link {
  display: inline-block;
  position: relative;
  font-size: 30px;
  padding: 15px 0;
  font-weight: 300;
  color: white;
  text-decoration: none;
  color: white;
  -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu__link:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10px;
  height: 2px;
  background: white;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu__link:hover:before {
  width: 100%;
}
.menu .menu__item:nth-child(1) {
  -webkit-transition-delay: 0.1s;
          transition-delay: 0.1s;
}
.menu .menu__item:nth-child(2) {
  -webkit-transition-delay: 0.2s;
          transition-delay: 0.2s;
}
.menu .menu__item:nth-child(3) {
  -webkit-transition-delay: 0.3s;
          transition-delay: 0.3s;
}
.menu .menu__item:nth-child(4) {
  -webkit-transition-delay: 0.4s;
          transition-delay: 0.4s;
}
.menu .menu__item:nth-child(5) {
  -webkit-transition-delay: 0.5s;
          transition-delay: 0.5s;
}
.menu .menu__item:nth-child(6) {
  -webkit-transition-delay: 0.6s;
          transition-delay: 0.6s;
}

@media screen and (max-width: 768px) {
  ul.menu__list, div.menu__brand {
    float: none;
    width: 100%;
    min-height: 0;
  }
  ul.menu__list--active, div.menu__brand--active {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }

  .menu__list {
    height: 75vh;
    -webkit-transform: translate3d(-100%, 0, 0);
            transform: translate3d(-100%, 0, 0);
  }

  .menu__link {
    font-size: 24px;
  }

  .menu__brand {
    height: 25vh;
    -webkit-transform: translate3d(100%, 0, 0);
            transform: translate3d(100%, 0, 0);
  }
  .menu__brand .logo {
    width: 90px;
    height: 90px;
  }
}
.logo {
  width: 200px;
  height: 200px;
  background: #1a1a1a;
  border-radius: 50%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

.instagram {
  background: -webkit-radial-gradient(circle farthest-corner at 35% 90%, #fec564, rgba(0, 0, 0, 0) 50%), -webkit-radial-gradient(circle farthest-corner at 0 140%, #fec564, rgba(0, 0, 0, 0) 50%), -webkit-radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, rgba(0, 0, 0, 0) 50%), -webkit-radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, rgba(0, 0, 0, 0) 50%), -webkit-radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, rgba(0, 0, 0, 0) 50%), -webkit-radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, rgba(0, 0, 0, 0) 50%), -webkit-radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, rgba(0, 0, 0, 0)), -webkit-linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);
  background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, rgba(0, 0, 0, 0) 50%), radial-gradient(circle farthest-corner at 0 140%, #fec564, rgba(0, 0, 0, 0) 50%), radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, rgba(0, 0, 0, 0) 50%), radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, rgba(0, 0, 0, 0) 50%), radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, rgba(0, 0, 0, 0) 50%), radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, rgba(0, 0, 0, 0) 50%), radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, rgba(0, 0, 0, 0)), linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);
  border-radius: .2em;
  font-size: 20vmin;
  height: 1em;
  position: relative;
  width: 1em;
}
.instagram:before, .instagram:after {
  color: #fff;
  content: '';
  display: block;
  position: absolute;
  border: .075em solid;
      left: 0;
}
.instagram:before {
  border-radius: inherit;
  height: .75em;
  -webkit-transform: translate(0.125em, 0.125em);
          transform: translate(0.125em, 0.125em);
  width: .75em;
}
.instagram:after {
  border-radius: 1em;
  box-shadow: .2em -.2em 0 -.16em;
  height: .4em;
  -webkit-transform: translate(0.3em, 0.3em);
          transform: translate(0.3em, 0.3em);
  width: .4em;
}
@media screen and (min-width: 768px){
.carousel-indicators {
    bottom: 33px;
    left: 55%;
}}
              
            
!

JS

              
                (function() {
  
  var Menu = (function() {
    var burger = document.querySelector('.burger');
    var menu = document.querySelector('.menu_sadegh');
    var menuList = document.querySelector('.menu__list');
    var brand = document.querySelector('.menu__brand');
    var menuItems = document.querySelectorAll('.menu__item');
    
    var active = false;
    
    var toggleMenu = function() {
      if (!active) {
        menu.classList.add('menu_sadegh--active');
        menuList.classList.add('menu__list--active');
        brand.classList.add('menu__brand--active');
        burger.classList.add('burger--close');
        for (var i = 0, ii = menuItems.length; i < ii; i++) {
          menuItems[i].classList.add('menu__item--active');
        }
        
        active = true;
      } else {
        menu.classList.remove('menu_sadegh--active');
        menuList.classList.remove('menu__list--active');
        brand.classList.remove('menu__brand--active');
        burger.classList.remove('burger--close');
        for (var i = 0, ii = menuItems.length; i < ii; i++) {
          menuItems[i].classList.remove('menu__item--active');
        }
        
        active = false;
      }
    };

    var bindActions = function() {
      burger.addEventListener('click', toggleMenu, false);
    };
    
    var init = function() {
      bindActions();
    };
    
    return {
      init: init
    };
    
  }());
  
  Menu.init();
  
}())

//بعد از کلیک خارج از صفحه منو بسته میشود

    $('html').click(function() {
   
        menu.classList.remove('menu_sadegh--active');
        menuList.classList.remove('menu__list--active');
        brand.classList.remove('menu__brand--active');
        burger.classList.remove('burger--close');
        for (var i = 0, ii = menuItems.length; i < ii; i++) {
          menuItems[i].classList.remove('menu__item--active');
        }
});

              
            
!
999px

Console