From 6d762946e65d9fc5f390045380b19b0dececbe2e Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Wed, 18 Aug 2004 21:30:58 +0000
Subject: [PATCH] =?UTF-8?q?modifs=20w3c=20&=20pr=C3=A9sentation=20des=20bo?=
 =?UTF-8?q?utons=20admin=20(Nicolas=20Krebs,=20Jaques=20Pyrat)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc_presentation.php3 |  8 ++++----
 inc-admin.php3               |  9 ++++-----
 spip_admin.css               | 12 +++++++++---
 3 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3
index 0dd6a25dfb..3b1a520b9a 100644
--- a/ecrire/inc_presentation.php3
+++ b/ecrire/inc_presentation.php3
@@ -2985,13 +2985,14 @@ function install_debut_html($titre = 'AUTO') {
 	if (!$charset = lire_meta('charset')) $charset = 'utf-8';
 	@Header("Content-Type: text/html; charset=$charset");
 
-	echo "<html><head>
+	echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
+	echo "\n<html><head>
 	<title>$titre</title>
 	<meta http-equiv='Expires' content='0'>
 	<meta http-equiv='cache-control' content='no-cache,no-store'>
 	<meta http-equiv='pragma' content='no-cache'>
 	<meta http-equiv='Content-Type' content='text/html; charset=$charset'>
-	<style>
+	<style type='text/css'>
 	<!--
 	a {text-decoration: none; }
 	A:Hover {color:#FF9900; text-decoration: underline;}
@@ -3004,7 +3005,7 @@ function install_debut_html($titre = 'AUTO') {
 	-->
 	</style>
 	</head>
-	<body bgcolor='#FFFFFF' text='#000000' link='#E86519' vlink='#6E003A' alink='#FF9900' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'";
+	<body bgcolor='#FFFFFF' text='#000000' link='#E86519' vlink='#6E003A' alink='#FF9900'";
 
 	if ($spip_lang_rtl) echo " dir='rtl'";
 
@@ -3017,7 +3018,6 @@ function install_debut_html($titre = 'AUTO') {
 
 function install_fin_html() {
 	echo '
-	</font>
 	</td></tr></table>
 	</center>
 	</body>
diff --git a/inc-admin.php3 b/inc-admin.php3
index c016aabca0..01b6f37c2e 100644
--- a/inc-admin.php3
+++ b/inc-admin.php3
@@ -59,9 +59,8 @@ function afficher_boutons_admin($pop) {
 
 	// Feuilles de style admin : d'abord la CSS officielle, puis la perso,
 	// puis celle du squelette (.spip-admin, cf. impression.css)
-	$ret .= "<link rel='stylesheet' href='spip_admin.css' type='text/css'>\n";
-	if (@file_exists('spip_admin_perso.css'))
-		$ret .= "<link rel='stylesheet' href='spip_admin_perso.css' type='text/css'>\n";
+	$ret .= "<link rel='stylesheet' href='spip_admin.css' type='text/css' />\n";
+	if (@file_exists('spip_admin_perso.css')) echo "\t<link rel='stylesheet' href='spip_admin_perso.css' type='text/css' />\n";
 	$ret .= '<div class="spip-admin-float">
 	<div class="spip-admin-bloc" dir="'.lang_dir($lang,'ltr','rtl').'">
 	<div class="spip-admin">
@@ -115,8 +114,8 @@ function page_debug($type,$texte,$fichier) {
 	@header('Content-Type: text/html; charset='.lire_meta('charset'));
 	echo "<html><head><title>Debug $type : $fichier</title>
 	<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
-	<link rel='stylesheet' href='spip_admin.css' type='text/css'>\n";
-	if (@file_exists('spip_admin_perso.css')) echo "<link rel='stylesheet' href='spip_admin_perso.css' type='text/css'>\n";
+	<link rel='stylesheet' href='spip_admin.css' type='text/css' />\n";
+	if (@file_exists('spip_admin_perso.css')) echo "\t<link rel='stylesheet' href='spip_admin_perso.css' type='text/css' />\n";
 	echo "</head><body>\n";
 	echo "<code>$fichier</code>\n";
 	echo '<div class="spip-admin-bloc">
diff --git a/spip_admin.css b/spip_admin.css
index 88cf9bdeaf..9cc90048fc 100644
--- a/spip_admin.css
+++ b/spip_admin.css
@@ -15,8 +15,6 @@
 	background-color: transparent;
 	font-size: 10px;
 	z-index: 100;
-	color: #6C3;
- /*	line-height: 3em; */
 }
 
 .spip-admin-bloc li {
@@ -36,7 +34,8 @@ a.spip-admin-boutons {
 	text-decoration: none;
 	width: 3em;
 	text-align: center;
-	margin: 1em 0;
+	margin: 0;
+	padding: 1px .5em;
 	font-family: helvetica,arial,sans-serif;
 	font-size: 10px;
 	font-weight: bold;
@@ -44,6 +43,13 @@ a.spip-admin-boutons {
 	color: #0c479d;
 }
 
+a:hover.spip-admin-boutons {
+	background-color: #fc3;
+	border-bottom: 2px solid #36f;
+}
+
 a:active.spip-admin-boutons {
 	background-color: #ccc;
+	border-bottom: 2px solid #f00;
 }
+
-- 
GitLab