From ed71f3c9d68b21f3131c6f34d99756266013ea96 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Sun, 27 Jan 2008 21:53:32 +0000
Subject: [PATCH] #1167 accessibilite au clavier des blocs deroulant de l'admin
 correction du rendu en langue rtl rendu a verifier sous ie penser a vider le
 cache

---
 dist/style_prive.html       | 8 +++++---
 ecrire/inc/layer.php        | 2 +-
 ecrire/inc/presentation.php | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/dist/style_prive.html b/dist/style_prive.html
index 7180d55747..191f1184ee 100644
--- a/dist/style_prive.html
+++ b/dist/style_prive.html
@@ -449,7 +449,9 @@ a.ical { background: url(#EVAL{ _DIR_IMG_PACK}wrapper.php?file=synchro-24.gif) n
 
 /* Titre d'une boite */
 .titrem { font-weight: bold; }
-div.titrem { display: block; padding-top: 6px; padding-bottom: 4px; background-repeat: no-repeat; background-position: [(#GET{left})] 6px; padding-#GET{left}: 16px; }
+div.titrem { display: block; padding-top: 6px; padding-bottom: 4px; background-repeat: no-repeat;position:relative;padding-[(#GET{left})]:16px;}
+div.titrem a.titremancre {padding:15px 0 0 16px;background-position: [(#GET{left})] top;background-repeat: no-repeat; position:absolute;[(#GET{left})]:0;}
+
 .cadre-couleur-foncee .titrem { background-color: #GET{foncee};color: #FFF; }
 .cadre-couleur-foncee .cadre_padding .titrem {color: #000; }
 .cadre-trait-couleur .titrem { background-color: #GET{foncee};color: #FFF; }
@@ -487,9 +489,9 @@ div.titrem { display: block; padding-top: 6px; padding-bottom: 4px; background-r
 .iconifier div div label {text-align: #GET{left};display: block; }
 
 /* Deplier / Replier */
-.replie, .deplie.hoverwait { background-image: url(#EVAL{ _DIR_IMG_PACK}wrapper.php?file=deplierhaut[(#ENV{ltr}|choixsiegal{#GET{left},'',_rtl})].gif); }
+.replie a.titremancre, .deplie.hoverwait a.titremancre { background-image: url(#EVAL{ _DIR_IMG_PACK}wrapper.php?file=deplierhaut[(#ENV{ltr}|choixsiegal{left,'',_rtl})].gif); }
 .hover { background-color: #GET{claire}; }
-.deplie, .replie.hoverwait { background-image: url(#EVAL{ _DIR_IMG_PACK}wrapper.php?file=deplierbas.gif); }
+.deplie a.titremancre, .replie.hoverwait a.titremancre { background-image: url(#EVAL{ _DIR_IMG_PACK}wrapper.php?file=deplierbas.gif); }
 .impliable {}
 .blocreplie { display: none; }
 .blocdeplie { display: block; background: none; }
diff --git a/ecrire/inc/layer.php b/ecrire/inc/layer.php
index 552f941ee6..9faab61e55 100644
--- a/ecrire/inc/layer.php
+++ b/ecrire/inc/layer.php
@@ -79,7 +79,7 @@ function bouton_block_depliable($texte,$deplie,$ids=""){
 	  	?""
 	  	:" onmouseover=\"jQuery(this).depliant('$cible');\""
 	  )
-	  .">$texte</div>"
+	  ."><a href=\"#\" onclick=\"jQuery(this).parent().toggleother('$cible')\" class='titremancre'></a>$texte</div>"
 	  .http_script( ($deplie==='incertain')
 			? "jQuery(document).ready(function(){if (jQuery('$cible').is(':visible')) $('#$bouton_id').addClass('deplie').removeClass('replie');});"
 			: '');
diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php
index 56423f3ebd..981c71490e 100644
--- a/ecrire/inc/presentation.php
+++ b/ecrire/inc/presentation.php
@@ -106,7 +106,7 @@ function debut_cadre($style, $icone = "", $fonction = "", $titre = "", $id="", $
 	."'$style_cadre>";
 
 	if ($spip_display != 1 AND $spip_display != 4 AND strlen($icone) > 1) {
-		$ret .= "\n<div style='position: absolute; top: -16px; $spip_lang_left: 10px;'>";
+		$ret .= "\n<div style='position: absolute; top: -16px; $spip_lang_left: 10px;z-index:100;'>";
 		if ($fonction) {
 			$ret .= "\n<div " . http_style_background($icone, "no-repeat; padding: 0px; margin: 0px") . ">"
 			. http_img_pack($fonction, "", "")
-- 
GitLab