User:Julian C. Leos: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
No edit summary
No edit summary
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
<nowiki></nowiki>
<html lang="en-US">
<html>
<head>
<head>
   <meta charset=utf-8 />
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
   <title>NLab </title>
   <title>Fixed Top Navigation Toolbar</title>
   <meta http-equiv="Content-Type" content="text/html;
   <meta name="author" content="Jake Rocheleau">
        charset=iso-8859-1">
  <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 type="text/css">
<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%; }


body {
h1 {  
   font: 16px/1.5 verdana, helvetica-neue, helvetica, arial, san-serif;
   font-family: 'Capriola', Tahoma, Arial, sans-serif;
   background: whit;
   font-weight: normal;
   color: #696969;
   font-size: 2.95em;
   padding: 0;
  line-height: 1.2em;
   margin: 0;
   letter-spacing: -.0.03em;
  color: #383838;
   margin-bottom: 16px;
}
}
ul {
 
   margin: 0;
p { font-size: 1.2em; line-height: 1.45em; margin-bottom: 15px; color: #434343; text-align: justify; }
   padding: 0;
 
a { color: #5b77a4; text-decoration: underline; }
a:hover { color: #7d94bb; }
 
 
#w {
  display: block;
  width: 710px;
  padding: 100px 15px;
   margin: 0 auto;
   margin-top: 45px;
}
}
a {
 
   color: #ccc;
#content {
   text-decoration: none;
   display: block;
  background: #fff;
   padding: 50px 50px;
}
}
 
a:hover {
#logo { display: block; border: 1px solid #232323; border-bottom-width: 0; }
   color: #ececec;
#logobg {  
   text-decoration: underline;
   display: block;
  width: 100%;
  height: 130px;
  background: url('images/logo.png') top left no-repeat;
   text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
}
 
#main {
/* top navigation */
   width: 900px;
#navigation {
   margin: 0 auto;
   display: block;
   background: rgba(255, 255, 255, 0.4);
  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);
}
}
header {
 
   padding: 0 10px;
#navigation ul { list-style: none; padding: 0px 7px; }
   overflow: hidden;
 
#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;
}
}
h1 {
#navigation ul li a:hover { color: #a8d6e7; }
   margin: 0;
 
/* hidden fixed navigation */
#fixedbar {  
   display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(0,0,0,0.75);
}
}
 
nav ul, ul.entries {
#fixednav {  
   list-style-type: none;
   display: block;
  width: 710px;
  margin: 0 auto;
  padding: 0px 25px;
}
}
nav li a {
 
#fixednav li { }
 
#fixednav li a {
  display: block;
   float: left;
   float: left;
   margin: 5px;  
  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;  
}
}
.content {
 
   padding: 10px;
#fixednav li a:hover {
   color: #fff;
  background: rgba(0,0,0,0.3);
}
}
 
ul.entries li {
 
  position: relative;
#content{margin-left:0.7;}
  margin: 20px auto;
.navbar{
  padding: 20px;
top:8.5px;
  background: #ececec;
position:fixed;
  width: 600px;
width:96.8%;
z-index: 9999 !important;
background-color: #A68F6A;
left: 152px
}
}
 
ul.entries img {
 
   width: 600px;
div img {
   position: absolute;
  top:  0px;
  left: 0px;
}
}
 
ul.entries li h3 {
div imglogo {
   position: absolute;
   position: absolute;
   bottom: -18px;
   top: 20px;  
   left: 17px;
   left: 20px;
  font-size: 2em;
}
}
ul.entries a {
/*clearing the side openwetware panels*/
  color: #ececec;
#p-bookmarks, #p-history , .portlet{
}
display:none;
ul.entries a:hover {
  color: #fff;
}
footer {
  font-size: 0.65em;
  text-align: center;
}
}
#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="main">
    <header>
<img src="img/IC.jpg" align="left"/>
      <h1>Nano</h1>
    <header>
    <nav role="navigation">
      <ul>
        <li><a href="/project">Project</a></li>
        <li><a href="/background">Background</a></li>
        <li><a href="/modelling">Modelling</a></li>
        <li><a href="/experiments">Experiments</a></li>
<li><a href="/members">Members</a></li>
      </ul>
    </nav>


    <footer>
 
 
      <p>Universidad Aut&oacute;noma de Nuevo Le&oacute;n 2014. </p>
 
     </footer>
     </ul>
   </div>
   </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>
</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>