Шаблон:Main page/latestpatch/styles.css

Материал из SS220 SS14 WIKI
Версия от 16:39, 6 марта 2024; Vinogradgarden (обсуждение | вклад) (Новая страница: «→‎* * EXTREMELY HACKY * Super hacky way to get transclusion and hover works *: #home-card-latestpatch .wikitable { display: block; overflow: visible; } #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 .wikitabl...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
/**
 * EXTREMELY HACKY
 * Super hacky way to get transclusion and hover works
**/
#home-card-latestpatch .wikitable {
	display: block;
	overflow: visible;
}

#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: hsl(220,25%,12%);
	border-radius: 8px;
	/* box-shadow: var( --box-shadow-dialog ); */
	user-select: none;
	opacity: 0;
	visibility: hidden;
	transition: 250ms ease;
	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 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: 1rem;
    display: block;
}