Template:Team:Edinburgh/Code

From 2013.igem.org

(Difference between revisions)
 
(19 intermediate revisions not shown)
Line 32: Line 32:
display: none;
display: none;
}  
}  
 +
 +
.right {
 +
float: right;
 +
cursor: deafault;
 +
margin-right: 10px;
 +
margin-top: 10px;
 +
vertical-align: top;
 +
}
Line 177: Line 185:
     margin-right: 10px;
     margin-right: 10px;
     font-size: 14pt;
     font-size: 14pt;
 +
     font-weight: bold;
     font-weight: bold;
     display: block;
     display: block;
Line 183: Line 192:
background-color: #acd8a6;
background-color: #acd8a6;
padding: 3px;
padding: 3px;
-
padding-left: 12px;
+
padding-right: 5px;
 +
padding-left: 10px;
margin-bottom: 5px;
margin-bottom: 5px;
}  
}  
Line 200: Line 210:
.home_side_menu_item .selflink {
.home_side_menu_item .selflink {
   color: #904400 !important;
   color: #904400 !important;
 +
  margin-right: 6px !important;
}
}
Line 254: Line 265:
   position: relative;
   position: relative;
   display: block;
   display: block;
 +
}
 +
 +
.side_menu_item a{
 +
  margin-right: 6px;
}
}
Line 269: Line 284:
   color : #2b6196;
   color : #2b6196;
  font-weight: bold;
  font-weight: bold;
 +
margin-right: 6px;
}
}
Line 330: Line 346:
   color: #001f3d !important;
   color: #001f3d !important;
   cursor: default !important;
   cursor: default !important;
 +
margin-right: 6px;
   text-decoration: none !important;
   text-decoration: none !important;
}
}
Line 361: Line 378:
$(menu_buttons[i]).parent("tr").siblings(":last").children("td").filter(function(index) {return index==i}).children("a").addClass("selflink");
$(menu_buttons[i]).parent("tr").siblings(":last").children("td").filter(function(index) {return index==i}).children("a").addClass("selflink");
}
}
-
 
+
 
if (touchscreen) continue;
if (touchscreen) continue;
Line 388: Line 405:
children[active-1].style.display = "block";
children[active-1].style.display = "block";
}
}
-
        })();    
+
})();
-
  }
+
}
 +
 
 +
    menu_links = $("#side_menu_items > li > a");
 +
 
 +
for (var j=0; j < menu_links.length; j++) {
 +
active=1;
 +
if (window.location.href.indexOf(menu_links[j].href, window.location.href.length-menu_links[j].href.length) > -1) {
 +
active = 3;
 +
}
 +
if (active==3) {
 +
$(menu_links[j]).addClass("selflink");
 +
}
 +
}    
});  
});  
 
 

Latest revision as of 00:27, 5 October 2013