Diferencia entre revisiones de «MediaWiki:FSF.css»
De FSF
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 67: | Línea 67: | ||
/* --- Caja TOC más compacta --- */ | /* --- Caja TOC más compacta --- */ | ||
#toc { | #toc { | ||
width: | width: 270px !important; | ||
padding: 8px !important; | padding: 8px !important; | ||
margin-bottom: 0. | margin-bottom: 0.5em !important; | ||
} | } | ||
#toc ul { | #toc ul { | ||
Revisión del 11:49 7 dic 2025
/* ==========================================
FSF — COMPACT MODE (alta densidad visual)
========================================== */
/* --- Reducción global de espacios --- */
body,
#mw-content-text {
line-height: 1.2 !important; /* Más compacto sin perder lectura */
font-size: 14px !important; /* Ligera reducción general */
}
/* --- Párrafos sin salto grande --- */
#mw-content-text p {
margin-top: 0.25em !important;
margin-bottom: 0.25em !important;
padding: 0 !important;
}
/* --- Simulación de <br> reducido --- */
br {
display: block;
margin-top: 0.15em !important;
margin-bottom: 0.15em !important;
}
/* --- Listas más compactas --- */
ul, ol {
margin-top: 0.25em !important;
margin-bottom: 0.25em !important;
padding-left: 0.2em !important; /* sin reducir demasiado la sangría */
}
li {
margin: 0.15em 0 !important;
}
/* --- Encabezados compactados --- */
#mw-content-text h1,
#mw-content-text h2,
#mw-content-text h3,
#mw-content-text h4,
#mw-content-text h5,
#mw-content-text h6 {
margin-top: 0.6em !important;
margin-bottom: 0.3em !important;
padding: 0 !important;
line-height: 1.25 !important;
}
#mw-content-text h1 { font-size: 1.7em !important; }
#mw-content-text h2 { font-size: 1.45em !important; }
#mw-content-text h3 { font-size: 1.25em !important; }
#mw-content-text h4 { font-size: 1.1em !important; }
#mw-content-text h5 { font-size: 1em !important; }
#mw-content-text h6 { font-size: .95em !important; }
/* --- Tablas compactas --- */
table.wikitable td,
table.wikitable th {
padding: 4px 6px !important; /* Compactado elegante */
line-height: 1.2 !important;
}
table.wikitable {
margin-top: 0.6em !important;
margin-bottom: 0.6em !important;
}
/* --- Caja TOC más compacta --- */
#toc {
width: 270px !important;
padding: 8px !important;
margin-bottom: 0.5em !important;
}
#toc ul {
margin-top: 0.2em !important;
margin-bottom: 0.2em !important;
}
#toc ul li {
margin: 0.15em 0 !important;
}
/* --- Bloques FSF más densos --- */
.fsf-caja,
.fsf-alerta,
.fsf-aviso {
padding: 10px 12px !important;
margin: 0.7em 0 !important;
}
/* --- Imágenes más ceñidas --- */
.thumb,
.thumbinner {
margin-top: 0.4em !important;
margin-bottom: 0.4em !important;
}
/* --- Ajuste de espacios en tablas complejas --- */
.mw-datatable td,
.mw-datatable th {
padding: 3px 5px !important;
}
/* --- Reducir espacio entre secciones largas --- */
.mw-body {
padding: 1em 1.6em !important;
}
/* ==========================================
FSF — Compact Sidebar for Timeless
========================================== */
/* Texto general del sidebar */
#mw-site-navigation,
#mw-related-navigation {
font-size: 10.0px !important; /* Tamaño reducido */
line-height: 1.1 !important;
}
/* Títulos del sidebar (secciones) */
#mw-site-navigation .sidebar-chunk h2,
#mw-related-navigation .sidebar-chunk h2 {
font-size: 11px !important;
margin-top: 0.3em !important;
margin-bottom: 0.20em !important;
}
/* Enlaces individuales del sidebar */
#mw-site-navigation a,
#mw-related-navigation a {
font-size: 11.0px !important;
padding: 1px 0 !important; /* Compacta la altura */
}
/* Menús desplegables del sidebar */
#mw-site-navigation ul,
#mw-related-navigation ul {
margin-top: 0.15em !important;
margin-bottom: 0.2em !important;
}
#mw-site-navigation li,
#mw-related-navigation li {
margin: 0.10em 0 !important;
}
/* Caja completa del sidebar más delgada */
#mw-site-navigation,
#mw-related-navigation {
padding: 6px 10px !important;
}
/* ==========================================
FSF — Sidebar con tipografía delgada
========================================== */
#mw-site-navigation,
#mw-related-navigation {
font-family:
"Segoe UI Light",
"Segoe UI",
"San Francisco",
"SF Pro Text",
"Helvetica Neue",
Roboto,
"Noto Sans",
Arial,
sans-serif !important;
font-weight: 300 !important; /* Hace el texto delgado */
font-size: 12.px !important;
line-height: 1.25 !important;
}
/* Títulos del sidebar aún más estilizados */
#mw-site-navigation .sidebar-chunk h2,
#mw-related-navigation .sidebar-chunk h2 {
font-weight: 400 !important; /* Un poco más visible pero aún delgado */
font-size: 13px !important;
}
/* Enlaces del sidebar finos */
#mw-site-navigation a,
#mw-related-navigation a {
font-weight: 300 !important; /* Ultra ligero */
letter-spacing: 0.1px !important; /* Mejora claridad en pantallas pequeñas */
}
/* ==========================================
FSF — Animaciones del Sidebar (4 variaciones)
========================================== */
/* Ajuste base para el hover */
#mw-site-navigation a,
#mw-related-navigation a {
display: block !important;
position: relative !important;
transition: all 0.25s ease !important;
padding: 2px 0 !important;
}
/* --- Animación 1: desplazamiento suave --- */
#mw-site-navigation li:nth-child(4n+1) a:hover,
#mw-related-navigation li:nth-child(4n+1) a:hover {
transform: translateX(4px);
color: #007bff !important;
}
/* --- Animación 2: subrayado deslizante --- */
#mw-site-navigation li:nth-child(4n+2) a::after,
#mw-related-navigation li:nth-child(4n+2) a::after {
content: "";
position: absolute;
left: 0;
bottom: -1px;
width: 0%;
height: 2px;
background: #0099ff;
transition: width 0.28s ease;
}
#mw-site-navigation li:nth-child(4n+2) a:hover::after,
#mw-related-navigation li:nth-child(4n+2) a:hover::after {
width: 100%;
}
/* --- Animación 3: brillo lateral suave --- */
#mw-site-navigation li:nth-child(4n+3) a:hover,
#mw-related-navigation li:nth-child(4n+3) a:hover {
background: linear-gradient(90deg, rgba(0,153,255,0.12), transparent);
padding-left: 4px !important;
}
/* --- Animación 4: zoom-in elegante --- */
#mw-site-navigation li:nth-child(4n+4) a:hover,
#mw-related-navigation li:nth-child(4n+4) a:hover {
transform: scale(1.04);
color: #0056cc !important;
}