Diferència entre les revisions de "MediaWiki:Common.css"
Sense resum d'edició |
Sense resum d'edició |
||
| Llínea 1: | Llínea 1: | ||
/* Common CSS for all skins */ | /* Common CSS for all skins */ | ||
/*<pre><nowiki>*/ | /*<pre><nowiki>*/ | ||
/* Estilos para el CommonsTicker ([[Wikiproyecto:CommonsTicker]]) | /* Estilos para el CommonsTicker ([[Wikiproyecto:CommonsTicker]]) | ||
According to the CSS specs, @import rules must precede any other CSS rules in a stylesheet, | According to the CSS specs, @import rules must precede any other CSS rules in a stylesheet, | ||
so this creates the need to place it in its own stylesheet for these purposes. */ | so this creates the need to place it in its own stylesheet for these purposes. */ | ||
@import "/w/index.php?title=Wikiproyecto:CommonsTicker/styles.css&action=raw&ctype=text/css&smaxage=2678400"; | @import "/w/index.php?title=Wikiproyecto:CommonsTicker/styles.css&action=raw&ctype=text/css&smaxage=2678400"; | ||
/*InterProject */ | /*InterProject */ | ||
.interProject { | .interProject { | ||
display:none; | display:none; | ||
| Llínea 15: | Llínea 15: | ||
margin-top: 2em; | margin-top: 2em; | ||
} | } | ||
/* Evitar la aparición del subrayado al pasar sobre la imagen cuande se usa {{tl|clic}} */ | /* Evitar la aparición del subrayado al pasar sobre la imagen cuande se usa {{tl|clic}} */ | ||
.clic a:active, .clic a:hover {text-decoration:none} | .clic a:active, .clic a:hover {text-decoration:none} | ||
/* Style for "notices" */ | /* Style for "notices" */ | ||
.notice { | .notice { | ||
| Llínea 26: | Llínea 26: | ||
padding: 0.2em; | padding: 0.2em; | ||
} | } | ||
#disambig { | #disambig { | ||
border-top: 3px double #cccccc; | border-top: 3px double #cccccc; | ||
border-bottom: 3px double #cccccc; | border-bottom: 3px double #cccccc; | ||
} | } | ||
#spoiler { | #spoiler { | ||
border-top: 2px solid #ddd; | border-top: 2px solid #ddd; | ||
border-bottom:2px solid #ddd; | border-bottom:2px solid #ddd; | ||
} | } | ||
/* Standard talk template style */ | /* Standard talk template style */ | ||
.Talk-Notice { | .Talk-Notice { | ||
border: 1px solid #C0C090; | border: 1px solid #C0C090; | ||
| Llínea 48: | Llínea 48: | ||
margin-right: auto; | margin-right: auto; | ||
} | } | ||
/* Make template background appear correctly on all browsers */ | /* Make template background appear correctly on all browsers */ | ||
.Talk-Notice td { | .Talk-Notice td { | ||
background: inherit; | background: inherit; | ||
} | } | ||
/* Choose whether to have AD/BC dates or CE/BCE dates*/ | /* Choose whether to have AD/BC dates or CE/BCE dates*/ | ||
/* First, the default : display both : See templates ADCE and BCEBC for how these are used*/ | /* First, the default : display both : See templates ADCE and BCEBC for how these are used*/ | ||
.Use_Default_Date_Convention { display: inline; } | .Use_Default_Date_Convention { display: inline; } | ||
.Use_AD_and_BC { display: none; } | .Use_AD_and_BC { display: none; } | ||
.Use_BCE_and_CE { display: none; } | .Use_BCE_and_CE { display: none; } | ||
/* If you want to display AD and BC add the following to User:You/monobook.css page */ | /* If you want to display AD and BC add the following to User:You/monobook.css page */ | ||
/* | /* | ||
| Llínea 67: | Llínea 67: | ||
.Use_BCE_and_CE { display:none; } | .Use_BCE_and_CE { display:none; } | ||
*/ | */ | ||
/*If you want to display CE and BCE add the following to User:You/monobook.css page */ | /*If you want to display CE and BCE add the following to User:You/monobook.css page */ | ||
/* | /* | ||
| Llínea 74: | Llínea 74: | ||
.Use_BCE_and_CE {display:inline; } | .Use_BCE_and_CE {display:inline; } | ||
*/ | */ | ||
/*Add formatting to make sure that "external references" from [[Template:Ref]] do | /*Add formatting to make sure that "external references" from [[Template:Ref]] do | ||
not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was | not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was | ||
| Llínea 84: | Llínea 84: | ||
~~~~ | ~~~~ | ||
*/ | */ | ||
.plainlinksneverexpand { | .plainlinksneverexpand { | ||
background: none ! important; | background: none ! important; | ||
padding: 0 ! important; | padding: 0 ! important; | ||
} | } | ||
.plainlinksneverexpand .urlexpansion { | .plainlinksneverexpand .urlexpansion { | ||
display : none ! important; | display : none ! important; | ||
} | } | ||
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get | /* Make sure that ext links displayed within "plainlinksneverexpand" don't get | ||
the arrow... | the arrow... | ||
| Llínea 101: | Llínea 101: | ||
padding: 0 !important | padding: 0 !important | ||
} | } | ||
/* styles for geography infoboxes, e.g. countries, national subdivisions, cities, etc. */ | /* styles for geography infoboxes, e.g. countries, national subdivisions, cities, etc. */ | ||
.InfoDerecha { | .InfoDerecha { | ||
clear: right; | clear: right; | ||
| Llínea 109: | Llínea 109: | ||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
} | } | ||
.infobox.geography { | .infobox.geography { | ||
border: 1px solid #ccd2d9; | border: 1px solid #ccd2d9; | ||
| Llínea 117: | Llínea 117: | ||
font-size: 90%; | font-size: 90%; | ||
} | } | ||
.infobox.geography td, | .infobox.geography td, | ||
.infobox.geography th { | .infobox.geography th { | ||
| Llínea 128: | Llínea 128: | ||
padding: 0.4em 0.2em 0.2em 0.8em; | padding: 0.4em 0.2em 0.2em 0.8em; | ||
} | } | ||
.infobox.geography .mergedrow td, | .infobox.geography .mergedrow td, | ||
.infobox.geography .mergedrow th { | .infobox.geography .mergedrow th { | ||
| Llínea 134: | Llínea 134: | ||
padding: 0 0.2em 0.2em 0.8em; | padding: 0 0.2em 0.2em 0.8em; | ||
} | } | ||
.infobox.geography .mergedbottomrow td, | .infobox.geography .mergedbottomrow td, | ||
.infobox.geography .mergedbottomrow th { | .infobox.geography .mergedbottomrow th { | ||
| Llínea 141: | Llínea 141: | ||
padding: 0 0.2em 0.4em 0.8em; | padding: 0 0.2em 0.4em 0.8em; | ||
} | } | ||
.infobox.geography .maptable td, | .infobox.geography .maptable td, | ||
.infobox.geography .maptable th { | .infobox.geography .maptable th { | ||
| Llínea 147: | Llínea 147: | ||
padding: 0 0 0 0; | padding: 0 0 0 0; | ||
} | } | ||
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion" | /* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion" | ||
following the anchor A, the anchor itself now has class "external autonumber" and the | following the anchor A, the anchor itself now has class "external autonumber" and the | ||
| Llínea 153: | Llínea 153: | ||
http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo- | http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo- | ||
element of CSS. We have to switch this off for links due to Template:Ref! | element of CSS. We have to switch this off for links due to Template:Ref! | ||
*/ | */ | ||
.plainlinksneverexpand a.external.text:after { | .plainlinksneverexpand a.external.text:after { | ||
| Llínea 161: | Llínea 161: | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Merge template style */ | /* Merge template style */ | ||
.messagebox { | .messagebox { | ||
border: 1px solid #aaaaaa; | border: 1px solid #aaaaaa; | ||
| Llínea 188: | Llínea 188: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.messagebox.warning { | .messagebox.warning { | ||
border: 1px solid #fcc; | border: 1px solid #fcc; | ||
| Llínea 195: | Llínea 195: | ||
font-size: 100%; | font-size: 100%; | ||
} | } | ||
/* Article message box template styles */ | |||
table.ambox { | |||
margin: 0 10%; /* Will not overlap with other elements */ | |||
border-collapse: collapse; | |||
background: #fbfbfb; | |||
border: 1px solid #aaa; | |||
border-left: 10px solid #1e90ff; /* Default "notice" blue */ | |||
} | |||
table.ambox th.ambox-text, table.ambox td.ambox-text { /* The message body cell(s) */ | |||
padding: 0.25em 0.5em; /* 0.5em left/right */ | |||
width: 100%; /* Make all templates the same width regardless of text size */ | |||
} | |||
table.ambox td.ambox-image { /* The left image cell */ | |||
padding: 2px 0px 2px 0.5em; /* 0.5em left, 0px right */ | |||
text-align: center; | |||
} | |||
table.ambox td.ambox-imageright { /* The right image cell */ | |||
padding: 2px 4px 2px 0px; /* 0px left, 4px right */ | |||
text-align: center; | |||
} | |||
table.ambox-notice { | |||
border-left: 10px solid #1e90ff; /* Blue */ | |||
/* border-right: 10px solid #1e90ff; */ /* If you want two blue bars */ | |||
} | |||
table.ambox-delete, | |||
table.ambox-serious { | |||
border-left: 10px solid #b22222; /* Red */ | |||
} | |||
table.ambox-content { | |||
border-left: 10px solid #f28500; /* Orange */ | |||
} | |||
table.ambox-style { | |||
border-left: 10px solid #f4c430; /* Yellow */ | |||
} | |||
table.ambox-merge { | |||
border-left: 10px solid #9932cc; /* Purple */ | |||
} | |||
table.ambox-growth { | |||
border-left: 10px solid #228b22; /* Green */ | |||
} | |||
table.ambox-protection { | |||
border-left: 10px solid #bba; /* Gray */ | |||
} | |||
table.ambox.ambox-mini { /* Small floating box variant */ | |||
float: right; | |||
clear: right; | |||
margin: 0 0 0 1em; | |||
width: 25%; | |||
} | |||
@media print { /* Do not print article message box */ | |||
.ambox { | |||
display: none; | |||
} | |||
} | |||
/* Infobox template style */ | /* Infobox template style */ | ||
.infobox { | .infobox { | ||
border: 1px solid #aaa; | |||
background-color: #f9f9f9; | |||
color: black; | |||
margin-bottom: 0.5em; | |||
margin-left: 1em; | |||
padding: 0.2em; | |||
float: right; | |||
clear: right; | |||
} | |||
.infobox td, | |||
.infobox th { | |||
vertical-align: top; | |||
} | } | ||
.infobox caption { | .infobox caption { | ||
font-size: larger; | |||
margin-left: inherit; | |||
} | } | ||
.infobox.bordered { | .infobox.bordered { | ||
border-collapse: collapse; | |||
} | } | ||
.infobox.bordered td, | .infobox.bordered td, | ||
.infobox.bordered th { | .infobox.bordered th { | ||
border: 1px solid #aaa; | |||
} | } | ||
.infobox.bordered .borderless td, | .infobox.bordered .borderless td, | ||
.infobox.bordered .borderless th { | .infobox.bordered .borderless th { | ||
border: 0; | |||
} | } | ||
.infobox.sisterproject { | .infobox.sisterproject { | ||
width: 20em; | |||
font-size: 90%; | |||
} | |||
@media print { | |||
.infobox.sisterproject { | |||
display: none; | |||
} | |||
} | } | ||
/* Importo formato para versos de WikiSource | /* Importo formato para versos de WikiSource | ||
pre.verse { | pre.verse { | ||
| Llínea 239: | Llínea 303: | ||
white-space: pre; | white-space: pre; | ||
} | } | ||
.IconoPlantillaMantenimiento { | .IconoPlantillaMantenimiento { | ||
float:left; | float:left; | ||
| Llínea 245: | Llínea 309: | ||
margin-right: 1em; | margin-right: 1em; | ||
} | } | ||
/* Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration | /* Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration | ||
resets the font for all browsers except MSIE6. The empty comment must remain. */ | resets the font for all browsers except MSIE6. The empty comment must remain. */ | ||
| Llínea 267: | Llínea 331: | ||
font-family /**/:inherit; | font-family /**/:inherit; | ||
} | } | ||
/** Estilos para tablas. | /** Estilos para tablas. | ||
** EXPERIMENTAL ** | ** EXPERIMENTAL ** | ||
| Llínea 278: | Llínea 342: | ||
table.col1izq TD:first-child { text-align:left; } | table.col1izq TD:first-child { text-align:left; } | ||
table.col1cen TD:first-child { text-align:center; } | table.col1cen TD:first-child { text-align:center; } | ||
table.col2der TD:first-child + TD { text-align:right; } | table.col2der TD:first-child + TD { text-align:right; } | ||
table.col2izq TD:first-child + TD { text-align:left; } | table.col2izq TD:first-child + TD { text-align:left; } | ||
table.col2cen TD:first-child + TD { text-align:center; } | table.col2cen TD:first-child + TD { text-align:center; } | ||
table.col3der TD:first-child + TD + TD { text-align:right; } | table.col3der TD:first-child + TD + TD { text-align:right; } | ||
table.col3izq TD:first-child + TD + TD { text-align:left; } | table.col3izq TD:first-child + TD + TD { text-align:left; } | ||
table.col3cen TD:first-child + TD + TD { text-align:center; } | table.col3cen TD:first-child + TD + TD { text-align:center; } | ||
table.col4der TD:first-child + TD + TD + TD { text-align:right; } | table.col4der TD:first-child + TD + TD + TD { text-align:right; } | ||
table.col4izq TD:first-child + TD + TD + TD { text-align:left; } | table.col4izq TD:first-child + TD + TD + TD { text-align:left; } | ||
table.col4cen TD:first-child + TD + TD + TD { text-align:center; } | table.col4cen TD:first-child + TD + TD + TD { text-align:center; } | ||
table.col5der TD:first-child + TD + TD + TD + TD { text-align:right; } | table.col5der TD:first-child + TD + TD + TD + TD { text-align:right; } | ||
table.col5izq TD:first-child + TD + TD + TD + TD { text-align:left; } | table.col5izq TD:first-child + TD + TD + TD + TD { text-align:left; } | ||
table.col5cen TD:first-child + TD + TD + TD + TD { text-align:center; } | table.col5cen TD:first-child + TD + TD + TD + TD { text-align:center; } | ||
/* hiddenStructure importado de w:en para permitir esconder automáticamente | /* hiddenStructure importado de w:en para permitir esconder automáticamente | ||
los parámetros vacíos en tablas */ | los parámetros vacíos en tablas */ | ||
| Llínea 301: | Llínea 365: | ||
speak: none; | speak: none; | ||
} | } | ||
/* Ayudita para [[Especial:Allpages]]: los redirects aparecen en cursiva */ | /* Ayudita para [[Especial:Allpages]]: los redirects aparecen en cursiva */ | ||
.allpagesredirect {font-style: italic;} | .allpagesredirect {font-style: italic;} | ||
/* Put a checker background at the image description page only visible | /* Put a checker background at the image description page only visible | ||
if the image has transparent background */ | if the image has transparent background */ | ||
#file img { | #file img { | ||
background: url(http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) | background: url(http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) | ||
repeat; | repeat; | ||
} | } | ||
form#upload,.UploadFormShowed {display: none;} | form#upload,.UploadFormShowed {display: none;} | ||
/* Estilo para controlar el tamaño del texto citado. | /* Estilo para controlar el tamaño del texto citado. | ||
Quien quiera cambiar el suyo no tiene más que editar su propia monobook.css */ | Quien quiera cambiar el suyo no tiene más que editar su propia monobook.css */ | ||
.citado { | .citado { | ||
font-size: 90%; | font-size: 90%; | ||
padding: 0.1em; | padding: 0.1em; | ||
} | } | ||
/* Disponibilidad para tareas de mantenimiento/Tablas por día/semana */ | /* Disponibilidad para tareas de mantenimiento/Tablas por día/semana */ | ||
table.user-availability { | table.user-availability { | ||
text-align:center; | text-align:center; | ||
| Llínea 367: | Llínea 431: | ||
padding:2px | padding:2px | ||
} | } | ||
/* Change the external link icon to an Adobe icon for all PDF files */ | /* Change the external link icon to an Adobe icon for all PDF files */ | ||
/* (in browsers that support these CSS selectors, like Mozilla and Opera) */ | /* (in browsers that support these CSS selectors, like Mozilla and Opera) */ | ||
| Llínea 379: | Llínea 443: | ||
padding-right: 16px; | padding-right: 16px; | ||
} | } | ||
/* Change the external link icon to an Adobe icon anywhere the PDFlink class */ | /* Change the external link icon to an Adobe icon anywhere the PDFlink class */ | ||
/* is used (notably Template:PDFlink). This works in IE, unlike the above. */ | /* is used (notably Template:PDFlink). This works in IE, unlike the above. */ | ||
| Llínea 386: | Llínea 450: | ||
padding-right: 17px !important; | padding-right: 17px !important; | ||
} | } | ||
/* make the list of references look smaller */ | /* make the list of references look smaller */ | ||
ol.references { | ol.references { | ||
font-size: 100%; | font-size: 100%; | ||
} | } | ||
.references-small { font-size: 90%;} | .references-small { font-size: 90%;} | ||
.references-2column { | .references-2column { | ||
font-size: 90%; | font-size: 90%; | ||
} | } | ||
/* Highlight clicked reference in blue to help navigation */ | /* Highlight clicked reference in blue to help navigation */ | ||
ol.references > li:target { | ol.references > li:target { | ||
background-color: #DEF; | background-color: #DEF; | ||
} | } | ||
sup.reference:target { | sup.reference:target { | ||
background-color: #DEF; | background-color: #DEF; | ||
} | } | ||
/*** Llamadas al pie: | /*** Llamadas al pie: | ||
esto oculta los corchetes | esto oculta los corchetes | ||
(en los navegadores que entienden css) | (en los navegadores que entienden css) | ||
*/ | */ | ||
.corchete-llamada { display /**/: none; } | .corchete-llamada { display /**/: none; } | ||
/* Ocultar para los no bibliotecarios */ | /* Ocultar para los no bibliotecarios */ | ||
.para_biblios { display: none } | .para_biblios { display: none } | ||
.rotate_0 { display: block } | |||
.rotate_1, .rotate_2, .rotate_3, .rotate_4, .rotate_5, .rotate_6, .rotate_7, .rotate_8, .rotate_9 { display: none } | |||
/* Geographical coordinates | |||
To display coordinates using the notation in the source code, write this in your User:Username/monobook.css: | |||
.geo-default { display: inline } .geo-nondefault { display: none } | |||
.geo-dec { display: inline } .geo-dms { display: inline } | |||
To display coordinates using decimal notation, write this in your User:Username/monobook.css: | |||
.geo-default { display: inline } .geo-nondefault { display: inline } | |||
.geo-dec { display: inline } .geo-dms { display: none } | |||
To display coordinates using DMS notation, write this in your User:Username/monobook.css: | |||
.geo-default { display: inline } .geo-nondefault { display: inline } | |||
.geo-dec { display: none } .geo-dms { display: inline } | |||
To display coordinates in both decimal and DMS notation, write this in your User:Username/monobook.css: | |||
.geo-default { display: inline } .geo-nondefault { display: inline } | |||
.geo-dec { display: inline } .geo-dms { display: inline } | |||
.geo-multi-punct { display: inline } | |||
See [[Template:Coor link]] for how these are used. | |||
Note that the classes "geo", "longitude", and "latitude" are not just styles but also used by the [[Geo microformat]], so the names should not be changed. | |||
*/ | |||
.geo-default { display: inline; } | |||
.geo-nondefault { display: none; } | |||
.geo-dms { display: inline; } | |||
.geo-dec { display: inline; } | |||
.geo-multi-punct { display: none; } | |||
.longitude .latitude { | |||
white-space: nowrap; | |||
} | |||
/* This is used for the Geo microformat, but no style is needed for now other than .geo-dec. */ | |||
.geo { } | |||
/***** end Geo-related */ | |||
/*</nowiki></pre>*/ | /*</nowiki></pre>*/ | ||
/* [[Plantilla:Muchasref]] */ | |||
@media screen, projection { | |||
.listareferencias { | |||
border: 1px solid #AAAAAA; | |||
height: 220px; | |||
overflow: auto; | |||
padding: 3px; | |||
} | |||
} | |||