Skip to content
Extraits de code Groupes Projets
Valider f389ffba rédigé par ARNO*'s avatar ARNO*
Parcourir les fichiers

CSS avec adresses absolues

parent c71750d1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1039,7 +1039,7 @@ function spip_initialisation($pi=NULL, $pa=NULL, $ti=NULL, $ta=NULL) { ...@@ -1039,7 +1039,7 @@ function spip_initialisation($pi=NULL, $pa=NULL, $ti=NULL, $ta=NULL) {
static $too_late = 0; static $too_late = 0;
if ($too_late++) return; if ($too_late++) return;
define('_DIR_IMG', $pa); define('_DIR_IMG', $pa);
define('_DIR_LOGOS', $pa); define('_DIR_LOGOS', $pa);
define('_DIR_IMG_ICONES', _DIR_LOGOS . "icones/"); define('_DIR_IMG_ICONES', _DIR_LOGOS . "icones/");
......
...@@ -130,7 +130,7 @@ select.fondl { padding: 0; } ...@@ -130,7 +130,7 @@ select.fondl { padding: 0; }
#bandeau-principal a {cursor:hand;} #bandeau-principal a {cursor:hand;}
#bandeau-principal a .icon_fond { width: 48px; height: 48px; background: #GET{claire}; margin: auto; } #bandeau-principal a .icon_fond { width: 48px; height: 48px; background: #GET{claire}; margin: auto; }
#bandeau-principal a.selection .icon_fond { width: 48px; margin:auto } #bandeau-principal a.selection .icon_fond { width: 48px; margin:auto }
#bandeau-principal a:hover span.icon_fond { background:url(#EVAL{ _DIR_IMG_PACK}fond-gris-anim.gif); width: 48px; height: 48px; margin: auto; } #bandeau-principal a:hover span.icon_fond { background:url([(#CHEMIN{[(#EVAL{ _DIR_IMG_PACK})fond-gris-anim.gif]}|url_absolue)]); width: 48px; height: 48px; margin: auto; }
#bandeau-principal li.boutons_admin:hover .bandeau_sec, #bandeau-principal li.boutons_admin:hover .bandeau_sec,
#bandeau-principal li.boutons_admin.sfhover .bandeau_sec { display: block; } #bandeau-principal li.boutons_admin.sfhover .bandeau_sec { display: block; }
#bandeau-principal span.icon_fond span { background: center top no-repeat; height: 48px; display: block; width: 48px; margin: 0; } #bandeau-principal span.icon_fond span { background: center top no-repeat; height: 48px; display: block; width: 48px; margin: 0; }
......
<?php <?php
function image_bg ($img, $couleur, $pos="") { function image_bg ($img, $couleur, $pos="") {
if (function_exists("imagecreatetruecolor")) return "background: url(".extraire_attribut(image_sepia($img, $couleur), "src").") $pos;"; if (function_exists("imagecreatetruecolor")) return "background: url(".url_absolue(extraire_attribut(image_sepia($img, $couleur), "src")).") $pos;";
else return "background-color: #$couleur;"; else return "background-color: #$couleur;";
} }
......
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
/* * Formulaires */ /* * Formulaires */
.forml { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #f0f0f0; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url(../dist/win_width.htc); font-size: 12px; } .forml { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #f0f0f0; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url([(#CHEMIN{win_width.htc}|url_absolue)]); font-size: 12px; }
.formo { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #FFF; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url(../dist/win_width.htc); font-size: 12px; } .formo { margin-top: 0px; width: 100%; display: block; padding: 3px; background-color: #FFF; border: 1px solid #GET{claire}; background-position: center bottom; float: none; behavior: url([(#CHEMIN{win_width.htc}|url_absolue)]); font-size: 12px; }
.fondl { margin-top: 0px; padding: 3px; background-color: #e4e4e4; border: 1px solid #GET{claire}; background-position: center bottom; float: none; font-size: 11px; } .fondl { margin-top: 0px; padding: 3px; background-color: #e4e4e4; border: 1px solid #GET{claire}; background-position: center bottom; float: none; font-size: 11px; }
.fondo { .fondo {
margin-top: 0px; margin-top: 0px;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter