MediaWiki:Common.css
(Diferencias entre revisiones)
(Página creada con '/* Los estilos CSS definidos aquí aplicarán a todas las pieles (skins) */ - →TABLAS: /* La clase wikitable ya existe en shared.css; y prettytable esta obsoleta, cuand…') |
|||
| Línea 118: | Línea 118: | ||
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;} | ||
| + | |||
| + | |||
| + | /* Infobox template styling */ | ||
| + | .infobox | ||
| + | { | ||
| + | float: right; | ||
| + | clear: right; | ||
| + | margin: 0 0 .5em 1em; | ||
| + | width: 250px; | ||
| + | background: none; | ||
| + | border-collapse: collapse; | ||
| + | border-width: 0px; | ||
| + | font-size: 0.8em; | ||
| + | line-height: 1.5; | ||
| + | } | ||
| + | .infobox table.infoboxtable | ||
| + | { | ||
| + | background:#f0f0f0; | ||
| + | float:right; | ||
| + | margin:0; | ||
| + | width:100%; | ||
| + | border-collapse:collapse; | ||
| + | } | ||
| + | .infobox td.infoboximage | ||
| + | { | ||
| + | padding:0; | ||
| + | text-align:center; | ||
| + | } | ||
| + | .infobox th.infoboxheading | ||
| + | { | ||
| + | font-weight:bold; | ||
| + | text-align:center; | ||
| + | color:#ffffff; | ||
| + | font-size:larger; | ||
| + | } | ||
| + | .infobox th.infoboxsubheading | ||
| + | { | ||
| + | vertical-align:top; | ||
| + | text-align:left; | ||
| + | font-weight:normal; | ||
| + | } | ||
| + | .infobox td.infoboxlabel, .infobox td.infoboxcell | ||
| + | { | ||
| + | vertical-align: middle; | ||
| + | /* border-top:1px solid #999; | ||
| + | border-bottom:1px solid #999; */ | ||
| + | } | ||
| + | |||
| + | /* ugly hack to force normal height for infobox cells */ | ||
| + | .infoboxcell p { margin-top: 0px; margin-bottom: 0px; } | ||
| + | /* .infoboxcell ul { list-style-type: disc; } */ | ||
| + | |||
| + | .infoboxcell ul | ||
| + | { | ||
| + | padding-left: 10px; | ||
| + | margin-left: 10px; | ||
| + | } | ||
| + | |||
| + | .infoboxcell ul li | ||
| + | { | ||
| + | padding-left: 0; | ||
| + | margin-left: 0; | ||
| + | list-style-type: square; | ||
| + | } | ||
| + | |||
| + | .infobox div.plainlinks | ||
| + | { | ||
| + | color: #fff; | ||
| + | } | ||
| + | |||
| + | .infobox div.plainlinks a | ||
| + | { | ||
| + | color: #f0f0f0; | ||
| + | } | ||
Revisión de 23:19 10 nov 2009
/* Los estilos CSS definidos aquí aplicarán a todas las pieles (skins) */
/* TABLAS */
/* La clase wikitable ya existe en shared.css; y prettytable esta obsoleta,
cuando se reemplaze todas las llamadas a prettytable eliminar estas reglas */
table.wikitable, table.prettytable {
margin: 1em 1em 1em 1em;
padding: 0.5em;
font-size: 95%;
background-color: #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-color: #f2f2f2;
text-align: center;
}
table.wikitable caption,
table.prettytable caption {
margin-left: inherit;
margin-right: inherit;
}
/*** Cajas de aviso en discusión nuevas (ambox) que son blancas y con
* una cinta de color a la izquierda */
table.ambox {
margin: 0 10%; /* Will not overlap with other elements */
border-collapse: collapse;
background-color: #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 */
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}
}
/* Ciertas cajas para discusión que NO son ambox (no tienen cinta de color)
por ejemplo, la caja grande de artículo destacado */
.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;
margin: 4px auto;
}
/** Estilos para tablas.
** EXPERIMENTAL **
la idea es, si se quiere que la primera columna de la tabla esté alineada
a la derecha, la segunda centrada y la tercera a la izquierda, usar
{| class="col1der col2cen col3izq"
en vez de repetir "style='text-align:right'", etc, en '''cada''' celda
**/
table.col1der TD:first-child {text-align:right;}
table.col1izq TD:first-child {text-align:left;}
table.col1cen TD:first-child {text-align:center;}
table.col2der TD:first-child + TD {text-align:right;}
table.col2izq TD:first-child + TD {text-align:left;}
table.col2cen TD:first-child + TD {text-align:center;}
table.col3der TD:first-child + TD + TD {text-align:right;}
table.col3izq TD:first-child + TD + TD {text-align:left;}
table.col3cen TD:first-child + TD + TD {text-align:center;}
table.col4der TD:first-child + TD + TD + TD {text-align:right;}
table.col4izq TD:first-child + TD + TD + TD {text-align:left;}
table.col4cen TD:first-child + TD + TD + TD {text-align:center;}
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.col5cen TD:first-child + TD + TD + TD + TD {text-align:center;}
/* Infobox template styling */
.infobox
{
float: right;
clear: right;
margin: 0 0 .5em 1em;
width: 250px;
background: none;
border-collapse: collapse;
border-width: 0px;
font-size: 0.8em;
line-height: 1.5;
}
.infobox table.infoboxtable
{
background:#f0f0f0;
float:right;
margin:0;
width:100%;
border-collapse:collapse;
}
.infobox td.infoboximage
{
padding:0;
text-align:center;
}
.infobox th.infoboxheading
{
font-weight:bold;
text-align:center;
color:#ffffff;
font-size:larger;
}
.infobox th.infoboxsubheading
{
vertical-align:top;
text-align:left;
font-weight:normal;
}
.infobox td.infoboxlabel, .infobox td.infoboxcell
{
vertical-align: middle;
/* border-top:1px solid #999;
border-bottom:1px solid #999; */
}
/* ugly hack to force normal height for infobox cells */
.infoboxcell p { margin-top: 0px; margin-bottom: 0px; }
/* .infoboxcell ul { list-style-type: disc; } */
.infoboxcell ul
{
padding-left: 10px;
margin-left: 10px;
}
.infoboxcell ul li
{
padding-left: 0;
margin-left: 0;
list-style-type: square;
}
.infobox div.plainlinks
{
color: #fff;
}
.infobox div.plainlinks a
{
color: #f0f0f0;
}