MediaWiki:Common.css: Difference between revisions

no edit summary
(Undo revision 75795 by Gurwinder (talk))
Tags: Undo Reverted
No edit summary
 
(38 intermediate revisions by the same user not shown)
Line 163: Line 163:
max-width:70%;
max-width:70%;
height:auto;
height:auto;
}
.mw-indicators {
  display: none;
}
}


Line 174: Line 171:
     display: none;
     display: none;
}
}
.mw-indicators {
  display: none;
}
@media only screen and (max-width: 767px) {
    .pre-content h1, .content h1, .content h2 {
        display: block !important;
    }
}
.mw-parser-output a.external {
    background-image: none !important;
    padding-right: 0px !important;
}
.mw-ui-button.mw-ui-progressive:not(:disabled) {
    background-color: #3366cc !important;
}
#editpage-specialchars {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    height: 50px;
    overflow-y: auto;
    overflow-x: hidden;
}
nav#p-coll-print_export {
    display: none;
}
/* === Tree-chart overrides (scoped, safe) ===
  Fixes large font / justification / padding inherited from the site-wide rules.
*/
.tree-chart-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  vertical-align: top !important;
  /* prevent the large site font from inflating connector cells */
  font-size: 14px !important;      /* tune this if you want bigger/smaller boxes */
  line-height: 1 !important;
  text-align: center !important;    /* center boxed labels; connectors use borders */
  font-family: inherit !important;  /* use same family but scaled down */
}
/* Make connector cells truly tiny and not affected by global padding/justify */
.tree-chart-table td {
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: top !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
/* Boxed content cells (the visible labeled boxes) — provide readable padding */
.tree-chart-table td[style*="border: 2px solid"],
.tree-chart-table td[style*="border:2px solid"] {
  padding: 0.35em 0.9em !important; /* tweak if you want larger/smaller boxes */
  white-space: normal !important;
  font-size: 1em !important;        /* relative to the .tree-chart-table font-size above */
  text-align: center !important;
}
/* Ensure very small connector cells keep fixed dimensions */
.tree-chart-table td[style*="height:1em"],
.tree-chart-table td[style*="height: 1em"] {
  height: 1em !important;
  min-height: 1em !important;
  max-height: 1em !important;
}
/* Keep border styles visible on tiny cells */
.tree-chart-table td { border-collapse: collapse !important; }
/* Optional debug aid (uncomment while adjusting) */
/* .tree-chart-table td { outline: 1px solid rgba(0,0,0,0.05) !important; } */