Array

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(165 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Responsive: Related articles - título arriba, contenido abajo */
 
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
/* Removing the numbers and bullet points from table of contents */
 
.tocnumber {display: none}
    .related-articles-box{
.tocmarker {display: none}
word-break: keep-all;
 
}
/* Template:TOC limit styles */
 
.toclimit-2 .toclevel-1 ul,  
  /* Solución: scroll horizontal solo en el contenedor de la tabla, no en toda la página */
.toclimit-3 .toclevel-2 ul,
  /* Remover overflow-x de los contenedores principales para evitar scroll en toda la página */
.toclimit-4 .toclevel-3 ul,
  .mw-parser-output,
.toclimit-5 .toclevel-4 ul,
  .mw-content-text {
.toclimit-6 .toclevel-5 ul,
  overflow-x: visible !important;
.toclimit-7 .toclevel-6 ul {
  }
  display: none;
 
}
  /* Aplicar scroll horizontal a contenedores específicos que comúnmente tienen tablas */
 
  /* Para elementos colapsables que contienen tablas */
/* <source lang="css"> */
  .mw-parser-output .mw-collapsible-content,
 
  .mw-content-text .mw-collapsible-content,
/* {{header}} */
  .mw-parser-output .collapsible-content,
table.headertemplate {
  .mw-content-text .collapsible-content {
width:100%;
  overflow-x: auto !important;
text-align:center;
  -webkit-overflow-scrolling: touch !important;
font-size:0.9em;
  width: 100% !important;
}
  max-width: 100% !important;
.headertemplate .header_backlink,
  }
.headertemplate .header_forelink {
 
width:20%;
  /* Las tablas mantienen su ancho fijo de 2000px */
font-size:0.9em;
  .mw-parser-output table.wikitable,
line-height:normal;
  .mw-content-text table.wikitable,
}
  .mw-parser-output table:not([class]),
.header_notes {
  .mw-content-text table:not([class]) {
width:100%;
  width: 2000px !important;
font-size:0.9em;
  min-width: 2000px !important;
}
  max-width: 2000px !important;
.headertemplate .header_title { width: 60%; }
  table-layout: auto !important;
.headertemplate .header_backlink { text-align:left; }
  display: table !important;
.headertemplate .header_forelink { text-align:right; }
  margin: 1em 0 !important;
 
  }
 
 
/**
  /* Sobrescribir estilos inline de width */
* Style for horizontal lists (separator following item).
  .mw-parser-output table.wikitable[style*="width"],
* @source https://www.mediawiki.org/wiki/Snippets/Horizontal_lists
  .mw-content-text table.wikitable[style*="width"],
* @revision 9 (2016-08-10)
  .mw-parser-output table[style*="width"]:not([class]),
* @author [[User:Edokter]]
  .mw-content-text table[style*="width"]:not([class]) {
*/
  width: 2000px !important;
.hlist dl,
  min-width: 2000px !important;
.hlist ol,
  max-width: 2000px !important;
.hlist ul {
  display: table !important;
margin: 0;
  }
padding: 0;
 
}
  /* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
 
  .mw-parser-output table.wikitable th,
/* Display list items inline */
  .mw-content-text table.wikitable th,
.hlist dd,
  .mw-parser-output table.wikitable td,
.hlist dt,
  .mw-content-text table.wikitable td,
.hlist li {
  .mw-parser-output table th,
/* don't trust the note that says margin doesn't work with inline
  .mw-content-text table th,
* removing margin: 0 makes dds have margins again */
  .mw-parser-output table td,
margin: 0;
  .mw-content-text table td {
display: inline;
  white-space: normal !important;
}
  word-wrap: break-word !important;
 
  overflow-wrap: break-word !important;
/* Display nested lists inline */
  width: revert-layer !important;
.hlist.inline,
  max-width: 100% !important;
.hlist.inline dl,
  }
.hlist.inline ol,
 
.hlist.inline ul,
  /* Asegurar que el collapse/expand no se vea afectado */
.hlist dl dl,
  .mw-collapsible.mw-collapsed table,
.hlist dl ol,
  .mw-collapsible:not(.mw-collapsed) table {
.hlist dl ul,
  display: table !important;
.hlist ol dl,
  }
.hlist ol ol,
 
.hlist ol ul,
  table.wikitable > caption {
.hlist ul dl,
  font-weight: bold;
.hlist ul ol,
  width: 40%;
.hlist ul ul {
  text-align: left;
display: inline;
  }
}
  }
 
/* Hide empty list items */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
display: none;
}
 
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
 
.hlist dd:after,
.hlist li:after {
content: "  •  ";
font-weight: bold;
}
 
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
 
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
 
.hlist dd dd:last-child:after,
.hlist dd dt:last-child:after,
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
 
/* Put ordinals in front of ordered list items */
.hlist ol {
counter-reset: listitem;
}
 
