MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 65: Line 65:
}
}


/* ── Doc title — black, large (inline h1 at page top) ───────────
/* ── Doc title — black, large ────────────────────────────────────*/
  Only the document title (श्रीमद्भगवद्गीताप्रस्थानम्) uses this.
  ────────────────────────────────────────────────────────────────*/
.gr-doc-title {
.gr-doc-title {
   font-size: 1.6em;
   font-size: 1.6em;
Line 75: Line 73:
   margin: 0 0 16px;
   margin: 0 0 16px;
   border: none !important;
   border: none !important;
}
/* Suppress empty paragraphs MW inserts after divs */
.gr-doc-teekas + p:empty {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}
}


Line 386: Line 391:
   ────────────────────────────────────────────────────────────────*/
   ────────────────────────────────────────────────────────────────*/
.gr-chapter-nav {
.gr-chapter-nav {
   float: right;
   position: fixed;
   position: sticky;
  top: 80px;
   top: 80px;           /* stays visible while scrolling */
  right: 20px;
   margin: 0 0 1.5em 1.5em;
   width: 200px;
   max-height: calc(100vh - 100px);
   overflow-y: auto;
   padding: 10px 14px 12px;
   padding: 10px 14px 12px;
   background: #f9f9f9;
   background: #f9f9f9;
   border: 1px solid #e2e2e6;
   border: 1px solid #e2e2e6;
   border-radius: 8px;
   border-radius: 8px;
   min-width: 160px;
   font-size: 0.75em;
   max-width: 240px;
   line-height: 1.85;
   max-height: calc(100vh - 100px);
   z-index: 100;
   overflow-y: auto;
   box-sizing: border-box;
  font-size: 0.82em;
}
   line-height: 1.9;
 
/* On narrow screens where nav would cover content, hide it */
@media (max-width: 1200px) {
   .gr-chapter-nav { display: none; }
}
}