Team:Calgary/StyleSheets/Navigation

From 2013.igem.org

(Difference between revisions)
 
(32 intermediate revisions not shown)
Line 15: Line 15:
***/
***/
-
/* Start: Style for making drop down header*/
+
#TopBar {
-
.NavMain * {
+
background: #231F20;
-
box-sizing: border-box;
+
width: 100%;
-
-moz-box-sizing: border-box;
+
min-width: 766px;
 +
height: 89px;
 +
z-index: 10;
 +
position: fixed;
 +
text-align: center;
 +
top: 25px;
}
}
-
.NavMain {
+
#TopBar #TopLvlNavLink {
-
display: inline-block;
+
display: none;
-
background: #000000;
+
-
padding: 0 205px 0 206px;
+
}
}
-
.NavMain ul {
+
#TopBar ul {
-
list-style: none;
+
background: #231F20;
-
position: relative;
+
list-style: none;
-
display: inline-table;
+
position: relative;
-
padding: 0;
+
display: inline-table;
-
}
+
padding: 0;
 +
margin: 0;
 +
}
-
.NavMain ul:after {
+
#TopBar ul:after {
-
content: "";
+
content: "";
-
clear: both;
+
clear: both;
-
display: block;
+
display: block;
-
}
+
}
-
.NavMain ul li {
+
#TopBar li {
-
float: left;
+
float: left;
-
padding: 0 5px;
+
width: 124px;
-
}
+
text-align: center;
-
/* End: Style for making drop down header*/
+
}
-
/* Start: Style for making diagonal highlight*/
+
#TopBar li:hover > a {
-
#MainLinks {
+
text-decoration: underline;
-
-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 {
+
#TopBar a {
-
background: #00FFFF;
+
display: block;
-
}
+
width: 100%;
-
+
height: 100%;
-
#MainLinks:hover > a {
+
padding: 15px 0;
-
color: #000000;
+
color: #FFFFFF;
-
}
+
text-decoration: none;
-
/* End: Style for making diagonal highlight*/
+
font: 24px Raleway, Arial, san-serif;
 +
}
-
/* Start: Style for aligning sub-menus with header link*/
+
#TopBar > #TopLvlNav  > li > a {
-
#MainProjectNav {
+
padding: 29px 0;
-
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*/
+
#TopBar ul ul {
-
.NavMain ul li a {
+
display: none;
-
display: block;
+
background: #231F20;
-
width: 159;
+
padding: 0 10px;
-
font: 20px 'Raleway', Helvetica, Arial, sans-serif;
+
position: absolute;
-
text-decoration: none;
+
top: 95%;
-
text-align: center;
+
z-index: 10;
-
color: #FFFFFF;
+
margin-left: -10px;
-
padding: 10px;
+
}
-
background: none;
+
-
}
+
-
+
-
.NavMain ul li:hover > ul {
+
-
display: block;
+
-
}
+
-
.NavMain ul ul {
+
#TopBar ul li:hover > ul {
-
display: none;
+
display: block;
-
position: absolute;
+
}
-
top: 100%;
+
-
margin: 0;
+
-
}
+
-
+
-
.NavMain ul li:hover {
+
-
background: #00FFFF;
+
-
}
+
-
.NavMain ul li:hover > a {
+
#TopBar ul ul li {
-
color: #000000;
+
float: none;
-
}
+
position: relative;
-
+
}
-
.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 */
+
#TopBar ul ul a {
-
.NavSide * {
+
font-size: 18px;
-
box-sizing: border-box;
+
-
-moz-box-sizing: border-box;
+
}
}
-
.NavSide {
+
#TopBar ul ul ul {
-
background: #000000;
+
position: absolute;
-
width: 150px;
+
left: 100%;
-
padding: 10px 0;
+
top: 0;
-
float: left;
+
margin: 0;
-
margin: 20px 20px 0 0;
+
}
}
 +
