Team:Grenoble/Design/css0
From 2011.igem.org
Maxime.huet (Talk | contribs) |
Maxime.huet (Talk | contribs) |
||
Line 219: | Line 219: | ||
{ | { | ||
height: 35px; | height: 35px; | ||
- | |||
margin-top: 10px; | margin-top: 10px; | ||
border: 1px solid #477CBF; | border: 1px solid #477CBF; | ||
Line 245: | Line 244: | ||
} | } | ||
- | ul.topnav { | + | .topnav |
+ | { | ||
+ | text-align: center; | ||
+ | color: #FFFFFF; | ||
+ | } | ||
+ | |||
+ | ul.topnav | ||
+ | { | ||
list-style: none; | list-style: none; | ||
padding: 0; | padding: 0; | ||
Line 252: | Line 258: | ||
width: 100%; | width: 100%; | ||
font-size: 15px; | font-size: 15px; | ||
- | |||
} | } | ||
ul.topnav li { | ul.topnav li { | ||
Line 259: | Line 264: | ||
padding: 0; | padding: 0; | ||
position: relative; /*--Declare X and Y axis base for sub navigation--*/ | position: relative; /*--Declare X and Y axis base for sub navigation--*/ | ||
- | |||
} | } | ||
ul.topnav li a { | ul.topnav li a { | ||
padding: 6px 20px 5px 20px; | padding: 6px 20px 5px 20px; | ||
- | |||
display: block; | display: block; | ||
text-decoration: none; | text-decoration: none; | ||
float: left; | float: left; | ||
- | |||
} | } | ||
- | ul.topnav > li > a { | + | ul.topnav > li > a |
+ | { | ||
height: 23px; | height: 23px; | ||
- | overflow: hidden;} | + | overflow: hidden; |
- | ul.topnav li:first-child a{ | + | } |
+ | |||
+ | ul.topnav li:first-child a | ||
+ | { | ||
padding-left: 0; | padding-left: 0; | ||
} | } | ||
- | ul.topnav li span { /*--Drop down trigger styles--*/ | + | |
+ | ul.topnav li span | ||
+ | { /*--Drop down trigger styles--*/ | ||
/*width: 17px;*/ | /*width: 17px;*/ | ||
/*height: 34px;*/ | /*height: 34px;*/ | ||
/*float: left;*/ | /*float: left;*/ | ||
/*background: url(https://static.igem.org/mediawiki/2011/4/45/Subnav_btn.gif) no-repeat center top;*/ | /*background: url(https://static.igem.org/mediawiki/2011/4/45/Subnav_btn.gif) no-repeat center top;*/ | ||
- | color: # | + | color: #0000FF; |
} | } | ||
- | ul.topnav li span.subhover {background-position: center bottom; cursor: pointer;} /*--Hover effect for trigger--*/ | + | ul.topnav li span.subhover |
+ | { | ||
+ | background-position: center bottom; | ||
+ | cursor: pointer; | ||
+ | } /*--Hover effect for trigger--*/ | ||
+ | |||
ul.topnav li ul.subnav { | ul.topnav li ul.subnav { | ||
z-index: 1; //Stay on top of slider | z-index: 1; //Stay on top of slider |
Revision as of 20:03, 22 October 2011
/* Enlever l'entête et le pied de page wiki, ainsi que les bords: (ce code garde les liens pour éditer le wiki)
- /
- contentSub, #search-controls, .firstHeading, #footer-box, #catlinks, #p-logo
{
display:none;
}
- top-section
{
border: none; height: 0px;
}
- content
{
border: none;
}
/* Coloration du menu en bleu, fond blanc ou transparent ? en tout cas menu invisible sauf si on passe dessus avec la souris
- /
.left-menu:hover {
background-color: transparent;
}
- menubar:hover
{
color: #0F174D;
}
- menubar li a
{
background-color: transparent; color: transparent;
}
- menubar:hover li a
{
color: #0F174D;
}
/* Enlever le "teams" de la bare wiki qui sert à rien, enlève également le Deconnexion
- /
- menubar > ul > li:last-child
{
display: none;
}
/*
Mise en page, en-tête, couleur de fond, bannière, etc...
- /
body,#content{
background: #ADD1FF;
}
- header
{
background: url("") no-repeat #ADD1FF; height: 160px; margin-left: 68px; margin-top: -24px; width: 829px; border: 1px solid #477CBF; -webkit-box-shadow: #666666 0px 2px 3px;
-moz-box-shadow: #666666 0px 2px 3px;
-webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; }
/*
- innercontent {
padding: 1px;} Important!
- /
/*
* * * Diaporama * * *
- /
.position_diapo { position: relative; overflow :hidden;
margin-top: 14px; width: 963px; height: 370px; border: 1px solid #477CBF; -webkit-box-shadow: #666666 0px 2px 3px;
-moz-box-shadow: #666666 0px 2px 3px;
-webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px;
background: #FFFFFF; }
.style_diapo .items { /* this cannot be too large */ width: 50000px; position: absolute; }
.items div { float: left; width: 963px; height: 370px; }
.prev { background: url() no-repeat; height: 74px; width: 74px; float:left; left:-12px; position: relative; margin-top: 148px ; cursor: pointer; }
.next { background: url() no-repeat; height: 74px; width: 74px; float:right; right:-12px; position: relative; margin-top: 148px ; cursor: pointer; }
.disabled { visibility: hidden; }
/* position and dimensions of the navigator */ .navi {
left: -56px; margin-left: 50%; position: relative; width: 112px;
}
.navi a { width: 8px; height: 8px; float: left; margin: 3px; background: url() 0 0 no-repeat; /*background: url() 0 0 no-repeat;*/ display: block; font-size: 1px; }
.navi a:hover { background-position: 0 -8px; }
.navi a.active { background-position: 0 -16px; }
/*
* * * Menu qui suit la fenêtre * * *
- /
.centering {
margin: 0 auto; width: 965px;
}
/* Sexy Drop Down Menu (thanks to sohtanaka.com) */
/*********************************************/
/*
ul.topnav > li > a:hover {
background: url() no-repeat center -1px;
padding-bottom: 1px;
border-bottom-width: 5px;}
- /
.navigation { height: 35px; margin-top: 10px; border: 1px solid #477CBF;
-webkit-box-shadow: #666666 0px 2px 3px;
-moz-box-shadow: #666666 0px 2px 3px;
-webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px;
background: url("") repeat-x scroll 0 -1px #222222;
z-index: 1;
/*
position: relative;
- /
}
.stickToTop
{
position: fixed; top:0; width:100%;
}
.topnav { text-align: center; color: #FFFFFF; }
ul.topnav { list-style: none; padding: 0; margin: 0; float: left; width: 100%; font-size: 15px; } ul.topnav li { float: left; margin: 0; padding: 0; position: relative; /*--Declare X and Y axis base for sub navigation--*/ } ul.topnav li a { padding: 6px 20px 5px 20px; display: block; text-decoration: none; float: left; } ul.topnav > li > a {
height: 23px; overflow: hidden;
}
ul.topnav li:first-child a { padding-left: 0; }
ul.topnav li span { /*--Drop down trigger styles--*/ /*width: 17px;*/ /*height: 34px;*/ /*float: left;*/ /*background: url() no-repeat center top;*/
color: #0000FF;
} ul.topnav li span.subhover { background-position: center bottom; cursor: pointer; } /*--Hover effect for trigger--*/
ul.topnav li ul.subnav {
z-index: 1; //Stay on top of slider
list-style: none; position: absolute; /*--Important - Keeps subnav from affecting main navigation flow--*/ left: 0; top: 35px; background: #333; margin: 0; padding: 0; display: none; float: left; border: 1px solid #111;
border-radius: 0 0 5px 5px;
} ul.topnav li ul.subnav li { margin: 0; padding: 0; border-top: 1px solid #252525; /*--Create bevel effect--*/ border-bottom: 1px solid #444; /*--Create bevel effect--*/ clear: both;
list-style: none outside none;
} ul.topnav li ul.subnav, ul.topnav li ul.subnav li {
width: 160px; text-align: center;
} ul.topnav li ul.subnav li:last-child{
border-radius: 0 0 5px 5px;
} html ul.topnav li ul.subnav li a { float: left; /*background: #333 url() no-repeat 10px center;*/
padding-left: 10px; padding-right: 10px; width: 140px;
} html ul.topnav li ul.subnav li a:last-child{
border-radius: 0 0 5px 5px;
} html ul.topnav li ul.subnav li a:hover { /*--Hover effect for subnav links--*/ background: #222 /*url() no-repeat 10px center*/; }
/* Redesigning Table Of Content */
/********************************/
table.toc, #toctitle, .toc #toctitle, #toc .toctitle, .toc .toctitle {
text-align: left;}
- toctitle {
margin: 5px 0;}
.toc, #toc {
background-color: #F6F6F6; border: 1px solid #CCCCCC; box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15); -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15); /* for the Safari browser*/ float: left; width: 228px; display: block; overflow: hidden; padding: 0;}
- toc ul, .toc ul {
margin: 0 5px 5px 5px;}
.toc ul li {
padding-left: 12px; text-indent: -12px; /*width: 200px;*/}
.toc ul li ul li {
padding-left: 30px; text-indent: -24px; /*width: 170px;*/}
- toc ul ul, .toc ul ul {
margin: 0;}
.toc {
margin-left: -250px; margin-top: 20px;}
.stickBelowNavigation {
position: fixed; top: 35px; left: 50%; margin-left: -462px;}
.tochidden {
position: static; margin-left: -250px;}