]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - skins/common/commonPrint.css
MediaWiki 1.17.0
[autoinstallsdev/mediawiki.git] / skins / common / commonPrint.css
index a7d49e3643728da1e908e0b839d241e1b0327fc9..56203aa468456ec2aa0bb194cd64deca70ba8872 100644 (file)
@@ -8,13 +8,15 @@
 
 /* Thanks to A List Apart (http://alistapart.com/) for useful extras */
 a.stub,
-a.new{ color:#ba0000; text-decoration:none; }
+a.new {
+       color: #ba0000;
+       text-decoration: none;
+}
 
-#toc { 
-    /*border:1px solid #2f6fab;*/
-    border:1px solid #aaaaaa;
-    background-color:#f9f9f9;
-    padding:5px;
+#toc {
+       border: 1px solid #aaaaaa;
+       background-color: #f9f9f9;
+       padding: 5px;
 }
 .tocindent {
        margin-left: 2em;
@@ -24,54 +26,67 @@ a.new{ color:#ba0000; text-decoration:none; }
 }
 
 /* images */
-div.floatright { 
-    float: right;
-    clear: right;
-    margin: 0;
-    position:relative;
-    border: 0.5em 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: 0.5em solid White;
-    border-width: 0.5em 1.4em 0.8em 0;
-}
-div.floatleft p { font-style: italic; } 
+div.floatright {
+       float: right;
+       clear: right;
+       position: relative;
+       margin: 0.5em 0 0.8em 1.4em;
+}
+div.floatright p {
+       font-style: italic;
+}
+div.floatleft {
+       float: left;
+       clear: left;
+       position: relative;
+       margin: 0.5em 1.4em 0.8em 0;
+}
+div.floatleft p {
+       font-style: italic;
+}
+div.center {
+       text-align: center;
+}
+
 /* thumbnails */
 div.thumb {
-    margin-bottom: 0.5em;
-    border-style: solid; border-color: White;
-    width: auto;
-    overflow: hidden;
-}
-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;
-    padding: 0.3em 0 0.1em 0;
-}
-div.magnify { display: none; }
+       border: none;
+       width: auto;
+       margin-top: 0.5em;
+       margin-bottom: 0.8em;
+       background-color: transparent;
+}
+div.thumbinner {
+       border:1px solid #cccccc;
+       padding: 3px !important;
+       background-color: White;
+       font-size: 94%;
+       text-align: center;
+       overflow: hidden;
+}
+html .thumbimage {
+       border: 1px solid #cccccc;
+}
+html .thumbcaption {
+       border: none;
+       text-align: left;
+       line-height: 1.4em;
+       padding: 3px !important;
+       font-size: 94%;
+}
+
+div.magnify {
+       display: none;
+}
 div.tright {
-    float: right;
-    clear: right;
-    border-width: 0.5em 0 0.8em 1.4em;
+       float: right;
+       clear: right;
+       margin: 0.5em 0 0.8em 1.4em;
 }
 div.tleft {
-    float: left;
-    margin-right:0.5em;
-    border-width: 0.5em 1.4em 0.8em 0;
+       float: left;
+       clear: left;
+       margin: 0.5em 1.4em 0.8em 0;
 }
 img.thumbborder {
        border: 1px solid #dddddd;
@@ -79,20 +94,20 @@ img.thumbborder {
 
 /* table standards */
 table.rimage {
-    float:right; 
-    width:1pt; 
-    position:relative;
-    margin-left:1em; 
-    margin-bottom:1em;
-    text-align:center;
+       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;
+       background: White;
+       /*font-size: 11pt !important;*/
+       color: Black;
+       margin: 0;
+       padding: 0;
 }
 
 .noprint,
@@ -108,35 +123,36 @@ div#f-copyrightico,
 li#viewcount,
 li#about,
 li#disclaimer,
-li#privacy {
-    /* Hides all the elements irrelevant for printing */
-    display: none;
+li#privacy,
+#footer-places,
+#mw-hidden-catlinks {
+       /* Hides all the elements irrelevant for printing */
+       display: none;
 }
 
-ul { 
-    list-style-type: square;
+ul {
+       list-style-type: square;
 }
 
 #content {
-    background: none;
-    border: none ! important;
-    padding: 0 ! important;
-    margin: 0 ! important;
+       background: none;
+       border: none ! important;
+       padding: 0 ! important;
+       margin: 0 ! important;
 }
 #footer {
        background : white;
        color : black;
-    border-top: 1px solid black;
+       border-top: 1px solid black;
 }
 
-h1, h2, h3, h4, h5, h6
-{
+h1, h2, h3, h4, h5, h6 {
        font-weight: bold;
 }
 
 p, .documentDescription {
-    margin: 1em 0 ! important;
-    line-height: 1.2em;
+       margin: 1em 0 ! important;
+       line-height: 1.2em;
 }
 
 .tocindent p {
@@ -144,55 +160,55 @@ p, .documentDescription {
 }
 
 pre {
-    border: 1pt dashed black;
-    white-space: pre;
-    font-size: 8pt;
-    overflow: auto;
-    padding: 1em 0;
-       background : white;
-       color : black;
+       border: 1pt dashed black;
+       white-space: pre;
+       font-size: 8pt;
+       overflow: auto;
+       padding: 1em 0;
+       background: white;
+       color: black;
 }
 
 table.listing,
 table.listing td {
-    border: 1pt solid black;
-    border-collapse: collapse;
+       border: 1pt solid black;
+       border-collapse: collapse;
 }
 
 a {
-    color: Black !important;
-    background: none !important;
-    padding: 0 !important;
+       color: Black !important;
+       background: none !important;
+       padding: 0 !important;
 }
 
 a:link, a:visited {
-    color: #520;
-    background: transparent;
-    text-decoration: underline;
+       color: #520;
+       background: transparent;
+       text-decoration: underline;
 }
 
 #content a.external.text:after, #content a.external.autonumber:after {
-    /* Expand URLs for printing */
-    content: " (" attr(href) ") ";
+       /* Expand URLs for printing */
+       content: " (" attr(href) ") ";
 }
 
 #globalWrapper {
-    width: 100% !important;
-    min-width: 0 !important;
+       width: 100% !important;
+       min-width: 0 !important;
 }
 
 #content {
