Team:RHIT/StyleSheets/Navigation

From 2014.igem.org

(Difference between revisions)
 
(103 intermediate revisions not shown)
Line 1: Line 1:
#NavBar {
#NavBar {
-
background: #69221A;
+
background: #5C067E;
width: 100%;
width: 100%;
-
min-width: 766px;
+
min-width: 500px;
-
height: 90px;
+
height: 120px;
-
z-index: 10;
+
z-index: 100;
position: fixed;
position: fixed;
text-align: center;
text-align: center;
-
top: 25px;
+
top: 5px;
}
}
Line 15: Line 15:
#NavBar ul {
#NavBar ul {
-
background: #69221A;
+
background: #5C067E;
list-style: none;
list-style: none;
position: relative;
position: relative;
Line 32: Line 32:
float: left;
float: left;
width: 124px;
width: 124px;
-
text-align: center;
+
    text-align: center;
}
}
#NavBar li:hover > a {
#NavBar li:hover > a {
-
text-decoration: underline;
+
text-decoration: overline underline;
}
}
Line 43: Line 43:
display: block;
display: block;
width: 100%;
width: 100%;
-
height: 50%;
+
height: 100%;
padding: 10px 10px;
padding: 10px 10px;
color: #FFFFFF;
color: #FFFFFF;
Line 57: Line 57:
#NavBar ul ul {
#NavBar ul ul {
display: none;
display: none;
-
background: #69221A;
+
background: #5C067E;
padding: 0 10px;
padding: 0 10px;
position: absolute;
position: absolute;
-
top: 95%;
+
top: 85%;
-
z-index: 10;
+
z-index: 100;
margin-left: -10px;
margin-left: -10px;
}
}
Line 73: Line 73:
position: relative;
position: relative;
}
}
 +
 +
#NavBar ul ul li:hover > a {
 +
        text-decoration: underline;
 +
]
#NavBar ul ul a {
#NavBar ul ul a {
-
font-size: 18px;
+
font-size: 16px;
}
}
#NavBar ul ul ul {
#NavBar ul ul ul {
-
position: absolute;
+
      position: absolute;
-
left: 100%;
+
      left: 100%;
-
top: 0;
+
      top: 0;
-
margin: 0;
+
      margin: 0;
}
}
 +
#NavBarCollapse {
#NavBarCollapse {

Latest revision as of 02:34, 17 August 2014

  1. NavBar {

background: #5C067E; width: 100%; min-width: 500px; height: 120px; z-index: 100; position: fixed; text-align: center; top: 5px; }

  1. NavBar #TopLvlNavLink {

display: none; }

  1. NavBar ul {

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

  1. NavBar ul:after {

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

  1. NavBar li {

float: left; width: 124px;

   	text-align: center;

}

  1. NavBar li:hover > a {

text-decoration: overline underline; }


  1. NavBar a {

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

  1. NavBar > #TopLvlNav > li > a {

padding: 30px 0;

}

  1. NavBar ul ul {

display: none; background: #5C067E; padding: 0 10px; position: absolute; top: 85%; z-index: 100; margin-left: -10px; }

  1. NavBar ul li:hover > ul {

display: block; }

  1. NavBar ul ul li {

float: none; position: relative; }

  1. NavBar ul ul li:hover > a {
       text-decoration: underline;

]

  1. NavBar ul ul a {

font-size: 16px; }

  1. NavBar ul ul ul {
      position: absolute;
      left: 100%;
      top: 0;
      margin: 0;

}


  1. NavBarCollapse {

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

  1. NavBarCollapse #TopLvlNavLink {

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

  1. NavBarCollapse:after {

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

  1. NavBarCollapse ul {

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

  1. NavBarCollapse ul:after {

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

  1. NavBarCollapse li {

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

  1. NavBarCollapse li:hover {

background: pink; }

  1. NavBarCollapse a {

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