MediaWiki:Common.css: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Dinoguy1000
mNo edit summary
imported>Dinoguy1000
No edit summary
Line 1: Line 1:
/*
/*


After editing, you can see changes by bypassing your browser's cache:
{{MediaWiki:Clearyourcache}}
* '''Internet Explorer''': Press ''Ctrl-F5''
* '''Mozilla/Safari''': Hold ''Shift'' and click ''Reload'' (or press ''Ctrl-Shift-R'')
* '''Opera/Konqueror''': Press ''F5''


You may also want to have a look at Wikipedia's [[wikipedia:MediaWiki:Common.css|MediaWiki:Common.css]] for inspiration, or [[wikipedia:Wikipedia:Catalogue of CSS classes|Wikipedia:Catalogue of CSS classes]] for reference material (not sure how applicable it is here, though...).
You may also want to have a look at Wikipedia's [[wikipedia:MediaWiki:Common.css|MediaWiki:Common.css]] for inspiration, or [[wikipedia:Wikipedia:Catalogue of CSS classes|Wikipedia:Catalogue of CSS classes]] for reference material (not sure how applicable it is here, though...).
Line 12: Line 9:
<pre><nowiki> */
<pre><nowiki> */


/* style rules for the GRAF tables */
/**********************************
*
style rules for the GRAF tables
*
**********************************/
 
table.graf {
table.graf {
   width: 100%;
   width: 100%;
Line 29: Line 31:
}
}


/* style rules for format pages */
/**********************************
*
* style rules for format pages
*
**********************************/
 
.formatpageformatdescription {
.formatpageformatdescription {
   font-weight: bold;
   font-weight: bold;
Line 44: Line 51:
}
}


/* general-purpose styles */
/**********************************
*
* general-purpose styles
*
**********************************/
 
/**********************************
*
* text colors
*
**********************************/


/* text colors */
.blue {
.blue {
   color: #0000FF;
   color: #0000FF;
Line 65: Line 81:
}
}


/* text styles and decorations */
/**********************************
*
* text styles and decorations
*
**********************************/
 
.bold, .b {
.bold, .b {
   font-weight: bold;
   font-weight: bold;
Line 90: Line 111:
}
}


/* imported from Wikipedia */
/**********************************
*
* imported from Wikipedia
*
**********************************/
 
 
/**********************************
*
* wikitable class
*
**********************************/


/* wikitable class */
table.wikitable {
table.wikitable {
   margin: 1em 1em 1em 0;
   margin: 1em 1em 1em 0;
Line 120: Line 151:
}
}


/* navbox class */
/**********************************
*
* navbox class
*
**********************************/
 
table.navbox {
table.navbox {
     background-color: #f9f9f9;
     background-color: #f9f9f9;
Line 146: Line 182:
         display: none;
         display: none;
     }
     }
}
/**********************************
*
* messagebox classes
*
**********************************/
.messagebox {
  border: 1px solid #aaa;
  background-color: #f9f9f9;
  width: 80%;
  margin: 0 auto 1em auto;
  padding: .2em;
}
.messagebox.merge {
  border: 1px solid #c0b8cc;
  background-color: #f0e5ff;
  text-align: center;
}
.messagebox.cleanup {
  border: 1px solid #9f9fff;
  background-color: #efefff;
  text-align: center;
}
.messagebox.standard-talk {
  border: 1px solid #c0c090;
  background-color: #f8eaba;
}
.messagebox.nested-talk {
  border: 1px solid #c0c090;
  background-color: #f8eaba;
  width: 100%;
  margin: 2px 4px 2px 4px;
}
.messagebox.small {
  width: 238px;
  font-size: 85%;
  float: right;
  clear: both;
  margin: 0 0 1em 1em;
  line-height: 1.25em;
}
.messagebox.small-talk {
  width: 238px;
  font-size: 85%;
  float: right;
  clear: both;
  margin: 0 0 1em 1em;
  line-height: 1.25em;
  background: #F8EABA;
}
}


/* </nowiki></pre> */
/* </nowiki></pre> */

Revision as of 22:08, 17 October 2007

