Team:UNITN-Trento/CSS/Subs/Header

From 2013.igem.org

(Difference between revisions)
m
 
(146 intermediate revisions not shown)
Line 1: Line 1:
-
#tn-header {
+
/********/
-
    min-height: 210px;
+
/*HEADER*/
 +
/********/
-
    background-color: #038c7e;
+
#tn-header-wrap {
-
     border-bottom: 10px solid #bf1b39;
+
     display: inline-block;
-
     text-align: center;
+
     width: 100%;
-
}
+
    height: 250px;
-
.tn-logo {
+
    margin: 0;
-
     display: inline-block;
+
    padding: 0;
 +
 
 +
    background-color: #2880C5;
 +
    border-bottom: 7px solid white;
 +
    box-shadow: inset 0 -2px 6px black;
 +
 
 +
    background-image: url(http://i44.tinypic.com/690qs8.jpg);
 +
    background-attachment: fixed;
 +
     background-position: 0px -500px;
 +
    background-size: 100%;
}
}
-
.tn-logo.tn-side {
+
#tn-header {
 +
    display: static;
     position: relative;
     position: relative;
-
     top: -1em;
+
     top: 0;
-
     width: 125px;
+
     max-width: 1300px;
-
      
+
     height: 180px;
-
     margin: 0 2em;
+
 
 +
     margin: 0 auto;
 +
    padding: 1em;
}
}
-
#tn-bfruity-logo {
+
/*-----------*/
-
     margin-top: 2.2em;
+
/*HEADER MENU*/
 +
/*-----------*/
 +
 
 +
#tn-header #tn-menu {
 +
    position: absolute;
 +
    top: 170px;
 +
    left: 0;
 +
 
 +
    width: 100%;
 +
 
 +
     margin: 0;
 +
    padding: 0;
 +
 
 +
    list-style: none;
 +
    text-align: center;
}
}
-
#tn-igem-unitn-logo {
+
#tn-header #tn-menu > li {
-
     margin-top: 2.1em;
+
    position: relative;
 +
    display: inline-block;
 +
 
 +
    height: 100px;
 +
    width: 100px;
 +
 
 +
     margin: 0.4em;
 +
    /*
 +
    background-position: center center;
 +
    background-repeat: no-repeat;
 +
    background-size: 75%;
 +
    */
 +
    line-height: 100px;
 +
    /*font-weight: bold;*/
 +
    text-shadow: 0 0 2px black;
 +
    text-align: center;
 +
    vertical-align: middle;
 +
 
 +
    transition: transform 0.4s;
 +
    -webkit-transition: -webkit-transform 0.4s; /* Safari */
}
}
-
#tn-igem-main {
+
#tn-header #tn-menu > li > img {
-
     margin-top: 2.3em;
+
    width: 76px;
 +
     margin: 12px;
}
}
-
/*MENU*/
+
#tn-header #tn-menu > li > a {
 +
    display: block;
-
#tn-menu {
+
     position: absolute;
-
     position: relative;
+
     top: 2.2em;
-
     top: -2.7em;
+
     left: 0;
-
     margin: 0 auto;
+
-
     list-style: none;
+
     padding: 0.3em 0.5em;
-
}
+
    /*margin-top: 2.2em;*/
-
#tn-menu li {
+
     width: 3em;
-
     width: 150px;
+
-
    padding: 0;
+
-
    margin: 0;
+
-
     font-family: "Trebuchet MS", Helvetica, sans-serif;
+
     border-radius: 0.5em;
-
     font-variant: small-caps;
+
    border: 3px solid white;
-
     font-weight: bold;
+
    background: rgba(31,68,87,.9);
-
     font-size: 1em;
+
     background-image: url(imgs/box-bottoni.png);
 +
    color: #ffffff;
 +
     font-family: 'Mouse Memoirs', sans-serif;
 +
     font-size: 1.5em;
 +
    line-height: 1em;
 +
    text-decoration: none;
-
     color: #f0f2df;
+
     z-index: 5;
-
    border: 1px solid transparent;
+
}
}
-
#tn-menu > li {
+
#tn-header #tn-menu > li.active {
-
     display: inline-table;
+
     transform: rotate(-15deg);
-
     padding-top: 0.2em;
+
     -ms-transform: rotate(-15deg); /* IE 9 */
-
     padding-bottom: 13px;
