Menú alternativo
Toggle preferences menu
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «MediaWiki:Common.css»

Página de la interfaz de MediaWiki
Se ha deshecho la revisión 4775 de Adgellida (disc.)
Etiquetas: Deshacer Revertido
Sin resumen de edición
 
(No se muestran 30 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
/* Mostrar solo en escritorio */
/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
.nomobile {
/* TOC escondida en todas las vistas */
  display: block;
.toc, #toc { display: none; }
 
/* Estilos generales */
.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 fijo de cada celda */
}
 
.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;
}
}


.mobile-only {
.prettytable td:hover {
  display: none;
    background: #add8e6;
    transition: background 0.3s ease-in-out;
}
}


/* Cuadrados de escritorio */
.prettytable img {
.square-container {
    max-width: 100px;
  display: flex;
    max-height: 100px;
  justify-content: center;
    width: auto;
  align-items: center;
    height: auto;
  margin-bottom: 10px;
    display: inline-block;
}
}


.square {
/* --- RESPONSIVE --- */
  width: 100%;
@media screen and (max-width: 767px) {
  aspect-ratio: 1 / 1;
    .prettytable {
  background-color: #f5f5f5;
        width: 100%;
  border: 1px solid #ccc;
        table-layout: fixed; /* Obligamos distribución uniforme */
  padding: 10px;
    }
  box-sizing: border-box;
 
  text-align: center;
    .prettytable th {
  border-radius: 8px;
        width: auto;
  transition: transform 0.2s;
        font-size: 14px; /* Mantiene tamaño */
    }
 
    .prettytable td {
        width: auto; /* Dejamos que table-layout controle el ancho */
        height: 90px;
        padding: 5px;
    }
 
    .prettytable img {
        max-width: 70px; /* Imágenes más pequeñas aún */
        max-height: 70px;
    }
}
 
/* Contenedor general para el video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    max-width: 100%; /* El video ocupará el 100% del contenedor padre */
}
 
/* iFrame del video */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
}


.square:hover {
/* Limita el tamaño máximo en escritorio */
  transform: scale(1.03);
@media (min-width: 768px) {
    .video-container {
        max-width: 560px; /* Limita el ancho del video en desktop */
        padding-bottom: 315px; /* Mantén la relación 16:9 */
    }
}
}


/* Cuadrados en móviles */
.wikitablelogo {
.square-mobile-container {
  border-collapse: collapse;
   display: flex;
   width: auto; /* Ajusta el ancho según el contenido */
   justify-content: center;
   background-color: #F8F9FA; /* Fondo de la tabla */
   margin-bottom: 10px;
   margin-left: 0; /* Alinea la tabla a la izquierda */
}
}


.square-mobile {
.wikitablelogo-wrapper {
  overflow-x: auto;
   width: 100%;
   width: 100%;
   background-color: #f5f5f5;
}
   border: 1px solid #ccc;
 
  padding: 10px;
.wikitablelogo th {
  box-sizing: border-box;
   background-color: #EAECF0; /* Fondo de los encabezados */
   color: #000; /* Texto negro para contraste */
   text-align: center;
   text-align: center;
  border-radius: 8px;
}
}


/* Responsive para móviles */
.wikitablelogo td {
@media only screen and (max-width: 768px) {
   background-color: #F8F9FA; /* Fondo de las celdas */
   .nomobile {
}
    display: none;
  }


   .mobile-only {
.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; /* Bordes en gris oscuro */
   padding: 5px;
}
 
.wikitablelogo img {
    max-width: 100px;
    height: auto;
     display: block;
     display: block;
  }
    margin: 0 auto;
}
 
.prettytable img {
    max-width: 100px; /* Ajusta aquí si quieres más pequeño */
    max-height: 100px;
    width: auto;
    height: auto;
    display: inline-block;
}
 
/* Estilo mejorado para tablas */
.prettytablemain td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 150px;
    text-align: left;
    transition: background-color 0.3s ease;
}
 
/* Imágenes dentro de las celdas */
.prettytablemain td img {
    max-width: 100%;
    transition: transform 0.3s ease;
}
 
/* Efecto al pasar el cursor */
.prettytablemain td:hover {
    background-color: #e0b3ff; /* Morado claro */
}
 
.prettytablemain td:hover img {
    transform: scale(1.2); /* Aumenta el tamaño al 120% */
}
}

Revisión actual - 11:20 25 may 2025

/* Los estilos CSS colocados aquí se aplicarán a todas las apariencias */
/* TOC escondida en todas las vistas */
.toc, #toc { display: none; }

/* Estilos generales */
.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 fijo de cada celda */
}

.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;
}

.prettytable img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: inline-block;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 767px) {
    .prettytable {
        width: 100%;
        table-layout: fixed; /* Obligamos distribución uniforme */
    }

    .prettytable th {
        width: auto;
        font-size: 14px; /* Mantiene tamaño */
    }

    .prettytable td {
        width: auto; /* Dejamos que table-layout controle el ancho */
        height: 90px;
        padding: 5px;
    }

    .prettytable img {
        max-width: 70px; /* Imágenes más pequeñas aún */
        max-height: 70px;
    }
}

/* Contenedor general para el video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    max-width: 100%; /* El video ocupará el 100% del contenedor padre */
}

/* 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; /* Limita el ancho del video en desktop */
        padding-bottom: 315px; /* Mantén la relación 16:9 */
    }
}

.wikitablelogo {
  border-collapse: collapse;
  width: auto; /* Ajusta el ancho según el contenido */
  background-color: #F8F9FA; /* Fondo de la tabla */
  margin-left: 0; /* Alinea la tabla a la izquierda */
}

.wikitablelogo-wrapper {
  overflow-x: auto;
  width: 100%;
}

.wikitablelogo th {
  background-color: #EAECF0; /* Fondo de los encabezados */
  color: #000; /* Texto negro para contraste */
  text-align: center;
}

.wikitablelogo td {
  background-color: #F8F9FA; /* Fondo de las celdas */
}

.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; /* Bordes en gris oscuro */
  padding: 5px;
}

.wikitablelogo img {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.prettytable img {
    max-width: 100px; /* Ajusta aquí si quieres más pequeño */
    max-height: 100px;
    width: auto;
    height: auto;
    display: inline-block;
}

/* Estilo mejorado para tablas */
.prettytablemain td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 150px;
    text-align: left;
    transition: background-color 0.3s ease;
}

/* Imágenes dentro de las celdas */
.prettytablemain td img {
    max-width: 100%;
    transition: transform 0.3s ease;
}

/* Efecto al pasar el cursor */
.prettytablemain td:hover {
    background-color: #e0b3ff; /* Morado claro */
}

.prettytablemain td:hover img {
    transform: scale(1.2); /* Aumenta el tamaño al 120% */
}