Team:TU-Eindhoven/Style

From 2014.igem.org

(Difference between revisions)
Line 196: Line 196:
.menu3 ul li:hover {
.menu3 ul li:hover {
   color:rgba(255,255,255,1);
   color:rgba(255,255,255,1);
 +
}
 +
 +
.cbp-spmenu {
 +
    background: #47a3da;
 +
    position: fixed;
 +
}
 +
 +
.cbp-spmenu h3 {
 +
    color: #afdefa;
 +
    font-size: 1.9em;
 +
    padding: 20px;
 +
    margin: 0;
 +
    font-weight: 300;
 +
    background: #0d77b6;
 +
}
 +
 +
.cbp-spmenu a {
 +
    display: block;
 +
    color: #fff;
 +
    font-size: 1.1em;
 +
    font-weight: 300;
 +
}
 +
 +
.cbp-spmenu a:hover {
 +
    background: #258ecd;
 +
}
 +
 +
.cbp-spmenu a:active {
 +
    background: #afdefa;
 +
    color: #47a3da;
 +
}
 +
 +
/* Orientation-dependent styles for the content of the menu */
 +
 +
.cbp-spmenu-vertical {
 +
    width: 240px;
 +
    height: 100%;
 +
    top: 0;
 +
    z-index: 1000;
 +
}
 +
 +
.cbp-spmenu-vertical a {
 +
    border-bottom: 1px solid #258ecd;
 +
    padding: 1em;
 +
}
 +
 +
.cbp-spmenu-horizontal {
 +
    width: 100%;
 +
    height: 150px;
 +
    left: 0;
 +
    z-index: 1000;
 +
    overflow: hidden;
 +
}
 +
 +
.cbp-spmenu-horizontal h3 {
 +
    height: 100%;
 +
    width: 20%;
 +
    float: left;
 +
}
 +
 +
.cbp-spmenu-horizontal a {
 +
    float: left;
 +
    width: 20%;
 +
    padding: 0.8em;
 +
    border-left: 1px solid #258ecd;
 +
}
 +
 +
/* Vertical menu that slides from the left or right */
 +
 +
.cbp-spmenu-left {
 +
    left: -240px;
 +
}
 +
 +
.cbp-spmenu-right {
 +
    right: -240px;
 +
}
 +
 +
.cbp-spmenu-left.cbp-spmenu-open {
 +
    left: 0px;
 +
}
 +
 +
.cbp-spmenu-right.cbp-spmenu-open {
 +
    right: 0px;
 +
}
 +
 +
/* Horizontal menu that slides from the top or bottom */
 +
 +
.cbp-spmenu-top {
 +
    top: -150px;
 +
}
 +
 +
.cbp-spmenu-bottom {
 +
    bottom: -150px;
 +
}
 +
 +
.cbp-spmenu-top.cbp-spmenu-open {
 +
    top: 0px;
 +
}
 +
 +
.cbp-spmenu-bottom.cbp-spmenu-open {
 +
    bottom: 0px;
 +
}
 +
 +
/* Push classes applied to the body */
 +
 +
.cbp-spmenu-push {
 +
    overflow-x: hidden;
 +
    position: relative;
 +
    left: 0;
 +
}
 +
 +
.cbp-spmenu-push-toright {
 +
    left: 240px;
 +
}
 +
 +
.cbp-spmenu-push-toleft {
 +
    left: -240px;
 +
}
 +
 +
/* Transitions */
 +
 +
.cbp-spmenu,
 +
.cbp-spmenu-push {
 +
    -webkit-transition: all 0.3s ease;
 +
    -moz-transition: all 0.3s ease;
 +
    transition: all 0.3s ease;
 +
}
 +
 +
/* Example media queries */
 +
 +
@media screen and (max-width: 55.1875em){
 +
 +
    .cbp-spmenu-horizontal {
 +
        font-size: 75%;
 +
        height: 110px;
 +
    }
 +
 +
    .cbp-spmenu-top {
 +
        top: -110px;
 +
    }
 +
 +
    .cbp-spmenu-bottom {
 +
        bottom: -110px;
 +
    }
 +
 +
}
 +
 +
@media screen and (max-height: 26.375em){
 +
 +
    .cbp-spmenu-vertical {
 +
        font-size: 90%;
 +
        width: 190px;
 +
    }
 +
 +
    .cbp-spmenu-left,
 +
    .cbp-spmenu-push-toleft {
 +
        left: -190px;
 +
    }
 +
 +
    .cbp-spmenu-right {
 +
        right: -190px;
 +
    }
 +
 +
    .cbp-spmenu-push-toright {
 +
        left: 190px;
 +
    }
}
}

