MediaWiki:Epub.css
Jump to navigation
Jump to search
Note: After saving, changes may not occur immediately. Click here to learn how to bypass your browser's cache.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Cmd-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (Cmd-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* This stylesheet affects the style used for ePub export via wsexport. */
.mw-parser-output {
text-align: justify; /* most text is justified */
}
/*
* Used for centered images
*
* Copies site-global CSS in load.php
*/
.center {
width: 100%;
text-align: center;
}
.center * {
margin-left: auto;
margin-right: auto;
}
/*
* Left/right-floated images
* e.g. [[File:Foo.jpg|left]]
*/
.floatleft {
float: left;
clear: left;
}
.floatright {
float: right;
clear: right;
}
.tiInherit,
/* this one is to override some e-readers' own "helpful" CSS */
.tiInherit p {
text-indent: inherit;
}
/*
* Sidenotes
*/
.wst-sidenote-right,
.wst-sidenote-left {
margin:0.5em;
padding:3px;
max-width:9em;
text-indent:0;
text-align:left;
}
.wst-sidenote-right {
float:right;
}
.wst-sidenote-left{
float:left;
}
/*
* Use the same formatting choices as on-wiki for consistency
*/
dt {
font-weight: bold;
margin-bottom: 0.1em;
}
/**
* Remove this forced background color as the dots are not exported
*/
.toc-line-entry-text {
background: transparent !important;
}
/* Prevent huge DHR's which usually result in content disappearing over page
* breaks */
.wst-dhr {
line-height: 100% !important;
}
/* Make sure tables fit on the page (even if a manual size if set) */
/* and generally avoid breaking in the middle of them */
table {
max-width: 100%;
break-inside: avoid;
}
/*
* Centre table header like on-wiki
*/
table caption {
text-align: center;
}
/*
* The double-float for the drop initials works for the margins on the inner
* initial, but it trips up some Epub engine, so nerf it for now.
* Eventually, the margins on {{di}} should be set on the top element and this
* will be easier.
*/
.ws-poem-hi span.dropinitial-initial {
float:none;
}
/*
* Disable "helpful" auto-indents for poems in some e-readers
* (note: this means using <poem> is better than <br/>, which has no semantic
* content and can't be used to target this styling)
*/
.poem, .poem p {
text-indent: 0;
}
/*
* Disable the indented-page pagenumber margin styles
*/
.indented-page, .prose {
margin: inherit;
padding: inherit;
}
/* This generally doesn't export well, so fall back on the inner em-dashes
* revisit this if it can be improved in readers */
.wst-bar-inner {
color: inherit !important;
}
.wst-bar {
text-decoration: inherit !important;
}
/* normally this would not be included anyway as exports don't come from the page NS,
* but sometimes it's useful to do so when debugging EPUBs */
.prp-page-qualityheader {
display: none;
}
/* Workaround for T345723 */
.mw-halign-center {
display: block;
}