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
   ────────────────────────────────────────────────────────────────*/
   ────────────────────────────────────────────────────────────────*/
/* ── MW native TOC — styled to match site ───────────────────────*/
/* ── Inline TOC box (hand-built, always visible) ─────────────────*/
#toc, .toc {
.gr-toc {
  float: right;
  clear: right;
  margin: 0 0 1.5em 2em;
  padding: 10px 16px 14px;
   background: #f9f9f9;
   background: #f9f9f9;
   border: 1px solid #e2e2e6;
   border: 1px solid #e2e2e6;
   border-radius: 8px;
   border-radius: 8px;
   padding: 10px 14px 12px;
   min-width: 160px;
  max-width: 240px;
   font-size: 0.78em;
   font-size: 0.78em;
   line-height: 1.85;
   line-height: 1.9;
  float: right;
  clear: right;
  margin: 0 0 1.5em 1.5em;
  min-width: 180px;
  max-width: 220px;
}
}


.toctitle h2 {
.gr-toc-title {
   font-size: 0.85em !important;
   font-family: system-ui, sans-serif !important;
   font-weight: 600 !important;
   font-size: 0.82em;
   color: #888 !important;
   font-weight: 600;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   letter-spacing: 0.06em;
   border: none !important;
   color: #888;
   border-bottom: 1px solid #ddd !important;
   border-bottom: 1px solid #ddd;
  width: 100% !important;
   margin-bottom: 6px;
   margin: 0 0 6px !important;
   padding-bottom: 4px;
   padding-bottom: 4px !important;
}
}


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


.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 ─────────*/