Saltar al contenido
Documenta Learning

Diferencia entre revisiones de «MediaWiki:Common.css»

Diseño del sitio
 
Portada: ocultar barra de tamaño de letra
 
(No se muestran 2 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
/* Documenta Learning: estilo del sitio (web y piel móvil). Tarjetas, bandas y tipografía amplia. */
/* Documenta Learning: piezas de la portada. El resto del diseño vive en el tema propio (skins/Documenta). */
:root { --dl-azul: #2563eb; --dl-marino: #1e3a8a; --dl-fondo: #f5f7fa; --dl-texto: #1f2937; --dl-suave: #475569; }
:root { --dl-azul: #2563eb; --dl-marino: #1e3a8a; --dl-teal: #0d9488; --dl-fondo: #f5f7fa; --dl-celeste: #e8efff; --dl-suave: #475569; --dl-borde: #e3e8f0; }


/* Lectura */
/* La portada no va dentro de la tarjeta ni lleva título */
.mw-body-content { font-size: 1.05em; line-height: 1.7; color: var(--dl-texto); }
.page-Página_principal .dl-page { background: none; border: 0; box-shadow: none; padding: 0; }
.mw-body-content a:not(.new) { color: var(--dl-azul); }
.page-Página_principal .dl-titulo,
.mw-body-content h2, .mw-body-content h3 { color: var(--dl-marino); font-weight: 700; }
.page-Página_principal .dl-meta,
.mw-body-content h2 { border-bottom: 2px solid #dbe4ff; padding-bottom: 4px; }
.mw-body h1.firstHeading, .mw-first-heading { color: var(--dl-marino); font-weight: 700; }
.mw-body-content table.wikitable { border-radius: 8px; overflow: hidden; }
.mw-body-content table.wikitable > * > tr > th { background: #e8efff; color: var(--dl-marino); }
 
/* Portada: sin el título "Página principal" */
.page-Página_principal .mw-first-heading,
.page-Página_principal .mw-first-heading,
.page-Página_principal #firstHeading,
.page-Página_principal .vector-page-titlebar { display: none; }
.page-Página_principal .vector-page-titlebar { display: none; }
.page-Página_principal .dl-tools { border: 0; margin: 0 0 8px; padding: 0; }
.page-Página_principal .mw-body-content h2 { border: 0; font-size: 1.5em; margin: 1.4em 0 0.4em; }


.dl-hero { background: linear-gradient(135deg, var(--dl-marino), var(--dl-azul)); color: #fff; border-radius: 16px; padding: 32px 28px; margin: 8px 0 24px; }
/* Bienvenida */
.dl-hero-title { font-size: 2em; font-weight: 700; line-height: 1.2; color: #fff; }
.dl-hero { background: linear-gradient( 135deg, var( --dl-marino ), var( --dl-azul ) ); color: #fff; border-radius: 20px; padding: 40px 36px; margin: 0 0 8px; }
.dl-hero-text { font-size: 1.1em; opacity: .92; margin-top: 8px; max-width: 40em; }
.dl-hero-kicker { font-size: 0.8em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.dl-hero a, .dl-hero a:visited { color: #fff !important; text-decoration: underline; }
.dl-hero-title { font-size: 2.3em; font-weight: 800; line-height: 1.15; margin: 6px 0 10px; color: #fff; }
.dl-hero-text { font-size: 1.1em; opacity: 0.92; max-width: 34em; }
.dl-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dl-cta a, .dl-cta a:visited { display: inline-block; background: #fff; color: var( --dl-marino ) !important; border-radius: 999px; padding: 10px 20px; font-weight: 700; text-decoration: none; }
.dl-cta-2 a, .dl-cta-2 a:visited { background: rgba( 255, 255, 255, 0.14 ); color: #fff !important; box-shadow: inset 0 0 0 1px rgba( 255, 255, 255, 0.5 ); }
.dl-cta a:hover { text-decoration: none; filter: brightness( 0.96 ); }


.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0 24px; }
/* Tarjetas de materia */
.dl-card { --dl-c: var(--dl-azul); background: #fff; border: 1px solid #e3e8f0; border-top: 6px solid var(--dl-c); border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 6px rgba(15, 23, 42, .06); }
.dl-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) ); gap: 16px; margin: 12px 0 8px; }
.dl-card-title { font-size: 1.3em; font-weight: 700; margin-bottom: 4px; }
.dl-card { --dl-c: var( --dl-azul ); background: #fff; border: 1px solid var( --dl-borde ); border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 8px rgba( 15, 23, 42, 0.06 ); }
.dl-card-title a, .dl-card-title a:visited { color: var(--dl-c) !important; }
.dl-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dl-card-text { color: var(--dl-suave); margin-bottom: 8px; }
.dl-card-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var( --dl-c ); color: #fff; font-weight: 800; font-size: 1.3em; display: flex; align-items: center; justify-content: center; }
.dl-card-title { font-size: 1.3em; font-weight: 700; line-height: 1.2; }
.dl-card-title a, .dl-card-title a:visited { color: var( --dl-c ) !important; }
.dl-card-text { color: var( --dl-suave ); margin-bottom: 8px; font-size: 0.95em; }
.dl-card .CategoryTreeTag { border-top: 1px solid var( --dl-borde ); padding-top: 8px; font-size: 0.95em; }
.dl-mat { --dl-c: #2563eb; }
.dl-mat { --dl-c: #2563eb; }
.dl-con { --dl-c: #0d9488; }
.dl-con { --dl-c: #0d9488; }


.dl-band { background: var(--dl-fondo); border-radius: 12px; padding: 20px; margin: 24px 0; }
/* Cómo funciona */
.dl-band .dl-grid { margin: 0; }
.dl-steps { counter-reset: dl-paso; }
.dl-band .dl-card { border-top-width: 1px; box-shadow: none; }
.dl-step { background: var( --dl-celeste ); border: 0; box-shadow: none; }
.dl-step-title { font-weight: 700; color: var(--dl-marino); font-size: 1.1em; margin-bottom: 4px; }
.dl-step-title { font-weight: 700; color: var( --dl-marino ); font-size: 1.1em; margin-bottom: 4px; }
.dl-step-title::before { counter-increment: dl-paso; content: counter( dl-paso ); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var( --dl-azul ); color: #fff; font-size: 0.85em; margin-right: 8px; }
 
@media ( max-width: 720px ) {
.dl-hero { padding: 28px 22px; border-radius: 16px; }
.dl-hero-title { font-size: 1.8em; }
}

Revisión actual - 18:00 3 nov 2026

/* Documenta Learning: piezas de la portada. El resto del diseño vive en el tema propio (skins/Documenta). */
:root { --dl-azul: #2563eb; --dl-marino: #1e3a8a; --dl-teal: #0d9488; --dl-fondo: #f5f7fa; --dl-celeste: #e8efff; --dl-suave: #475569; --dl-borde: #e3e8f0; }

/* La portada no va dentro de la tarjeta ni lleva título */
.page-Página_principal .dl-page { background: none; border: 0; box-shadow: none; padding: 0; }
.page-Página_principal .dl-titulo,
.page-Página_principal .dl-meta,
.page-Página_principal .mw-first-heading,
.page-Página_principal .vector-page-titlebar { display: none; }
.page-Página_principal .dl-tools { border: 0; margin: 0 0 8px; padding: 0; }
.page-Página_principal .mw-body-content h2 { border: 0; font-size: 1.5em; margin: 1.4em 0 0.4em; }

/* Bienvenida */
.dl-hero { background: linear-gradient( 135deg, var( --dl-marino ), var( --dl-azul ) ); color: #fff; border-radius: 20px; padding: 40px 36px; margin: 0 0 8px; }
.dl-hero-kicker { font-size: 0.8em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.dl-hero-title { font-size: 2.3em; font-weight: 800; line-height: 1.15; margin: 6px 0 10px; color: #fff; }
.dl-hero-text { font-size: 1.1em; opacity: 0.92; max-width: 34em; }
.dl-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dl-cta a, .dl-cta a:visited { display: inline-block; background: #fff; color: var( --dl-marino ) !important; border-radius: 999px; padding: 10px 20px; font-weight: 700; text-decoration: none; }
.dl-cta-2 a, .dl-cta-2 a:visited { background: rgba( 255, 255, 255, 0.14 ); color: #fff !important; box-shadow: inset 0 0 0 1px rgba( 255, 255, 255, 0.5 ); }
.dl-cta a:hover { text-decoration: none; filter: brightness( 0.96 ); }

/* Tarjetas de materia */
.dl-grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) ); gap: 16px; margin: 12px 0 8px; }
.dl-card { --dl-c: var( --dl-azul ); background: #fff; border: 1px solid var( --dl-borde ); border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 8px rgba( 15, 23, 42, 0.06 ); }
.dl-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dl-card-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var( --dl-c ); color: #fff; font-weight: 800; font-size: 1.3em; display: flex; align-items: center; justify-content: center; }
.dl-card-title { font-size: 1.3em; font-weight: 700; line-height: 1.2; }
.dl-card-title a, .dl-card-title a:visited { color: var( --dl-c ) !important; }
.dl-card-text { color: var( --dl-suave ); margin-bottom: 8px; font-size: 0.95em; }
.dl-card .CategoryTreeTag { border-top: 1px solid var( --dl-borde ); padding-top: 8px; font-size: 0.95em; }
.dl-mat { --dl-c: #2563eb; }
.dl-con { --dl-c: #0d9488; }

/* Cómo funciona */
.dl-steps { counter-reset: dl-paso; }
.dl-step { background: var( --dl-celeste ); border: 0; box-shadow: none; }
.dl-step-title { font-weight: 700; color: var( --dl-marino ); font-size: 1.1em; margin-bottom: 4px; }
.dl-step-title::before { counter-increment: dl-paso; content: counter( dl-paso ); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var( --dl-azul ); color: #fff; font-size: 0.85em; margin-right: 8px; }

@media ( max-width: 720px ) {
	.dl-hero { padding: 28px 22px; border-radius: 16px; }
	.dl-hero-title { font-size: 1.8em; }
}