From d3baaa43a58f78c0e626d29bab60ca993ae0b639 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 9 Jun 2010 06:52:43 +0000
Subject: [PATCH] =?UTF-8?q?La=20r=C3=A9f=C3=A9rence=20=C3=A0=20la=20classe?=
 =?UTF-8?q?=20{{{spip-large}}}=20dans=20le=20bouton=20de=20pr=C3=A9visuali?=
 =?UTF-8?q?sation=20ne=20fonctionnait=20pas=20faute=20de=20charger=20la=20?=
 =?UTF-8?q?feuille=20de=20styles=20qui=20la=20contenait.=20On=20introduit?=
 =?UTF-8?q?=20une=20classe=20{{{spip-previsu}}},=20ce=20qui=20permet=20de?=
 =?UTF-8?q?=20le=20faire=20dispara=C3=AEtre=20=C3=A0=20l'impression=20et?=
 =?UTF-8?q?=20d'all=C3=A9ger=20un=20peu=20le=20script=20incontournable=20{?=
 =?UTF-8?q?{{public.php}}}.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/public.php    | 18 ++++--------------
 prive/spip_style.css |  6 +++++-
 2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/ecrire/public.php b/ecrire/public.php
index 8614d8ed55..8181b3395e 100644
--- a/ecrire/public.php
+++ b/ecrire/public.php
@@ -127,20 +127,10 @@ if (isset($GLOBALS['_INC_PUBLIC'])) {
 	}
 
 	if ($var_preview AND $html) {
-		include_spip('inc/minipres'); // pour http_img_pack
-		$x = '<div class="spip_large" style="
-		display: block;
-		color: #eeeeee;
-		background-color: #111111;
-		padding-right: 5px;
-		padding-top: 2px;
-		padding-bottom: 5px;
-		top: 0px;
-		left: 0px;
-		position: absolute;
-		">' 
-		. http_img_pack('naviguer-site.png', _T('previsualisation'), '')
-		. '&nbsp;' . majuscules(_T('previsualisation')) . '</div>';
+		include_spip('inc/filtres'); // pour http_img_pack
+		$x = _T('previsualisation');
+		$x = http_img_pack('naviguer-site.png', $x) . '&nbsp;' . majuscules($x); 
+		$x = "<div class='spip-previsu'>$x</div>";
 		if (!$pos = strpos($page['texte'], '</body>'))
 			$pos = strlen($page['texte']);
 		$page['texte'] = substr_replace($page['texte'], $x, $pos, 0);
diff --git a/prive/spip_style.css b/prive/spip_style.css
index 723a214d75..28648c6187 100644
--- a/prive/spip_style.css
+++ b/prive/spip_style.css
@@ -57,4 +57,8 @@ a.spip_url { color: #009; } /* liens url sortants */
 a.spip_glossaire { color: #060; } /* liens vers encyclopedie */
 a.spip_glossaire:hover { text-decoration: underline overline; }
 a[hreflang]:after { content: "\0000a0(" attr(hreflang) ")"; }
-.on { font-weight: bold; } /* liens exposes */
\ No newline at end of file
+.on { font-weight: bold; } /* liens exposes */
+
+/* Couleurs et design de la previsu */
+.spip-previsu { background-color: #111111; color: #eeeeee; font-size: 18px; position: absolute; padding-right: 5px; padding-top: 2px; padding-bottom: 5px;top: 0px; left: 0px;
+}
-- 
GitLab