Team:UNITN-Trento/CSS/Main

From 2013.igem.org

(Difference between revisions)
 
(37 intermediate revisions not shown)
Line 1: Line 1:
 +
@import url(http://fonts.googleapis.com/css?family=Boogaloo);
 +
@import url(http://fonts.googleapis.com/css?family=Cabin);
 +
@import url(http://fonts.googleapis.com/css?family=Kameron);
 +
@import url(http://fonts.googleapis.com/css?family=Marck+Script);
 +
@import url(http://fonts.googleapis.com/css?family=Mouse+Memoirs);
 +
@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300italic);
 +
@import url(http://fonts.googleapis.com/css?family=PT+Sans);
 +
/*Hides WIKI default template*/
/*Hides WIKI default template*/
html,body {
html,body {
-
padding: 0;
+
    padding: 0;
-
margin: 0;
+
    margin: 0;
-
overflow: auto;
+
    overflow: auto;
-
background: none;
+
    background: none;
}
}
#contentSub,#search-controls,.firstHeading,#footer-box,#catlinks,#p-logo,#mw-panel,#mw-head,#footer,#mw-page-base,#mw-head-base {
#contentSub,#search-controls,.firstHeading,#footer-box,#catlinks,#p-logo,#mw-panel,#mw-head,#footer,#mw-page-base,#mw-head-base {
-
display: none;
+
    display: none;
}
}
#content {
#content {
-
display: none;
+
    display: none;
}
}
#tn-main-wrap-wrap {
#tn-main-wrap-wrap {
-
position: fixed;
+
    position: fixed;
-
top: 0;
+
    top: 0;
-
left: 0;
+
    left: 0;
-
right: 0;
+
    right: 0;
-
bottom: 0;
+
    bottom: 0;
-
padding: 0;
+
    padding: 0;
-
margin: 0;
+
    margin: 0;
-
z-index: 2;
+
    z-index: 2;
 +
   
 +
    overflow: auto;
 +
    -webkit-overflow-scrolling: touch;
}
}
#tn-main-wrap {
#tn-main-wrap {
-
margin: 0;
+
    margin: 0;
-
padding: 0;
+
    padding: 0;
-
width: 100%;
+
    width: 100%;
-
min-width: 1280px;
+
    /*min-width: 1280px;*/
-
overflow: auto;
+
    font-size: 16px;
-
font-size: 16px;
+
    background-color: rgba(31, 68, 87, 0.9);
-
background-color: none;
+
}
}
#top-section {
#top-section {
-
position: fixed;
+
    position: fixed;
-
top: 0px;
+
    top: 0px;
-
left: 0px;
+
    left: 0px;
-
right: 0px;
+
    right: 0px;
-
bottom: 0px;
+
    bottom: 0px;
-
height: 100%;
+
    height: 100%;
-
width: 100%;
+
    width: 100%;
-
margin: 0;
+
    margin: 0;
-
padding: 0;
+
    padding: 0;
-
border: none;
+
    border: none;
-
background: white;
+
    background: white;
-
z-index: 1;
+
    z-index: 1;
-
display: none;
+
    display: none;
}
}
/*To hide button for debug mode*/
/*To hide button for debug mode*/
.tn-hidden {
.tn-hidden {
-
display: none;
+
    display: none;
}
}
/*Top menus (left/right)*/
/*Top menus (left/right)*/
#menubar {
#menubar {
-
background: none !important;
+
    background: none !important;
}
}
#menubar ul li {
#menubar ul li {
-
color: transparent !important;
+
    color: white !important;
}
}
#menubar:hover {
#menubar:hover {
-
display: block;
+
    display: block;
-
position: absolute;
+
    position: absolute;
