Difference between revisions of "MediaWiki:Common.css"

From WeBWorK_wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 10: Line 10:
 
}
 
}
   
#footer #f-list #privacy { display:none }
+
/*#footer #f-list #privacy { display:none }
  +
#footer #f-list #disclaimer { display:none }*/
 
#footer #f-list #about { display:none }
 
#footer #f-list #about { display:none }
#footer #f-list #disclaimer { display:none }
 
   
 
pre { font-size:110% }
 
pre { font-size:110% }
code { font-size:110% }
+
code { font-size:110%; white-space: nowrap; }
   
/* For Problem Techniques */
 
  +
/*JAA: From mediawiki.org
.pt_desc {
 
  +
/***** 2. COLOR CLASSES FOR CONTENT *****/
background-color: #eeeeee;
 
  +
border: black solid 1px;
 
  +
/* Border colors */
padding: 3px;
 
  +
.borderc1 { border-color: #e9e9e9; border-width: thin; } /* light grey */
font-style: italic;
 
  +
.borderc2 { border-color: #aaaaaa; border-width: thin; } /* grey (as toc) */
  +
.borderc3 { border-color: #777777; border-width: thin; } /* dark grey */
  +
.borderc4 { border-color: #000000; border-width: thin; } /* black */
  +
.borderc5 { border-color: #c00000; border-width: thin; } /* red */
  +
.borderc6 { border-color: #025e9d; border-width: thin; } /* blue */
  +
.borderc7 { border-color: #008040; border-width: thin; } /* green */
  +
.borderc8 { border-color: #ffcc00; border-width: thin; } /* yellow */
  +
  +
/* Background colors */
  +
.backgroundc1 { background-color: #ffffff; } /* white */
  +
.backgroundc2 { background-color: #f9f9f9; } /* light grey (as toc) */
  +
.backgroundc3 { background-color: #eeeeee; } /* light grey (headers) */
  +
.backgroundc4 { background-color: #e0e0e0; } /* more grey */
  +
.backgroundc5 { background-color: #d2d2d2; } /* more grey */
  +
.backgroundc6 { background-color: #b7b7b7; } /* more grey */
  +
.backgroundc7 { background-color: #a3a3a3; } /* darker grey */
  +
.backgroundc8 { background-color: #444455; } /* very dark grey */
  +
  +
/* Major warning - used on the main page template to warn against editing carelessly, but can be used elsewhere as well */
  +
.majorwarning {
  +
background: yellow;
  +
padding: 0.3em;
  +
text-align: center;
  +
font-size: 125%;
  +
border: 2px solid red;
 
}
 
}
table.pt {
 
  +
/* cellspacing="0" cellpadding="2" border="0" */
 
  +
/* Page headings used throughout the wiki (though not very much at the time of writing…) */
padding: 2px;
 
  +
.page-notice, .page-warning {
  +
border-width: 1px;
  +
border-style: solid;
  +
padding: 0.3em 0.5em;
  +
margin-bottom: 1em;
  +
width: 95%;
  +
margin-left: auto;
  +
margin-right: auto;
  +
text-align: center;
 
}
 
}
/*table.pt > tr {
 
  +
vertical-align: top;
 
  +
/* Informative notices at the top of pages (blue) */
}*/
 
  +
.page-notice {
table.pt > tr.head > td.code {
 
  +
background-color: #f9f9f9;
background-color: #ffffdd;
+
border-color: #025e9d;
border: black 1px dashed;
+
text-align: left;
 
}
 
}
table.pt > tr.head > td.exp {
 
  +
background-color: #ccccff;
 
  +
/* Warning information at the top of pages (red) */
padding: 7px;
 
  +
.page-warning {
  +
background-color: #ffffff;
  +
border-color: #c51919;
  +
border-width: 2px;
 
}
 
}
/*
 
  +
.pw-head {
table.pt tr.init td.code {
 
  +
color: #c51919;
background-color: #ddffdd;
 
  +
font-weight: bold;
border: black 1px dashed;
 
 
}
 
}
table.pt tr.init td.exp {
 
  +
background-color: #ccffcc;
 
  +
/* WikEd */
padding: 7px;
 
  +
}
 
  +
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
table.pt tr.setup td.code {
 
  +
document.write('<script type="text/javascript" src="'
background-color: #ffffdd;
 
  +
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
border: black 1px dashed;
 
  +
+ '&action=raw&ctype=text/javascript"></' + 'script>');
}
 
  +
table.pt tr.setup td.exp {
 
  +
/*For SyntaxHighlight extension */
background-color: #ffffcc;
 
  +
div.mw-geshi { padding: 1em; margin: 1em 0; border: 1px dashed #2f6fab; }
padding: 7px;
 
}
 
table.pt tr.text td.code {
 
background-color: #ffdddd;
 
border: black 1px dashed;
 
}
 
table.pt tr.text td.exp {
 
background-color: #ffcccc;
 
padding: 7px;
 
}
 
table.pt tr.ans td.code {
 
background-color: #eeddff;
 
border: black 1px dashed;
 
}
 
table.pt tr.ans td.exp {
 
background-color: #eeccff;
 
padding: 7px;
 
}*/
 

Latest revision as of 21:15, 27 July 2012

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

/* borrowed from WP */
.messagebox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    width: 80%;
    margin: 0 auto 1em auto;
    padding: .2em;
}

/*#footer #f-list #privacy { display:none }
#footer #f-list #disclaimer { display:none }*/
#footer #f-list #about { display:none }

pre { font-size:110% }
code { font-size:110%; white-space: nowrap; }

/*JAA: From mediawiki.org 
/***** 2. COLOR CLASSES FOR CONTENT  *****/

/* Border colors */
.borderc1 { border-color: #e9e9e9; border-width: thin; }  /* light grey */
.borderc2 { border-color: #aaaaaa; border-width: thin; }  /* grey (as toc) */
.borderc3 { border-color: #777777; border-width: thin; }  /* dark grey */
.borderc4 { border-color: #000000; border-width: thin; }  /* black */
.borderc5 { border-color: #c00000; border-width: thin; }  /* red */
.borderc6 { border-color: #025e9d; border-width: thin; }  /* blue */
.borderc7 { border-color: #008040; border-width: thin; }  /* green */
.borderc8 { border-color: #ffcc00; border-width: thin; }  /* yellow */

/* Background colors */
.backgroundc1 { background-color: #ffffff; }  /* white */
.backgroundc2 { background-color: #f9f9f9; }  /* light grey (as toc)  */
.backgroundc3 { background-color: #eeeeee; }  /* light grey (headers) */ 
.backgroundc4 { background-color: #e0e0e0; }  /* more grey */
.backgroundc5 { background-color: #d2d2d2; }  /* more grey */
.backgroundc6 { background-color: #b7b7b7; }  /* more grey */
.backgroundc7 { background-color: #a3a3a3; }  /* darker grey */
.backgroundc8 { background-color: #444455; }  /* very dark grey */

/* Major warning - used on the main page template to warn against editing carelessly, but can be used elsewhere as well */
.majorwarning {
	background: yellow; 
	padding: 0.3em; 
	text-align: center; 
	font-size: 125%; 
	border: 2px solid red;
}
 
/* Page headings used throughout the wiki (though not very much at the time of writing…) */ 
.page-notice, .page-warning {
	border-width: 1px; 
	border-style: solid;
	padding: 0.3em 0.5em;
	margin-bottom: 1em;
	width: 95%; 
	margin-left: auto; 
	margin-right: auto; 
	text-align: center;
}
 
/* Informative notices at the top of pages (blue) */
.page-notice {
	background-color: #f9f9f9;
	border-color: #025e9d; 
	text-align: left;
}
 
/* Warning information at the top of pages (red) */
.page-warning {
	background-color: #ffffff;
	border-color: #c51919;
	border-width: 2px;
}
.pw-head {
	color: #c51919;
	font-weight: bold;
}

/* WikEd */

// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');

/*For SyntaxHighlight extension */
div.mw-geshi {  padding: 1em;   margin: 1em 0;   border: 1px dashed #2f6fab; }