Diferencia entre revisiones de «MediaWiki:Monobook.css»

De Eireapedia
Saltar a: navegación, buscar
(Nueva página: /* ATTENTION ADMINISTRATORS: This is the CSS for the Monobook skin only. Any major changes to this page or Common.css should be first proposed on the [[Wikip...)
 
m
 
(No se muestran 22 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
/*
+
/* wikitable/prettytable class for skinning normal tables */
ATTENTION ADMINISTRATORS:
+
table.wikitable,
 
+
table.prettytable {
This is the CSS for the Monobook skin only. Any major changes to this page
+
    margin: 1em 1em 1em 0;
or [[MediaWiki:Common.css|Common.css]] should be first proposed on
+
    background: #f9f9f9;
the [[Wikipedia:Village pump (technical)|Village pump]]. 
+
    border: 1px #aaa solid;
 
+
    border-collapse: collapse;
Furthermore, changes should probably be made in [[MediaWiki:Common.css]]
 
rather than this page.
 
 
 
Testing can be done on your own user Monobook.css. In [[Mozilla]] and
 
[[Opera (web browser)|Opera]], you can also test style changes dynamically
 
with the [http://www.squarefree.com/bookmarklets/webdevel.html test styles]
 
bookmarklet from squarefree.com. It pops up a window for adding style rules,
 
and updates the page as you type.)
 
 
 
Always check with the [http://tinyurl.com/2bwlye W3C CSS Validation Service]
 
after any changes.
 
 
 
Thank you.
 
*/
 
 
 
/* <pre><nowiki> */
 
 
 
/* Don't display some stuff on the main page */
 
body.page-Main_Page #deleteconfirm,
 
body.page-Main_Page #t-cite,
 
body.page-Main_Page #lastmod,
 
body.page-Main_Page #siteSub,
 
body.page-Main_Page h1.firstHeading {
 
    display: none !important;
 
 
}
 
}
  
/* Donations link to be uncommented during fund-raising drives  */
+
table.wikitable th, table.wikitable td,
#siteNotice {
+
table.prettytable th, table.prettytable td {
     margin-top: 5px;
+
     border: 1px #aaa solid;
     padding-left: 4px;
+
     padding: 0.2em;
    text-align: center;
 
    background-color: transparent;
 
 
}
 
}
  
/*
+
table.wikitable th,
#fundraising {
+
table.prettytable th {
 +
    background: #f2f2f2;
 
     text-align: center;
 
     text-align: center;
    border: 1px solid gray;
 
    padding: 5px;
 
 
}
 
}
*/
 
  
/* BEGIN LIGHT BLUE SECTION */
+
table.wikitable caption,
/* Make all non-namespace pages have a light blue content area. This is done by
+
table.prettytable caption {
  setting the background color for all #content areas to light blue and then
+
    margin-left: inherit;
  overriding it for any #content enclosed in a .ns-0 (main namespace). I then
+
    margin-right: inherit;
  do the same for the "tab" background colors. --Lupo */
+
     font-weight: bold;
 
 
#content {
 
     background: #F8FCFF; /* a light blue */
 
 
}
 
}
  
#content div.thumb {
+
table.prettytable code,
     border-color: #F8FCFF;
+
table.wikitable code {
 +
     background-color: transparent;
 
}
 
}
  
.ns-0 * #content {
+
/* default skin for navigation boxes */
    background: white;
+
table.navbox {
}
+
     background-color: #f9f9f9;
 
+
     border: 1px solid #aaa;
#p-cactions li a, #p-cactions li a:hover, #p-cactions li.selected a {
+
     clear: both;
     background-color: #F8FCFF;
+
     font-size: 90%;
}
+
     margin: 1em 0em 0em;
 
+
    padding: 2px;
.ns-0 * #p-cactions li a {
+
    text-align: center;
     background-color: #fbfbfb;
+
     width: 100%;
}
 
 
 
.ns-0 * #p-cactions li.selected a, .ns-0 * #p-cactions li a:hover {
 
    background-color: white;
 
}
 
 
 
.ns-0 * #content div.thumb {
 
     border-color: white;
 
}
 
 
 
/* END LIGHT BLUE SECTION */
 
 
 
/* block quotations */
 
