MediaWiki:Minerva.less/transcripts.less

From Old School RuneScape Wiki
Jump to navigation Jump to search
/* ===========================
		Transcript lists
   =========================== */

// section element is only in mobile
// can exclude .mw-parser-output to reduce size
.ns-120 section,
.transcript {
	ul, ol {
		// Minerva adds 1em padding-left to all lists
		padding: 0;
	}
	
	ul {
		
		// no left-margin for the outermost list, because that already gets extra padding without an alignment marker.
		margin: 5px 0 0 0;

		// make margins for ul and ol consistent for indented lists
		ul, ol {
			margin: 5px 0 0 15px;
		}

		// need to exclude TOC
		&, ul, ol {
			list-style: none !important; // stop minerva adding icons to nested lists
			// alignment markers for each of the lists
			border-left: 1px dashed var(--transcript-border-color);

			&:hover {
				border-color: var(--transcript-border-hover-color);
			}

			li {
				flex-direction: column;
				padding-left: 10px;
				margin: 14px 0;

				// Don't want double margin at the bottom (from li plus ul)
				&:last-of-type {
					margin-bottom: 0;
				}
			}
		}
	}
}