Team:Calgary/StyleSheets/Navigation
From 2014.igem.org
(5 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
/*** | /*** | ||
Name: Wm. Keith van der Meulen | Name: Wm. Keith van der Meulen | ||
- | Date: Summer | + | Date: Summer 2014 |
- | Organization: University of Calgary iGEM Team | + | Organization: University of Calgary iGEM Team 2014 |
---Purpose--- | ---Purpose--- | ||
Line 16: | Line 16: | ||
#TopBar { | #TopBar { | ||
- | background: # | + | background: #FFFFFF url(https://static.igem.org/mediawiki/2014/c/c6/2014UCalgaryNavBG.png); |
+ | background-size: auto 100px; | ||
width: 100%; | width: 100%; | ||
min-width: 766px; | min-width: 766px; | ||
Line 24: | Line 25: | ||
text-align: center; | text-align: center; | ||
top: 25px; | top: 25px; | ||
+ | min-width: 970px; | ||
} | } | ||
Line 31: | Line 33: | ||
#TopBar ul { | #TopBar ul { | ||
- | |||
list-style: none; | list-style: none; | ||
position: relative; | position: relative; | ||
Line 60: | Line 61: | ||
height: 100%; | height: 100%; | ||
padding: 15px 0; | padding: 15px 0; | ||
- | color: # | + | color: #1697B5; |
text-decoration: none; | text-decoration: none; | ||
- | font: 24px | + | font: 24px 'Archivo Narrow', sans-serif; |
} | } | ||
#TopBar > #TopLvlNav > li > a { | #TopBar > #TopLvlNav > li > a { | ||
padding: 29px 0; | padding: 29px 0; | ||
+ | font-weight: bold; | ||
} | } | ||
#TopBar ul ul { | #TopBar ul ul { | ||
display: none; | display: none; | ||
- | background: # | + | background: #FFFFFF; |
padding: 0 10px; | padding: 0 10px; | ||
position: absolute; | position: absolute; | ||
Line 88: | Line 90: | ||
} | } | ||
- | #TopBar ul ul a { | + | #TopBar ul ul a, #TopBar ul ul a i { |
font-size: 18px; | font-size: 18px; | ||
} | } |
Latest revision as of 00:44, 18 October 2014
/*** Name: Wm. Keith van der Meulen Date: Summer 2014 Organization: University of Calgary iGEM Team 2014
---Purpose--- CSS code to define navigation stylings.
Cite: Wm. Keith van der Meulen University of Calgary iGEM 2013 https://2014.igem.org/Team:Calgary/StyleSheets/Navigation?action=raw&ctype=text/css
- /
- TopBar {
background: #FFFFFF url(); background-size: auto 100px; width: 100%; min-width: 766px; height: 89px; z-index: 10; position: fixed; text-align: center; top: 25px; min-width: 970px; }
- TopBar #TopLvlNavLink {
display: none; }
- TopBar ul {
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: #1697B5; text-decoration: none; font: 24px 'Archivo Narrow', sans-serif; }
- TopBar > #TopLvlNav > li > a {
padding: 29px 0; font-weight: bold; }
- TopBar ul ul {
display: none; background: #FFFFFF; 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, #TopBar ul ul a i {
font-size: 18px; }
- TopBar ul ul ul {
position: absolute; left: 100%; top: 0; margin: 0; }
- TopBar #LogoLink {
width: 350px; }
- TopBar #LogoLink a {
padding: 0 !important; }
- TopBar #LogoLink img {
height: 61px; margin: 13px 0; }