User:Julian C. Leos: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html lang=''>
<html lang="en-US">
<head>
<head>
  <meta charset='utf-8'>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Fixed Top Navigation Toolbar</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="author" content="Jake Rocheleau">
  <link rel="stylesheet" href="styles.css">
  <link rel="shortcut icon" href="http://designshack.net/favicon.ico">
  <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
  <link rel="icon" href="http://designshack.net/favicon.ico">
  <script src="script.js"></script>
  <link rel="stylesheet" type="text/css" media="all" href="styles.css">
  <title>CSS MenuMaker</title>
  <link rel="stylesheet" type="text/css" media="all" href="http://fonts.googleapis.com/css?family=Capriola">
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Latest compiled css and JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!--j--query-->
<!--Nav Bar Theme-->
<link href="http://maxcdn.bootstrapcdn.com/bootswatch/3.2.0/yeti/bootstrap.min.css" rel="stylesheet">


<style>
<style>
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
   margin: 0;
   margin: 0;
   padding: 0;
   padding: 0;
   border: 0;
   border: 0;
   list-style: none;
   font-size: 100%;
   line-height: 1;
  font: inherit;
   display: block;
   vertical-align: baseline;
   position: relative;
   outline: none;
   -webkit-text-size-adjust: 100%;
   -webkit-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
   box-sizing: border-box;
}
}
#cssmenu:after,
html { height: 101%; }
#cssmenu > ul:after {
body { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 62.5%; line-height: 1; padding-bottom: 65px; background: #444 url('images/bg.png'); }
   content: ".";
 
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }
 
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
strong { font-weight: bold; }
 
table { border-collapse: collapse; border-spacing: 0; }
img { border: 0; max-width: 100%; }
 
h1 {  
   font-family: 'Capriola', Tahoma, Arial, sans-serif;
  font-weight: normal;
  font-size: 2.95em;
  line-height: 1.2em;
  letter-spacing: -.0.03em;
  color: #383838;
  margin-bottom: 16px;
}
 
p { font-size: 1.2em; line-height: 1.45em; margin-bottom: 15px; color: #434343; text-align: justify; }
 
a { color: #5b77a4; text-decoration: underline; }
a:hover { color: #7d94bb; }
 
 
#w {
   display: block;
   display: block;
   clear: both;
   width: 710px;
   visibility: hidden;
   padding: 100px 15px;
   line-height: 0;
   margin: 0 auto;
   height: 0;
   margin-top: 45px;
}
}
#cssmenu #menu-button {
 
   display: none;
#content {
   display: block;
  background: #fff;
  padding: 50px 50px;
}
}
#cssmenu {
 
   width: auto;
#logo { display: block; border: 1px solid #232323; border-bottom-width: 0; }
   font-family: 'Open Sans', sans-serif;
#logobg {  
   line-height: 1;
  display: block;
   background: #ffffff;
   width: 100%;
  height: 130px;
   background: url('images/logo.png') top left no-repeat;
  text-indent: 100%;
   white-space: nowrap;
   overflow: hidden;
}
}
#menu-line {
 
   position: absolute;
/* top navigation */
   top: 0;
#navigation {
   left: 0;
   display: block;
   height: 3px;
   height: 35px;
   background: #009ae1;
   background-color: #131313;
  -webkit-transition: all 0.25s ease-out;
   background-image: -webkit-gradient(linear, left top, left bottom, from(#202020), to(#131313));
   -moz-transition: all 0.25s ease-out;
   background-image: -webkit-linear-gradient(top, #202020, #131313);
   -ms-transition: all 0.25s ease-out;
   background-image: -moz-linear-gradient(top, #202020, #131313);
   -o-transition: all 0.25s ease-out;
   background-image: -ms-linear-gradient(top, #202020, #131313);
   transition: all 0.25s ease-out;
   background-image: -o-linear-gradient(top, #202020, #131313);
   background-image: linear-gradient(top, #202020, #131313);
}
}
#cssmenu > ul > li {
 
   float: left;
#navigation ul { list-style: none; padding: 0px 7px; }
 
#navigation ul li { display: inline; float: left; }
#navigation ul li a {
  display: block;
  padding: 0 8px;
  color: #fff;
  font-size: 1.1em;
  text-decoration: none;
  line-height: 35px;
   font-weight: bold;
  margin-right: 6px;
  text-shadow: 1px 1px 1px #000;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
}
#cssmenu.align-center > ul {
#navigation ul li a:hover { color: #a8d6e7; }
   font-size: 0;
 
   text-align: center;
/* hidden fixed navigation */
#fixedbar {  
   display: none;
  position: fixed;
  top: 0;
   width: 100%;
  height: 80px;
  background: rgba(0,0,0,0.75);
}
}
#cssmenu.align-center > ul > li {
 
   display: inline-block;
#fixednav {  
   float: none;
   display: block;
   width: 710px;
  margin: 0 auto;
  padding: 0px 25px;
}
}
#cssmenu.align-center ul ul {
 
  text-align: left;
