MediaWiki:Common.less/pagepreviews.less

From Old School RuneScape Wiki
Jump to navigation Jump to search
// Page preview popups
.mwe-popups {
	background: var(--body-light);
	.mwe-popups-container {
		background: var(--body-light);

		// arrow pointing to link
		// seems to be a different class for each possible position and img combination
		&.flipped-x-y:before,
		&.flipped-y:before {
			border-top: none;
		}

		&.mwe-popups-no-image-tri:before {
			border-bottom: none;
		}

		&.flipped-x-y:after,
		&.flipped-y:after {
			border-top-color: var(--body-light);
		}

		&.mwe-popups-no-image-tri:after {
			border-bottom-color: var(--body-light);
		}

		// text section
		.mwe-popups-extract {
			color: var(--text-color);
		}

		// fade for text overflow
		.mwe-popups-extract[dir='ltr']:after {
			background-image: linear-gradient(to right, rgba(49, 62, 89, 0), var(--body-light) 50%);
		}
	}
}

// Anon preferences popup
.mwe-popups-overlay {
	background-color: var(--ooui-window-background);
}

#mwe-popups-settings {
	background: var(--ooui-interface);
	header {
		border-color: var(--ooui-interface-border);
	}
	
	
	main {
		p {
			color: var(--base-text-color);
		}
		// text beside radio button
		form label > span {
			color: var(--ooui-text);
		}
	}
}