MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 391: Line 391:
   Lists all adhyayas as links, floats right like reference site
   Lists all adhyayas as links, floats right like reference site
   ────────────────────────────────────────────────────────────────*/
   ────────────────────────────────────────────────────────────────*/
/* ── Page layout flex row: content left + nav right ────────────*/
/* ── MW native TOC styled to match site ───────────────────────*/
.gr-page-wrap {
#toc, .toc {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
 
.gr-content {
  flex: 1 1 0;
  min-width: 0;
  order: 1;
  padding: 0 8px 0 0;
}
 
.gr-chapter-nav {
  flex: 0 0 200px;
  width: 200px;
  order: 2;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 10px 14px 12px;
   background: #f9f9f9;
   background: #f9f9f9;
   border: 1px solid #e2e2e6;
   border: 1px solid #e2e2e6;
   border-radius: 8px;
   border-radius: 8px;
   font-size: 0.75em;
  padding: 10px 14px 12px;
   font-size: 0.78em;
   line-height: 1.85;
   line-height: 1.85;
   box-sizing: border-box;
   float: right;
   align-self: flex-start;
  clear: right;
  margin: 0 0 1.5em 1.5em;
  min-width: 180px;
   max-width: 220px;
}
}


@media (max-width: 900px) {
.toctitle h2 {
  .gr-page-wrap { display: block; }
   font-size: 0.85em !important;
   .gr-chapter-nav { display: none; }
   font-weight: 600 !important;
  .gr-content { padding-right: 0; }
   color: #888 !important;
}
 
.gr-chapter-nav-title {
  font-family: system-ui, -apple-system, sans-serif !important;
   font-size: 0.78em;
   font-weight: 600;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   letter-spacing: 0.06em;
   color: #888;
   border: none !important;
   border-bottom: 1px solid #ddd;
   border-bottom: 1px solid #ddd !important;
   margin-bottom: 6px;
  width: 100% !important;
   padding-bottom: 4px;
   margin: 0 0 6px !important;
   padding-bottom: 4px !important;
}
}


.gr-chapter-nav ul { list-style: none; margin: 0; padding: 0; }
.toctogglespan, .toctoggle { display: none !important; }
.gr-chapter-nav li { margin: 0; padding: 0; }
.toc a { color: #555 !important; text-decoration: none !important; }
.gr-chapter-nav li a { color: #555; text-decoration: none; display: block; padding: 1px 0; }
.toc a:hover { color: #f57c00 !important; }
.gr-chapter-nav li a:hover { color: #f57c00; }
.toc ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.toc li { margin: 0 !important; padding: 0 !important; }
.tocnumber { display: none !important; }


.gr-doc-teekas { margin-bottom: 1em; }
.gr-doc-teekas { margin-bottom: 1em; }


/* ── Main page (gr-home) — card grid like reference site ─────────*/
/* ── Main page (gr-home) — card grid like reference site ─────────*/