Revision as of 18:56, 18 May 2014

/* Removing iGEM style */

  1. searchInput, #contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo {
  display: none;

}

  1. content {
  border: none;

}


/* Customizing standard iGEM navigation panel */

  1. top-section{
  height: 200px;
  width: 100%;
  border: none;
  border-top: none;
  color: grey;
  border: 2px solid black;
  background-image: url("http://sgugenetics.pbworks.com/f/E.COLI.jpg");

}

  1. menubar {
  display: table-cell;
  height: 30px;
  font-size: 12pt;
  position: fixed;
  background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #065700),color-stop(0.87, #000000));
  background-image: -o-linear-gradient(bottom, #065700 0%, #000000 87%);
  background-image: -moz-linear-gradient(bottom, #065700 0%, #000000 87%);
  background-image: -webkit-linear-gradient(bottom, #065700 0%, #000000 87%);
  background-image: -ms-linear-gradient(bottom, #065700 0%, #000000 87%);
  background-image: linear-gradient(to bottom, #065700 0%, #000000 87%);   border-radius: 2px;

}

  1. menubar.left-menu {
  width: 100%;
  padding-left: 265px;

}

  1. menubar.right-menu {
  text-align: right;
  padding-right: 275px;

}

  1. menubar.left-menu a {
  border: none;
  color: white;

}

  1. menubar * {
  background: transparent;

}

  1. menubar * a:hover{
  color: green;
  text-decoration: none;

}

  1. menubar > ul > li:last-child {
  display: none;

}


/* TU-Eindhoven Style */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {

  display: none;

}

body {

  font-family: 'Noto Sans', sans-serif;

}

ol, ul {

  list-style: none;

}

  1. navpanel {
  height:50px;
  width:965px;
  background:rgba(0,50,0,1);
  border-radius: 8px;
  margin-left:auto;
  margin-right:auto;
  margin-top:50px;
  box-shadow:10px 10px 10px #888888;

}

.menu1 {

  height:50px;
  width:200px;
  background:rgba(0,200,0,1);
  float:left;
  transition:all .2s ease-in-out 0s;
  border-radius: 7px;

}

.menu2 {

  height:50px;
  width:200px;
  background:rgba(0,150,0,1);
  float:left;
  position:relative;
  left:-15px;
  transition:all .2s ease-in-out 0s;
  border-radius: 7px;

}

.menu3 {

  height:50px;
  width:200px;
  background:rgba(0,100,0,1);
  float:left;
  position:relative;
  left:-30px;
  transition:all .2s ease-in-out 0s;
  border-radius: 7px;

}

.menu4 {

  height:50px;
  width:200px;
  background:rgba(0,50,0,1);
  float:left;
  position:relative;
  left:-45px;
  transition:all .2s ease-in-out 0s;
  border-radius: 7px;

}

.p1 {

  font-size: 20px;
  color: rgba(255,255,255,.75);
  position: relative;
  margin-left: 25px;
  margin-top: 10px;
  width: 100px;

}

.p2 {

  font-size:16px;

}

.menu:hover {

  width:300px;

}

.menu1:hover {

  width:300px;

}

.menu2:hover {

  width:300px;

}

.menu3:hover {

  width:300px;
  height:auto;
  border-bottom-right-radius: 10px;
  box-shadow:10px 10px 10px #888888;								

}

.menu1:hover .p1 {

  color:rgba(255,255,255,1);

}

.menu2:hover .p1 {

  color:rgba(255,255,255,1);

}

.menu3:hover .p1 {

  color:rgba(255,255,255,1);

}

.menu4:hover .p1 {

  color:rgba(255,255,255,1);

}

.menu3 ul {

  visibility:hidden;
  list-style:none;
  font-size:16px;
  color:rgba(255,255,255,.75);
  position:relative;
  margin-left:25px;

}

.menu3:hover ul {

  visibility:visible;

}

.menu3 ul li:hover {

  color:rgba(255,255,255,1);	

}

.cbp-spmenu {

   background: #47a3da;
   position: fixed;

}

.cbp-spmenu h3 {

   color: #afdefa;
   font-size: 1.9em;
   padding: 20px;
   margin: 0;
   font-weight: 300;
   background: #0d77b6;

}

.cbp-spmenu a {

   display: block;
   color: #fff;
   font-size: 1.1em;
   font-weight: 300;

}

.cbp-spmenu a:hover {

   background: #258ecd;

}

.cbp-spmenu a:active {

   background: #afdefa;
   color: #47a3da;

}

/* Orientation-dependent styles for the content of the menu */

.cbp-spmenu-vertical {

   width: 240px;
   height: 100%;
   top: 0;
   z-index: 1000;

}

.cbp-spmenu-vertical a {

   border-bottom: 1px solid #258ecd;
   padding: 1em;

}

.cbp-spmenu-horizontal {

   width: 100%;
   height: 150px;
   left: 0;
   z-index: 1000;
   overflow: hidden;

}

.cbp-spmenu-horizontal h3 {

   height: 100%;
   width: 20%;
   float: left;

}

.cbp-spmenu-horizontal a {

   float: left;
   width: 20%;
   padding: 0.8em;
   border-left: 1px solid #258ecd;

}

/* Vertical menu that slides from the left or right */

.cbp-spmenu-left {

   left: -240px;

}

.cbp-spmenu-right {

   right: -240px;

}

.cbp-spmenu-left.cbp-spmenu-open {

   left: 0px;

}

.cbp-spmenu-right.cbp-spmenu-open {

   right: 0px;

}

/* Horizontal menu that slides from the top or bottom */

.cbp-spmenu-top {

   top: -150px;

}

.cbp-spmenu-bottom {

   bottom: -150px;

}

.cbp-spmenu-top.cbp-spmenu-open {

   top: 0px;

}

.cbp-spmenu-bottom.cbp-spmenu-open {

   bottom: 0px;

}

/* Push classes applied to the body */

.cbp-spmenu-push {

   overflow-x: hidden;
   position: relative;
   left: 0;

}

.cbp-spmenu-push-toright {

   left: 240px;

}

.cbp-spmenu-push-toleft {

   left: -240px;

}

/* Transitions */

.cbp-spmenu, .cbp-spmenu-push {

   -webkit-transition: all 0.3s ease;
   -moz-transition: all 0.3s ease;
   transition: all 0.3s ease;

}

/* Example media queries */

@media screen and (max-width: 55.1875em){

   .cbp-spmenu-horizontal {
       font-size: 75%;
       height: 110px;
   }

   .cbp-spmenu-top {
       top: -110px;
   }

   .cbp-spmenu-bottom {
       bottom: -110px;
   }

}

@media screen and (max-height: 26.375em){

   .cbp-spmenu-vertical {
       font-size: 90%;
       width: 190px;
   }

   .cbp-spmenu-left,
   .cbp-spmenu-push-toleft {
       left: -190px;
   }

   .cbp-spmenu-right {
       right: -190px;
   }

   .cbp-spmenu-push-toright {
       left: 190px;
   }

}