@keyframes rotate {
 +
  from {
 +
    transform: rotate(0deg);
 +
    -ms-transform: rotate(0deg);
 +
  }
 +
  to {
 +
    transform: rotate(59deg);
 +
    -ms-transform: rotate(59deg);
 +
  }
 +
}
-
.NavSide ul {
+
@-webkit-keyframes rotate {
-
list-style-type: none;
+
  from {
-
padding: 0;
+
    -webkit-transform: rotate(0deg);
-
margin: 0;
+
  }
 +
  to {
 +
    -webkit-transform: rotate(59deg);
 +
  }
}
}
-
.NavSide ul ul {
+
@-moz-keyframes rotate {
-
padding-left: 15px;
+
  from {
 +
    transform: rotate(0deg);
 +
  }
 +
  to {
 +
    transform: rotate(59deg);
 +
  }
}
}
-
.NavSide ul ul li a {
+
@-o-keyframes rotate {
-
font-size: 15px;
+
  from {
 +
    transform: rotate(0deg);
 +
  }
 +
  to {
 +
    transform: rotate(59deg);
 +
  }
}
}
-
.NavSide ul li a {
+
#TopBar #LogoItem:hover > img {
-
display: block;
+
    -webkit-animation-name:             rotate;  
-
font: 18px 'Raleway';
+
    -webkit-animation-duration:         .5s;  
-
text-decoration: none;
+
    -webkit-animation-iteration-count: infinite;
-
color: #FFFFFF;
+
    -webkit-animation-timing-function: linear;
-
padding: 10px;
+
-
background: none;
+
}
}
-
.NavSide ul li:first-child a {
+
#TopBar #LogoItem {
-
font-size: 22px;
+
padding: 8px 0;
}
}
-
.NavSide ul ul li:first-child a {
+
#TopBarCollapse {
-
font-size: 15px;
+
position: fixed;
 +
width: 120px;
 +
height: 60px;
 +
top: 25px;
 +
background: orange;
 +
z-index: 10;
}
}
-
.NavSide ul li a:hover {
+
#TopBarCollapse #TopLvlNavLink {
-
background: #00FFFF;
+
display: block;
-
color: #000000;
+
width: 100%;
 +
height: 100%;
}
}
-
/* End: Style for making sidebar */
 
-
/* Start: Style for week selector */
+
#TopBarCollapse:after {
-
.WeekNav * {
+
content: "";
-
box-sizing: border-box;
+
clear: both;
-
-moz-box-sizing: border-box;
+
display: block;
}
}
-
.WeekNav table {
+
#TopBarCollapse ul {
-
border-collapse: collapse;
+
display: none;
-
background: #000000;
+
list-style: none;
 +
padding: 0;
}
}
-
.WeekNav td {
+
#TopBarCollapse ul:after {
-
width: 100px;
+
content: "";
-
text-align: center;
+
clear: both;
-
vertical-align: middle;
+
display: block;
-
color: #FFFFFF;
+
}
}
-
.WeekNav ul {
+
#TopBarCollapse li {
-
list-style-type: none;
+
float: left;
-
margin: 0;
+
display: block;
 +
clear: both;
 +
width: 120px;
padding: 0;
padding: 0;
 +
background: green;
}
}
-
.WeekNav a {
+
#TopBarCollapse li:hover {
 +
background: pink;
 +
}
 +
 
 +
#TopBarCollapse a {
color: #FFFFFF;
color: #FFFFFF;
-
text-decoration: none;
 
-
font-size: 18px;
 
display: block;
display: block;
-
padding: 5px;
+
text-decoration: none;
 +
padding: 10px 15px;
}
}
-
.WeekNav a:hover {
+
#TopBarCollapse #LogoItem {
-
color: #000000;
+
display: none !important;
-
background: #00FFFF;
+
-
}
+
-
 
+
-
.WeekNav b {
+
-
font-size: 20px;
+
-
font-weight: bold;
+
}
}
-
/* End: Style for week selector */
 

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; }