Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main page/latestpatch/styles.css

Template page
Revision as of 07:27, 28 September 2024 by Adam (talk | contribs) (Created page with "→‎* * EXTREMELY HACKY * Super hacky way to get transclusion and hover works *: #home-card-latestpatch .citizen-overflow-content, #home-card-latestpatch .wikitable { overflow: visible; } #home-card-latestpatch .wikitable, #home-card-latestpatch .wikitable tbody { display: block; } #home-card-latestpatch .wikitable th { display: none; } #home-card-latestpatch .wikitable tr { position: relative; display: flex; } #home-card-latestpatch .wikitable tr > td:first-ch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/**
 * EXTREMELY HACKY
 * Super hacky way to get transclusion and hover works
**/
#home-card-latestpatch .citizen-overflow-content,
#home-card-latestpatch .wikitable {
	overflow: visible;
}

#home-card-latestpatch .wikitable,
#home-card-latestpatch .wikitable tbody {
	display: block;
}

#home-card-latestpatch .wikitable th {
	display: none;
}

#home-card-latestpatch .wikitable tr {
	position: relative;
	display: flex;
}

#home-card-latestpatch .wikitable tr > td:first-child {
	width: 100%;
}

#home-card-latestpatch .wikitable tr > td:first-child:hover ~ td {
	opacity: 1;
	visibility: visible;
	transform: translateY( -16px );
}

#home-card-latestpatch .wikitable tr > td:last-child {
	position: absolute;
	z-index: 2;
	bottom: 100%;
	padding: 0;
	background: var( --color-surface-1 );
	border-radius: 10px;
	box-shadow: 6px 5px 7px black;
	user-select: none;
	opacity: 0;
	visibility: hidden;
	transition: smooth;
	transition-property: opacity, transform;
}

#home-card-latestpatch .wikitable tr > td:last-child figure {
	float: none;
	margin: 0;
    width: 100%;
}

#home-card-latestpatch .wikitable tr > td:last-child figure > a {
	display: block;
}

#home-card-latestpatch .wikitable tr > td:last-child figure img {
    width: 100%;
}

#home-card-latestpatch .wikitable tr > td:last-child figure figcaption {
    display: none;
}

#home-card-latestpatch .wikitable tr > td:last-child i {
    padding: 10px;
    display: block;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies. We only use cookie to make the site function and save your preferences, nothing else.