首页/styles.css:修订间差异

来自NeuroWiki
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
标签已被回退
第23行: 第23行:
animation: float 4s infinite ease-in-out;
animation: float 4s infinite ease-in-out;
}
}
.video_block .neuro-button{
.video_block .neuro-button a{
position: absolute;
position: absolute;
width: 0;
width: 0;
第37行: 第37行:
text-align: center;
text-align: center;
}
}
.video_block:hover .neuro-button{
.video_block:hover .neuro-button a{
width: 120px;
width: 120px;
padding: 3px;
padding: 3px;
第43行: 第43行:
padding-right:6px;
padding-right:6px;
}
}
.video_block .neuro-button:hover{
.video_block .neuro-button:hover a{
height: 60px;
height: 60px;
padding: 9px;
padding: 6px;
}
}
.video_block #neuro{
.video_block #neuro{

2024年10月29日 (二) 19:33的版本

.base_block {
	max-width: 1600px;
	padding: 1.6em;
	margin: 0.8em auto;
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 5px #aaa;
}
.flex_block{
	display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}
.video_block{
	position: relative; 
	box-shadow: 0 2px 5px #aaa;
	max-width: 800px;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.video_block:hover {
	box-shadow: 1px 5px 8px #aaa;
	animation: float 4s infinite ease-in-out;
}
.video_block .neuro-button a{
	position: absolute;
	width: 0;
	height: 40px;
	overflow: hidden;
	white-space: nowrap;
	background-color: rgba(150, 50, 220, 0.4);
	color: white;
	padding: 0;
	box-sizing: border-box;
	transition: width 1.2s ease-in-out, padding 2.3s ease-in-out, height 0.3s ease-in-out, transform 0.3s ease-in-out;
	font-size: 24px;
	text-align: center;
}
.video_block:hover .neuro-button a{
	width: 120px;
	padding: 3px;
	padding-left:6px;
	padding-right:6px;
}
.video_block .neuro-button:hover a{
	height: 60px;
	padding: 6px;
}
.video_block #neuro{
	top: 55%;
	right: 5%;
	animation: float-neuro 0.35s infinite ease-in-out;
}
.video_block #evil{
	top: 53%;
	left: 18%;
	animation: float-evil 0.27s infinite ease-in-out;
}
.video_block #vedal{
	top: 25%;
	right: 25%;
	animation: float-vedal 0.41s infinite ease-in-out;
}
.video_block * a{
	color: white;
}
.video_block * a.new{
	color: white;
}
@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}
@keyframes float-neuro {
	0%, 100% {transform: translate(0px, 0px);}
	50% {transform: translate(1px, -1.67px);}
	80% {transform: translate(-1.67px, 0.83px);}
}
@keyframes float-evil {
	0%, 100% {transform: translate(0px, 0px);}
	30% {transform: translate(-0.83px, 1px);}
	70% {transform: translate(1.67px, -1.67px);}
}
@keyframes float-vedal {
	0%, 100% {transform: translate(0px, 0px);}
	40% {transform: translate(-1.03px, 0.7px);}
	50% {transform: translate(1.67px, 1px);}
	90% {transform: translate(-0.83px, -1.67px);}
}
.video_block .mw-default-size span img {
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}
.video_block .progress_bar{
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 0;
	color: white;
	text-align: center;
	background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
	transition: height 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.video_block:hover .progress_bar{
	height: 64px;
}
.video_block .progress_bar .bar{
	position: absolute;
	top: 22px;
	left: 2.5%;
	width: 95%;
	height: 4px;
	color: white;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.8);
}
.dOOPAe {
	position: absolute;
	top: 26px;
	left: 24px;
	color: white;
	font-size: 20px;
	text-align: center;
}
.dO1PAe {
	position: absolute;
	top: 4px;
	left: 20px;
	color: white;
	text-align: center;
}