Team:Calgary/StyleSheets/Navigation

From 2013.igem.org

(Difference between revisions)
 
(106 intermediate revisions not shown)
Line 1: Line 1:
-
/*** Name: Wm. Keith van der Meulen Date: Summer 2013 Organization: University of Calgary iGEM Team 2013
+
/***
-
---Purpose--- CSS code to define navigation stylings.
+
Name: Wm. Keith van der Meulen
-
Cite: Wm. Keith van der Meulen University of Calgary iGEM 2013 https://2013.igem.org/Team:Calgary/StyleSheets/Navigation?action=raw&ctype=text/css
+
Date: Summer 2013
-
/
+
Organization: University of Calgary iGEM Team 2013
-
.NavMain * { box-sizing: border-box; -moz-box-sizing: border-box; }
+
-
.NavMain { border: 2px solid #000000; display: inline-block; background-color: #000000; padding: 0 25px; position: fixed; top: 25px; z-index: 10; }
+
-
.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; }
+
-
#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); }
+
---Purpose---
-
#MainLinks ul li a { -webkit-transform: skew(0deg); -moz-transform: skew(0deg); -ms-transform: skew(0deg); -o-transform: skew(0deg); transform: skew(0deg); }
+
CSS code to define navigation stylings.
-
#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-color: #00FFFF; }
+
 
-
.NavMain ul li a { display: block; width: 159; font: bold 20px "Courier New", Courier, monospace; text-decoration: none; text-align: center; color: #FFFFFF; padding: 10px; background: none; }
+
Cite:
-
.NavMain ul li a:hover { color: #000000; }
+
Wm. Keith van der Meulen
-
.NavMain ul li:hover > ul { display: block; background-color: #000000; }
+
University of Calgary iGEM 2013
-
.NavMain ul ul { display: none; position: absolute; top: 100%; margin: 0; border-left: 2px solid #000000; }
+
https://2013.igem.org/Team:Calgary/StyleSheets/Navigation?action=raw&ctype=text/css
-
#MainProjectNav { left: 171px; }
+
 
-
#MainTeamNav { left: 85px; }
+
***/
-
#MainNotebookNav { left: 64px; }
+
 
-
#MainOutreachNav { left: 64px; } .NavMain ul li:hover { background-color: #00FFFF; }
+
#TopBar {
-
.NavMain ul ul li { float: none; position: relative; width: 200px; }
+
background: #231F20;
-
.NavMain ul ul li a { width: auto; text-align: left; background-image: none; }
+
width: 100%;
-
.NavMain ul ul li a:hover { background: none; }
+
min-width: 766px;
-
.NavMain ul ul li:first-child { margin-top: 2px; }
+
height: 89px;
-
.NavMain ul ul ul { position: absolute; left: 100%; top: 0; border-left: 2px solid #000000; }
+
z-index: 10;
-
.NavMain ul ul ul li { padding: 0; }
+
position: fixed;
-
.NavMain ul ul ul li:first-child { margin-top: 0; }
+
text-align: center;
 +
top: 25px;
 +
}
 +
 
 +
#TopBar #TopLvlNavLink {
 +
display: none;
 +
}
 +
 
 +
#TopBar ul {
 +
background: #231F20;
 +
list-style: none;
 +
position: relative;
 +
display: inline-table;
 +
padding: 0;
 +
margin: 0;
 +
}
 +
 
 +
#TopBar ul:after {
 +
content: "";
 +
clear: both;
 +
display: block;
 +
}
 +
 
 +
#TopBar li {
 +
float: left;
 +
width: 124px;
 +
text-align: center;
 +
}
 +
 
 +
#TopBar li:hover > a {
 +
text-decoration: underline;
 +
}
 +
 
 +
#TopBar a {
 +
display: block;
 +
width: 100%;
 +
height: 100%;
 +
padding: 15px 0;
 +
color: #FFFFFF;
 +
text-decoration: none;
 +
font: 24px Raleway, Arial, san-serif;
 +
}
 +
 
 +
#TopBar > #TopLvlNav  > li > a {
 +
padding: 29px 0;
 +
}
 +
 
 +
#TopBar ul ul {
 +
display: none;
 +
background: #231F20;
 +
padding: 0 10px;
 +
position: absolute;
 +
top: 95%;
 +
z-index: 10;
 +
margin-left: -10px;
 +
}
 +
 
 +
#TopBar ul li:hover > ul {
 +
display: block;
 +
}
 +
 
 +
#TopBar ul ul li {
 +
float: none;
 +
position: relative;
 +
}
 +
 
 +
#TopBar ul ul a {
 +
font-size: 18px;
 +
}
 +
 
 +
#TopBar ul ul ul {
 +
position: absolute;
 +
left: 100%;
 +
top: 0;
 +
margin: 0;
 +
}
 +
 
 +
@keyframes rotate {
 +
  from {
 +
    transform: rotate(0deg);
 +
    -ms-transform: rotate(0deg);
 +
  }
 +
  to {
 +
    transform: rotate(59deg);
 +
    -ms-transform: rotate(59deg);
 +
  }
 +
}
 +
 
 +
@-webkit-keyframes rotate {
 +
  from {
 +
    -webkit-transform: rotate(0deg);
 +
  }
 +
  to {  
 +
    -webkit-transform: rotate(59deg);
 +
  }
 +
}
 +
 
 +
