Permanently protected template

Template:TOC right/styles.css: Difference between revisions

From Vigyanwiki
< Template:TOC right
(do the same thing I apparently did to tocleft much earlier)
 
m (1 revision imported from alpha:Template:TOC_right/styles.css)
 
(2 intermediate revisions by 2 users not shown)
(No difference)

Latest revision as of 18:39, 17 February 2023

/* {{pp-template}} */
/* The TOC is hidden on Minerva (mobile skin) for width < 720px so must also hide this wrapper */
@media all and (max-width: 720px) {
	body.skin-minerva .tocright {
		display: none;
	}
	
	.tocright {
		width: 100% !important; /* fix the inline width while at small resolution */
	}
}
@media all and (min-width: 720px) {
	.tocright {
		float: right;
		clear: right;
		width: auto;
		margin: 0 0 0.5em 1em; 
	}
	
	.tocright-clear-left {
		clear: left;
	}
	
	.tocright-clear-both {
		clear: both;
	}
	
	.tocright-clear-none {
		clear: none;
	}
}