1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
| * {
box-sizing: border-box; /* taille des boites width= contenu + padding + border */
}
body {
font-family: "Times New Roman", Times, serif;
font-size: 100%;
}
h1 {
text-align: center;
}
/* =====================================================================================*/
nav {
}
nav > ul {
height: 3em;
line-height: 2em;
font-size: 0.8em;
background: #e1e4f2;
border: 1px solid #48B;
border-radius: 2em;
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav a {
display: inline-block;
padding: 0.5em;
font-weight: bold;
text-align:center;
color: #00f;
text-decoration: none;
}
nav li ul a {
width: 150px;
}
/* =====================================================================================*/
/* ============== définition du premier niveau =====================*/
/* =====================================================================================*/
nav > ul > li {
margin: 0 1em;
float: left;
color: #666;
font-weight: normal;
}
nav li {
position: relative;
}
nav li ul {
position: absolute;
background: #FEFEFF;
border: solid 1px #48B;
}
nav li ul {
top: 100%;
left: 0;
}
nav li li ul {
top: -1px;
left: -100%;
}
nav li:nth-of-type(2) li ul {
top: -1px;
left: 100%;
}
/* =====================================================================================*/
nav li ul,
nav li:hover ul ul,
nav > ul ul li:hover ul ul {
display: none;
}
nav li:hover ul,
nav ul ul li:hover ul,
nav > ul ul ul li:hover ul {
display: block;
}
nav a:hover {
background: #4D90FE;
color: #fff;/*text-decoration: underline; */
}
a.plus:after{
content: "\25BA";
float:right;
color:#ABC;
}
a.moins:before{
content: "\25C4";
float:left;
color:#ABC;
} |
Partager