+
     -webkit-transform: rotate(-15deg); /* Safari and Chrome */
-
     opacity: 0.9;
+
     /*background-size: 100%;*/
}
}
-
#tn-menu > li:hover {
+
@keyframes image {
-
     opacity: 1.0;
+
    from {
 +
        width: 76px;
 +
        margin: 12px;
 +
    }
 +
    to {
 +
        width: 100px;
 +
        margin: 0;
 +
     }
 +
}
 +
@-webkit-keyframes image /* Safari and Chrome */ {
 +
    from {
 +
        width: 76px;
 +
        margin: 12px;
 +
    }
 +
    to {
 +
        width: 100px;
 +
        margin: 0;
 +
    }
}
}
-
/*SUB_MENU*/
+
#tn-header #tn-menu > li.active > img {
 +
    width: 100px;
 +
    margin: 0;
 +
 
 +
    animation: image 1s;
 +
    -webkit-animation: image 1s; /* Safari and Chrome */
 +
}
 +
 
 +
#tn-header #tn-menu > li.active > a {
 +
    display: block;
-
#tn-menu > li > ul {
 
     position: absolute;
     position: absolute;
-
     top: 100%;
+
     top: 2.2em;
-
     z-index: 5;
+
     left: 0;
 +
    padding: 0.3em 0.5em;
 +
    /*margin-top: 2.2em;*/
 +
    border-radius: 0.5em;
 +
    border: 3px solid white;
 +
    box-shadow: 2px 2px 4px #323232;
 +
    background: #C4221C;
 +
    font-family: 'Mouse Memoirs', sans-serif;
 +
    font-size: 1.5em;
 +
    line-height: 1em;
 +
    text-decoration: underline;
 +
}
 +
 +
/*SUB MENU*/
 +
 +
#tn-header #tn-menu li ul {
     display: none;
     display: none;
-
     padding: 0; margin: 0;
+
     position: absolute;
 +
    top: 60%;
 +
    left: -125%;
-
     background: none;
+
     width: 450px;
 +
    height: 3em;
 +
 
 +
    padding: 0;
 +
    padding-top: 3em;
 +
    margin: 0;
 +
    margin-top: 1em;
 +
 
 +
    line-height: 1em;
 +
    list-style: none;
 +
 
 +
    transform: rotate(15deg);
 +
    -ms-transform: rotate(15deg); /* IE 9 */
 +
    -webkit-transform: rotate(15deg); /* Safari and Chrome */
 +
   
 +
    text-align: left;
}
}
-
#tn-menu > li > ul > li {
+
@keyframes submenu {
-
     background-color: #038c7e;
+
     0% {
 +
        opacity: 0;
 +
    }
 +
    50% {
 +
        opacity: 0;
 +
    }
 +
    100% {
 +
        opacity: 1;
 +
    }
 +
}
 +
@-webkit-keyframes submenu /* Safari and Chrome */ {
 +
    0% {
 +
        opacity: 0;
 +
    }
 +
    50% {
 +
        opacity: 0;
 +
    }
 +
    100% {
 +
        opacity: 1;
 +
    }
}
}
-
#tn-menu > li:hover > ul,
+
/*#tn-header #tn-menu li:hover ul {
-
#tn-menu > li:hover > ul li {
+
     display: block;
     display: block;
-
}
 
-
/*MENU Links*/
+
    animation: submenu .5s;
 +
    -webkit-animation: submenu .5s;
 +
}*/
-
#tn-menu a {
+
#tn-header #tn-menu li ul li {
 +
    display: inline-block;
 +
    height: 32px;
 +
 
 +
    margin: 0;
 +
    margin-bottom: 3px;
 +
    padding: 0;
 +
 
 +
    background-color: rgba(45,133,110,.8);
 +
    border-radius: 0.5em;
 +
    border: 3px solid rgba(250,250,250,1);
 +
    box-shadow: 1px 1px 2px black;
 +
    font-family: 'Mouse Memoirs', sans-serif;
 +
    font-size: 1.3em;
 +
 
 +
    line-height: 1.5em;
 +
    vertical-align: middle;
 +
}
 +
 
 +
#tn-header #tn-menu li ul li a {
     display: block;
     display: block;
-
     width: 100%;
+
     padding-top: 0em;
-
     height: 100%;