#fixednav li { }
}
 
#cssmenu.align-right > ul > li {
#fixednav li a {
   float: right;
  display: block;
}
   float: left;
#cssmenu.align-right ul ul {
  font-size: 1.75em;
   text-align: right;
   font-weight: bold;
}
   color: #96aed8;
#cssmenu > ul > li > a {
   line-height: 80px;
   padding: 20px;
   font-size: 12px;
   text-decoration: none;
   text-decoration: none;
   text-transform: uppercase;
   padding: 0px 8px;
   color: #000000;
   margin-right: 6px;  
   -webkit-transition: color .2s ease;
   -webkit-transition: all 0.2s linear;
   -moz-transition: color .2s ease;
   -moz-transition: all 0.2s linear;
  -ms-transition: color .2s ease;
   transition: all 0.2s linear;  
  -o-transition: color .2s ease;
   transition: color .2s ease;
}
}
#cssmenu > ul > li:hover > a,
 
#cssmenu > ul > li.active > a {
#fixednav li a:hover {
   color: #009ae1;
   color: #fff;
  background: rgba(0,0,0,0.3);
}
}
#cssmenu > ul > li.has-sub > a {
 
  padding-right: 25px;
 
#content{margin-left:0.7;}
.navbar{
top:8.5px;
position:fixed;
width:96.8%;
z-index: 9999 !important;
background-color: #A68F6A;
left: 152px
}
}
#cssmenu > ul > li.has-sub > a::after {
 
 
div img {
   position: absolute;
   position: absolute;
   top: 21px;
   top: 0px;  
   right: 10px;
   left: 0px;
  width: 4px;
  height: 4px;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
  content: "";
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-transition: border-color 0.2s ease;
  -moz-transition: border-color 0.2s ease;
  -ms-transition: border-color 0.2s ease;
  -o-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}
}
#cssmenu > ul > li.has-sub:hover > a::after {
 
  border-color: #009ae1;
div imglogo {
}
#cssmenu ul ul {
   position: absolute;
   position: absolute;
   left: -9999px;
  top:  20px;
   left: 20px;
}
}
#cssmenu li:hover > ul {
/*clearing the side openwetware panels*/
  left: auto;
, #p-bookmarks, #p-history , .portlet{
}
display:none;
#cssmenu.align-right li:hover > ul {
  right: 0;
}
#cssmenu ul ul ul {
  margin-left: 100%;
  top: 0;
}
#cssmenu.align-right ul ul ul {
  margin-left: 0;
  margin-right: 100%;
}
#cssmenu ul ul li {
  height: 0;
  -webkit-transition: height .2s ease;
  -moz-transition: height .2s ease;
  -ms-transition: height .2s ease;
  -o-transition: height .2s ease;
  transition: height .2s ease;
}
#cssmenu ul li:hover > ul > li {
  height: 32px;
}
#cssmenu ul ul li a {
  padding: 10px 20px;
  width: 160px;
  font-size: 12px;
  background: #333333;
  text-decoration: none;
  color: #dddddd;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
  -ms-transition: color .2s ease;
  -o-transition: color .2s ease;
  transition: color .2s ease;
}
#cssmenu ul ul li:hover > a,
#cssmenu ul ul li a:hover {
  color: #ffffff;
}
#cssmenu ul ul li.has-sub > a::after {
  position: absolute;
  top: 13px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-bottom: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  content: "";
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-transition: border-color 0.2s ease;
  -moz-transition: border-color 0.2s ease;
  -ms-transition: border-color 0.2s ease;
  -o-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}