@-moz-keyframes rotate {
 +
  from {
 +
    transform: rotate(0deg);
 +
  }
 +
  to {
 +
    transform: rotate(59deg);
 +
  }
 +
}
 +
 
 +
@-o-keyframes rotate {
 +
  from {
 +
    transform: rotate(0deg);
 +
  }
 +
  to {
 +
    transform: rotate(59deg);
 +
  }
 +
}
 +
 
 +
#TopBar #LogoItem:hover > img {
 +
    -webkit-animation-name:             rotate;  
 +
    -webkit-animation-duration:         .5s;  
 +
    -webkit-animation-iteration-count: infinite;
 +
    -webkit-animation-timing-function: linear;
 +
}
 +
 
 +
#TopBar #LogoItem {
 +
padding: 8px 0;
 +
}
 +
 
 +
#TopBarCollapse {
 +
position: fixed;
 +
width: 120px;
 +
height: 60px;
 +
top: 25px;
 +
background: orange;
 +
z-index: 10;
 +
}
 +
 
 +
#TopBarCollapse #TopLvlNavLink {
 +
display: block;
 +
width: 100%;
 +
height: 100%;
 +
}
 +
 
 +
#TopBarCollapse:after {
 +
content: "";
 +
clear: both;
 +
display: block;
 +
}
 +
 
 +
#TopBarCollapse ul {
 +
display: none;
 +
list-style: none;
 +
padding: 0;
 +
}
 +
 
 +
#TopBarCollapse ul:after {
 +
content: "";
 +
clear: both;
 +
display: block;
 +
}
 +
 
 +
#TopBarCollapse li {
 +
float: left;
 +
display: block;
 +
clear: both;
 +
width: 120px;
 +
padding: 0;
 +
background: green;
 +
}
 +
 
 +
#TopBarCollapse li:hover {
 +
background: pink;
 +
}
 +
 
 +
#TopBarCollapse a {
 +
color: #FFFFFF;
 +
display: block;
 +
text-decoration: none;
 +
padding: 10px 15px;
 +
}
 +
 
 +
#TopBarCollapse #LogoItem {
 +
display: none !important;
 +
}

Latest revision as of 01:21, 20 May 2014

/*** 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

      • /
  1. TopBar {

background: #231F20; width: 100%; min-width: 766px; height: 89px; z-index: 10; position: fixed; text-align: center; top: 25px; }

  1. TopBar #TopLvlNavLink {

display: none; }

  1. TopBar ul {

background: #231F20; list-style: none; position: relative; display: inline-table; padding: 0; margin: 0; }

  1. TopBar ul:after {

content: ""; clear: both; display: block; }

  1. TopBar li {

float: left; width: 124px; text-align: center; }

  1. TopBar li:hover > a {

text-decoration: underline; }

  1. TopBar a {

display: block; width: 100%; height: 100%; padding: 15px 0; color: #FFFFFF; text-decoration: none; font: 24px Raleway, Arial, san-serif; }

  1. TopBar > #TopLvlNav > li > a {

padding: 29px 0; }

  1. TopBar ul ul {

display: none; background: #231F20; padding: 0 10px; position: absolute; top: 95%; z-index: 10; margin-left: -10px; }

  1. TopBar ul li:hover > ul {

display: block; }

  1. TopBar ul ul li {

float: none; position: relative; }

  1. TopBar ul ul a {

font-size: 18px; }

  1. TopBar ul ul ul {

position: absolute; left: 100%; top: 0; margin: 0; }

@keyframes rotate {

 from {
   transform: rotate(0deg);
   -ms-transform: rotate(0deg);
 }
 to {
   transform: rotate(59deg);
   -ms-transform: rotate(59deg);
 }

}

@-webkit-keyframes rotate {

 from {
   -webkit-transform: rotate(0deg);
 }
 to { 
   -webkit-transform: rotate(59deg);
 }

}

@-moz-keyframes rotate {

 from {
   transform: rotate(0deg);
 }
 to { 
   transform: rotate(59deg);
 }

}

@-o-keyframes rotate {

 from {
   transform: rotate(0deg);
 }
 to { 
   transform: rotate(59deg);
 }

}

  1. TopBar #LogoItem:hover > img {
   -webkit-animation-name:             rotate; 
   -webkit-animation-duration:         .5s; 
   -webkit-animation-iteration-count:  infinite;
   -webkit-animation-timing-function: linear;

}

  1. TopBar #LogoItem {

padding: 8px 0; }

  1. TopBarCollapse {

position: fixed; width: 120px; height: 60px; top: 25px; background: orange; z-index: 10; }

  1. TopBarCollapse #TopLvlNavLink {

display: block; width: 100%; height: 100%; }

  1. TopBarCollapse:after {

content: ""; clear: both; display: block; }

  1. TopBarCollapse ul {

display: none; list-style: none; padding: 0; }

  1. TopBarCollapse ul:after {

content: ""; clear: both; display: block; }

  1. TopBarCollapse li {

float: left; display: block; clear: both; width: 120px; padding: 0; background: green; }

  1. TopBarCollapse li:hover {

background: pink; }

  1. TopBarCollapse a {

color: #FFFFFF; display: block; text-decoration: none; padding: 10px 15px; }

  1. TopBarCollapse #LogoItem {

display: none !important; }