dev

Note: After publishing, you may have to bypass your browser's cache to see the changes.

/**
 * These are the recommended styles
 * For WdsTooltips (https://dev.fandom.com/wiki/WdsTooltips)
 **/
.custom-tooltip .wds-dropdown__toggle {
	text-decoration: underline dashed #aaa;
	text-underline-offset: 0.25em;
	cursor: help;
}
.custom-tooltip:hover .wds-dropdown__toggle {
	text-decoration-style: solid;
}
.custom-tooltip .wds-dropdown__content {
	width: max-content;
	min-width: 0;
	max-width: var(--tooltip-max-width, 250px);
	max-height: var(--tooltip-max-height, 250px);
	overflow: hidden;
	padding: 0;
	font-size: 12px;
	cursor: auto;
	overflow-wrap: break-word;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.custom-tooltip .wds-dropdown__content .inset {
	margin: 0.75em;
	max-width: calc(var(--tooltip-max-width, 250px) - 1.5em);
	max-height: calc(var(--tooltip-max-height, 250px) - 1.5em);
	overflow-y: auto;
}
.custom-tooltip .wds-dropdown__content p, .custom-tooltip .wds-dropdown__content section {
	font-size: inherit;
}
/* hide mobile-skin <h2> component bloats */
.custom-tooltip .wds-dropdown__content h2 .section-header-label ~ * {
	display: none;
}
.custom-tooltip .wds-dropdown__content ol, .custom-tooltip .wds-dropdown__content ul {
	margin: 0 1em 0 0;
	list-style-position: inside;
}
.custom-tooltip .wds-dropdown__content dl {
	margin: 0;
}
.custom-tooltip .wds-dropdown__content img {
	max-width: 100%;
}
/* Prevent tooltips clipping in mobile infoboxes and tables */
.skin-fandommobile .pi-data:has(.custom-tooltip),
.skin-fandommobile .article-table-wrapper:has(.custom-tooltip) {
	overflow: visible;
}

/* enable tooltips to display on focus */
.custom-tooltip:focus-within .wds-dropdown__content,
.custom-tooltip:focus-within:before,
.custom-tooltip:focus-within:after {
	display: inline-block;
}