+
     margin: 0 0.5em;
 +
    color: white;
 +
    text-decoration: none;
 +
    text-shadow: 0 0 8px black;
 +
}
-
     color: #f0f2df;
+
#tn-header #tn-menu li ul li:hover {
 +
     background-color: rgba(196,34,28,.8);
 +
    border: 3px solid white;
 +
    border-radius: 0.5em;
 +
    box-shadow: 2px 2px 4px black;
 +
}
 +
 
 +
#tn-header #tn-menu li ul li:hover a {
 +
    color: white;
     text-decoration: none;
     text-decoration: none;
 +
    text-shadow: 0 0 4px black;
}
}
-
#tn-menu > li > a {
+
/*------------*/
-
     font-size: 1.2em;
+
/*HEADER LOGHI*/
 +
/*------------*/
 +
 
 +
#tn-header #tn-loghi {
 +
     width: 100%;
 +
    height: 180px;
}
}
-
#tn-menu li:hover {
+
#tn-header #tn-loghi .title {
-
     background-color: #007064;
+
     margin: 0;
-
     border: 1px solid white;
+
    margin-top: 0.3em;
 +
 
 +
    color: #eee;
 +
 
 +
     font-family: 'Marck Script', cursive;
 +
    font-size: 7em;
 +
 
 +
    line-height: 1em;
 +
    text-align: center;
 +
    text-shadow: 1px 1px 2px #000;
}
}
-
#tn-menu li:hover > a,
+
#tn-menu li > span a img {
-
#tn-menu > li > ul > li:hover {
+
    margin-top: 2.5em;
-
     text-shadow: 1px 1px #323232;
+
    transition: transform 5s;
 +
    -webkit-transition: -webkit-transform 5s; /* Safari */
 +
}
 +
 
 +
#tn-menu li > span a:hover img {
 +
     transition: transform 5s;
 +
    -webkit-transition: -webkit-transform 5s; /* Safari */
 +
 
 +
    transform:rotate(3000deg);
 +
    -ms-transform:rotate(3000deg); /* IE 9 */
 +
    -webkit-transform:rotate(3000deg); /* Safari and Chrome */
 +
 
}
}

Latest revision as of 14:42, 29 September 2013

/********/ /*HEADER*/ /********/

  1. tn-header-wrap {
   display: inline-block;
   width: 100%;
   height: 250px;
   margin: 0;
   padding: 0;
   background-color: #2880C5;
   border-bottom: 7px solid white;
   box-shadow: inset 0 -2px 6px black;
   background-image: url(http://i44.tinypic.com/690qs8.jpg);
   background-attachment: fixed;
   background-position: 0px -500px;
   background-size: 100%;

}

  1. tn-header {
   display: static;
   position: relative;
   top: 0;
   max-width: 1300px;
   height: 180px;
   margin: 0 auto;
   padding: 1em;

}

/*-----------*/ /*HEADER MENU*/ /*-----------*/

  1. tn-header #tn-menu {
   position: absolute;
   top: 170px;
   left: 0;
   width: 100%;
   margin: 0;
   padding: 0;
   list-style: none;
   text-align: center;

}

  1. tn-header #tn-menu > li {
   position: relative;
   display: inline-block;
   height: 100px;
   width: 100px;
   margin: 0.4em;
   /*
   background-position: center center;
   background-repeat: no-repeat;
   background-size: 75%;
   */
   line-height: 100px;
   /*font-weight: bold;*/
   text-shadow: 0 0 2px black;
   text-align: center;
   vertical-align: middle;
   transition: transform 0.4s;
   -webkit-transition: -webkit-transform 0.4s; /* Safari */

}

  1. tn-header #tn-menu > li > img {
   width: 76px;
   margin: 12px;

}

  1. tn-header #tn-menu > li > a {
   display: block;
   position: absolute;
   top: 2.2em;
   left: 0;
   padding: 0.3em 0.5em;
   /*margin-top: 2.2em;*/
   width: 3em;
   border-radius: 0.5em;
   border: 3px solid white;
   background: rgba(31,68,87,.9);
   background-image: url(imgs/box-bottoni.png);
   color: #ffffff;
   font-family: 'Mouse Memoirs', sans-serif;
   font-size: 1.5em;
   line-height: 1em;
   text-decoration: none;
   z-index: 5;

}

  1. tn-header #tn-menu > li.active {
   transform: rotate(-15deg);
   -ms-transform: rotate(-15deg); /* IE 9 */
   -webkit-transform: rotate(-15deg); /* Safari and Chrome */
   /*background-size: 100%;*/

}