/*

{{MediaWiki:Clearyourcache}}

You may also want to have a look at Wikipedia's [[wikipedia:MediaWiki:Common.css|MediaWiki:Common.css]] for inspiration, or [[wikipedia:Wikipedia:Catalogue of CSS classes|Wikipedia:Catalogue of CSS classes]] for reference material (not sure how applicable it is here, though...).

Always check with the [http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwiki.xentax.com%2Findex.php%3Ftitle%3DMediaWiki%3ACommon.css%26action%3Draw%26ctype%3Dtext%2Fcss&warning=1&profile=css3&usermedium=all CSS Validation Service] after any changes.

<pre><nowiki> */

/**********************************
 *
 *  style rules for the GRAF tables
 *
 **********************************/

table.graf {
  width: 100%;
  margin: 1em 1em 1em 0;
  border: 1px black solid;
  border-collapse: collapse;
}

table.graf th, table.graf td {
  border: 1px black solid;
  padding: 0.2em;
}

table.graf th {
  text-align: center;
}

/**********************************
 *
 * style rules for format pages
 *
 **********************************/

.formatpageformatdescription {
  font-weight: bold;
  font-family: monospace;
  text-align: left;
}

.formatpageblockdescription {
  color: #0000FF;
}

.formatpageconstant {
  color: #990099;
}

/**********************************
 *
 * general-purpose styles
 *
 **********************************/

/**********************************
 *
 * text colors
 *
 **********************************/

.blue {
  color: #0000FF;
}

.green {}

.white {
  color: #FFFFFF;
}

.black {
  color: #000000;
}

.purple {
  color: #990099;
}

/**********************************
 *
 * text styles and decorations
 *
 **********************************/

.bold, .b {
  font-weight: bold;
}

.italic, .i {
  font-style: italic;
}

.strike, .s {
  text-decoration: line-through;
}

.underline, .u {
  text-decoration: underline;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

/**********************************
 *
 * imported from Wikipedia
 *
 **********************************/


/**********************************
 *
 * wikitable class
 *
 **********************************/

table.wikitable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaa solid;
  border-collapse: collapse;
}
 
table.wikitable th, table.wikitable td {
  border: 1px #aaa solid;
  padding: 0.2em;
}
 
table.wikitable th {
  background: #f2f2f2;
  text-align: center;
}
 
table.wikitable caption {
  margin-left: inherit;
  margin-right: inherit;
  font-weight: bold;
}
 
table.wikitable code {
  background-color: transparent;
}

/**********************************
 *
 * navbox class
 *
 **********************************/

table.navbox {
    background-color: #f9f9f9;
    border: 1px solid #aaa;
    clear: both;
    font-size: 90%;
    margin: 1em 0em 0em;
    padding: 2px;
    text-align: center;
    width: 100%;
}
 
table.navbox th {
    background-color: #ccf;
    padding-left: 1em;
    padding-right: 1em;
}
 
table.navbox tr:not(:first-child) th {
    background-color: #ddf;
}
 
@media print {
    .navbox {
        display: none;
    }
}

/**********************************
 *
 * messagebox classes
 *
 **********************************/

.messagebox {
   border: 1px solid #aaa;
   background-color: #f9f9f9;
   width: 80%;
   margin: 0 auto 1em auto;
   padding: .2em;
}
.messagebox.merge {
   border: 1px solid #c0b8cc;
   background-color: #f0e5ff;
   text-align: center;
}
.messagebox.cleanup {
   border: 1px solid #9f9fff;
   background-color: #efefff;
   text-align: center;
}
.messagebox.standard-talk {
   border: 1px solid #c0c090;
   background-color: #f8eaba;
}
.messagebox.nested-talk {
   border: 1px solid #c0c090;
   background-color: #f8eaba;
   width: 100%;
   margin: 2px 4px 2px 4px;
}
.messagebox.small {
   width: 238px;
   font-size: 85%;
   float: right;
   clear: both;
   margin: 0 0 1em 1em;
   line-height: 1.25em; 
}
.messagebox.small-talk {
  width: 238px;
  font-size: 85%;
  float: right;
  clear: both;
  margin: 0 0 1em 1em;
  line-height: 1.25em; 
  background: #F8EABA;
}

/* </nowiki></pre> */