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
| <?php session_start();
header("Content-type: text/css");
include('../includes/connexion_ajax.php');
$liens_css = array();
$retour_maquette_css = $bdd->prepare("SELECT id FROM produits_effervescence WHERE selection = :sel ORDER BY id ASC LIMIT :debut, :fin");
$retour_maquette_css->bindValue(':sel', 1, PDO::PARAM_INT);
$retour_maquette_css->bindValue(':debut', 0, PDO::PARAM_INT);
$retour_maquette_css->bindValue(':fin', 14, PDO::PARAM_INT);
try {
$retour_maquette_css->execute();
}
catch (PDOException $e)
{
echo 'Error : ' . $e->getMessage();
die();
}
while ($res_maquette_css = $retour_maquette_css->fetch())
{
$liens_css[] = $res_maquette_css['id'];
}
end($liens_css);
$dernier_liens_css = key($liens_css);
$retour_maquette_css->closeCursor();
?>
#article35{width:850px;}
#article35 #demoWrap{width:11900px;}
#article35 #demoWrap #imgs ul li{width:850px;}
#article35 #demoWrap #wrap1:target ~ #imgs{margin-left:0px;}
#article35 #demoWrap #wrap2:target ~ #imgs{margin-left:-850px;}
#article35 #demoWrap #wrap3:target ~ #imgs{margin-left:-1700px;}
#article35 #demoWrap #wrap4:target ~ #imgs{margin-left:-2550px;}
#article35 #demoWrap #wrap5:target ~ #imgs{margin-left:-3400px;}
#article35 #demoWrap #wrap6:target ~ #imgs{margin-left:-4250px;}
#article35 #demoWrap #wrap7:target ~ #imgs{margin-left:-5100px;}
#article35 #demoWrap #wrap8:target ~ #imgs{margin-left:-5950px;}
#article35 #demoWrap #wrap9:target ~ #imgs{margin-left:-6800px;}
#article35 #demoWrap #wrap10:target ~ #imgs{margin-left:-7650px;}
#article35 #demoWrap #wrap11:target ~ #imgs{margin-left:-8500px;}
#article35 #demoWrap #wrap12:target ~ #imgs{margin-left:-9350px;}
#article35 #demoWrap #wrap13:target ~ #imgs{margin-left:-10200px;}
#article35 #demoWrap #wrap14:target ~ #imgs{margin-left:-11050px;}
#article35{
height:100%;
margin:0 auto;
background:transparent;
overflow:hidden;
}
#article35 #demoWrap{
position:relative;
height:auto;
display:inline-block;
}
#article35 #demoWrap a.ancre{
display:none;
}
#article35 #demoWrap #imgs{
-webkit-transition:all 1s ease;
-moz-transition:all 1s ease;
-ms-transition:all 1s ease;
-o-transition:all 1s ease;
transition:all 1s ease;
}
#article35 #demoWrap #imgs ul li{
position:relative;
float:left;
text-align:center;
height:100%;
padding:0 0 10px 0;
list-style:none;
margin-bottom:50px;
}
<?php
foreach ($liens_css as $cle_css => $val_css)
{?>
#slide<?php echo''.$cle_css.''; if ($liens_css[$cle_css] != $dernier_liens_css) echo',';?>
<?php } ?>
{
padding:20px 0 10px 0;
}
#article35 #demoWrap #imgs ul li::after,
#article35 #demoWrap #imgs ul li::before{
content:"";
position:absolute;
top:95%;
left:5%;
width:90%;
height:4px;
-webkit-border-radius:50%;
-moz-border-radius:50%;
border-radius:50%;
-webkit-box-shadow:0 50px 5px rgba(0,0,0,.7);
-moz-box-shadow:0 50px 5px rgba(0,0,0,.7);
box-shadow:0 50px 5px rgba(0,0,0,.7);
}
#article35 #demoWrap #imgs ul li::after{
top:95%;
left:5%;
width:90%;
height:2px;
-webkit-box-shadow:0 52px 3px rgba(0,0,0,.8);
-moz-box-shadow:0 52px 3px rgba(0,0,0,.8);
box-shadow:0 52px 3px rgba(0,0,0,.8);
}
#liens {
z-index:100;
width:100%;
text-align:center;
}
#liens a span img {
width:auto;
max-width:100%;
border:none;
filter: blur(3px);
-webkit-filter: blur(3px);
-moz-filter: blur(3px);
-o-filter: blur(3px);
-ms-filter: blur(3px);
}
#liens a span img:hover,
#liens a span img:focus{
filter: blur(0);
-webkit-filter: blur(0);
-moz-filter: blur(0);
-o-filter: blur(0);
-ms-filter: blur(0);
}
@media only screen and (max-width: 362px) {
#liens {display:none;}
}
#liens ul li:nth-child(1) a,
<?php
foreach ($liens_css as $key2 => $values_key2)
{?>#article35 #demoWrap #wrap<?php echo''.$key2.''?>:target ~ #liens a[href="#wrap<?php echo''.$key2.''?>"]<?php if ($liens_css[$key2] != $dernier_liens_css) echo',';?>
<?php } ?>
{
background:#000;
-webkit-box-shadow:0 -1px 0 rgba(255,255,255,.5) inset;
-moz-box-shadow:0 -1px 0 rgba(255,255,255,.5) inset;
box-shadow:0 -1px 0 rgba(255,255,255,.5) inset;
} |
Partager