MediaWiki:Epub.css
Apparence
Note : après avoir enregistré vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : Maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ou Ctrl-R (⌘-R sur un Mac) ;
- Google Chrome : Appuyez sur Ctrl-Maj-R (⌘-Shift-R sur un Mac) ;
- Internet Explorer : Maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ;
- Opera : Allez dans Menu → Settings (Opera → Préférences sur un Mac) et ensuite à Confidentialité & sécurité → Effacer les données d'exploration → Images et fichiers en cache.
/*
Pour déployer les modifications il faut purger le cache de Wsexport via cette URL: http://tools.wmflabs.org/wsexport/tool/book.php?refresh=true&lang=fr
*/
@page { margin-top: 0.8em;margin-bottom: 0.8em;}
body { margin-left:0.5em;margin-right:0.5em;text-align:justify;}
/* Classes pour blocs */
p { text-indent: 1em;margin-top: 6px;margin-bottom:6px;display:block;line-height:120%;}
.center {text-align: center;text-indent: 0;}
.right {text-align: right;text-indent: 0;}
.alineanegatif {text-indent:-2em;padding-left:2em;margin-top: 6px;margin-bottom:6px;display:block;}
/* Titres */
h1, h2, h3, h4, h5, h6 {
text-align: center;
font-weight: normal;
line-height: inherit;
break-after: avoid; page-break-after: avoid;
break-inside: avoid; page-break-inside: avoid;
}
h1 {
font-size: 200%;
margin-top:72px;
margin-bottom:48px;
}
h2 {
font-size: 150%;
margin-top: 48px;
margin-bottom: 32px;
}
h3 {
font-size: 120%;
margin-top: 36px;
margin-bottom: 24px;
}
h4 {
font-size: 100%;
margin-top: 24px;
margin-bottom: 18px;
}
h5 {
font-size: 100%;
}
h6 {
font-size: 90%;
}
/* Éléments en ligne */
.i {font-style:italic;}
.b {font-weight:bold;}
.abbr {border:none;text-decoration:none;}
.sup {font-size: 0.875em;line-height: normal;vertical-align: super}
.maj {text-transform: uppercase;}
.sc, .sct, .romain, .personnage {font-variant:small-caps;}
.stc{letter-spacing:.1em;word-spacing:.1em;}
.romain {text-transform:lowercase;} /* chiffres romains */
.lettrine {font-size:1.35em;font-weight:bold;}
.lignecapitale:first-line {
font-variant:small-caps;
font-size:120%;
text-align: justify;
}
/* Notes */
.references {font-size: 80%; line-height: normal; }
sup.reference {padding-left: 1.07pt; }
/* Images */
img.sgc-1 {height: 100%; max-width: 100%;text-align:center;}
.mw-halign-right {
margin:0 0 0.5em 0.5em;
clear:right;
float:right
}
.mw-halign-left{
margin:0 0.5em 0.5em 0;
clear:left;
float:left;
}
.mw-halign-none{
clear:none;
float:none;
}
.mw-halign-center{
margin:0 auto;
display:table;
border-collapse:collapse;
clear:none;
float:none
}
/* Poésie et théâtre */
.poem { margin-bottom: 0; margin-top: 0; line-height: 1.6em; margin-left: 2.5em; text-indent: 0;}
.poem p { margin-top: 0 !important; margin-bottom: 0em !important; text-indent: 0em !important; }
.poem dd{ margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; margin-left:1em; }
.poem dl{ margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0;}
.personnage {
text-transform:lowercase;
text-transform:capitalize;
font-weight:bold;
}
.didascalie {
font-style: italic;
}
/* Notes de marge */
.sidenote-right {
float: right;
clear: right;
max-width: 8.5em;
padding: .2em;
text-indent: 0;
border: 1px solid gray;
margin: .4em;
overflow-wrap: break-word;
}
.sidenote-left {
float: left;
clear: left;
max-width: 8.5em;
padding: .2em;
text-indent: 0;
border: 1px solid gray;
margin: .4em;
overflow-wrap: break-word;
}