#content blockquote {
 
     font-size: 93.75%; /* equivalent of 15px in 16px default */
 
     margin: 1em 1.6em; /* same indent as an unordered list */
 
}
 
#content blockquote p {
 
     line-height:inherit;
 
 
}
 
}
  
/* Display "From Wikipedia, the free encyclopedia" */
+
table.navbox th {
#siteSub {
+
     background-color: #ccf;
     display: inline;
+
     padding-left: 1em;
     font-size: 92%;
+
     padding-right: 1em;
     font-weight: normal;
 
 
}
 
}
 
/* Bold 'edit this page' link to encourage newcomers */
 
#ca-edit a { font-weight: bold !important; }
 
  
 
@media print {
 
@media print {
    /* Do not print edit link in templates using Template:Ed
+
     .navbox {
      Do not print certain classes that shouldn't appear on paper */
+
        display: none;
     .editlink, .noprint, .metadata, .dablink { display: none }
+
     }
     #content { background: #fff; } /* white background on print */
 
 
}
 
}
  
/* Accessibility experiment: make diff changes not just colour-based */  
+
/* Infobox template style */
 
+
.infobox {
.diffchange {
+
     border: 1px solid #aaa;
     font-weight: bold;
+
     background-color: #f9f9f9;
     background-color: inherit;
+
    color: black;
 +
    margin: 0.5em 0 0.5em 1em;
 +
    padding: 0.2em;
 +
    font-size:90%;
 +
    float: right;
 +
    clear: right;
 
}
 
}
 
+
.infobox td,
td.diff-addedline, td.diff-deletedline, td.diff-context {
+
.infobox th {
 
     vertical-align: top;
 
     vertical-align: top;
    font-size: 85%;
 
    color: inherit;
 
 
}
 
}
 
+
.infobox caption {
#pt-login {
+
     font-size: larger;
     font-weight: bold;
+
     margin-left: inherit;
     font-size: 110%;
 
 
}
 
}
 
+
.infobox.bordered {
p.error {
+
     border-collapse: collapse;
     font-weight: bold;
 
 
}
 
}
 
+
.infobox.bordered td,
/* Class styles */
+
.infobox.bordered th {
 
+
     border: 1px solid #aaa;
/* .toccolours added here because version in
 
  monobook/main.css wasn't being used by the print style */
 
.toccolours {  
 
     border:1px solid #aaa;
 
    background-color:#f9f9f9;
 
    padding:5px;
 
    font-size: 95%;
 
 
}
 
}
 
+
.infobox.bordered .borderless td,
/* Don't underline links in portlets/specialchars even with pref "Underline links:Always" */
+
.infobox.bordered .borderless th {
.portlet a, #editpage-specialchars a  { text-decoration: none }
+
     border: 0;
.portlet a:hover, #editpage-specialchars a:hover { text-decoration: underline }
 
 
 
/* Makes the background of a framed image white instead of gray. */
 
/* Only visible with transparent images. */
 
/* See #Framed_image_background_color */
 
div.thumb div a img {
 
     background-color:#fff;
 
 
}
 
}
  
/* For positioning icons at top-right, used in Templates
+
.infobox.sisterproject {
  "Spoken Article" and "Featured Article" */
+
     width: 20em;
div.topicon {
+
     font-size: 90%;
     position:absolute;  
 
     z-index:100;
 
    top:10px;
 
    display: block !important;
 
 
}
 
}
  
#coordinates {
+
@media print {
     position:absolute;
+
     .infobox.sisterproject {
    z-index:1;
+
        display: none;
    border:none;
+
     }
    background:none;
 
    right:30px;
 
    top:3.7em;
 
    float:right;
 
    margin:0.0em;
 
    padding:0.0em;
 
    line-height:1.5em;
 
    text-align:right;
 
    text-indent:0;
 
    font-size:85%;
 
    text-transform:none;
 
     white-space:nowrap;
 
 
}
 
}
  
.portlet li {
+
/* Messagebox templates */
    list-style-image: url("http://upload.wikimedia.org/wikipedia/en/1/18/Monobook-bullet.png");
+
.messagebox {
}
 
 
 
li.FA {
 
    list-style-image: url("http://upload.wikimedia.org/wikipedia/en/d/d4/Monobook-bullet-star.png");
 
}
 
 
 
/* Infobox template style */
 
.infobox {
 
 
     border: 1px solid #aaa;
 
     border: 1px solid #aaa;
 
     background-color: #f9f9f9;
 
     background-color: #f9f9f9;
     color: black;
+
     width: 80%;
 +
    margin: 0 auto 1em auto;
 +
    padding: .2em;
 +
}
 +
.messagebox.merge {
 +
    border: 1px solid #c0b8cc;
 +
    background-color: #f0e5ff;
 +
    text-align: center;
 
}
 
}
 
