﻿/*

HOW TO CREATE A CSS3 DROPDOWN MENU [TUTORIAL]

"How to create a CSS3 Dropdown Menu [Tutorial]" was specially made for DesignModo by our friend Valeriu Timbuc.

Links:
http://vtimbuc.net/
https://twitter.com/vtimbuc
http://designmodo.com
http://vladimirkudinov.com

*/

/* Reset */
.menu,
.menu ul,
.menu li,
.menu a {
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
}

/* Menu */
.menu 	
{
    font-size:11pt;
    font-family: Arial, sans-serif;
	height:36px;
	width:100%;
    background:url('../../images/bgMenu.png') repeat-x;
    padding-left:0px;
    float:left;
}

.menu li 
{
	position: relative;
	list-style: none;
	float: left;
	display:block;
	height: 36px;
}

/* Links */

.menu li a {
	display: block;
	padding: 0 14px;
	margin: 0px;
	line-height: 36px;
	text-decoration: none;
	/*border-left: 1px solid #CCC;*/
	border-right: 1px solid #CCC;
	font-family: Arial, sans-serif;
	font-size: 11pt;
	color: #324914;
	/*text-shadow: 1px 1px 1px rgba(0,0,0,.6);*/
	-webkit-transition: color .2s ease-in-out;
	-moz-transition: color .2s ease-in-out;
	-o-transition: color .2s ease-in-out;
	-ms-transition: color .2s ease-in-out;
	transition: color .2s ease-in-out;
}

.menu li:first-child a { border-left: none; }
.menu li:last-child a{ border-right: none; }

.menu li:hover > .menuP{ color: #FFF;text-shadow:none;background:url('../../images/bgMenuHover.png') repeat-x; }
.menu li:hover > .menuC{ color: #FFFF00}

/* 目前的Menu */
.menuliOn{color: #FFF;text-shadow:none;background:url('../../images/bgMenuHover.png') repeat-x; }
.menuliOn span{color: #FFF;text-shadow:none}

/* Sub Menu */

.menu ul 
{
	position: absolute;
	top: 36px;
	left: 0px;
	opacity: 0;
	background: #00AF56;
	-webkit-border-radius: 0 0 5px 5px;
	-moz-border-radius: 0 0 5px 5px;
	border-radius: 0 0 5px 5px;
	-webkit-transition: opacity .25s ease .1s;
	-moz-transition: opacity .25s ease .1s;
	-o-transition: opacity .25s ease .1s;
	-ms-transition: opacity .25s ease .1s;
	transition: opacity .25s ease .1s;
	z-index:999;
}

.menu li:hover > ul { opacity: 1; }

.menu ul li 
{
	height: 0px;
	overflow: hidden;
	padding:0px;
	-webkit-transition: height .25s ease .1s;
	-moz-transition: height .25s ease .1s;
	-o-transition: height .25s ease .1s;
	-ms-transition: height .25s ease .1s;
	transition: height .25s ease .1s;
}

.menu li:hover > ul li {
	height:36px;
	overflow: visible;
	padding: 0px;
}

.menu ul li a {
    color:#FFF;
	width: 180px;
	padding: 4px 0 0px 10px;
	margin: 0px;
	border: none;
	border-bottom: 1px solid #1AFF8C;
	font-weight:normal;
}
.menu ul li:last-child a { border: none; }