From a3c4f569060246f8a71265077c3dd33bf6a40a6d Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Sat, 6 May 2006 20:25:02 +0000 Subject: [PATCH] =?UTF-8?q?#177=20:=20introduction=20d'une=20css=20statiqu?= =?UTF-8?q?e=20minimale=20style=5Fprive=5Fdefaut.css=20qui=20gere=20les=20?= =?UTF-8?q?barres=20d'icones=20en=20cas=20de=20defaut=20de=20calcul=20du?= =?UTF-8?q?=20squelette=20style=5Fprive.html.=20L'interface=20priv=C3=A9e?= =?UTF-8?q?=20reste=20ainsi=20fonctionnel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 1 + ecrire/img_pack/style_prive_defaut.css | 139 +++++++++++++++++++++++++ ecrire/inc/presentation.php | 6 +- 3 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 ecrire/img_pack/style_prive_defaut.css diff --git a/.gitattributes b/.gitattributes index f87e7dd129..e115d00a50 100644 --- a/.gitattributes +++ b/.gitattributes @@ -309,6 +309,7 @@ ecrire/img_pack/site-24.gif -text ecrire/img_pack/spip_out.gif -text ecrire/img_pack/statistiques-24.gif -text ecrire/img_pack/statistiques-48.png -text +ecrire/img_pack/style_prive_defaut.css -text ecrire/img_pack/suivi-forum-24.gif -text ecrire/img_pack/suivi-petition-24.gif -text ecrire/img_pack/supprimer.gif -text diff --git a/ecrire/img_pack/style_prive_defaut.css b/ecrire/img_pack/style_prive_defaut.css new file mode 100644 index 0000000000..621d3a6919 --- /dev/null +++ b/ecrire/img_pack/style_prive_defaut.css @@ -0,0 +1,139 @@ +body { + font-family: Verdana,Arial,Sans,sans-serif; + border: 0px; +} + +/* + * Icones et bandeaux + */ + +.bandeau-principal { + background-color: white; + margin: 0px; + padding: 0px; + border-bottom: 1px solid black; +} + +.bandeau-icones { + background-color: white; + margin: 0px; + padding: 0px; + padding-bottom: 2px; + padding-top: 4px; +} + +.bandeau_sec .gauche { + margin-top: 0px; + padding: 2px; + padding-top: 0px; + background-color: white; + border-bottom: 1px solid black; + border-left: 1px solid black; + border-right: 1px solid black; + -moz-border-radius-bottomleft: 5px; + -moz-border-radius-bottomright: 5px; + z-index: 100; +} + +.bandeau-icones .separateur { + vertical-align: middle; + height: 100%; + width: 11px; + padding: 0px; + margin: 0px; + background-position: 5px 0px; +} +.bandeau_couleur { + padding-right: 4px; + padding-left: 4px; + font-family: verdana, helvetica, arial, sans; + font-size: 11px; + color: black; + text-align: center; + font-weight: bold; + height: 22px; +} + +.bandeau_couleur_sous { + position: absolute; + visibility: hidden; + top: 0px; + color: black; + padding: 5px; + padding-top: 2px; + font-family: verdana, helvetica, arial, sans; + font-size: 11px; + border-bottom: 1px solid white; + border-right: 1px solid white; + -moz-border-radius-bottomleft: 5px; + -moz-border-radius-bottomright: 5px; +} + +a.lien_sous { + color: #666666; +} +a.lien_sous:hover { + color: black; +} + + +div.bandeau_rubriques { + background-color: #eeeeee; + border: 1px solid #555555; +} +a.bandeau_rub { + display: block; + font-size: 10px; + padding: 2px; + color: #666666; + text-decoration: none; + border-bottom: 1px solid #cccccc; + background-repeat: no-repeat; +} +a.bandeau_rub:hover { + background-color: white; + text-decoration: none; + color: #333333; + background-repeat: no-repeat; +} +div.bandeau_rub { + position: absolute; + top: 4px; + background-color: #eeeeee; + padding: 0px; + border: 1px solid #555555; + visibility: hidden; +} + +div.pos_r { + position: relative; +} + +option.selec_rub { + background-repeat: no-repeat; +} + + +div.messages { + padding: 5px; + font-size: 10px; + font-weight: bold; +} + + +/* Icones de fonctions */ + +a.icone26 { + font-family: verdana, helvetica, arial, sans; + font-size: 11px; + font-weight: bold; + color: black; + text-decoration: none; + padding: 1px; +} +a.icone26:hover { + text-decoration: none; +} +a.icone26 img { + vertical-align: middle; +} \ No newline at end of file diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index 4360a6f09e..35af0e2c2c 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -1575,7 +1575,11 @@ function envoi_link($nom_site_spip, $rubrique="") { $res = '<link rel="stylesheet" type="text/css" href="' . find_in_path('spip_style.css').'" />' - // CSS espace prive + // CSS de secours en cas de non fonct de la suivante + . '<link rel="stylesheet" type="text/css" href="' . _DIR_IMG_PACK + . 'style_prive_defaut.css" />' + + // CSS espace prive : la vrai . '<link rel="stylesheet" type="text/css" href="' . generer_url_public('style_prive', $args) .'" /> ' -- GitLab