Difference between revisions of "Template:HFUT-China/Safety/css/headerCss"

Line 43: Line 43:
 
z-index:999;
 
z-index:999;
 
text-align: center;
 
text-align: center;
font-size:16px;
+
font-size:14px;
 
font-family:"Slim";
 
font-family:"Slim";
 
font-weight: bold;
 
font-weight: bold;

Revision as of 17:40, 26 October 2017

  • {

margin:0; padding:0;

} @font-face{ font-family:"Slim"; src:url('https://static.igem.org/mediawiki/2017/0/02/Slim.otf');

} @font-face{ font-family:"good"; src:url('https://static.igem.org/mediawiki/2017/d/d4/Futura.otf'); } @font-face{ font-family:"he"; src:url('https://static.igem.org/mediawiki/2017/b/b0/He.ttf'); } @font-face{

font-family:"ScrawnyK"; src:url('https://static.igem.org/mediawiki/2017/7/7e/ScrawnyK.ttf'); } @font-face{

font-family:"Light"; src:url('https://static.igem.org/mediawiki/2017/d/dc/Light.ttf'); } .header{ margin-top: 0px; width: 100%; text-align: center; z-index:999; position:absolute; } ul{ display:inline-block; margin: 0 auto; position: relative; list-style:none; } .nav{ z-index:999; text-align: center; font-size:14px; font-family:"Slim"; font-weight: bold; z-index: 99; }

.hef{color: #000;} .hef:hover{ color: #fff; } .selfnav{ color: #000; margin-left: -6px; width: 200px; text-align: left; } .selfnav:hover{ margin-left: -6px; width: 200px; color: #ffffff; text-align: left; } .nav li{ float:left; margin-right:1px; } .nav li a{ margin-top:10px; margin-left: 10px; box-shadow: 0px 1px 10px #aaa; padding-bottom: 6px; padding-top: 6px; border-radius: 200px; text-decoration:none; line-height:30px; background-color:rgba(120,194,196,1); color:#ffffff; display:block; min-width:120px; text-align:center; } .nav li a:hover{ background-color:#00aa90; color:#FFFFFF; } .nav li ul{ display:none; } .nav li ul li{ margin-top:1px; position:relative; }

.nav li:hover ul{ display:block; width:120px; } .nav li:hover ul li ul{ display:none; } .nav li:hover ul li ul li{ margin-left:0px; }