@keyframes image {

   from {
       width: 76px;
       margin: 12px;
   }
   to {
       width: 100px;
       margin: 0;
   }

} @-webkit-keyframes image /* Safari and Chrome */ {

   from {
       width: 76px;
       margin: 12px;
   }
   to {
       width: 100px;
       margin: 0;
   }

}

  1. tn-header #tn-menu > li.active > img {
   width: 100px;
   margin: 0;
   animation: image 1s;
   -webkit-animation: image 1s; /* Safari and Chrome */

}

  1. tn-header #tn-menu > li.active > a {
   display: block;
   position: absolute;
   top: 2.2em;
   left: 0;
   padding: 0.3em 0.5em;
   /*margin-top: 2.2em;*/
   border-radius: 0.5em;
   border: 3px solid white;
   box-shadow: 2px 2px 4px #323232;
   background: #C4221C;
   font-family: 'Mouse Memoirs', sans-serif;
   font-size: 1.5em;
   line-height: 1em;
   text-decoration: underline;

}

/*SUB MENU*/

  1. tn-header #tn-menu li ul {
   display: none;
   position: absolute;
   top: 60%;
   left: -125%;
   width: 450px;
   height: 3em;
   padding: 0;
   padding-top: 3em;
   margin: 0;
   margin-top: 1em;
   line-height: 1em;
   list-style: none;
   transform: rotate(15deg);
   -ms-transform: rotate(15deg); /* IE 9 */
   -webkit-transform: rotate(15deg); /* Safari and Chrome */
   
   text-align: left;

}

@keyframes submenu {

   0% {
       opacity: 0;
   }
   50% {
       opacity: 0;
   }
   100% {
       opacity: 1;
   }

} @-webkit-keyframes submenu /* Safari and Chrome */ {

   0% {
       opacity: 0;
   }
   50% {
       opacity: 0;
   }
   100% {
       opacity: 1;
   }

}

/*#tn-header #tn-menu li:hover ul {

   display: block;
   animation: submenu .5s;
   -webkit-animation: submenu .5s;

}*/

  1. tn-header #tn-menu li ul li {
   display: inline-block;
   height: 32px;
   margin: 0;
   margin-bottom: 3px;
   padding: 0;
   background-color: rgba(45,133,110,.8);
   border-radius: 0.5em;
   border: 3px solid rgba(250,250,250,1);
   box-shadow: 1px 1px 2px black;
   font-family: 'Mouse Memoirs', sans-serif;
   font-size: 1.3em;
   line-height: 1.5em;
   vertical-align: middle;

}

  1. tn-header #tn-menu li ul li a {
   display: block;
   padding-top: 0em;
   margin: 0 0.5em;
   color: white;
   text-decoration: none;
   text-shadow: 0 0 8px black;

}

  1. tn-header #tn-menu li ul li:hover {
   background-color: rgba(196,34,28,.8);
   border: 3px solid white;
   border-radius: 0.5em;
   box-shadow: 2px 2px 4px black;

}

  1. tn-header #tn-menu li ul li:hover a {
   color: white;
   text-decoration: none;
   text-shadow: 0 0 4px black;

}

/*------------*/ /*HEADER LOGHI*/ /*------------*/

  1. tn-header #tn-loghi {
   width: 100%;
   height: 180px;

}

  1. tn-header #tn-loghi .title {
   margin: 0;
   margin-top: 0.3em;
   color: #eee;
   font-family: 'Marck Script', cursive;
   font-size: 7em;
   line-height: 1em;
   text-align: center;
   text-shadow: 1px 1px 2px #000;

}

  1. tn-menu li > span a img {
   margin-top: 2.5em;
   transition: transform 5s;
   -webkit-transition: -webkit-transform 5s; /* Safari */

}

  1. tn-menu li > span a:hover img {
   transition: transform 5s;
   -webkit-transition: -webkit-transform 5s; /* Safari */
   transform:rotate(3000deg);
   -ms-transform:rotate(3000deg); /* IE 9 */
   -webkit-transform:rotate(3000deg); /* Safari and Chrome */

}