diff --git a/ecrire/public.php b/ecrire/public.php index 8614d8ed550f6e090181b9d095286d10e5aabbc6..8181b3395e3aa317420964c4c8eee0c34983eb9e 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'), '') - . ' ' . majuscules(_T('previsualisation')) . '</div>'; + include_spip('inc/filtres'); // pour http_img_pack + $x = _T('previsualisation'); + $x = http_img_pack('naviguer-site.png', $x) . ' ' . 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 723a214d754d0c7771ad6676ec1ae53e05788bb8..28648c61873010e23a67c9c86edcc0808dcc7280 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; +}