MediaWiki:Common.css

From FamilySearch Wiki

(Difference between revisions)
(update .url for more browsers)
(add table.FCK__ShowTableBorders)
Line 59: Line 59:
 
/* prettytable class for skinning normal tables
 
/* prettytable class for skinning normal tables
 
  */
 
  */
table.prettytable{
+
table.prettytable, table.FCK__ShowTableBorders{
 
margin: 1em 1em 1em 0;
 
margin: 1em 1em 1em 0;
 
background: #f9f9f9;
 
background: #f9f9f9;

Revision as of 20:04, 1 November 2012

___NORICHEDITOR___
/* CSS placed here will be applied to all skins */ 

/* Entries to counter wiki.css code that is disrupting the ability of text to flow */ 

#mainContent p {
 clear: none;
}

#contentSub {
 display: block;
 font-size: 84%;
 line-height: 1.2em;
 margin: 0 0 1.4em 1em;
 color: #7D7D7D;
 width: auto;
} 

dd {
 margin-bottom: 0.5em;
} 

/* Entries to counter wiki.css code for TOC */ 
#toc {
 width: auto;
} 

#toc ul {
 margin-top: 0px;
} 

#toc ul {
 margin-left: 1em;
} 

/* images */
div.floatright, table.floatright {
 clear: right;
 float: right;
 position: relative;
 margin: 0 0 .5em .5em;
 border: 0;
}

div.floatleft, table.floatleft {
 float: left;
 clear: left;
 position: relative;
 margin: 0 .5em .5em 0;
 border: 0;
} 

/* this can be used to switch off special external link styling */
plainlinks a {
 background: none !important;
 padding: 0 !important;
}

/* prettytable class for skinning normal tables
 */
table.prettytable, table.FCK__ShowTableBorders{
	margin: 1em 1em 1em 0;
	background: #f9f9f9;
	border: 1px #aaa solid;
	border-collapse: collapse;
	color: black;
	width: 100%;
}
.prettytable th, .prettytable td {
	border: 1px #aaa solid;
	padding: 0.2em;
}
.prettytable th {
	background: #f2f2f2;
	text-align: center;
}
.prettytable caption {
	font-weight: bold;
}

/* For linked citation numbers and document IDs, where
   the number need not be shown on a screen or a handheld,
   but should be included in the printed version */
@media screen, handheld {
    .citation *.printonly {
        display: none;
    }
}

/* Styling for url. Breaks long urls, etc., rather than overflowing box */
.url {
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;

        // Non standard for webkit 
    word-break: break-word;

    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}