Changeset 32841

Show
Ignore:
Timestamp:
12.11.2009 01:08:38 (3 months ago)
Author:
marcimat@…
Message:

Cosmétique du pdf changé (pour le A4 uniquement).
- titre des chapitres en haut à gauche
- numéros de pages centrés en bas

Location:
_galaxie_/programmer.spip.org/plugin_documentation
Files:
1 added
6 modified

Legend:

Unmodified
Added
Removed
  • _galaxie_/programmer.spip.org/plugin_documentation/contenu/page-integrale.html

    r31890 r32841  
    1212[(#ENV{pas_de_couverture}|et{[(#ENV{id_rubrique}|non)]}) 
    1313        <div class="presentation"> 
     14                [<div class="image">(#CHEMIN{images/presentation.png} 
     15                        |image_reduire{500,400}|image_sepia{#ENV{couleur}})</div>] 
    1416                [<div class="chapo[ (#EDIT_CONFIG{meta::descriptif_site})]">(#DESCRIPTIF_SITE_SPIP)</div>] 
    1517        </div> 
  • _galaxie_/programmer.spip.org/plugin_documentation/documentation_options.php

    r32815 r32841  
    2828        include_spip('inc/lang'); 
    2929        $langues = explode(',', $GLOBALS['meta']['langues_multilingue']); 
    30         // si la langue est definie dans l'url (en/ ou fr/) on l'utilise 
    31         if (preg_match(',^' . $GLOBALS['meta']['adresse_site'] . '/(' . join('|',$langues) . ')/,', 'http://' . $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], $r)) { 
    32                 $langue = $r[1]; 
    33                 changer_langue($langue); 
    34         } else {         
    35                 $langue = utiliser_langue_visiteur(); 
    36                 if (!in_array($langue, $langues)) { 
    37                         $langue = $GLOBALS['meta']['langue_site']; 
    38                 } 
     30        $langue = utiliser_langue_visiteur(); 
     31        if (!in_array($langue, $langues)) { 
     32                $langue = $GLOBALS['meta']['langue_site']; 
    3933        } 
    4034        set_request('lang', $langue); 
  • _galaxie_/programmer.spip.org/plugin_documentation/habillage.css

    r32815 r32841  
    647647#posts .integrale .couverture_chapitre .image {padding:2em 1em 1em;} 
    648648 
    649 posts .integrale .presentation .chapo {margin:4em 0em; padding:1em 2em;} 
     649#posts .integrale .presentation .chapo {margin:4em 0em; padding:1em 2em;} 
     650#posts .integrale .presentation {padding-top: 6cm; } 
    650651 
    651652#posts .integrale .spip_code { font-style:inherit;} 
  • _galaxie_/programmer.spip.org/plugin_documentation/impression.css

    r32810 r32841  
    4545.integrale .page_vide {page:presentation; page-break-before:always;} 
    4646 
    47 .integrale .rubrique > h1 {page-break-before:always;} 
    48 .integrale .rubrique .rubrique > h1 {page-break-before:auto;} 
     47.integrale .rubrique {page-break-before:always;} 
     48.integrale .rubrique .rubrique {page-break-before:auto;} 
    4949 
    5050 
     
    7070 
    7171/* assign values to header/footer strings */ 
    72 .integrale .chapitre > h1 { string-set: chapter content(); } 
     72.integrale .chapitre > h1 { string-set: chapter "# " content(); font-family:bolonewt;} 
     73.integrale h1#tdm, 
     74.integrale h1#index { string-set: chapter "# " content();} 
    7375 
    7476.integrale .couverture .pied   { string-set: couverturepied content(); position:relative; left:-3000em; } 
     
    7779@page  { 
    7880        size: A4 portrait; 
    79         border-bottom:1px solid #ddd; 
     81         
    8082        padding:0 0 .5cm; 
    81         margin:2cm 3cm; 
    82         @bottom-left { 
    83                 content: string(chapter); 
    84                 vertical-align:top; 
    85                 color:#888; 
    86                 padding-left:40px; background:url(images/pied_icone.png) no-repeat left top; 
    87                 padding-bottom:8px; 
    88         }   
    89         @bottom-right { 
     83        margin:1.5cm 3cm 1cm; 
     84        @top-left { 
     85                content:""; 
     86                color:#aaa; 
     87                font-size:140%; 
     88                font-weight:bold; 
     89                font-family:bolonewt; 
     90                padding:5px; 
     91                margin-left:-2cm; 
     92        } 
     93        @bottom-center { 
     94                padding:5px; 
     95                font-size:120%; 
     96                font-weight:bold; 
     97                font-family:bolonewt; 
     98                /*border-top:1px solid #888;*/ 
     99                margin:0 7cm; 
    90100                content: counter(page);  
    91101                vertical-align:top; 
     
    93103        } 
    94104} 
     105 
     106@page:left { 
     107        @top-left {content: string(chapter);} 
     108} 
     109 
    95110@page couverture {  
    96111        border:3px solid #ddd; 
    97         padding:2cm .2em 1em; 
    98         margin:4cm 3cm; 
    99         @bottom-left { 
    100                 content: "";  
    101                 background:none; 
    102         }   
    103         @bottom-right { 
     112        padding:4cm .2em 1em; 
     113        margin:3cm 3cm; 
     114        @top-left {content:"";} 
     115        @bottom-center { 
     116                border:none; 
     117                margin:0; 
    104118                content: string(couverturepied); 
     119                font-size:100%; 
     120                text-align:right; 
    105121        } 
    106122} 
     
    109125        border:3px solid #ddd; 
    110126        padding:1cm; 
    111         margin:4cm 3cm; 
    112         @bottom-left { 
    113                 content: "";  
    114                 background:none; 
    115         }   
    116         @bottom-right { 
    117                 content: ""; 
     127        margin:3cm 3cm; 
     128        /*margin:4cm 3cm;*/ 
     129        @bottom-center { 
     130                margin-top:2cm; 
    118131        } 
     132} 
     133@page chapitre:left { 
     134        @top-left {content: "";} 
     135        @bottom-center {content: "";} 
    119136} 
    120137 
    121138@page presentation { 
    122139        padding:0 0 .5cm; 
    123         margin:2cm 3cm; 
    124         border:none; 
    125         @bottom-left { 
    126                 content: ""; 
    127                 background:none;  
    128         }   
    129         @bottom-right { 
    130                 content: ""; 
     140        @bottom-center { 
     141                content:""; 
     142                border:none; 
    131143        } 
    132144} 
  • _galaxie_/programmer.spip.org/plugin_documentation/inclure/couverture.html

    r31619 r32841  
    2222 
    2323        <div class="presentation"> 
     24                [<div class="image">(#CHEMIN{images/presentation.png} 
     25                        |image_reduire{500,400}|image_sepia{#ENV{couleur}})</div>] 
    2426                [<div class="chapo[ (#EDIT_CONFIG{meta::descriptif_site})]">(#DESCRIPTIF_SITE_SPIP)</div>] 
    2527        </div> 
  • _galaxie_/programmer.spip.org/plugin_documentation/plugin.xml

    r32815 r32841  
    55         
    66        <lien></lien> 
    7         <version>1.4.5</version> 
     7        <version>1.4.6</version> 
    88        <version_base>1.0.2</version_base> 
    99