Diferencia entre revisiones de «MediaWiki:Common.css»
Página de la interfaz de MediaWiki
Más acciones
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 1: | Línea 1: | ||
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */ | /* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */ | ||
/* TOC escondida en todas las vistas */ | /* TOC escondida en todas las vistas */ | ||
.toc, #toc { display: none; } | .toc, #toc { display: none; } | ||
| Línea 6: | Línea 7: | ||
@media screen and (max-width: 767px) { | @media screen and (max-width: 767px) { | ||
/* Solo para prettytable */ | |||
.prettytable { | .prettytable { | ||
width: auto; | width: auto; | ||
table-layout: fixed; | table-layout: fixed; /* Fijar el layout para celdas uniformes */ | ||
} | } | ||
.prettytable td { | |||
width: 120px; /* | width: 120px; /* Ancho fijo */ | ||
height: 120px; /* | height: 120px; /* Alto fijo */ | ||
box-sizing: border-box; | box-sizing: border-box; | ||
text-align: center; | text-align: center; | ||
| Línea 21: | Línea 23: | ||
.prettytable img { | .prettytable img { | ||
max-width: 100px; /* | max-width: 100px; /* Limitar imágenes */ | ||
max-height: 100px; | max-height: 100px; | ||
width: auto; | width: auto; | ||
height: auto; | height: auto; | ||
| Línea 29: | Línea 31: | ||
} | } | ||
/* | /* --- wikitablelogo (otra tabla) --- */ | ||
.wikitablelogo { | .wikitablelogo { | ||
width: 100%; /* | width: 100%; /* Ajusta la tabla al contenedor */ | ||
overflow-x: auto; | overflow-x: auto; | ||
display: block; | display: block; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.wikitablelogo td { | .wikitablelogo td { | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
padding: 10px; | padding: 10px; | ||
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
word-wrap: break-word; | word-wrap: break-word; | ||
word-break: break-word; | word-break: break-word; | ||
white-space: normal; | white-space: normal; | ||
background-color: #fff; | background-color: #fff; | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
border-radius: 8px; | border-radius: 8px; | ||
font-size: 14px; | |||
font-weight: normal; | |||
line-height: 1.5; | |||
} | } | ||
.wikitablelogo td:nth-child(odd) { | .wikitablelogo td:nth-child(odd) { | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
} | } | ||
.wikitablelogo th { | .wikitablelogo th { | ||
display: none; /* | display: none; /* Ocultar encabezados en móvil */ | ||
} | } | ||
} | } | ||
| Línea 73: | Línea 68: | ||
.video-container { | .video-container { | ||
position: relative; | position: relative; | ||
padding-bottom: 56.25%; /* Relación | padding-bottom: 56.25%; /* Relación 16:9 */ | ||
height: 0; | height: 0; | ||
overflow: hidden; | overflow: hidden; | ||
background: #000; | background: #000; | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
| Línea 93: | Línea 88: | ||
@media (min-width: 768px) { | @media (min-width: 768px) { | ||
.video-container { | .video-container { | ||
max-width: 560px; | max-width: 560px; | ||
padding-bottom: 315px; | padding-bottom: 315px; | ||
} | } | ||
} | } | ||
/* --- Estilos generales de wikitablelogo --- */ | |||
.wikitablelogo { | .wikitablelogo { | ||
border-collapse: collapse; | |||
width: auto; | |||
background-color: #F8F9FA; | |||
margin-left: 0; | |||
} | } | ||
.wikitablelogo th { | .wikitablelogo th { | ||
background-color: #EAECF0; | |||
color: #000; | |||
text-align: center; | |||
} | } | ||
.wikitablelogo td { | .wikitablelogo td { | ||
background-color: #F8F9FA; | |||
} | } | ||
| Línea 133: | Línea 129: | ||
.wikitablelogo th, .wikitablelogo td { | .wikitablelogo th, .wikitablelogo td { | ||
border: 1px solid #A2A9B1; | |||
padding: 5px; | |||
} | } | ||
| Línea 144: | Línea 140: | ||
} | } | ||
/* | /* --- Estilos generales de prettytable --- */ | ||
.prettytable { | .prettytable { | ||
width: auto; | width: auto; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
| Línea 154: | Línea 150: | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
margin-left: 0; | margin-left: 0; | ||
} | } | ||
.prettytable th { | .prettytable th { | ||
background: linear-gradient(135deg, #0073e6, #005bb5); | background: linear-gradient(135deg, #0073e6, #005bb5); | ||
color: #fff; | color: #fff; | ||
padding: 6px; | padding: 6px; | ||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
border-bottom: 2px solid #004a99; | border-bottom: 2px solid #004a99; | ||
width: 150px; /* Ancho | width: 150px; /* Ancho de título (normal) */ | ||
} | } | ||
.prettytable td { | .prettytable td { | ||
padding: 10px; | padding: 10px; | ||
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
width: 120px; | width: 120px; | ||
height: 120px; | height: 120px; | ||
text-align: center; | text-align: center; | ||
vertical-align: middle; | vertical-align: middle; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.prettytable tr:nth-child(even) { | .prettytable tr:nth-child(even) { | ||
background: #f8f9fa; | background: #f8f9fa; | ||
} | } | ||
.prettytable td:hover { | .prettytable td:hover { | ||
background: #add8e6; | background: #add8e6; | ||
transition: background 0.3s ease-in-out; | transition: background 0.3s ease-in-out; | ||
} | } | ||
/* Bordes redondeados en | /* Bordes redondeados en la tabla */ | ||
.prettytable tr:first-child th:first-child { | .prettytable tr:first-child th:first-child { | ||
border-top-left-radius: 8px; | border-top-left-radius: 8px; | ||
| Línea 207: | Línea 199: | ||
} | } | ||
/* | /* Imagen dentro de prettytable */ | ||
.prettytable img { | .prettytable img { | ||
max-width: 100px; | max-width: 100px; | ||
max-height: 100px; | max-height: 100px; | ||
width: auto; | width: auto; | ||
Revisión del 10:56 27 abr 2025
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
/* TOC escondida en todas las vistas */
.toc, #toc { display: none; }
/* Estilos para dispositivos móviles */
@media screen and (max-width: 767px) {
/* Solo para prettytable */
.prettytable {
width: auto;
table-layout: fixed; /* Fijar el layout para celdas uniformes */
}
.prettytable td {
width: 120px; /* Ancho fijo */
height: 120px; /* Alto fijo */
box-sizing: border-box;
text-align: center;
vertical-align: middle;
overflow: hidden;
}
.prettytable img {
max-width: 100px; /* Limitar imágenes */
max-height: 100px;
width: auto;
height: auto;
display: block;
margin: 0 auto;
}
/* --- wikitablelogo (otra tabla) --- */
.wikitablelogo {
width: 100%; /* Ajusta la tabla al contenedor */
overflow-x: auto;
display: block;
white-space: nowrap;
}
.wikitablelogo td {
display: block;
width: 100%;
padding: 10px;
border-bottom: 1px solid #ddd;
word-wrap: break-word;
word-break: break-word;
white-space: normal;
background-color: #fff;
margin-bottom: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-radius: 8px;
font-size: 14px;
font-weight: normal;
line-height: 1.5;
}
.wikitablelogo td:nth-child(odd) {
background-color: #f8f9fa;
}
.wikitablelogo th {
display: none; /* Ocultar encabezados en móvil */
}
}
/* Contenedor general para el video */
.video-container {
position: relative;
padding-bottom: 56.25%; /* Relación 16:9 */
height: 0;
overflow: hidden;
background: #000;
max-width: 100%;
}
/* iFrame del video */
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
/* Limita el tamaño máximo en escritorio */
@media (min-width: 768px) {
.video-container {
max-width: 560px;
padding-bottom: 315px;
}
}
/* --- Estilos generales de wikitablelogo --- */
.wikitablelogo {
border-collapse: collapse;
width: auto;
background-color: #F8F9FA;
margin-left: 0;
}
.wikitablelogo th {
background-color: #EAECF0;
color: #000;
text-align: center;
}
.wikitablelogo td {
background-color: #F8F9FA;
}
.wikitablelogo td:nth-child(1),
.wikitablelogo th:nth-child(1) { width: 125px; }
.wikitablelogo td:nth-child(2),
.wikitablelogo th:nth-child(2) { width: 150px; }
.wikitablelogo td:nth-child(3),
.wikitablelogo th:nth-child(3) { width: 500px; }
.wikitablelogo td:nth-child(4),
.wikitablelogo th:nth-child(4) { width: 200px; }
.wikitablelogo td:nth-child(5),
.wikitablelogo th:nth-child(5) { width: 125px; }
.wikitablelogo tr:not(:first-child) { height: 5em; }
.wikitablelogo th, .wikitablelogo td {
border: 1px solid #A2A9B1;
padding: 5px;
}
.wikitablelogo img {
max-width: 100px;
height: auto;
display: block;
margin: 0 auto;
}
/* --- Estilos generales de prettytable --- */
.prettytable {
width: auto;
border-collapse: collapse;
font-family: Arial, sans-serif;
font-size: 14px;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-left: 0;
}
.prettytable th {
background: linear-gradient(135deg, #0073e6, #005bb5);
color: #fff;
padding: 6px;
text-align: center;
font-weight: bold;
border-bottom: 2px solid #004a99;
width: 150px; /* Ancho de título (normal) */
}
.prettytable td {
padding: 10px;
border-bottom: 1px solid #ddd;
width: 120px;
height: 120px;
text-align: center;
vertical-align: middle;
overflow: hidden;
}
.prettytable tr:nth-child(even) {
background: #f8f9fa;
}
.prettytable td:hover {
background: #add8e6;
transition: background 0.3s ease-in-out;
}
/* Bordes redondeados en la tabla */
.prettytable tr:first-child th:first-child {
border-top-left-radius: 8px;
}
.prettytable tr:first-child th:last-child {
border-top-right-radius: 8px;
}
.prettytable tr:last-child td:first-child {
border-bottom-left-radius: 8px;
}
.prettytable tr:last-child td:last-child {
border-bottom-right-radius: 8px;
}
/* Imagen dentro de prettytable */
.prettytable img {
max-width: 100px;
max-height: 100px;
width: auto;
height: auto;
display: inline-block;
}