模板:Main page/latestpatch/styles.css:修订间差异

来自决策链云智库
(创建页面,内容为“→‎* * 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 t…”
 
无编辑摘要
 
第26行: 第26行:


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


第33行: 第35行:
z-index: 2;
z-index: 2;
bottom: 100%;
bottom: 100%;
padding: 15px var( --padding-page );
padding: 0;
margin-bottom: 10px;
background: var( --color-surface-1 );
background: var( --color-surface-1 );
border-radius: var( --border-radius--medium );
border-radius: var( --border-radius--medium );
box-shadow: var( --box-shadow-dialog );
box-shadow: var( --box-shadow-dialog );
user-select: none;
user-select: none;
opacity: 0;
visibility: hidden;
visibility: hidden;
transition: var( --transition-menu );
transition-property: opacity, transform;
}
}


#home-card-latestpatch .wikitable tr > td:last-child .thumb {
#home-card-latestpatch .wikitable tr > td:last-child figure {
width: 100%;
float: none;
margin: 0;
margin: 0;
margin-bottom: 0.5rem;
    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: var( --space-md );
    display: block;
}
}

2023年12月10日 (日) 01:49的最新版本

/**
 * 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: var( --color-surface-1 );
	border-radius: var( --border-radius--medium );
	box-shadow: var( --box-shadow-dialog );
	user-select: none;
	opacity: 0;
	visibility: hidden;
	transition: var( --transition-menu );
	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: var( --space-md );
    display: block;
}