模板:交通系统/styles.css:修订间差异

来自NebulaeWiki
无编辑摘要
无编辑摘要
第3行: 第3行:
position: relative;
position: relative;
height: 150px;
height: 150px;
margin-top: 10px;
margin-top: 8px;
border-top: 1px solid #ddd !important;
border-top: 1px solid #ddd !important;
}
}

2023年9月20日 (三) 22:13的版本

.transport-card {
	display: flex;
	position: relative;
	height: 150px;
	margin-top: 8px;
	border-top: 1px solid #ddd !important;
}

.transport-image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 8px;
	overflow: hidden;
	margin-top: 10px;
}

.transport-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
	transition: cubic-bezier(0,.8,.2,1) 0.5s;
}
.transport-image img:hover {
	transform: scale(1.1);
	transition: cubic-bezier(0,.8,.2,1) 0.5s;
}