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
Sin resumen de edición
Sin resumen de edición
 
(No se muestran 10 ediciones intermedias del mismo usuario)
Línea 3: Línea 3:
.toc, #toc { display: none; }
.toc, #toc { display: none; }


/* Estilos para dispositivos móviles */
/* Estilos generales */
@media screen and (max-width: 767px) {
.prettytable {
     .mobile-only {
    width: auto;
        display: block;
    border-collapse: collapse;
     }
    font-family: Arial, sans-serif;
     .nomobile {
     font-size: 14px;
        display: none;
    background: #fff;
     }
     border-radius: 8px;
     overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     margin-left: 0;
}
}


/* Estilos para dispositivos de escritorio */
.prettytable th {
@media screen and (min-width: 768px) {
    background: linear-gradient(135deg, #0073e6, #005bb5);
     .mobile-only {
     color: #fff;
        display: none;
    padding: 6px;
     }
     text-align: center;
     .nomobile {
     font-weight: bold;
        display: block;
    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;
}
}


/* Estilo cuadrados Página Principal */
.prettytable tr:nth-child(even) {
.square-container {
     background: #f8f9fa;
     margin: 0 auto;
    width: 90%;
    text-align: center;
    margin-bottom: 15px;
}
}


.square {
.prettytable td:hover {
    border-radius: 16px;
     background: #add8e6;
    padding: 15px;
     transition: background 0.3s ease-in-out;
     background-color: #f1d7ff;
     margin: 0;
    border: none;
    width: 180px; /* Ancho fijo para todos los cuadrados */
    height: 130px; /* Altura fija para todos los cuadrados */
}
}


.square-mobile-container {
.prettytable img {
     margin: 0 auto;
     max-width: 100px;
     width: 90%;
    max-height: 100px;
     text-align: center;
     width: auto;
     margin-bottom: 15px;
     height: auto;
     display: inline-block;
}
}


.square-mobile {
/* --- RESPONSIVE --- */
    border-radius: 16px;
@media screen and (max-width: 767px) {
     padding: 15px;
     .prettytable {
    background-color: #f1d7ff;
        width: 100%;
     margin: 0;
        table-layout: fixed; /* Obligamos distribución uniforme */
    border: none;
     }
     width: 170px; /* Ancho fijo para todos los cuadrados */
 
     height: 130px; /* Altura fija para todos los cuadrados */
    .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;
    }
}
}


Línea 126: Línea 144:
}
}


/* Estilo mejorado para tablas */
.wikitablelogo img {
.prettytable {
     max-width: 100px;
     width: auto; /* Se ajusta al contenido */
     height: auto;
     border-collapse: collapse;
     display: block;
    font-family: Arial, sans-serif;
     margin: 0 auto;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
     overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     margin-left: 0; /* Alinear la tabla a la izquierda */
}
}


/* Encabezados con color degradado y centrados */
.prettytable img {
.prettytable th {
     max-width: 100px; /* Ajusta aquí si quieres más pequeño */
     background: linear-gradient(135deg, #0073e6, #005bb5);
     max-height: 100px;
    color: #fff;
     width: auto;
     padding: 6px;
     height: auto;
    text-align: center; /* Centramos los títulos */
     display: inline-block;
     font-weight: bold;
     border-bottom: 2px solid #004a99;
     width: 150px; /* Ancho fijo de cada celda */
}
}


/* Celdas */
/* Estilo mejorado para tablas */
.prettytable td {
.prettytablemain td {
     padding: 10px;
     padding: 10px;
     border-bottom: 1px solid #ddd;
     border-bottom: 1px solid #ddd;
     width: 150px; /* Ancho fijo de cada celda */
     width: 150px;
}
    text-align: left;
 
     transition: background-color 0.3s ease;
/* Alternancia de colores en filas */
.prettytable tr:nth-child(even) {
    background: #f8f9fa;
}
 
/* Iluminar solo la celda (no el encabezado) con azul claro */
.prettytable td:hover {
    background: #add8e6; /* Azul claro */
     transition: background 0.3s ease-in-out;
}
 
/* Bordes redondeados en primera y última fila */
.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 {
/* Imágenes dentro de las celdas */
     border-bottom-left-radius: 8px;
.prettytablemain td img {
     max-width: 100%;
    transition: transform 0.3s ease;
}
}


.prettytable tr:last-child td:last-child {
/* Efecto al pasar el cursor */
     border-bottom-right-radius: 8px;
.prettytablemain td:hover {
     background-color: #e0b3ff; /* Morado claro */
}
}


/* Celdas */
.prettytablemain td:hover img {
.prettytablemain td {
     transform: scale(1.2); /* Aumenta el tamaño al 120% */
     padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 150px; /* Ancho fijo de cada celda */
}
}

Revisión actual - 01:32 4 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 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% */
}