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
|
#sliderLabel {
border:1px solid #a2a2a2;
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
cursor:pointer;
/* display:block;*/
display:inline-block; /* Permet de mettre le titre et le slider sur la même ligne */
vertical-align:-60%; /* Permet d'avoir un déclage pour le centrage vertical du titre du slider */
height:30px;
overflow:hidden;
position:relative;
width:100px;
}
#sliderLabel input {
display:none;
}
#sliderLabel input:checked + #slider {
left:0;
}
#slider {
left:-50px;
position:absolute;
top:0;
-webkit-transition:left .25s ease-out;
-moz-transition:left .25s ease-out;
-o-transition:left .25s ease-out;
-ms-transition:left .25s ease-out;
transition:left .25s ease-out;
}
#sliderOn,
#sliderBlock,
#sliderOff {
display:block;
font-family:arial,verdana,sans-serif;
font-weight:bold;
height:30px;
line-height:30px;
position:absolute;
text-align:center;
top:0;
}
#sliderOn {
background:#3269aa;
background:-webkit-linear-gradient(top,#3269aa 0%,#82b3f4 100%);
background:-moz-linear-gradient(top,#3269aa 0%,#82b3f4 100%);
background:-o-linear-gradient(top,#3269aa 0%,#82b3f4 100%);
background:-ms-linear-gradient(top,#3269aa 0%,#82b3f4 100%);
background:linear-gradient(top,#3269aa 0%,#82b3f4 100%);
color:white;
left:0;
width:54px;
}
#sliderBlock {
border:1px solid #a2a2a2;
background:#d9d9d8;
background:-webkit-linear-gradient(top,#d9d9d8 0%,#fcfcfc 100%);
background:-moz-linear-gradient(top,#d9d9d8 0%,#fcfcfc 100%);
background:-o-linear-gradient(top,#d9d9d8 0%,#fcfcfc 100%);
background:-ms-linear-gradient(top,#d9d9d8 0%,#fcfcfc 100%);
background:linear-gradient(top,#d9d9d8 0%,#fcfcfc 100%);
-webkit-border-radius:3px;
-moz-border-radius:3px;
border-radius:3px;
height:28px;
left:48px;
width:50px;
}
#sliderOff {
background:#f2f3f2;
background:-webkit-linear-gradient(top,#8b8c8b 0%,#f2f3f2 50%);
background:-moz-linear-gradient(top,#8b8c8b 0%,#f2f3f2 50%);
background:-o-linear-gradient(top,#8b8c8b 0%,#f2f3f2 50%);
background:-ms-linear-gradient(top,#8b8c8b 0%,#f2f3f2 50%);
background:linear-gradient(top,#8b8c8b 0%,#f2f3f2 50%);
color:#8b8b8b;
left:96px;
width:54px;
}
/* BOUTON OUI / NON PARTIEL */
/*
body {
font-family:arial;
}
*/
input[type=radio],
input[type=checkbox] {
display:none;
}
input[type=radio] + label,
input[type=checkbox] + label {
border:1px solid #ccc;
display: inline-block;
padding:6px 10px;
font-size:14px;
color:#333;
cursor:pointer;
background-color:#f5f5f5;
background-image:linear-gradient(to bottom,#fff,#e6e6e6);
background-repeat:repeat-x;
border-color:#e6e6e6 #e6e6e6 #bfbfbf;
border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
border-bottom-color:#b3b3b3;
box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
}
input[type=radio]:checked + label,
input[type=checkbox]:checked + label {
background-image:none;
outline:0;
box-shadow:inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
background-color:#F6E497; /*#FFF168;*/ /*#e0e0e0;*/
}
*{margin:0; padding:0;}
.box{background: red; height: 30px;} |
Partager