Diferencia entre revisiones de «MediaWiki:Common.css»
De WCAG Wiki
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 5: | Línea 5: | ||
font-variant: normal; | font-variant: normal; | ||
/*font-weight: 700; */ | /*font-weight: 700; */ | ||
line-height: 1.5em; | /*line-height: 1.5em; */ | ||
} | } | ||
#bodyContent h1 { | #bodyContent h1 { | ||
Revisión del 20:52 24 oct 2025
#bodyContent {
font-family: Verdana, Geneva, sans-serif !important;
font-size: 1.4em;
font-style: normal;
font-variant: normal;
/*font-weight: 700; */
/*line-height: 1.5em; */
}
#bodyContent h1 {
color: #1e3a8a;
font-weight: 900;
font-size: 2em !important;
line-height: 1.1;
margin-top:2em;
padding-bottom:0.2em;
}
#bodyContent h2 {
font-family: Verdana, Geneva, sans-serif !important;
color: #1e3a8a;
font-weight: 900;
font-size: 1.8em !important;
line-height: 1.1;
margin-top:2em;
padding-bottom:0.2em;
}
#bodyContent h3 {
font-family: Verdana, Geneva, sans-serif !important;
font-weight: 900;
color: #1e3a8a;
font-size: 1.6em !important;
line-height: 1.1;
border-bottom: solid 2px #c8ccd1;
margin-top:2em;
padding-bottom:0.2em;
}
#bodyContent h4 {
font-family: Verdana, Geneva, sans-serif !important;
color: #1e3a8a;
font-weight: 900;
font-size: 1.4em !important;
line-height: 1.1;
margin-top:2.5em;
padding-bottom:0.2em;
}
#bodyContent a {
text-decoration: underline !important;
}
/* CODIGO DEL EJEMPLO NO ERROR */
.accessibility-card {
border: 1px solid #ccc;
background-color: #e8f5e9;
padding: 0.3em;
/*width: 500px;*/
font-family: sans-serif;
/*position: relative;*/
margin-bottom: 20px;
}
.accessibility-card::before {
content: "";
display: block;
height: 5px;
background-color: #2e7d32;
/*position: absolute; */
top: 0;
left: 0;
right: 0;
}
.accessibility-card h3 {
color: #2e7d32;
margin-top: 12px;
margin-bottom: 8px;
}
.accessibility-card p {
margin: 0 0 12px;
}
.accessibility-card img {
width: 100%;
border: 1px solid #ccc;
margin-bottom: 12px;
}
/* CODIGO DEL EJEMPLO ERROR */
.accessibility-card-error {
border: 1px solid #ccc;
background-color: #fdecea;
padding: 16px;
/*width: 500px;*/
font-family: sans-serif;
position: relative;
margin-bottom: 20px;
}
.accessibility-card-error::before {
content: "";
display: block;
height: 5px;
background-color: #c62828;
position: absolute;
top: 0;
left: 0;
right: 0;
}
.accessibility-card-error h3 {
color: #c62828;
margin-top: 12px;
margin-bottom: 8px;
}
.accessibility-card-error p {
margin: 0 0 12px;
}
.accessibility-card-error img {
width: 100%;
border: 1px solid #ccc;
margin-bottom: 12px;
}
/* codigo creado CSS afra pruebas */
.custom-post-item {
padding: 40px;
background-color: #ffffff;
border-radius: .5rem;
border: 0 solid #e5e7eb;
display: flex;
justify-content: space-between;
--tw-ring-offset-shadow: 0 0 #0000;
--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
--tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px 0 var(--tw-shadow-color);
flex-direction: row;
flex-direction: column;
}
.acordeon-estilizado {
border: 1px solid #ccc;
border-radius: 8px;
padding: 8px;
background-color: #f9f9f9;
margin-bottom: 10px;
}
.acordeon-estilizado summary {
cursor: pointer;
font-weight: bold;
background-color: #e6e6e6;
padding: 5px;
border-radius: 5px;
}
.acordeon-estilizado[open] summary {
background-color: #d0d0d0;
}
/* Oculta el enlace 'deshacer' en el historial solo para usuarios del grupo alumnos */
.group-alumnos .mw-history-undo {
display: none !important;
}
/* para el botón del bookmarklet */
.highlight-box {
border: 2px solid black;
background-color: #eeeee4; /* marroncito suave */
padding: 15px;
margin: 10px 0;
border-radius: 8px;
font-family: sans-serif;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.bookmarklet-button {
display: inline-block;
padding: 10px 16px;
background-color: #0078D7;
color: white;
font-weight: bold;
text-decoration: none;
border-radius: 6px;
border: 2px solid #005A9E;
cursor: grab;
}
.bookmarklet-button:hover {
background-color: #005A9E;
color: white;
}
/* para ocultar elementos visualmente */
.visually-hidden {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
white-space: nowrap;
}
/* para las clases de la ficha general del criterio */
.wcag-card {
max-width: 100%;
background: #f5f7fa;
border: 1px solid #e5e7eb;
/*border-radius: 1rem; */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
padding: 0.5rem;
display: flex;
flex-direction: column;
}
/*
.wcag-level {
font-weight: 600;
background-color: #16a34a;
color: white;
padding: 0.5rem 0.8rem;
border-radius: 0.5rem;
font-size: 0.9rem;
}
.wcag-name {
font-size: 1.5rem;
margin-top: 0.5rem;
margin-bottom: 1rem;
color: #2563eb;
border: 1px solid red;
}*/
/* Lista principal de propiedades */
.wcag-info ul {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin: 0;
padding: 0 0 0 0.5em;
list-style-type: none;
}
.wcag-info li {
background: #f9fafb;
border: 1px solid #e5e7eb;
padding: 0.3rem 1rem;
flex: 1 1 200px;
box-sizing: border-box;
}
.wcag-info .label {
display: block;
font-family: Verdana, Geneva, sans-serif !important;
font-weight: 600;
color: #374151;
font-size: 1.1em;
margin-bottom: 0.3rem;
}
.wcag-info .value {
display: block;
margin: 0;
font-size: 1.1em;
color: #111827;
}
/* Usuarios afectados */
.wcag-users {
background-color: #eef2ff;
border-left: 4px solid #2563eb;
/*border-radius: 0.5rem; */
gap: 1rem;
margin: 1em 0 0 0.5em;
padding: 0.5em;
}
.wcag-users p {
font-size: 1.4rem;
font-weight: 600;
color: #1e3a8a;
margin-top: 0;
margin-bottom: 0.5rem;
}
.wcag-users ul {
margin: 0;
padding: 0;
list-style: none;
}
.wcag-users li {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 0.4rem;
line-height: 1.4;
}
.wcag-users img {
width: 28px;
height: 28px;
object-fit: contain;
vertical-align: middle;
flex-shrink: 0;
}
.gravedad {
display: inline-block;
padding: 0.1em;
font-weight: 400;
line-height: 1;
/*color: #fff;*/ /* Por defecto, asumiendo un color de texto claro */
/*color:black;*/
text-align: center;
white-space: nowrap;
vertical-align: baseline;
/*background-color: #DDE2E9;*/
border-radius: .25rem; /* O un valor mayor para más redondez */
}
/* === Tonos pastel cálidos para niveles de barrera === */
/* Grave – rojo pastel accesible */
.gravedad-grave {
background-color: #fde8e8; /* rojo pastel claro */
color: #a32020; /* rojo oscuro para contraste */
border: 1px solid #f5b5b5; /* borde ligeramente más fuerte */
padding: 0.05em 0.06em;
border-radius: 0.3em;
}
/* Moderada – naranja/ámbar tostado pastel */
.gravedad-moderada {
background-color: #fff2e0; /* naranja muy claro */
color: #b85c00; /* naranja tostado oscuro */
border: 1px solid #ffd1a3;
padding: 0.05em 0.06em;
border-radius: 0.3em;
}
/* Leve – amarillo cálido pastel */
.gravedad-leve {
background-color: #fff9db; /* amarillo claro pastel */
color: #7a6000; /* mostaza oscura para legibilidad */
border: 1px solid #FFE478;/* #ffec99;*/
padding: 0.05em 0.06em;
border-radius: 0.3em;
}
/* texto que describe el criterio */
.wcag-info-criterio {
background-color: #F5F7FA; /*amarillo: #F9F8C8;*/
border-left: 4px solid #000000; /*amarillo:#FDD84E;*/
/*border-radius: 0.5rem;*/
padding: 0.5em;
padding-bottom: 0.8em;
margin: 0.1rem;
display: block;
}
.wcag-codigo-html {
border: 2px solid black;
color: white;
/*font-family: 'Menlo','Consolas','Monaco','Noto Mono','Nimbus Mono L',monospace; */ /*"Times New Roman", Times, serif;*/
font-family: "Times New Roman", Times, serif !important;
font-size: 1.3em;
background-color: black; /*#eeeee4;*/ /* marroncito suave */
padding: 1.5em;
margin: 1.5em 1em;
/*border-radius: 8px; */
box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
/* Solo afecta a las listas <ol> con clase paso-list */
ol.paso-list {
list-style: none !important;
margin: 0 !important;
padding: 0.1em 0em !important;
}
.paso-list li {
padding: 0.5em 0em !important;
}
.paso-badge {
display: inline-block;
padding: .15em .45em;
font-weight: 700;
line-height: 1;
/*color: #fff;*/ /* Por defecto, asumiendo un color de texto claro */
color:black;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
background-color: #DDE2E9;
border-radius: .25rem; /* O un valor mayor para más redondez */
}
/* Texto solo visible para lectores de pantalla */
.sr-only {
position: absolute !important;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Permite mostrar el texto en pantalla al enfocar (por ejemplo con tabulación) */
.sr-only:focus,
.sr-only:active {
position: static !important;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
white-space: normal;
}
/* ============================================================
ESTILOS DE LAS FICHAS DE CATEGORÍA WCAG
(Plantilla:Categoria_discapacidad)
============================================================ */
/* --- Contenedor general --- */
.wcag-categoria {
background-color: #fafafa;
border: 1px solid #ddd;
padding: 1.5em;
margin: 1.5em 0 2.5em 0;
font-size: 1em;
line-height: 1.6;
}
/* --- Encabezado: icono + título en línea --- */
.categoria-header {
display: flex;
align-items: center;
gap: 1em;
background-color: #EAEBF1;
border-left: 5px solid #000;
padding: 1em;
text-align: left;
border-radius: 0.4em;
}
/* --- Icono alineado a la izquierda --- */
.categoria-header img.icon-discapacidad {
width: 80px;
height: auto;
display: block;
border: none;
background: transparent;
flex-shrink: 0;
}
/* --- Título junto al icono --- */
.categoria-titulo {
flex: 1;
}
.categoria-titulo h2 {
font-size: 1.6em;
color: #000;
margin: 0;
}
/* --- Línea divisoria debajo del encabezado --- */
.categoria-divider {
border-bottom: 2px solid #000;
margin: 0.8em 0;
}
/* --- Descripción debajo de la línea --- */
.categoria-descripcion {
font-size: 1em;
color: #000;
margin: 0;
padding-left: 0.3em;
}
/* --- Bloques de contenido --- */
.categoria-impacto,
.categoria-criterios {
margin-top: 1em;
}
.categoria-impacto h3,
.categoria-criterios h3 {
color: #3b82f6;
font-size: 1.15em;
margin-bottom: 0.4em;
}
.categoria-impacto p {
margin-top: 0.2em;
color: #333;
}
.categoria-criterios ul {
list-style: none;
padding-left: 0;
margin: 0.5em 0;
}
.categoria-criterios li {
margin: 0.3em 0;
}
/* --- Responsive: icono arriba y texto centrado en pantallas pequeñas --- */
@media (max-width: 700px) {
.categoria-header {
flex-direction: column;
align-items: center;
text-align: center;
}
.categoria-header img.icon-discapacidad {
width: 70px;
margin-bottom: 0.5em;
}
.categoria-titulo h2 {
font-size: 1.3em;
}
.categoria-divider {
width: 100%;
}
.categoria-descripcion {
text-align: center;
}
}