.hlist ol > li {
counter-increment: listitem;
}
 
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
 
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
 
/* Restore classic float alignment for images in Parsoid */
figure.mw-halign-right {
    float: right;
    clear: right;
    margin: 0.5em 0 1em 1em;
}
 
figure.mw-halign-left {
    float: left;
    clear: left;
    margin: 0.5em 1em 1em 0;
}
 
figure.mw-halign-center {
    margin-left: auto;
    margin-right: auto;
    display: table;
}
 
/* Prevent text overlapping */
figure.mw-halign-right,
figure.mw-halign-left {
    max-width: 100%;
}
 
/* </source> */
 
/* Hide page title ONLY on normal view pages */
body.action-view #firstHeading {
    display: none;
}
 
/* COLLAPSE HEADERS */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    padding: 0.5em 0;
    border-bottom: 1px solid #a2a9b1;
    display: flex;
    align-items: center;
    line-height: 1.3;
}
.collapsible-header > * {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
}
.collapse-toggle {
    font-size: 0.5em;
    color: #54595d;
    display: inline-block;
    transition: none;
    margin-right: 2px;
    font-weight: normal;
    line-height: 1;
}
.collapsible-header.open .collapse-toggle {
    transform: none;
}
.collapsible-content {
    padding: 0 !important;
    margin: 0.5em 0 1em 0;
    border-bottom: none;
    font-size: 0.875em;
    line-height: 1.6;
    font-family: sans-serif;
    color: #202122;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-indent: 0 !important;
}
.collapsible-content *,
.collapsible-content pre,
.collapsible-content code {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}
.collapsible-content p {
    margin: 0.5em 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}
.collapsible-content p:first-child {
    margin-top: 0.5em !important;
}
.collapsible-content a {
    color: #0645ad;
    text-decoration: none;
}
.collapsible-content a:visited {
    color: #0b0080;
}
.collapsible-content a:hover {
    text-decoration: underline;
}

Latest revision as of 14:01, 30 January 2026

/* Responsive: Related articles - título arriba, contenido abajo */
@media only screen and (max-width: 768px), only screen and (max-device-width: 768px) {
  
    .related-articles-box{
		word-break: keep-all;
	 }
	   
	   /* Solución: scroll horizontal solo en el contenedor de la tabla, no en toda la página */
	   /* Remover overflow-x de los contenedores principales para evitar scroll en toda la página */
	   .mw-parser-output,
	   .mw-content-text {
		   overflow-x: visible !important;
	   }
	   
	   /* Aplicar scroll horizontal a contenedores específicos que comúnmente tienen tablas */
	   /* Para elementos colapsables que contienen tablas */
	   .mw-parser-output .mw-collapsible-content,
	   .mw-content-text .mw-collapsible-content,
	   .mw-parser-output .collapsible-content,
	   .mw-content-text .collapsible-content {
		   overflow-x: auto !important;
		   -webkit-overflow-scrolling: touch !important;
		   width: 100% !important;
		   max-width: 100% !important;
	   }
	   
	   /* Las tablas mantienen su ancho fijo de 2000px */
	   .mw-parser-output table.wikitable,
	   .mw-content-text table.wikitable,
	   .mw-parser-output table:not([class]),
	   .mw-content-text table:not([class]) {
		   width: 2000px !important;
		   min-width: 2000px !important;
		   max-width: 2000px !important;
		   table-layout: auto !important;
		   display: table !important;
		   margin: 1em 0 !important;
	   }
	   
	   /* Sobrescribir estilos inline de width */
	   .mw-parser-output table.wikitable[style*="width"],
	   .mw-content-text table.wikitable[style*="width"],
	   .mw-parser-output table[style*="width"]:not([class]),
	   .mw-content-text table[style*="width"]:not([class]) {
		   width: 2000px !important;
		   min-width: 2000px !important;
		   max-width: 2000px !important;
		   display: table !important;
	   }
	   
	   /* Las celdas tienen anchos razonables y permiten que el texto se ajuste normalmente */
	   .mw-parser-output table.wikitable th,
	   .mw-content-text table.wikitable th,
	   .mw-parser-output table.wikitable td,
	   .mw-content-text table.wikitable td,
	   .mw-parser-output table th,
	   .mw-content-text table th,
	   .mw-parser-output table td,
	   .mw-content-text table td {
		   white-space: normal !important;
		   word-wrap: break-word !important;
		   overflow-wrap: break-word !important;
		   width: revert-layer !important;
		   max-width: 100% !important;
	   }
	   
	   /* Asegurar que el collapse/expand no se vea afectado */
	   .mw-collapsible.mw-collapsed table,
	   .mw-collapsible:not(.mw-collapsed) table {
		   display: table !important;
	   }
	   
   table.wikitable > caption {
	   font-weight: bold;
	   width: 40%;
	   text-align: left;
   }
  }