+
.messagebox.cleanup {
.infobox.bordered td,
+
     border: 1px solid #9f9fff;
.infobox.bordered th {
+
    background-color: #efefff;
     border: 1px solid #aaa;
+
    text-align: center;
 
}
 
}
 
+
.messagebox.standard-talk {
/* Styles for bordered infobox with merged rows */
+
     border: 1px solid #c0c090;
.infobox.bordered .mergedtoprow td,
+
     background-color: #f8eaba;
.infobox.bordered .mergedtoprow th {
 
     border-top: 1px solid #aaa;
 
     border-right: 1px solid #aaa;
 
 
}
 
}
 
+
.messagebox.nested-talk {
.gallerybox .thumb img {
+
    border: 1px solid #c0c090;
     background: #F9F9F9;
+
     background-color: #f8eaba;
 +
    width: 100%;
 +
    margin: 2px 4px 2px 4px;
 
}
 
}
 
+
.messagebox.small {
.infobox.bordered .mergedrow td,
+
    width: 238px;
.infobox.bordered .mergedrow th {
+
     font-size: 85%;
     border-right: 1px solid #aaa;
+
    float: right;
 +
    clear: both;
 +
    margin: 0 0 1em 1em;
 +
    line-height: 1.25em;  
 
}
 
}
 
+
.messagebox.small-talk {
/* Remove white border from thumbnails */
+
    width: 238px;
div.thumb {
+
    font-size: 85%;
     border: none;
+
    float: right;
 +
    clear: both;
 +
    margin: 0 0 1em 1em;
 +
    line-height: 1.25em;
 +
     background: #F8EABA;
 
}
 
}
  
div.tright {
+
body.page-Portada h1.firstHeading,
     border: none;
+
body.page-Eireapedia_Apoyo_al_proyecto h1.firstHeading,
    margin: 0.5em 0 0.8em 1.4em;
+
body.page-Eireapedia_Actualidad h1.firstHeading {
 +
     display:none;
 
}
 
}
  
div.tleft {
+
h2 .editsection {
     border: none;
+
     font-size: 60%;
    margin: 0.5em 1.4em 0.8em 0;
 
 
}
 
}
 
+
h3 .editsection {
/* Give transparent background to table on confirm deletion page */
+
     font-size: 66%;
form#deleteconfirm table {
 
     background-color:transparent;
 
 
}
 
}
 
+
h4 .editsection {
/* allow disabling of "external" color on internal links in some situations */
+
    font-size: 72%;
#bodyContent .plainlinks2 a.external[href^="http://en.wikipedia.org"] {
 
color: #002bb8 !important
 
 
}
 
}
 
/* </nowiki></pre> */
 

Revisión actual del 17:02 19 jul 2008

/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}

table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}

table.wikitable th,
table.prettytable th {
    background: #f2f2f2;
    text-align: center;
}

table.wikitable caption,
table.prettytable caption {
    margin-left: inherit;
    margin-right: inherit;
    font-weight: bold;
}

table.prettytable code,
table.wikitable code {
    background-color: transparent;
}

/* default skin for navigation boxes */
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;
}

@media print {
    .navbox {
        display: none;
    }
}

/* Infobox template style */
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    font-size:90%;
    float: right;
    clear: right;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox caption {
    font-size: larger;
    margin-left: inherit;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}

.infobox.sisterproject {
    width: 20em;
    font-size: 90%;
}

@media print {
    .infobox.sisterproject {
        display: none;
    }
}

/* Messagebox templates */
.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;
}

body.page-Portada h1.firstHeading,
body.page-Eireapedia_Apoyo_al_proyecto h1.firstHeading,
body.page-Eireapedia_Actualidad h1.firstHeading {
    display:none;
}

h2 .editsection {
    font-size: 60%;
}
h3 .editsection {
    font-size: 66%;
}
h4 .editsection {
    font-size: 72%;
}