Diferencia entre revisiones de «Plantilla:Infobox/styles.css»
De WikiCAAD
Línea 71: | Línea 71: | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
} | } | ||
Línea 79: | Línea 78: | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
} | } | ||
Revisión del 20:02 8 jun 2024
/**
* Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
* [[Template:Tool]], etc.
*/
table.infobox {
box-sizing: border-box;
border: 2px solid #a2a9b1;
width: 15%;
border-collapse: collapse;
border-spacing: 0;
/* background-color: white; */
clear: right; /* these are overriden by .infobox-rtl on the templates of interest */
float: right;
margin: 0 0 0.5em 0.5em;
}
table.infobox-rtl {
clear: left;
float: left;
margin: 0 0.5em 0.5em 0;
}
table.infobox th {
text-align: left;
padding: 0.2em 0.5em;
vertical-align: top;
}
table.infobox-rtl th {
text-align: right;
}
@media (max-width: 719px) {
body.mediawiki table.infobox {
float: none;
clear: both;
width: 100%;
margin: 0 0 .5em 0;
}
}
table.infobox td {
border: none;
padding: 0.2em 0.5em;
vertical-align: top;
}
table.infobox .infobox-header {
/* background-color: #a2a9b1;
color: #FFF; */
text-align: left;
}
table.infobox .infobox-header a {
color: #FFF;
}
table.infobox .infobox-header td,
table.infobox .infobox-header th {
padding: 0.5em 0.5em;
}
table.infobox .infobox-header img {
padding: 0 0.2em 0 0.5em;
}
table.infobox .overlay {
width: 200px;
height: 250px;
position: relative;
top: 0;
left: 0;
}
/* Nuevo estilo para la imagen del infobox */
table.infobox .mw-file-description img {
position: fixed;
top: 0;
left: 0;
}
/* Estilo adicional para la imagen en pantallas pequeñas */
@media (max-width: 719px) {
table.infobox .infobox-image {
width: 80%; /* Ajusta el tamaño según sea necesario */
}
}