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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
| (...)
@charset "UTF-8";
/* Stylesheet */
body, div, a, ul, li, input, h1, h2, h3, h4, h5, h6, label {
margin: 0;
padding: 0;
border: 0;
outline: 0;
float: none;
-webkit-font-smoothing: auto;
}
/* Bloc menu */
nav {
font-family: Verdana, Arial;
font-size: 14px;
width: 150px;
height: auto;
position: fixed; /* Make it stick, even on scroll */
}
h3 {
background: #FF8727;
padding: 8px;
padding-left: 10px; /* Marge gauche */
position: relative;
color: #FFFFFF;
text-shadow: 2px 1px 1px #000000; /* Ombrage */
border: 0px;
}
h3:hover {
background: #CCCCCC;
color: #FF8727;
}
/* Sous-bloc */
ul {
height: auto;
display: none;
}
/* Lignes de sous-bloc */
li {
color: #FF8727;
background: #FFFFFF;
padding: 10px;
padding-left: 20px;
border-bottom: 1px solid #FF8727;
list-style: none;
}
li:hover {
color: #CCCCCC;
background: #FF8727;
}
li:last-child {
border-bottom: none;
}
a {
text-decoration: none;
}
a:link, a:visited {
color: #FFFFFF;
}
/* Lignes de sous-bloc */
li a {
font-size: 80%;
}
li a:link, a:visited {
color: #FF8727;
}
a:hover, li a:hover {
color: #CCCCCC;
border-radius: 5px;
}
#cat1, #cat2, #cat3, #cat4, #cat5 {
position: relative;
}
#cat1 [type="checkbox"]:checked + label + ul, #cat2 [type="checkbox"]:checked + label + ul, #cat3 [type="checkbox"]:checked + label + ul, #cat4 [type="checkbox"]:checked + label + ul, #cat5 [type="checkbox"]:checked + label + ul {
display: block;
}
#up {
display: block;
}
#link, #link a {
display: block;
}
/* Coche */
/* Cachons la case à cocher */
#main_menu_nav [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
position: absolute;
left: -9999px;
}
/* on prépare le label */
#main_menu_nav [type="checkbox"]:not(:checked) + label, [type="checkbox"]:checked + label {
padding-left: 150px;
padding-bottom: 36px;
left: 0;
top: 0;
cursor: pointer;
position: absolute;
}
/* Aspect général de la coche */
#main_menu_nav [type="checkbox"]:not(:checked) + label:after, [type="checkbox"]:checked + label:after {
content: '\25bc';
position: absolute;
top: 10px;
right: 10px;
font-size: 14px;
color: #CFCAC5;
transition: all .2s; /* Coloration de la coche */
}
#main_menu_nav label:before {
opacity: 0;
}
/* Aspect si "pas cochée" */
#main_menu_nav [type="checkbox"]:not(:checked) + label:after {
opacity: 0; /* coche invisible */
transform: scale(0); /* mise à l'échelle à 0 */
-webkit-transform: scale(0);
-moz-transform: scale(0);
-o-transform: scale(0);
-ms-transform: scale(0);
}
/* Aspect si "cochée" */
#main_menu_nav [type="checkbox"]:checked + label:after {
opacity: 1; /* coche opaque */
transform: scale(1); /* mise à l'échelle 1:1 */
-webkit-transform: scale(1);
-moz-transform: scale(1);
-o-transform: scale(1);
-ms-transform: scale(1);
}
#main_menu_nav label:hover:before {
content: '\25bc';
position: absolute;
top: 10px;
right: 10px;
font-size: 14px;
color: #FFFFFF;
transition: all .2s;
opacity: 1; /* coche opaque */
}
/* Coloration des sous-menus */
.transition_css {
transition: all .4s ease-out;
-webkit-transition : all .4s ease-out;
-moz-transition: all .4s ease-out;
-o-transition: all .4s ease-out;
-ms-transition: all .4s ease-out;
}
(...) |
Partager