Team:Penn/css/menu

From 2012.igem.org

Revision as of 11:36, 17 August 2012 by Amurthur (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

@import url(http://fonts.googleapis.com/css?family=Pontano+Sans|Poiret+One);

body { margin: 0; }

#menu-wrapper { margin: 0; position:relative; display: block; z-index: 2; height: 60px; padding-top: 0px; width:500px;

background-image: -webkit-gradient(linear, left top, left bottom, from(#535557), to(#333532)); background-image: -webkit-linear-gradient(top, #535557, #333532); background-image: -moz-linear-gradient(top, #535557, #333532);

  	background-image:     -ms-linear-gradient(top, #535557, #333532); 
  	background-image:      -o-linear-gradient(top, #535557, #333532); 
  	background-image:         linear-gradient(to bottom, #535557, #333532);

font-family: "Pontano Sans"; font-size: 15px; color: #fff; text-align: center; }

.menu { display: block; margin: 0 auto; padding: 0; width: 500px; text-align: left; list-style-type: none; }

.menu li { display: inline-block; padding: 18px 10px 22px 10px; cursor: pointer;

-webkit-transition: 0.3s ease-in-out; -moz-transition: 0.3s ease-in-out; -ms-transition: 0.3s ease-in-out; -o-transition: 0.3s ease-in-out; transition: 0.3s ease-in-out; }

.menu li:hover, .selected { background: #212525; }

.menu a, .menu a:visited { color: #fff; text-decoration: none; }

#submenu-wrapper { position: absolute; right: 0; left: 0; display: block; z-index: 1; width: 480px; height: 95px; margin: -12em auto 0; padding: 10px 10px; background: rgba(33,37,37,0.9); font-family: "Pontano Sans"; font-size: 15px; -webkit-border-bottom-right-radius: 10px; -webkit-border-bottom-left-radius: 10px; -moz-border-radius-bottomright: 10px; -moz-border-radius-bottomleft: 10px; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; box-shadow: 0px 2px 7px rgba(0,0,0,0.5); overflow: hidden; }

.submenu { display: block; margin: 0 0 5em; padding: 0; list-style-type: none; }

.submenu li { display: inline-block; width: 150px; vertical-align: top; text-align: center; }

.submenu li img { display: block; margin: 0 auto 1em; width: 140px; border-radius: 5px; border: 0; }

.submenu li a, .submenu li a:visited { color: #fff; text-decoration: none;

}