User:Fish bowl/compactToc.css

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Note – after saving, you may have to bypass your browser’s cache to see the changes.

  • Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh);
  • Konqueror and Chrome: click Reload or press F5;
  • Opera: clear the cache in Tools → Preferences;
  • Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.

.toc { font-family: Tahoma, sans-serif; letter-spacing: 0; }
.toclevel-1 * { display: inline; }
.toclevel-1 ul { margin: 0 !important; }
.tocnumber { display: none; }

.toclevel-1:before {
	content: '◆';
	margin-right: 2px;
}
.toclevel-1 > a .toctext { display: inline; min-width: 6em; margin-right: 1em; }
.toclevel-1 > a .toctext:after { content: ':'; }

.toclevel-2:not(:first-child):before { content: ':'; }

.toclevel-2 ul:before { content: '('; }
.toclevel-2 ul:after { content: ')'; }
.toclevel-3 { font-size: 90%; }
.toclevel-3:not(:first-child):before { content: ':'; }

.toclevel-3 ul:before { content: '['; }
.toclevel-3 ul:after { content: ']'; }
.toclevel-4 { font-size: 80%; }
.toclevel-4:not(:first-child):before { content: ':'; }

.toclevel-4 ul:before { content: '{'; }
.toclevel-4 ul:after { content: '}'; }
.toclevel-5:not(:first-child):before { content: ':'; }