Ir al contenido

Diferencia entre revisiones de «MediaWiki:Common.css»

De Caballipedia
Sin resumen de edición
Etiqueta: Revertido
Sin resumen de edición
Etiqueta: Revertido
Línea 1: Línea 1:
/* Ocultar elementos para usuarios anónimos (no logueados) */
/* Ocultar para usuarios anónimos el botón "Discusión" en barra principal, barra flotante y menús */
 
/* Añadimos la clase anon-user al body con JS, y en CSS actuamos con ella */
 
.anon-user
.anon-user
   #ca-talk,                                 /* Discusión */
   #ca-talk,
   .mw-sticky-header-element #ca-talk,
   .mw-sticky-header-element #ca-talk,
   .mw-sticky-header-element a[title*="Discusión"],
   .mw-sticky-header-element a[title*="Discusión"],
   #p-views #ca-talk,
   #p-views #ca-talk,
   #p-views a[title*="Discusión"],
   #p-views a[title*="Discusión"] {
    display: none !important;
}


   #ca-source,                               /* Código fuente */
/* Ocultar para usuarios anónimos el botón "Ver código fuente" / "Código fuente" */
.anon-user
  #ca-viewsource,
   #ca-source,
  .mw-sticky-header-element #ca-viewsource,
   .mw-sticky-header-element #ca-source,
   .mw-sticky-header-element #ca-source,
   .mw-sticky-header-element a[title*="Código fuente"],
   .mw-sticky-header-element a[title*="Código fuente"],
  .mw-sticky-header-element a[title*="Ver código fuente"],
  #p-views #ca-viewsource,
   #p-views #ca-source,
   #p-views #ca-source,
   #p-views a[title*="Código fuente"],
   #p-views a[title*="Código fuente"],
  .mw-sticky-header-element a[title*="Ver código fuente"],
   #p-views a[title*="Ver código fuente"] {
   #p-views a[title*="Ver código fuente"],
    display: none !important;
}


   #ca-protect,                               /* Proteger/Desproteger */
/* Ocultar para usuarios anónimos botones Proteger y Desproteger */
.anon-user
   #ca-protect,
   #ca-unprotect,
   #ca-unprotect,
   .mw-sticky-header-element #ca-protect,
   .mw-sticky-header-element #ca-protect,
   .mw-sticky-header-element #ca-unprotect,
   .mw-sticky-header-element #ca-unprotect {
    display: none !important;
}


   #ca-watch,                                 /* Lista de seguimiento */
/* Ocultar para usuarios anónimos botones Añadir/Quitar de la lista de seguimiento */
.anon-user
   #ca-watch,
   #ca-unwatch,
   #ca-unwatch,
   .mw-sticky-header-element #ca-watch,
   .mw-sticky-header-element #ca-watch,
Línea 36: Línea 48:
}
}


/* Opcional: ocultar también los contenedores <li> para evitar espacios vacíos */
/* Ocultar contenedores li padres para evitar espacios en blanco en menús */
.anon-user
.anon-user
   #ca-talk,
   #ca-talk,
  #ca-viewsource,
   #ca-source,
   #ca-source,
   #ca-protect,
   #ca-protect,
Línea 45: Línea 58:
   #ca-unwatch,
   #ca-unwatch,
   .mw-sticky-header-element #ca-talk,
   .mw-sticky-header-element #ca-talk,
  .mw-sticky-header-element #ca-viewsource,
   .mw-sticky-header-element #ca-source,
   .mw-sticky-header-element #ca-source,
   .mw-sticky-header-element #ca-protect,
   .mw-sticky-header-element #ca-protect,

Revisión del 01:14 25 jun 2025

/* Ocultar para usuarios anónimos el botón "Discusión" en barra principal, barra flotante y menús */
.anon-user
  #ca-talk,
  .mw-sticky-header-element #ca-talk,
  .mw-sticky-header-element a[title*="Discusión"],
  #p-views #ca-talk,
  #p-views a[title*="Discusión"] {
    display: none !important;
}

/* Ocultar para usuarios anónimos el botón "Ver código fuente" / "Código fuente" */
.anon-user
  #ca-viewsource,
  #ca-source,
  .mw-sticky-header-element #ca-viewsource,
  .mw-sticky-header-element #ca-source,
  .mw-sticky-header-element a[title*="Código fuente"],
  .mw-sticky-header-element a[title*="Ver código fuente"],
  #p-views #ca-viewsource,
  #p-views #ca-source,
  #p-views a[title*="Código fuente"],
  #p-views a[title*="Ver código fuente"] {
    display: none !important;
}

/* Ocultar para usuarios anónimos botones Proteger y Desproteger */
.anon-user
  #ca-protect,
  #ca-unprotect,
  .mw-sticky-header-element #ca-protect,
  .mw-sticky-header-element #ca-unprotect {
    display: none !important;
}

/* Ocultar para usuarios anónimos botones Añadir/Quitar de la lista de seguimiento */
.anon-user
  #ca-watch,
  #ca-unwatch,
  .mw-sticky-header-element #ca-watch,
  .mw-sticky-header-element #ca-unwatch {
    display: none !important;
}

/* Ocultar menú lateral de herramientas y pestaña de historial para usuarios anónimos */
.anon-user #p-tb,
.anon-user #ca-history {
  display: none !important;
}

/* Ocultar contenedores li padres para evitar espacios en blanco en menús */
.anon-user
  #ca-talk,
  #ca-viewsource,
  #ca-source,
  #ca-protect,
  #ca-unprotect,
  #ca-watch,
  #ca-unwatch,
  .mw-sticky-header-element #ca-talk,
  .mw-sticky-header-element #ca-viewsource,
  .mw-sticky-header-element #ca-source,
  .mw-sticky-header-element #ca-protect,
  .mw-sticky-header-element #ca-unprotect,
  .mw-sticky-header-element #ca-watch,
  .mw-sticky-header-element #ca-unwatch {
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}