Team:Calgary/StyleSheets/Navigation
From 2013.igem.org
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. | ||
+ | ------------- | ||
+ | |||
+ | Cite: | ||
+ | Wm. Keith van der Meulen | ||
+ | University of Calgary iGEM 2013 | ||
+ | https://2013.igem.org/Team:Calgary/StyleSheets/Navigation?action=raw&ctype=text/css | ||
+ | |||
+ | ***/ | ||
+ | |||
/*** | /*** | ||
Name: Wm. Keith van der Meulen | Name: Wm. Keith van der Meulen | ||
Line 16: | Line 32: | ||
#NavHeight { | #NavHeight { | ||
+ | background: #000000; | ||
height: 108px; | height: 108px; | ||
} | } | ||
Line 27: | Line 44: | ||
text-align: center; | text-align: center; | ||
top: 25px; | top: 25px; | ||
+ | } | ||
+ | |||
+ | #TopBar #TopLvlNavLink { | ||
+ | display: none; | ||
} | } | ||
Line 98: | Line 119: | ||
@keyframes rotate { | @keyframes rotate { | ||
from { | from { | ||
- | - | + | transform: rotate(0deg); |
+ | -ms-transform: rotate(0deg); | ||
} | } | ||
- | to { | + | to { |
- | - | + | transform: rotate(59deg); |
+ | -ms-transform: rotate(59deg); | ||
} | } | ||
} | } | ||
Line 111: | Line 134: | ||
to { | to { | ||
-webkit-transform: rotate(59deg); | -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); | ||
} | } | ||
} | } | ||
Line 123: | Line 164: | ||
#TopBar #LogoItem { | #TopBar #LogoItem { | ||
padding: 8px 0; | 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; | ||
} | } |
Revision as of 21:05, 30 August 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
- /
/*** 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
- /
- NavHeight {
background: #000000; height: 108px; }
- TopBar {
background: #000000; width: 100%; height: 89px; z-index: 10; position: fixed; text-align: center; top: 25px; }
- TopBar #TopLvlNavLink {
display: none; }
- TopBar ul {
background: #000000; 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: #000000; padding: 0; position: absolute; top: 99%; z-index: 10; }
- TopBar ul li:hover > ul {
display: block; }
- TopBar ul ul li {
float: none; position: relative; }
- TopBar ul ul a {
font-size: 20px; }
- TopBar ul ul ul {
position: absolute; left: 100%; top: 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; }