#cssmenu.align-right ul ul li.has-sub > a::after {
  right: auto;
  left: 10px;
  border-bottom: 0;
  border-right: 0;
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
}
#cssmenu ul ul li.has-sub:hover > a::after {
  border-color: #ffffff;
}
@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
  #cssmenu {
    width: 100%;
  }
  #cssmenu ul {
    width: 100%;
    display: none;
  }
  #cssmenu.align-center > ul,
  #cssmenu.align-right ul ul {
    text-align: left;
  }
  #cssmenu ul li,
  #cssmenu ul ul li,
  #cssmenu ul li:hover > ul > li {
    width: 100%;
    height: auto;
    border-top: 1px solid rgba(120, 120, 120, 0.15);
  }
  #cssmenu ul li a,
  #cssmenu ul ul li a {
    width: 100%;
  }
  #cssmenu > ul > li,
  #cssmenu.align-center > ul > li,
  #cssmenu.align-right > ul > li {
    float: none;
    display: block;
  }
  #cssmenu ul ul li a {
    padding: 20px 20px 20px 30px;
    font-size: 12px;
    color: #000000;
    background: none;
  }
  #cssmenu ul ul li:hover > a,
  #cssmenu ul ul li a:hover {
    color: #000000;
  }
  #cssmenu ul ul ul li a {
    padding-left: 40px;
  }
  #cssmenu ul ul,
  #cssmenu ul ul ul {
    position: relative;
    left: 0;
    right: auto;
    width: 100%;
    margin: 0;
  }
  #cssmenu > ul > li.has-sub > a::after,
  #cssmenu ul ul li.has-sub > a::after {
    display: none;
  }
  #menu-line {
    display: none;
  }
  #cssmenu #menu-button {
    display: block;
    padding: 20px;
    color: #000000;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
  }
  #cssmenu #menu-button::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    width: 15px;
    height: 2px;
    background: #000000;
  }
  #cssmenu #menu-button::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 20px;
    display: block;
    width: 15px;
    height: 3px;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
  }
  #cssmenu .submenu-button {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 0;
    display: block;
    border-left: 1px solid rgba(120, 120, 120, 0.15);
    height: 52px;
    width: 52px;
    cursor: pointer;
  }
  #cssmenu .submenu-button::after {
    content: '';
    position: absolute;
    top: 21px;
    left: 26px;
    display: block;
    width: 1px;
    height: 11px;
    background: #000000;
    z-index: 99;
  }
  #cssmenu .submenu-button::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 26px;
    display: block;
    width: 11px;
    height: 1px;
    background: #000000;
    z-index: 99;
  }
  #cssmenu .submenu-button.submenu-opened:after {
    display: none;
  }
}
}
#footer{display: none;}
footer {
            position: relative;
            /* Altura total del footer en px con valor negativo */
            margin-top: -50px;
            /* Altura del footer en px. Se han restado los 5px del margen
              superior mas los 5px del margen inferior
            */
            height: 40px;
            padding:5px 0px;
            clear: both;
            background: #286af0;
            text-align: center;
            color: #fff;
z-index: 9999 !important;
        }


</style>
</style>
</head>
</head>
<body>
<body>


<div id='cssmenu'>
 
<ul>
 
  <li><a href='#'>Home</a></li>
 
  <li class='active has-sub'><a href='#'>Products</a>
    </ul>
      <ul>
  </div>
        <li class='has-sub'><a href='#'>Product 1</a>
</div>
            <ul>
<!--Nav Bar Done-->>
              <li><a href='#'>Sub Product</a></li>
    <div>
              <li><a href='#'>Sub Product</a></li>
  <img src="http://openwetware.org/images/c/c9/Logo.png" />
            </ul>
</div>
        </li>
    <div id="imglogo">
        <li class='has-sub'><a href='#'>Product 2</a>
 
            <ul>
</div>
              <li><a href='#'>Sub Product</a></li>
 
              <li><a href='#'>Sub Product</a></li>
    </div>
            </ul>
        </li>
      </ul>
  </li>
  <li><a href='#'>About</a></li>
  <li><a href='#'>Contact</a></li>
</ul>
</div>
</div>
  </div>
<script type="text/javascript">
$(document).ready(function(){
  $('#navigation a, #fixedbar a').on('click', function(e) {
    e.preventDefault();
  });
 
  $(window).on('scroll',function() {
    var scrolltop = $(this).scrollTop();


    if(scrolltop >= 215) {
      $('#fixedbar').fadeIn(250);
    }
   
    else if(scrolltop <= 210) {
      $('#fixedbar').fadeOut(250);
    }
  });
});
</script>
</body>
</body>
<html>
</html>

Latest revision as of 22:06, 26 October 2014

<html lang="en-US"> <head>

 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
 <title>Fixed Top Navigation Toolbar</title>
 <meta name="author" content="Jake Rocheleau">
 <link rel="shortcut icon" href="http://designshack.net/favicon.ico">
 <link rel="icon" href="http://designshack.net/favicon.ico">
 <link rel="stylesheet" type="text/css" media="all" href="styles.css">
 <link rel="stylesheet" type="text/css" media="all" href="http://fonts.googleapis.com/css?family=Capriola">
 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Latest compiled css and JavaScript --> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <!--j--query--> <!--Nav Bar Theme--> <link href="http://maxcdn.bootstrapcdn.com/bootswatch/3.2.0/yeti/bootstrap.min.css" rel="stylesheet">

<style> html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {

 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
 outline: none;
 -webkit-text-size-adjust: 100%;
 -webkit-box-sizing: border-box;
 -moz-box-sizing: border-box;
 box-sizing: border-box;

} html { height: 101%; } body { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 62.5%; line-height: 1; padding-bottom: 65px; background: #444 url('images/bg.png'); }

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } ol, ul { list-style: none; }

blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } strong { font-weight: bold; }

table { border-collapse: collapse; border-spacing: 0; } img { border: 0; max-width: 100%; }

h1 {

 font-family: 'Capriola', Tahoma, Arial, sans-serif;
 font-weight: normal;
 font-size: 2.95em;
 line-height: 1.2em;
 letter-spacing: -.0.03em;
 color: #383838;
 margin-bottom: 16px;

}

p { font-size: 1.2em; line-height: 1.45em; margin-bottom: 15px; color: #434343; text-align: justify; }

a { color: #5b77a4; text-decoration: underline; } a:hover { color: #7d94bb; }


  1. w {
 display: block;
 width: 710px;
 padding: 100px 15px;
 margin: 0 auto;
 margin-top: 45px;

}

  1. content {
 display: block;
 background: #fff;
 padding: 50px 50px;

}

  1. logo { display: block; border: 1px solid #232323; border-bottom-width: 0; }
  2. logobg {
 display: block;
 width: 100%;
 height: 130px;
 background: url('images/logo.png') top left no-repeat;
 text-indent: 100%;
 white-space: nowrap;
 overflow: hidden;

}

/* top navigation */

  1. navigation {
 display: block;
 height: 35px;
 background-color: #131313;
 background-image: -webkit-gradient(linear, left top, left bottom, from(#202020), to(#131313));
 background-image: -webkit-linear-gradient(top, #202020, #131313);
 background-image: -moz-linear-gradient(top, #202020, #131313);
 background-image: -ms-linear-gradient(top, #202020, #131313);
 background-image: -o-linear-gradient(top, #202020, #131313);
 background-image: linear-gradient(top, #202020, #131313);

}

  1. navigation ul { list-style: none; padding: 0px 7px; }
  1. navigation ul li { display: inline; float: left; }
  2. navigation ul li a {
 display: block; 
 padding: 0 8px; 
 color: #fff;
 font-size: 1.1em;
 text-decoration: none;
 line-height: 35px; 
 font-weight: bold; 
 margin-right: 6px;
 text-shadow: 1px 1px 1px #000;
 -webkit-transition: all 0.2s linear;
 -moz-transition: all 0.2s linear;
 transition: all 0.2s linear;

}

  1. navigation ul li a:hover { color: #a8d6e7; }

/* hidden fixed navigation */

  1. fixedbar {
 display: none;
 position: fixed;
 top: 0;
 width: 100%;
 height: 80px;
 background: rgba(0,0,0,0.75);

}

  1. fixednav {
 display: block;
 width: 710px;
 margin: 0 auto;
 padding: 0px 25px;

}

  1. fixednav li { }
  1. fixednav li a {
 display: block;
 float: left;
 font-size: 1.75em;
 font-weight: bold;
 color: #96aed8;
 line-height: 80px;
 text-decoration: none;
 padding: 0px 8px;
 margin-right: 6px; 
 -webkit-transition: all 0.2s linear;
 -moz-transition: all 0.2s linear;
 transition: all 0.2s linear; 

}

  1. fixednav li a:hover {
 color: #fff;
 background: rgba(0,0,0,0.3);

}


  1. content{margin-left:0.7;}

.navbar{ top:8.5px; position:fixed; width:96.8%; z-index: 9999 !important;

background-color: #A68F6A;

left: 152px }


div img {

 position: absolute;
 top:  0px; 
 left: 0px;

}

div imglogo {

 position: absolute;
 top:  20px; 
 left: 20px;

} /*clearing the side openwetware panels*/ , #p-bookmarks, #p-history , .portlet{ display:none; }

  1. footer{display: none;}
footer {
           position: relative;
           /* Altura total del footer en px con valor negativo */
           margin-top: -50px;
           /* Altura del footer en px. Se han restado los 5px del margen
              superior mas los 5px del margen inferior
           */
           height: 40px; 
           padding:5px 0px;
           clear: both;
           background: #286af0;
           text-align: center;
           color: #fff;

z-index: 9999 !important;

       }

</style> </head>

<body>



   </ul>
 </div>

</div> <!--Nav Bar Done-->>

   <div>
 <img src="http://openwetware.org/images/c/c9/Logo.png" />

</div>

   <div id="imglogo">
 

</div>

   </div>

</div>

 </div>

<script type="text/javascript"> $(document).ready(function(){

 $('#navigation a, #fixedbar a').on('click', function(e) {
   e.preventDefault();
 });
 
 $(window).on('scroll',function() {
   var scrolltop = $(this).scrollTop();
   if(scrolltop >= 215) {
     $('#fixedbar').fadeIn(250);
   }
   
   else if(scrolltop <= 210) {
     $('#fixedbar').fadeOut(250);
   }
 });

}); </script>

</body> </html>