/*
** Mediawiki Print style sheet
** Copyright Gabriel Wicke, http://www.aulinx.de/
**
** Derived from the plone (http://plone.org/) styles
** Copyright Alexander Limi
*/

@page {
    size: A4 portrait;
    margin: 17mm 10mm 17mm 10mm;
}

h1 {
    string-set: header content();
}

@page :left {

@top-left {
    content: "Phpwiki";
  }
@top-right {
    content: string(header);
  }
@bottom-left {
    content: "Page " counter(page) " of " counter(pages);
  }
    }

@page :right {

@top-left {
    content: string(header);
  }
@top-right {
    content: "Phpwiki";
  }
@bottom-right {
    content: "Page " counter(page) " of " counter(pages);
  }
    }

@page :first {

@top-right {
    content: normal;
  }
@top-left {
    content: normal;
  }
    }

h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
}

/* Do not cut tables with class "nobreak" */

table.nobreak {
    page-break-inside: avoid !important;
}

/* Thanks to A List Apart (http://alistapart.com/) for useful extras */
a.stub,
a.new {
    color: #ba0000;
    text-decoration: none;
}

.toc,
#toc {
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    padding: 5px;
}

.tocindent {
    margin-left: 2em;
}

.tocline {
    margin-bottom: 0;
}

.toctoggle, .editsection {
    font-size: smaller;
}

div.toclist a::after {
    content: leader('.') target-counter(attr(href), page);
}

/* images */
div.floatright {
    float: right;
    margin: 0;
    position: relative;
    border: solid white;
    border-width: 0.5em 0 0.8em 1.4em;
}

div.floatright p {
    font-style: italic;
}

div.floatleft {
    float: left;
    margin: 0.3em 0.5em 0.5em 0;
    position: relative;
    border: solid white;
    border-width: 0.5em 1.4em 0.8em 0;
}

div.floatleft p {
    font-style: italic;
}

/* thumbnails */
div.thumb {
    margin-bottom: 0.5em;
    border: solid white;
    width: auto;
}

div.thumb div {
    border: 1px solid #cccccc;
    padding: 3px !important;
    background-color: #f9f9f9;
    font-size: 94%;
    text-align: center;
}

div.thumb div a img {
    border: 1px solid #cccccc;
}

div.thumb div div.thumbcaption {
    border: none;
    text-align: left;
    padding: 0.3em 0 0.1em 0;
}

div.magnify {
    display: none;
}

div.tright {
    float: right;
    border-width: 0.5em 0 0.8em 1.4em;
}

div.tleft {
    float: left;
    margin-right: 0.5em;
    border-width: 0.5em 1.4em 0.8em 0;
}

/* table standards */
table.rimage {
    float: right;
    width: 1pt;
    position: relative;
    margin-left: 1em;
    margin-bottom: 1em;
    text-align: center;
}

body {
    background: White;
    /*font-size: 11pt !important;*/
    color: Black;
    margin: 0;
    padding: 0;
}

div#p-personal,
div.top,
div#column-one,
#colophon,
.editsection,
.toctoggle,
div#f-poweredbyico,
div#f-opensourceexcellenceico,
ul#f-list,
div#html-validator,
li#pt-logout,
li#pt-login,
div#p-logo,
div.hint,
fieldset.wiki-rc-action,
span.debug {
    /* Hides all the elements irrelevant for printing */
    display: none;
}

ul {
    list-style-type: square;
}

#content {
    background: none;
    border-style: none ! important;
    font-size: 11pt;
    padding: 0 ! important;
    margin: 0 ! important;
    text-align: left;
}

#footer {
    border: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

p, .documentDescription {
    margin: 1em 0 ! important;
    line-height: 1.2em;
}

pre {
    border: 1pt dashed black;
    white-space: pre;
    font-size: 8pt;
    overflow: auto;
    padding: 0;
}

table.listing,
table.listing td {
    border: 1pt solid black;
    border-collapse: collapse;
}

a {
    color: Black !important;
    padding: 0 !important
}

a:link, a:visited {
    color: #520;
    background-color: transparent;
    text-decoration: underline;
}

#column-content {
    margin: 0 !important;
}

#column-content #content {
    padding: 1em;
    margin: 0 !important;
}

/* MSIE/Win doesn't understand 'inherit' */
a, a.external, a.new, a.stub {
    color: black ! important;
    text-decoration: none ! important;
}

/* Continue ... */
a, a.external, a.new, a.stub {
    color: inherit ! important;
    text-decoration: inherit ! important;
}
