From 9b2def7a5872c3049336d8976bce3097ca6e49d0 Mon Sep 17 00:00:00 2001
From: ARNO* <arno@rezo.net>
Date: Sat, 16 Oct 2004 13:09:49 +0000
Subject: [PATCH] Bouton depliage + alignement icones sous-rubriques dans
 naviguer

---
 ecrire/inc_layer.php3  |  4 ++--
 ecrire/naviguer.php3   |  4 ++--
 ecrire/spip_style.php3 | 10 ++++++++++
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ecrire/inc_layer.php3 b/ecrire/inc_layer.php3
index 182d4ba04c..21ebef1ae9 100644
--- a/ecrire/inc_layer.php3
+++ b/ecrire/inc_layer.php3
@@ -93,7 +93,7 @@ function bouton_block_invisible($nom_block) {
 			$javasc .= "swap_couche(\\'".$numero_block[$nom_block]."\\', \\'$spip_lang_rtl\\');";
 		}
 		$retour = "\n<script type='text/javascript'><!--\n";
-		$retour .= "document.write('<a href=\"javascript:$javasc\"><img name=\"triangle".$numero_block["$nom_block"]."\" src=\"".$dir_ecrire."img_pack/deplierhaut$spip_lang_rtl.gif\" alt=\"\" title=\"".addslashes(_T('info_deplier'))."\" width=\"10\" height=\"10\" border=\"0\"></a>');\n";
+		$retour .= "document.write('<a class=\"triangle_block\" href=\"javascript:$javasc\"><img name=\"triangle".$numero_block["$nom_block"]."\" src=\"".$dir_ecrire."img_pack/deplierhaut$spip_lang_rtl.gif\" alt=\"\" title=\"".addslashes(_T('info_deplier'))."\" width=\"10\" height=\"10\" border=\"0\"></a>');\n";
 		$retour .= "//-->\n";
 		$retour .= "</script>\n";
 
@@ -114,7 +114,7 @@ function bouton_block_visible($nom_block){
 			$numero_block["$nom_block"] = $compteur_block;
 		}
 
-		return "<a href=\"javascript:swap_couche('".$numero_block["$nom_block"]."', '$spip_lang_rtl')\"><IMG name='triangle".$numero_block["$nom_block"]."' src='".$dir_ecrire."img_pack/deplierbas.gif' alt='' title='".addslashes(_T('info_deplier'))."' width='10' height='10' border='0'></a>";
+		return "<a class=\"triangle_block\" href=\"javascript:swap_couche('".$numero_block["$nom_block"]."', '$spip_lang_rtl')\"><IMG name='triangle".$numero_block["$nom_block"]."' src='".$dir_ecrire."img_pack/deplierbas.gif' alt='' title='".addslashes(_T('info_deplier'))."' width='10' height='10' border='0'></a>";
 	}
 }
 
diff --git a/ecrire/naviguer.php3 b/ecrire/naviguer.php3
index 4ace7ff9f7..ada10e4218 100644
--- a/ecrire/naviguer.php3
+++ b/ecrire/naviguer.php3
@@ -54,8 +54,8 @@ function enfant($collection){
 				$hash = calculer_action_auteur ("reduire $w $h");
 
 //				$les_enfants.= "<img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h' align='right' />";
-				$les_enfants.= "<div style='position: absolute; right: 0px; top: 0px; width: ".$w."px;'><img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h' align='right' /></div>";
-				$les_enfants.= "<img src='img_pack/rien.gif' width='$w' height='$h' align='right' />";
+				$les_enfants.= "<div style='position: absolute; $spip_lang_right: 0px; top: 0px; width: ".$w."px;'><img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h' /></div>";
+				$les_enfants.= "<img src='img_pack/rien.gif' width='$w' height='$h' align='$spip_lang_right' />";
 				
 			}
 		}
diff --git a/ecrire/spip_style.php3 b/ecrire/spip_style.php3
index 15a8686cf7..56c380d63e 100644
--- a/ecrire/spip_style.php3
+++ b/ecrire/spip_style.php3
@@ -1308,6 +1308,16 @@ div.spip_poesie div {
 a.boutonlien:hover {color:#454545; text-decoration: none;}
 a.boutonlien {color:#808080; text-decoration: none;}
 
+a.triangle_block {
+	margin-top: -3px;
+	margin-bottom: -3px;
+	margin-<?php echo $right; ?>: -3px;
+}
+a.triangle_block:hover {
+	margin-<?php echo $left; ?>: 1px;
+	margin-<?php echo $right; ?>: -4px;
+}
+
 h3.spip {
 	margin-top : 40px;
 	margin-bottom : 40px;
-- 
GitLab