User:Julian C. Leos: Difference between revisions
No edit summary |
No edit summary |
||
(27 intermediate revisions by the same user not shown) | |||
Line 53: | Line 53: | ||
} | } | ||
p { font-size: 1. | p { font-size: 1.2em; line-height: 1.45em; margin-bottom: 15px; color: #434343; text-align: justify; } | ||
a { color: #5b77a4; text-decoration: underline; } | a { color: #5b77a4; text-decoration: underline; } | ||
Line 62: | Line 62: | ||
display: block; | display: block; | ||
width: 710px; | width: 710px; | ||
padding: | padding: 100px 15px; | ||
margin: 0 auto; | margin: 0 auto; | ||
margin-top: 45px; | margin-top: 45px; | ||
Line 70: | Line 70: | ||
display: block; | display: block; | ||
background: #fff; | background: #fff; | ||
padding: | padding: 50px 50px; | ||
} | } | ||
Line 156: | Line 156: | ||
#content{margin-left:0.7;} | |||
.navbar{ | .navbar{ | ||
top:8.5px; | top:8.5px; | ||
Line 161: | Line 162: | ||
width:96.8%; | width:96.8%; | ||
z-index: 9999 !important; | z-index: 9999 !important; | ||
background-color: #A68F6A; | |||
left: 152px | |||
} | } | ||
div img { | div img { | ||
Line 173: | Line 177: | ||
top: 20px; | top: 20px; | ||
left: 20px; | left: 20px; | ||
} | |||
/*clearing the side openwetware panels*/ | |||
, #p-bookmarks, #p-history , .portlet{ | |||
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> | ||
Line 179: | Line 205: | ||
<body> | <body> | ||
Line 203: | Line 217: | ||
</div> | </div> | ||
<div id="imglogo"> | <div id="imglogo"> | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 242: | Line 242: | ||
}); | }); | ||
</script> | </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; }
- w {
display: block; width: 710px; padding: 100px 15px; margin: 0 auto; margin-top: 45px;
}
- content {
display: block; background: #fff; padding: 50px 50px;
}
- logo { display: block; border: 1px solid #232323; border-bottom-width: 0; }
- 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 */
- 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);
}
- 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;
}
- navigation ul li a:hover { color: #a8d6e7; }
/* hidden fixed navigation */
- fixedbar {
display: none; position: fixed; top: 0; width: 100%; height: 80px; background: rgba(0,0,0,0.75);
}
- fixednav {
display: block; width: 710px; margin: 0 auto; padding: 0px 25px;
}
- fixednav li { }
- 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;
}
- fixednav li a:hover {
color: #fff; background: rgba(0,0,0,0.3);
}
- 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; }
- 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>