-       background : white;
-       color : black;
+       background: white;
+       color: black;
 }
 
 #column-content {
-    margin: 0 !important;
+       margin: 0 !important;
 }
 
 #column-content #content {
-    padding: 1em;
-    margin: 0 !important;
+       padding: 1em;
+       margin: 0 !important;
 }
 /* MSIE/Win doesn't understand 'inherit' */
 a, a.external, a.new, a.stub {
@@ -206,88 +222,122 @@ a, a.external, a.new, a.stub {
        text-decoration: inherit ! important;
 }
 
-img { border: none; }
-img.tex { vertical-align: middle; }
-span.texhtml { font-family: serif; }
-
-div.townBox {
-    position:relative;
-    float:right;
-    background:White;
-    margin-left:1em;
-    border: 1px solid gray;
-    padding:0.3em;
-    width: 200px;
-    overflow: hidden;
-    clear: right;
-}
-div.townBox dl {
-    padding: 0;
-    margin: 0 0 0.3em 0; 
-    font-size: 96%;
-}
-div.townBox dl dt {
-    background: none;
-    margin: 0.4em 0 0 0;
-}
-div.townBox dl dd {
-    margin: 0.1em 0 0 1.1em;
-    background-color: #f3f3f3;
+img {
+       border: none;
+       vertical-align: middle;
 }
 
+/* math */
+span.texhtml { font-family: serif; }
+
 #siteNotice { display: none; }
 
-table.gallery {
-        border:  1px solid #cccccc;
-        margin:  2px;
-        padding: 2px;
-        background-color:#ffffff;
+/* Galleries (see shared.css for more info) */
+li.gallerybox {
+       vertical-align: top;
+       background-color: #f9f9f9;
+       border: solid 2px white;
+       display: -moz-inline-box;
+       display: inline-block;
+}
+
+ul.gallery, li.gallerybox {
+       zoom: 1;
+       *display: inline;
 }
 
-table.gallery tr { 
-        vertical-align:top;
+ul.gallery {
+       margin: 2px;
+       padding: 2px;
+       display: block;
 }
 
-div.gallerybox {
-        border: 1px solid #cccccc;
-        margin: 2px;
-        background-color:#f9f9f9;
-        width:  150px;
+li.gallerycaption {
+       font-weight: bold;
+       text-align: center;
+       display: block;
+       word-wrap: break-word;
 }
 
-div.gallerybox div.thumb {
-        text-align: center;
-        border: 1px solid #cccccc;
-        margin: 2px;
-}       
+li.gallerybox div.thumb {
+       text-align: center;
+       border: 1px solid #ccc;
+       margin: 2px;
+}
 
 div.gallerytext {
-        font-size: 94%;
-        padding: 2px 4px;
-}       
-
+       overflow: hidden;
+       font-size: 94%;
+       padding: 2px 4px;
+       word-wrap: break-word;
+}
 /*
 ** Diff rendering
 */
-table.diff { background:white; }
-td.diff-otitle { background:#ffffff; }
-td.diff-ntitle { background:#ffffff; }
+table.diff {
+       background: white;
+}
+td.diff-otitle {
+       background: #ffffff;
+}
+td.diff-ntitle {
+       background: #ffffff;
+}
 td.diff-addedline {
-    background:#ccffcc;
-    font-size: smaller;
-    border: solid 2px black;
+       background: #ccffcc;
+       font-size: smaller;
+       border: solid 2px black;
 }
 td.diff-deletedline {
-    background:#ffffaa;
-    font-size: smaller;
-    border: dotted 2px black;
+       background: #ffffaa;
+       font-size: smaller;
+       border: dotted 2px black;
 }
 td.diff-context {
-    background:#eeeeee;
-    font-size: smaller;
+       background: #eeeeee;
+       font-size: smaller;
 }
 .diffchange {
-    color: silver;
-    font-weight: bold;
-    text-decoration: underline;
+       color: silver;
+       font-weight: bold;
+       text-decoration: underline;
+}
+
+/*
+** Table rendering
+** As on shared.css but with white background.
+*/
+table.wikitable {
+       margin: 1em 1em 1em 0;
+       border: 1px #aaa solid;
+       background: white;
+       border-collapse: collapse;
+}
+.wikitable th, .wikitable td {
+       border: 1px #aaa solid;
+       padding: 0.2em;
+}
+.wikitable th {
+       text-align: center;
+       background: white;
+       font-weight: bold;
+}
+.wikitable caption {
+       font-weight: bold;
+}
+
+a.sortheader {
+       margin: 0px 0.3em;
+}
+
+/* Some pagination options */
+.wikitable, .thumb, img {
+       page-break-inside: avoid;
+}
+h2, h3, h4, h5, h6, h7 {
+       page-break-after: avoid;
+}
+p {
+       widows: 3;
+       orphans: 3;
 }