Rhino
The custom, lightweight dropdown navigation menu by Ryan Brackett [email protected]
CSS
body {
font-family: arial;
}
#rhino {
margin: 0px;
padding: 0px;
/* background: #ffffff; */
display: table;
width: 100%;
}
#rhino a {
text-decoration: none;
line-height: 1.3em;
display: block;
position: relative;
}
#rhino > li {
float: left;
list-style: none;
position: relative;
display: block;
padding-right: 40px;
}
#rhino > li > a {
padding: 10px 0px;
color: black;
display: block;
-webkit-transition: color .2s ease-in-out;
-moz-transition: color .2s ease-in-out;
-ms-transition: color .2s ease-in-out;
-o-transition: color .2s ease-in-out;
transition: color .2s ease-in-out;
}
#rhino > li a:hover,
#rhino > li.parent:hover > a {
color: #cf543b;
}
#rhino .parent a {
padding-right: 25px;
}
#rhino > .parent > a::after {
content: "";
display: block;
color: #828282;
-webkit-transition: border-color .2s ease-in-out;
-moz-transition: border-color .2s ease-in-out;
-ms-transition: border-color .2s ease-in-out;
-o-transition: border-color .2s ease-in-out;
transition: border-color .2s ease-in-out;
position: relative;
width: 0px;
height: 0px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #cccccc;
position: absolute;
top: 17px;
right: 0px;
}
#rhino > li > a:hover::after,
#rhino > li.parent:hover > a::after {
/*border-top: 6px solid #e28977; */
}
#rhino ul {
display: none;
position: absolute;
padding: 0px;
margin: 0px;
width: 250px;
background-color: #e06041;
z-index: 99;
list-style: none;
box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
}
#rhino ul li {
float: none;
position: relative;
}
#rhino ul a {
padding: 10px 15px;
font-size: 90%;
font-weight: normal;
color: white;
display: block;
line-height: normal;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
...
JavaScript
$(document).ready(function() {
var d = new Date();
var wk = d.getWeek();
var yr = d.getFullYear();
var log_week_yr = yr+"-"+wk;
});