Jump to content

MediaWiki:Gadget-ptoc.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === WARNING: GADGET FILE ===                      |
 * |                  Changes to this page affect many users.                    |
 * | Please discuss changes on the talk page or on [[MediaWiki_talk:Gadgets-definition]] before editing. |
 * |_____________________________________________________________________________|
 *
 * Adds persistent table of contents. See [[User:Prtksxna/ptoc]]
 * Copied from https://en.wikipedia.org/enwiki/w/index.php?title=User:Prtksxna/ptoc.css&oldid=663987766
 */
.floatTOC {
	transition: 0.2s all ease;
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	border: none;
	background: #f6f6f6;
	font-size: 0.8em;
	max-width: 10em;
	padding: 1.2em;
	height: 100%;
	white-space: nowrap;
	overflow: hidden;
}
 
.floatTOC ul ul {
	margin: 0 0 0 0.75em;
}
 
.floatTOC:hover {
	max-width: 1000em;
	overflow: auto;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
 
.floatTOC > * {
	transition: 0.2s all ease;
	opacity: 0.5;
}
 
.floatTOC:hover > * {
	opacity: 1;
}
 
.floatTOC .tocnumber {
	display: none;
}
 
.floatTOC a {
	color: #000;
}
 
.floatTOC .toctoggle {
	display: none;
}
 
.floatTOC #toctitle {
	display: none;
}