Difference between revisions of "Template:Team:Harvard BioDesign/CSS"

 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
<style type="text/css">
 
  
/* PAGE LAYOUT */
+
    <script type="text/javascript">
 +
        document.styleSheets[0].disabled = true;
 +
    </script>
  
/* Change Background color*/
+
    <!--remove unwanted p tags-->
body {  
+
    <!-- Remove all empty <p> tags -->
background-color: #99ccff;
+
    <script type="text/javascript">
}
+
        $(document).ready(function() {
 +
            $("p").filter( function() {
 +
            return $.trim($(this).html()) == '';
 +
            }).remove()
 +
        });
 +
    </script>
  
/* Creates a container that will wrap all of the content inside your wiki pages. */
+
    <!--Fix for internet explorer-->
#mainContainer { 
+
    <!-- ie9.js (fixes all Internet Explorer browsers older than ie9) -->
width: 100%
+
    <!--[if lt IE 9]>
overflow:hidden;
+
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
float:left;
+
    <![endif]-->
margin-left:0px;
+
margin-bottom: 10px;
+
background-color: #fff;
+
border-bottom: 14px solid #565656;
+
border-right: 2px solid #565656;
+
border-left: 2px solid #565656;
+
border-top: 2px solid #565656;
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
}
+
  
/* Creates the container for the menu */
+
    <style type="text/css">
#menuContainer  {
+
float:left;
+
width: 134px;
+
padding: 20px 0px;
+
border-top: 14px solid #565656;
+
background-color: #E8E8E9;
+
}
+
  
/* Creates the container for the content */
+
    /* Resizes the menubar to fit the links (default is 400px) */
#contentContainer {
+
    #top_menu_14 {
padding-top:20px;
+
position: fixed;
padding-right:10px;
+
width: 100%;
margin-bottom: 20px;
+
top: 0px;
width: 814px;
+
left: 0px;
padding-left: 20px;
+
height: 16px;
float: left;
+
background-color: transparent;
background-color: #fff;  
+
color: transparent;
border-top: 14px solid #565656;
+
border-bottom: none;
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
z-index: 9999;
}
+
}
  
/*Set up height place holder for the banner*/
+
#top_menu_14:hover {
#bannerContainer {
+
position: fixed;
height:200px;
+
width: 100%;
margin:auto;
+
top: 0px;
text-align:center;
+
left: 0px;
color: #24B694;
+
height: 16px;
}
+
background-color: #383838;
 +
z-index: 9999;
 +
}
  
/*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */
+
#top_menu_inside {
 +
display: block;
 +
  height: 100%;
 +
  margin: 0px auto;
 +
padding: 0 10px;
 +
border: none;
 +
font-family: 'helvetica', sans-serif;
 +
            color: transparent;
 +
            opacity: 0;
 +
font-size: 12px;
 +
font-weight: 400;
 +
}
  
/*Change the styling of text for everything inside main container*/
+
#top_menu_under{
#mainContainer p {  
+
border: none;
font-size: 13px;
+
}
color: #000000;
+
}
+
+
/*This changes the color and font family */
+
#contentContainer h1, h2, h3, h4, h5, h6 {
+
color: #565656;
+
border-bottom: none;
+
font-weight: bold;
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
margin-top:10px;
+
}
+
  
/*Style of the links - links are different inside the menu */
+
#top_menu_inside:hover {
#contentContainer a {  
+
display: block;
font-weight: bold;
+
height: 100%;
color: #23b593;
+
margin: 0px auto;
}
+
padding: 0 10px;
 +
  font-family: 'helvetica', sans-serif;
 +
font-size: 12px;
 +
            opacity: 1;
 +
font-weight: 400;
 +
}
  
  /* Styling links on hover- links are different inside the menu */
+
/* Change Background color*/
#contentContainer a:hover {
+
body {  
color: #59bf92;
+
background-color: #77DD77;
}
+
height:100%
 
+
    padding-bottom: 100px;
/*Change the styling of tables */
+
}
        #contentContainer table {
+
    border: 1px solid #565656;
+
    border-collapse: collapse;
+
    width: 90%
+
    margin: auto;
+
    margin-bottom: 15px;
+
    margin-top: 15px;
+
    margin-right: 10px;
+
    margin-left: 10px;
+
    }
+
 
+
/*Change the styling of table cells*/
+
    #contentContainer  td {
+
    padding: 10px;
+
    border: 1px solid #565656;
+
    border-collapse: collapse;
+
    vertical-align: text-top;
+
    }
+
 
+
/*Change the styling of table headers */
+
    #contentContainer th {
+
    background-color: #E8E8E9;
+
    padding: 10px;
+
    border: 1px solid #565656;
+
    border-collapse: collapse;
+
    vertical-align: text-top;
+
    }
+
 
+
 
+
 
+
/*MENU STYLING */
+
 
+
/*Styling for the links in the menu */
+
#menuContainer a {
+
color: #565656;
+
text-decoration:none;
+
font-weight: bold;
+
}
+
 
+
/* Sets the style for lists inside menuContainer  */
+
#menuContainer ul {
+
list-style: none;
+
margin-left:0px;
+
}
+
 
+
/*Styles the list items to become menu buttons */
+
#menuContainer ul li {
+
text-align: center;
+
display: block;
+
width: 100%;
+
height:30px;
+
padding-top:10px;
+
}
+
 
+
/*For the menu buttons, changes the color when hovering*/
+
#menuContainer li:hover {
+
color:  #FFF;
+
background-color: #24B694;
+
}
+
 
+
/*Submenus are not displayed as default*/
+
#menuContainer li ul {
+
display: none;
+
padding-top:15px;
+
margin-left: -19px;
+
}
+
 
+
/*Submenus are displayed when hovering the menu button */
+
#menuContainer li:hover ul {
+
/*display: inline-block; */
+
display: block;
+
position: absolute;
+
float:right;
+
margin-left: 134px;
+
margin-top:-42px;
+
}
+
  
/*Style the submenu buttons*/
+
/*Removes Wiki default template*/
#menuContainer li ul li{
+
#contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo, .printfooter {
background-color: #59BF92;  
+
    display:none;
padding-left:20px;
+
    }
padding-right:20px;
+
#top-section {
height:30px;
+
  border: none;
padding-top:10px;
+
    height: 0px;
margin-top:-2px;
+
    }
color: #565656;
+
#content {
width: 150px;
+
    border: none;
}
+
            padding-bottom: 75px;
 +
      padding-left:20px;
 +
      padding-right:20px;
  
/*CLASSES */
+
    }
 +
#bodyContent {
 +
    border: none;
 +
      padding-left:20px;
 +
      padding-right:20px;
 +
      padding-top:50px;
 +
    }
 +
    #holder{
 +
    min-height: 100%;
 +
                        width:100%;
 +
        position:relative;
 +
    }
 +
html{
 +
    height:100%
 +
    }
  
/*Clear class for all the pages, adds spacing too*/
 
.clear{
 
clear:both;
 
height: 10px;
 
}
 
  
 +
 +
    </style>
  
/* highlight box for special messages */
+
    <div id="holder">
    .highlightBox {
+
        <body></body>
        width:500px;
+
        margin:auto;
+
        background-color: #E8E8E9;
+
margin-bottom: 15px;
+
margin-top: 15px;
+
padding: 15px;
+
padding-top: 5px;
+
    }
+
  
 +
    </div
  
</style>
 
<!-- End of CSS -->
 
  
</style>
 
 
</html>
 
</html>

Latest revision as of 16:47, 6 July 2015