CSS/gifu/tab

From 2014.igem.org

(Difference between revisions)
 
(155 intermediate revisions not shown)
Line 11: Line 11:
#tab{
#tab{
clear:both;
clear:both;
-
margin-left:auto;     
+
margin-left:auto;     
-
    margin-right:auto;   
+
margin-right:auto;   
-
    text-align:left;     
+
text-align:left;     
 +
 
     width:70%;   
     width:70%;   
 +
font-size:16px;
 +
font-family:Calibri;
 +
  }
  }
-
.tab-white
+
 
-
{background:url(https://static.igem.org/mediawiki/2014/a/ab/Tab_white.png) no-repeat;
+
 
-
color: #000000;
+
.tab-white:link
-
font-size: 15px;
+
{color:#000000;
 +
background-image:url(https://static.igem.org/mediawiki/2014/a/ab/Tab_white.png);
 +
background-repeat:no-repeat ;
 +
background-position:center;
 +
text-decoration:none;
text-align: center;
text-align: center;
-
font-family:Century Gothic;
+
vertical-align:100%;
-
padding:10px;
+
width:180px;
-
width:100px;
+
height:50px;
-
height:60px;
+
padding:15px 15px 15px 15px;
-
margin-right:5px;
+
display:inline;
-
margin-top:5px;
+
overflow:auto;
-
margin-bottom:10px;
+
-
text-decolation:none;
+
}
}
-
.tab-gray
+
 
-
{background: url(https://static.igem.org/mediawiki/2014/a/ab/Tab_gray.png) no-repeat top;
+
.tab-white:hover
-
color: #ffffff;
+
{color:#000000;
-
font-size: 15px;
+
background-image:url(https://static.igem.org/mediawiki/2014/a/ab/Tab_white.png);
 +
background-repeat:no-repeat;
 +
background-position:center;
 +
text-decoration:none;
 +
text-align:center;
 +
vertical-align:100%;
 +
width:180px;
 +
height:50px;
 +
padding:15px 15px 15px 15px;
 +
display:inline;
 +
overflow:auto;
 +
}
 +
 
 +
.tab-gray:link
 +
{color:#ffffff;
 +
background-image:url(https://static.igem.org/mediawiki/2014/8/8a/Tab_gray1.png) ;
 +
background-repeat:no-repeat;
 +
background-position:center;
 +
text-decoration:none;
text-align: center;
text-align: center;
-
font-family:Century Gothic;
+
vertical-align:100%;
-
padding:10px;
+
width:180px;
-
width:100px;
+
height:50px;
-
height:60px;
+
padding:15px 15px 15px 15px;
-
margin-right:5px;
+
display:inline;
-
margin-top:5px;
+
overflow:auto;
-
margin-bottom:10px;
+
-
text-decolation:none;
+
}
}
.tab-gray:hover
.tab-gray:hover
-
{background: url(https://static.igem.org/mediawiki/2014/a/ab/Tab_gray.png) no-repeat bottom;
+
{color: #000000;
-
color: #000000;
+
background-image: url(https://static.igem.org/mediawiki/2014/3/3b/Tab_gray2.png);
-
font-size: 15px;
+
background-repeat:no-repeat;
-
text-align: center;
+
background-position:center;
-
font-family:Century Gothic;
+
text-decoration:none;
-
padding:10px;
+
text-align:center;
-
width:100px;
+
vertical-align:100%;
-
height:60px;
+
width:180px;
-
margin-right:5px;
+
height:50px;
-
margin-top:5px;
+
padding:15px 15px 15px 15px;
-
margin-bottom:10px;
+
display:inline;
-
text-decolation:none;}
+
overflow:auto;
 +
}
-
 
+
p.tab
-
.tabs {
+
{float:left;}
-
    position: relative;
+
-
    padding: 0;
+
-
margin-left:auto;   
+
-
    margin-right:auto; 
+
-
}
+
-
.tabs li {
+
-
    list-style: none;
+
-
    display: inline-block;
+
-
}
+
-
.tabs input[type=radio] {
+
-
    display: none;
+
-
}
+
-
.tabs label {
+
-
    display: block;
+
-
    cursor: pointer;
+
-
    padding: 5px;
+
-
    line-height: 20px;
+
-
    background-color: #999999;
+
-
    color: #ffffff;
+
-
}
+
-
.tabs label:hover {
+
-
    background-color: #cccccc;
+
-
    color: #000000;
+
-
}
+
-
.tabs input[type=radio]:checked + label {
+
-
    background-color: #ffffff;
+
-
    color: #000000;
+
-
}
+
-
.tabs .contents {
+
-
    display: none;
+
-
    position: absolute;
+
-
    top:30px;
+
-
    left: 0;
+
-
    padding: 10px;
+
-
    background: #f0f8ff;
+
-
}
+
-
.tabs input[type=radio]:checked + label + .contents{
+
-
    display: block;
+
-
}
+

Latest revision as of 09:55, 17 October 2014