nav {
position: relative;
margin: 0 0 30px 0;
background: #06c;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0,0,0,.2)), color-stop(100%, rgba(0,0,0,.5))), #06c;
background: -moz-linear-gradient(top, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 100%), #06c;
background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.5)), #06c;
-webkit-box-shadow: inset 0px -2px 2px rgba(0,0,0,.25), inset 0px 2px 2px rgba(255,255,255,.2);
-moz-box-shadow: inset 0px -2px 2px rgba(0,0,0,.2), inset 0px 2px 2px rgba(255,255,255,.2);
box-shadow: inset 0px -2px 2px rgba(0,0,0,.2), inset 0px 2px 2px rgba(255,255,255,.2);
-webkit-animation: fadeIn .4s linear;
}
@-webkit-keyframes fadeIn {
from {
top: -20px;
opacity: 0;
}
to {
top: 0;
opacity: 1;
}
}
nav ul {
display: table;
width: 1000px;
font-size: 12px;
text-transform: uppercase;
height: 50px;
overflow: visible;
margin: 0;
}
nav li {
display: table-cell;
height: 50px;
background: url('images/bg-nav-li.png') no-repeat 0 50%;
margin: 0;
-ms-transition: width 0.3s ease-in-out;
-moz-transition: width 0.3s ease-in-out;
-webkit-transition: width 0.3s ease-in-out;
}
nav li:first-child {
background: none;
}
nav a {
display: block;
color: #fff;
line-height: 50px;
height: 50px;
min-width: 50px;
text-align: center;
font-weight: bold;
text-shadow: 0 -1px 1px rgba(0,0,0,.75);
margin: 0 0 0 2px;
}
nav li:first-child a {
margin-left: 0;
}
nav a:hover, nav .current a {
color: #fff;
background: #333;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.1)), color-stop(100%,rgba(255,255,255,.2)));
background: -moz-linear-gradient(top, rgba(255,255,255,.1) 0%, rgba(255,255,255,.2) 100%);
background: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.2));
-webkit-box-shadow: inset 0px -2px 2px rgba(0,0,0,.2);
-moz-box-shadow: inset 0px -2px 2px rgba(0,0,0,.2);
box-shadow: inset 0px -2px 2px rgba(0,0,0,.2);
}
nav li.search {
height: auto;
padding: 10px 0 10px;
margin: 0;
height: 30px;
vertical-align: top;
width: 1%;
}
nav li form {
width: auto;
margin: 0;
padding: 0;
height: 30px;
}
nav li fieldset {
position: relative;
width: auto;
margin: 0;
height: 30px;
padding: 0 11px 0 10px;
overflow: hidden;
}
nav li fieldset legend, nav li fieldset label {
display: none;
}
nav li fieldset input[type="text"] {
-webkit-appearance: textfield;
-moz-border-radius: 3px;
border-radius: 3px;
background: none;
-webkit-box-shadow: 0px 1px 1px rgba(255,255,255,.12), inset 0px 0px 5px rgba(0,0,0,.15), inset 0px 2px 2px rgba(0,0,0,.12);
-moz-box-shadow: 0px 1px 1px rgba(255,255,255,.12), inset 0px 0px 5px rgba(0,0,0,.15), inset 0px 2px 2px rgba(0,0,0,.12);
box-shadow: 0px 1px 1px rgba(255,255,255,.12), inset 0px 0px 5px rgba(0,0,0,.15), inset 0px 2px 2px rgba(0,0,0,.12);
border: 1px solid rgba(0,0,0,.2);
line-height: 30px;
height: 28px;
padding: 0 10px 0 25px;
margin: 0;
width: 113px;
color: #fff;
-moz-transition: width 0.3s ease-in-out;
-webkit-transition: width 0.3s ease-in-out;
}
nav li fieldset input[type="text"]:active,
nav li fieldset input[type="text"]:focus {
background: #fff;
color: #383838;
width: 200px;
}
nav li fieldset input[type="submit"] {
position: absolute;
left: 16px;
top: 7px;
-moz-border-radius: 0px;
border-radius: 0px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
text-shadow: none;
width: 14px;
height: 14px;
font-size: 1px;
line-height: 14px;
text-align: left;
text-indent: -9999em;
background: url('images/bg-btn-search.png') no-repeat 0 0;
border: 0 none;
}
nav li fieldset input[type="text"]:active + input,
nav li fieldset input[type="text"]:focus + input {
background-position: 0 -33px;
}