Team:Cooper Union/CSS
From 2014.igem.org
(Difference between revisions)
Line 46: | Line 46: | ||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); | box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); | ||
} | } | ||
- | ul li { | + | ul li.menu { |
font: bold 12/18px sans-serif; | font: bold 12/18px sans-serif; | ||
color: #ffffff; | color: #ffffff; | ||
Line 61: | Line 61: | ||
transition: all 0.2s; | transition: all 0.2s; | ||
} | } | ||
- | ul li:hover { | + | ul li.menu:hover { |
background: #55555; | background: #55555; | ||
color: #fffff; | color: #fffff; | ||
} | } | ||
- | ul li ul { | + | ul li ul.menu { |
padding: 0; | padding: 0; | ||
position: absolute; | position: absolute; | ||
Line 83: | Line 83: | ||
-transition: opacity 0.2s; | -transition: opacity 0.2s; | ||
} | } | ||
- | ul li ul li { | + | ul li ul li.menu { |
background: #555555; | background: #555555; | ||
display: block; | display: block; | ||
Line 90: | Line 90: | ||
text-shadow: 0 -1px 0 #000000; | text-shadow: 0 -1px 0 #000000; | ||
} | } | ||
- | ul li ul li:hover { background: #777777; } | + | ul li ul li.menu:hover { background: #777777; } |
- | ul li:hover ul { | + | ul li.menu:hover ul { |
display: block; | display: block; | ||
opacity: 1; | opacity: 1; |
Revision as of 20:03, 18 September 2014
<style> body {
font-family: Helvetica, Arial, sans-serif; font-size: 15px; text-align: center; background: #dddddd;
}
/* menu link style */ a.menu:link { color: #ffffff; font-family: Helvetica, Arial, sans-serif; text-decoration: none; }
a.menu:visited { color: #ffffff; font-family: Helvetica, Arial, sans-serif; text-decoration: none; }
a.menu:hover { color: #ffffff; font-family: Helvetica, Arial, sans-serif; text-decoration: none; }
a.menu:active { color: #ffffff; font-family: Helvetica, Arial, sans-serif; text-decoration: none; }
/* dropdown menu */
ul.menu {
text-align: left; color: #ffffff; display: inline; margin: 0; padding: 15px 4px 17px 0; list-style: none; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
} ul li.menu {
font: bold 12/18px sans-serif; color: #ffffff; display: inline-block; margin-right: -4px; position: relative; padding: 15px 20px; background: #272727; cursor: pointer; -webkit-transition: all 0.2s; -moz-transition: all 0.2s; -ms-transition: all 0.2s; -o-transition: all 0.2s; transition: all 0.2s;
} ul li.menu:hover {
background: #55555; color: #fffff;
} ul li ul.menu {
padding: 0; position: absolute; top: 48px; left: 0; width: 150px; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; display: none; opacity: 0; visibility: hidden; -webkit-transiton: opacity 0.2s; -moz-transition: opacity 0.2s; -ms-transition: opacity 0.2s; -o-transition: opacity 0.2s; -transition: opacity 0.2s;
} ul li ul li.menu {
background: #555555; display: block; font: bold 12px sans-serif; color: #ffffff; text-shadow: 0 -1px 0 #000000;
} ul li ul li.menu:hover { background: #777777; } ul li.menu:hover ul {
display: block; opacity: 1; visibility: visible;
}
/* Removes auto wiki parameters */
- contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
display:none;}
- top-section {
border: none; height: 0px;}
- content {
border: none;}
- menubar > ul > li:last-child {
display: none;}
- menubar {
width: auto;}
body {
margin: 10px 0 0 0; padding: 0;}
- top-section {
width: 965px; height: 0; margin: 0 auto; padding: 0; border: none;}
- menubar {
font-size: 65%; top: -14px;}
.left-menu:hover {
background-color: transparent;}
- menubar li a {
background-color: transparent;}
- menubar:hover {
color: white;}
- menubar li a {
color: transparent;}
- menubar:hover li a {
color: white;}
</style>