Team:Calgary/Notebook/Journal/EngineeringJournal

From 2013.igem.org

Revision as of 22:34, 19 June 2013 by Wkeithvan (Talk | contribs)

/*** 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; width: 100%; padding: 0 auto; }

.NavMain ul { list-style: none; position: relative; display: inline-table; padding: 0; margin-left: 172px; }

.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: 0 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 */

/* Start: Style for week selector */ .NavWeek * { box-sizing: border-box; -moz-box-sizing: border-box; }

.NavWeek table { border-collapse: collapse; background: #000000; }

.NavWeek td { width: 100px; text-align: center; vertical-align: middle; color: #FFFFFF; }

.NavWeek ul { list-style-type: none; margin: 0; padding: 0; }

.NavWeek a { color: #FFFFFF; text-decoration: none; font-size: 18px; display: block; padding: 5px; }

.NavWeek a:hover { color: #000000; background: #00FFFF; }

.NavWeek b { font-size: 20px; font-weight: bold; } /* End: Style for week selector */