MediaWiki:Epub.css

Wikisource, a biblioteca livre

Nota: Depois de publicar, poderá ter de contornar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer / Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
/* This stylesheet affects the style used for ePub export via wsexport. */

.mw-parser-output {
	text-align: justify; /* most text is justified */
}

/*
 * Force images to fit in their containers.
 * Specifically, this is to avoid them extending off the page
 */
.content a > img,
.content noscript > img {
  max-width:100% !important;
  height:auto !important
}

/*
 * Parsoid vertical alignment classes
 */
.mw-valign-middle {
  vertical-align: middle;
}
.mw-valign-baseline {
  vertical-align: baseline;
}
.mw-valign-sub {
  vertical-align: sub;
}
.mw-valign-super {
  vertical-align: super;
}
.mw-valign-top {
  vertical-align: top;
}
.mw-valign-text-top {
  vertical-align: text-top;
}
.mw-valign-bottom {
  vertical-align: bottom;
}
.mw-valign-text-bottom {
  vertical-align: text-bottom;
}

/*
 * Sidenotes
 */
.sidenote-right .sidenote-left {
  margin:0.5em;
  padding:3px;
  max-width:9em;
  text-indent:0;
  text-align:left;
}

.sidenote-right {
   float:right;
}

.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 */
.__dhr {
	line-height: 100% !important;
}

/*
 * Centre table header like on-wiki 
 */
table caption {
	text-align: center;
}