Просмотр файла style/css/nav.css

Размер файла: 2.98Kb
#nav,#nav ul {
  list-style: none outside none;
  margin: 0;
  padding: 0;
}
#nav {
  background: url('/themes/Music_City/style/img/navigation/menu_bg.png') no-repeat scroll 0 0 transparent;
  clear: both;
  font-size: 14px;
  height: 64px;
  padding: 0 10px 0 10px;
  position: relative;
  max-width: 796px;
}
#nav ul {
  background-color: #222;
  border:1px solid #222;
  border-radius: 0 5px 5px 5px;
  border-width: 0 1px 1px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
  left: -9999px;
  overflow: hidden;
  position: absolute;
  top: -9999px;
  z-index: 4;

  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -o-transform: scaleY(0);
  -webkit-transform: scaleY(0);
  transform: scaleY(0);

  -moz-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  -o-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;

  -moz-transition: -moz-transform 0.1s linear;
  -ms-transition: -ms-transform 0.1s linear;
  -o-transition: -o-transform 0.1s linear;
  -webkit-transition: -webkit-transform 0.1s linear;
  transition: transform 0.1s linear;
}
#nav li {
  background: url('/themes/Music_City/style/img/navigation/menu_line.png') no-repeat scroll right 5px transparent;
  float: left;
  padding: 0 4px 0 0;
  position: relative;
}
#nav li a {
  color: #ff9911;
  display: block;
  float: left;
  font-weight: normal;
  height: 62px;
  padding: 21px 14px 0 14px;
  position: relative;
  text-decoration: none;
  text-shadow: 1px 1px 1px #000000;
}
#nav li:hover > a {
  color: #999;
}
#nav li:hover, #nav a:focus, #nav a:hover, #nav a:active {
  background: none repeat scroll 0 0 #141414;
  outline: 0 none;
}
#nav li:hover ul.subs {
  text-align: left;
  left: 0;
  top: 62px;
  width: 274px;
  border-left: 1px solid #2B3947;
  border-right: 1px solid #2B3947;
  border-bottom: 1px solid #2B3947;

  -moz-transform: scaleY(1);
  -ms-transform: scaleY(1);
  -o-transform: scaleY(1);
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}
#nav ul li {
  background: none;
  width: 100%;
}
#nav ul li a {
  float: none;
}
#nav ul li:hover > a {
  background-color: #141414;
  color: #999;
}
#lavalamp {
  background: url('/themes/Music_City/style/img/navigation/lavalamp.png') no-repeat scroll 0 0 transparent;
  height: 16px;
  left: 14px;
  position: absolute;
  top: 0px;
  width: 64px;

  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}
#lavalamp:hover {
  -moz-transition-duration: 3000s;
  -ms-transition-duration: 3000s;
  -o-transition-duration: 3000s;
  -webkit-transition-duration: 3000s;
  transition-duration: 3000s;
}
#nav li:nth-child(1):hover ~ #lavalamp { 
  left: 14px; 
}
#nav li:nth-child(2):hover ~ #lavalamp { 
  left: 111px; 
}
#nav li:nth-child(3):hover ~ #lavalamp { 
  left: 202px; 
}
#nav li:nth-child(4):hover ~ #lavalamp { 
  left: 304px; 
}
#nav li:nth-child(5):hover ~ #lavalamp { 
  left: 402px; 
}
#nav li:nth-child(6):hover ~ #lavalamp { 
  left: 528px; 
}