Team:Calgary/StyleSheets/Navigation
From 2013.igem.org
Line 23: | Line 23: | ||
.NavMain { | .NavMain { | ||
display: inline-block; | display: inline-block; | ||
- | background | + | background: #000000; |
padding: 0 205px 0 206px; | padding: 0 205px 0 206px; | ||
} | } | ||
Line 80: | Line 80: | ||
#MainLinks:hover { | #MainLinks:hover { | ||
- | background | + | background: #00FFFF; |
} | } | ||
Line 130: | Line 130: | ||
.NavMain ul li:hover { | .NavMain ul li:hover { | ||
- | background | + | background: #00FFFF; |
} | } | ||
Line 138: | Line 138: | ||
.NavMain ul ul li:hover > a { | .NavMain ul ul li:hover > a { | ||
- | background | + | background: #00FFFF; |
} | } | ||
Line 151: | Line 151: | ||
width: auto; | width: auto; | ||
text-align: left; | text-align: left; | ||
- | background | + | background: #000000; |
} | } | ||
Line 180: | Line 180: | ||
.NavSide { | .NavSide { | ||
- | background | + | background: #000000; |
width: 150px; | width: 150px; | ||
padding: 10px 0; | padding: 10px 0; | ||
Line 220: | Line 220: | ||
.NavSide ul li a:hover { | .NavSide ul li a:hover { | ||
- | background | + | background: #00FFFF; |
color: #000000; | color: #000000; | ||
} | } | ||
/* End: Style for making sidebar */ | /* End: Style for making sidebar */ |
Revision as of 04:37, 19 June 2013
/*** Name: Wm. Keith van der Meulen Date: Summer 2013 Organization: University of Calgary iGEM Team 2013
---Purpose--- CSS code to define navigation stylings.
Cite: Wm. Keith van der Meulen University of Calgary iGEM 2013 https://2013.igem.org/Team:Calgary/StyleSheets/Navigation?action=raw&ctype=text/css
- /
/* Start: Style for making drop down header*/ .NavMain * { box-sizing: border-box; -moz-box-sizing: border-box; }
.NavMain { display: inline-block; background: #000000; padding: 0 205px 0 206px; }
.NavMain ul { list-style: none; position: relative; display: inline-table; padding: 0; }
.NavMain ul:after { content: ""; clear: both; display: block; }
.NavMain ul li { float: left; padding: 0 5px; } /* End: Style for making drop down header*/
/* Start: Style for making diagonal highlight*/ #MainLinks { -webkit-transform: skew(-45deg); -moz-transform: skew(-45deg); -ms-transform: skew(-45deg); -o-transform: skew(-45deg); transform: skew(-45deg); }
#MainLinks a, #MainLinks ul { -webkit-transform: skew(45deg); -moz-transform: skew(45deg); -ms-transform: skew(45deg); -o-transform: skew(45deg); transform: skew(45deg); }
#MainLinks ul li a { -webkit-transform: skew(0deg); -moz-transform: skew(0deg); -ms-transform: skew(0deg); -o-transform: skew(0deg); transform: skew(0deg); }
#MainLinks ul ul { -webkit-transform: skew(0deg); -moz-transform: skew(0deg); -ms-transform: skew(0deg); -o-transform: skew(0deg); transform: skew(0deg); }
#MainLinks:hover { background: #00FFFF; }
#MainLinks:hover > a { color: #000000; } /* End: Style for making diagonal highlight*/
/* Start: Style for aligning sub-menus with header link*/ #MainProjectNav { left: 176px; }
#MainTeamNav { left: 88px; }
#MainNotebookNav { left: 66px; }
#MainOutreachNav { left: 66px; } /* End: Style for aligning sub-menus with header link*/
/* Start: Style for link attributes and sub-menu drop down links*/ .NavMain ul li a { display: block; width: 159; font: 20px 'Raleway', Helvetica, Arial, sans-serif; text-decoration: none; text-align: center; color: #FFFFFF; padding: 10px; background: none; }
.NavMain ul li:hover > ul { display: block; }
.NavMain ul ul { display: none; position: absolute; top: 100%; margin: 0; }
.NavMain ul li:hover { background: #00FFFF; }
.NavMain ul li:hover > a { color: #000000; }
.NavMain ul ul li:hover > a { background: #00FFFF; }
.NavMain ul ul li { float: none; position: relative; width: 200px; padding: 0; }
.NavMain ul ul li a { width: auto; text-align: left; background: #000000; }
.NavMain ul ul li a:hover { background: none; }
.NavMain ul ul ul { position: absolute; left: 100%; top: 0; }
.NavMain ul ul ul li { padding: 0; }
.NavMain ul ul ul li:first-child { margin-top: 0; } /* End: Style for link attributes*/
/* Start: Style for making sidebar */ .NavSide * { box-sizing: border-box; -moz-box-sizing: border-box; }
.NavSide { background: #000000; width: 150px; padding: 10px 0; float: left; margin: 20px 20px 0 0; }
.NavSide ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.NavSide ul ul { padding-left: 15px; }
.NavSide ul ul li a { font-size: 15px; }
.NavSide ul li a { display: block; font: 18px 'Raleway'; text-decoration: none; color: #FFFFFF; padding: 10px; background: none; }
.NavSide ul li:first-child a { font-size: 22px; }
.NavSide ul ul li:first-child a { font-size: 15px; }
.NavSide ul li a:hover { background: #00FFFF; color: #000000; } /* End: Style for making sidebar */