-
color: white;
+
    color: white;
}
}
#menubar:hover ul li {
#menubar:hover ul li {
-
color: white;
+
    color: white;
}
}
-
.right-menu li a {
+
.right-menu li a,
-
background: none;
+
.left-menu li a {
-
color: transparent;
+
    display: inline-block;
-
text-decoration: none;
+
    padding: 2px 5px;
 +
    background: none;
 +
    color: white !important;
 +
    text-decoration: none;
 +
    font-variant: small-caps;
 +
    text-align: center;
}
}
-
.right-menu:hover li a {
+
.right-menu li a:hover,
-
color: white;
+
.left-menu li a:hover {
 +
    background-color: white;
 +
    border-radius: 5px;
 +
    color: black !important;
 +
    text-decoration: underline;
}
}
-
.right-menu li a:hover {
+
.left-menu > ul > li[style='color:white;cursor:default'] {
-
text-decoration: underline;
+
    display: none !important;
}
}
-
/*BOX CSS*/
+
/*************/
-
.tn-box {
+
/*JMSLIDESHOW*/
-
text-align: justify;
+
/*************/
-
border: 3px solid;
+
-
padding: 0 1em;
+
-
margin: 0.5em auto;
+
-
font-size: 0.9em;
+
-
}
+
-
.tn-box.box-w-1 {
+
.jms-slideshow {
-
width: 10%;
+
    position: relative;
 +
    width: 80%;
 +
    max-width: 1400px;
 +
    min-width: 640px;
 +
    margin: 20px auto;
 +
    height: 460px;
}
}
-
.tn-box.box-w-2 {
+
.jms-wrapper {
-
width: 20%;
+
    width: auto;
 +
    min-width: 600px;
 +
    height: 440px;
 +
    background-color: #fff;
 +
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
 +
    -webkit-background-clip: padding;
 +
    -moz-background-clip: padding;   
 +
    background-clip: padding-box;
 +
    border: 10px solid #fff;
 +
    border: 10px solid rgba(255, 255, 255, 0.9);
 +
    outline: none;
 +
    transition: background-color 1s linear;
}
}
-
.tn-box.box-w-3 {
+
/*steps*/
-
width: 30%;
+
 
 +
.step {
 +
    width: 900px;
 +
    height: 420px;
 +
    display: block;
 +
    transition: opacity 1s;
 +
}
 +
.step:not(.active) {
 +
    opacity: 0;
}
}
-
.tn-box.box-w-4 {
+
.jms-content{
-
width: 40%;
+
    margin: 0px 370px 0px 20px;
 +
    position: relative;
 +
    clear: both;
}
}
-
.tn-box.box-w-5 {
+
/*links*/
-
width: 50%;
+
 
 +
a.jms-link{
 +
    color: #fff;
 +
    text-transform: uppercase;
 +
    background: linear-gradient(top, #969696 0%,#727272 100%);
 +
    padding: 8px 15px;
 +
    display: inline-block;
 +
    font-size: 16px;
 +
    font-weight: bold;
 +
    color: #fff;
 +
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
 +
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
 +
    border: 1px solid #444;
 +
    border-radius: 4px;
 +
    opacity: 1;
 +
    margin-top: 40px;
 +
    clear: both;
 +
    transition: all 0.4s ease-in-out 1s;
}
}
-
.tn-box.box-w-6 {
+
.step:not(.active) a.jms-link{
-
width: 60%;
+
    opacity: 0;
 +
    margin-top: 80px;
}
}
-
.tn-box.box-w-7 {
+
/*dots*/
-
width: 70%;
+
 
 +
.jms-dots{
 +
    width: 100%;
 +
    position: absolute;
 +
    text-align: center;
 +
    left: 0px;
 +
    bottom: 20px;
 +
    z-index: 2000;
 +
    user-select: none;
}
}
-
.tn-box.box-w-8 {
+
.jms-dots > span{
-
width: 80%;
+
    display: inline-block;
 +
    position: relative;
 +
    width: 12px;
 +
    height: 12px;
 +
    border-radius: 50%;
 +
    background: #777;
 +
    margin: 3px;
 +
    cursor: pointer;
 +
    box-shadow:
 +
        1px 1px 1px rgba(0,0,0,0.1) inset,
 +
        1px 1px 1px rgba(255,255,255,0.3);
}
}
-
.tn-box.box-w-9 {
+
.jms-dots span span {
-
width: 90%;
+
    width: 8px;
 +
    height: 8px;
 +
    position: absolute;
 +
    top: 2px;
 +
    left: 2px;
 +
    border-radius: 50%;
 +
    background: transparent;
}
}
-
.tn-box.box-c-1 {
+
.jms-dots span.jms-dots-current span {
-
border-color: red;
+
    width: 8px;
 +
    height: 8px;
 +
    position: absolute;
 +
    top: 2px;
 +
    left: 2px;
 +
    border-radius: 50%;
 +
    background: #ffffff;
}
}
-
.tn-box.box-c-2 {
+
/*arrows*/
-
border-color: green;
+
 
 +
.jms-arrows{
 +
    user-select: none;
 +
}
 +
.jms-arrows span{
 +
    position: absolute;
 +
    top: 50%;
 +
    margin-top: -40px;
 +
    height: 80px;
 +
    width: 30px;
 +
    cursor: pointer;
 +
    z-index: 2000;
 +
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
 +
    border-radius: 3px;
 +
}
 +
.jms-arrows span.jms-arrows-prev{
 +
    background: #fff url(https://static.igem.org/mediawiki/2013/e/eb/Tn-2013-jmslideshow-Arrow_left.png) no-repeat 50% 50%;
 +
    left: -10px;
 +
}
 +
.jms-arrows span.jms-arrows-next{
 +
    background: #fff url(https://static.igem.org/mediawiki/2013/3/33/Tn-2013-jmslideshow-Arrow_right.png) no-repeat 50% 50%;
 +
    right: -10px;
}
}

Latest revision as of 12:38, 28 September 2013

@import url(http://fonts.googleapis.com/css?family=Boogaloo); @import url(http://fonts.googleapis.com/css?family=Cabin); @import url(http://fonts.googleapis.com/css?family=Kameron); @import url(http://fonts.googleapis.com/css?family=Marck+Script); @import url(http://fonts.googleapis.com/css?family=Mouse+Memoirs); @import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300italic); @import url(http://fonts.googleapis.com/css?family=PT+Sans);

/*Hides WIKI default template*/ html,body {

   padding: 0;
   margin: 0;
   overflow: auto;
   background: none;

}

  1. contentSub,#search-controls,.firstHeading,#footer-box,#catlinks,#p-logo,#mw-panel,#mw-head,#footer,#mw-page-base,#mw-head-base {
   display: none;

}

  1. content {
   display: none;

}

  1. tn-main-wrap-wrap {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   padding: 0;
   margin: 0;
   z-index: 2;
   
   overflow: auto;
   -webkit-overflow-scrolling: touch;

}

  1. tn-main-wrap {
   margin: 0;
   padding: 0;
   width: 100%;
   /*min-width: 1280px;*/
   font-size: 16px;
   background-color: rgba(31, 68, 87, 0.9);

}

  1. top-section {
   position: fixed;
   top: 0px;
   left: 0px;
   right: 0px;
   bottom: 0px;
   height: 100%;
   width: 100%;
   margin: 0;
   padding: 0;
   border: none;
   background: white;
   z-index: 1;
   display: none;

}

/*To hide button for debug mode*/ .tn-hidden {

   display: none;

}

/*Top menus (left/right)*/

  1. menubar {
   background: none !important;

}

  1. menubar ul li {
   color: white !important;

}

  1. menubar:hover {
   display: block;
   position: absolute;
   color: white;

}

  1. menubar:hover ul li {
   color: white;

}

.right-menu li a, .left-menu li a {

   display: inline-block;
   padding: 2px 5px;
   background: none;
   color: white !important;
   text-decoration: none;
   font-variant: small-caps;
   text-align: center;

}

.right-menu li a:hover, .left-menu li a:hover {

   background-color: white;
   border-radius: 5px;
   color: black !important;
   text-decoration: underline;

}

.left-menu > ul > li[style='color:white;cursor:default'] {

   display: none !important;

}

/*************/ /*JMSLIDESHOW*/ /*************/

.jms-slideshow {

   position: relative;
   width: 80%;
   max-width: 1400px;
   min-width: 640px;
   margin: 20px auto;
   height: 460px;

}

.jms-wrapper {

   width: auto;
   min-width: 600px;
   height: 440px;
   background-color: #fff;
   box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
   -webkit-background-clip: padding;
   -moz-background-clip: padding;    
   background-clip: padding-box;
   border: 10px solid #fff;
   border: 10px solid rgba(255, 255, 255, 0.9);
   outline: none;
   transition: background-color 1s linear;

}

/*steps*/

.step {

   width: 900px;
   height: 420px;
   display: block;
   transition: opacity 1s;

} .step:not(.active) {

   opacity: 0;

}

.jms-content{

   margin: 0px 370px 0px 20px;
   position: relative;
   clear: both;

}

/*links*/

a.jms-link{

   color: #fff;
   text-transform: uppercase;
   background: linear-gradient(top, #969696 0%,#727272 100%);
   padding: 8px 15px;
   display: inline-block;
   font-size: 16px;
   font-weight: bold;
   color: #fff;
   text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
   box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
   border: 1px solid #444;
   border-radius: 4px;
   opacity: 1;
   margin-top: 40px;
   clear: both;
   transition: all 0.4s ease-in-out 1s;

}

.step:not(.active) a.jms-link{

   opacity: 0;
   margin-top: 80px;

}

/*dots*/

.jms-dots{

   width: 100%;
   position: absolute;
   text-align: center;
   left: 0px;
   bottom: 20px;
   z-index: 2000;
   user-select: none;

}

.jms-dots > span{

   display: inline-block;
   position: relative;
   width: 12px;
   height: 12px;
   border-radius: 50%;
   background: #777;
   margin: 3px;
   cursor: pointer;
   box-shadow:
       1px 1px 1px rgba(0,0,0,0.1) inset,
       1px 1px 1px rgba(255,255,255,0.3);

}

.jms-dots span span {

   width: 8px;
   height: 8px;
   position: absolute;
   top: 2px;
   left: 2px;
   border-radius: 50%;
   background: transparent;

}

.jms-dots span.jms-dots-current span {

   width: 8px;
   height: 8px;
   position: absolute;
   top: 2px;
   left: 2px;
   border-radius: 50%;
   background: #ffffff;

}

/*arrows*/

.jms-arrows{

   user-select: none;

} .jms-arrows span{

   position: absolute;
   top: 50%;
   margin-top: -40px;
   height: 80px;
   width: 30px;
   cursor: pointer;
   z-index: 2000;
   box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
   border-radius: 3px;

} .jms-arrows span.jms-arrows-prev{

   background: #fff url(Tn-2013-jmslideshow-Arrow_left.png) no-repeat 50% 50%;
   left: -10px;

} .jms-arrows span.jms-arrows-next{

   background: #fff url(Tn-2013-jmslideshow-Arrow_right.png) no-repeat 50% 50%;
   right: -10px;

}