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

来自NeuroWiki
跳转到导航 跳转到搜索
Selfice留言 | 贡献
无编辑摘要
Selfice留言 | 贡献
无编辑摘要
 
(未显示同一用户的17个中间版本)
第1行: 第1行:
.base_block {
.base_block {
padding: 1.6em;
padding: 15px;
margin: 0.8em auto;
margin: 0.8em auto;
background-color: rgba(255, 255, 255, 0.1);
background-color: rgba(255, 255, 255, 0.1);
第7行: 第7行:
.base_block_main{
.base_block_main{
max-width: 1600px;
max-width: 1600px;
}
.base_100_img{
margin:0;
padding:3px;
}
.base_100_img span img{
width: 100%;
height: 100%;
object-fit: contain;
max-height: 108px;
}
@media (max-width: 1500px) {
.welcome_title{
font-size: 32px;
}
}
@media (min-width: 1500px) {
.welcome_title{
font-size: 36px;
}
}
}
.flex_block{
.flex_block{
第13行: 第33行:
justify-content: center;
justify-content: center;
}
}
.cd_block{
.welcome_title{
position: relative;
font-weight: bold;
width: 100%;
text-align:center;
max-width: 800px;
padding: 5px;
}
}
.video_block {
.sidebar_block{
position: absolute;
min-width:300px;
width: 100%;
margin:2px;
max-width: 800px;
flex-grow: 1;
height:100%;
padding: 0.6em;
box-shadow: 0 2px 5px #aaa;
flex: 1 1 33%;
overflow: hidden;
display: flex; /* 为了悬浮时能启用 Flexbox */
flex-wrap: wrap; /* 使子元素在悬浮时换行 */
align-content: flex-start;
gap: 10px; /* 悬浮时子元素之间的间距 */
transition: all 1s ease; /* 添加平滑过渡 */
}
}
.cd_block:hover {
.statisticians_block{
box-shadow: 1px 5px 8px #aaa;
display: flex;
animation: float 4s infinite ease-in-out;
flex-wrap: nowrap;
justify-content: space-between;
gap: 10px;
}
}
.neuro-button {
.statisticians_left{
position: absolute; /* 默认使用绝对定位 */
flex: 1 1 0;
width: 50px;
height: 50px;
background-color: #4caf50;
color: white;
display: flex;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: transform 1s ease; /* 平滑过渡 */
margin: 7px;
}
}
/* 手动为每个子元素设置 transform 属性 */
.statisticians_right{
.neuro-button:nth-child(1) {
flex: 1 1 0;
transform: translate(50px, 100px) scale(1.5);
float: right;
text-align: right;
}
.title_h2{
font-size: 1.5em;
border-left: 8px solid var(--twitch-purple);
padding-left: 5px;
font-weight: 900;
}
.title_h2_neuro{
font-size: 1.5em;
border-left: 8px solid #e3c3ad;
padding-left: 5px;
font-weight: 900;
}
}
 
.title_h2_evil{
.neuro-button:nth-child(2) {
font-size: 1.5em;
transform: translate(200px, 50px) scale(2);
border-left: 8px solid #b30239;
padding-left: 5px;
font-weight: 900;
}
}
 
.style_button{
.neuro-button:nth-child(3) {
width: 100%;
transform: translate(300px, 200px) scale(1);
background-color: var(--twitch-purple);
color: #fff;
transition: all 0.2s ease;
}
}
 
.style_button:hover{
.neuro-button:nth-child(4) {
background-color: var(--twitch-purple-2);
transform: translate(100px, 300px) scale(1.2);
}
}
/* 悬浮时的样式 */
.style_button a{
.video_block:hover {
width: 100%;
display: flex; /* 切换到Flexbox布局 */
padding: 3px;
align-items: center; /* 子元素居中对齐 */
color: #fff;
justify-content: flex-start; /* 子元素按顺序排列 */
display: flex;
justify-content: center;
font-size: 16px;
}
}
 
.sidebar_block_img{
.video_block:hover .neuro-button {
padding: 0;
position: relative; /* 取消绝对定位,进入Flexbox流 */
transform: translate(0, 0) scale(1); /* 重置位置和大小 */
}
}
.cd_block .mw-default-size span img {
.sidebar_block_img .item-img div .mw-halign-center span img{
max-width: 100%;
width: 100%;
height: 100%;
height: 100%;
object-fit: contain;
object-fit: contain;
}
}
@keyframes float {
@media (max-width: 1669px) {
0%, 100% {
.sidebar_block_img{
transform: translateY(0);
flex: 1 1 100%;
}
}
50% {
}
transform: translateY(-10px);
@media (max-width: 800px) {
.sidebar_block_img{
flex: auto;
}
}
}
}
.sidebar_block{
@media (min-width: 1669px) {
min-width:300px;
.sidebar_block_img{
margin:0;
flex: 1 1 33%;
flex-grow: 1;
}
padding: 0;
}
}
.flex_button{
 
width:auto;
.img_button{
min-width:70px;
height: 80px;
height:150px;
color: white;
flex-grow: 1;
font-weight: bold;
transition: transform 0.3s ease-in-out;
font-size: 32px;
display: flex;
justify-content: center;
align-items: center;
transition:background-color 0.2s ease-out, color 0.3s ease-out;
cursor:pointer;
margin:3px;
}
}
.flex_button_2{
.img_button:hover{
width:auto;
border: 3px solid #000;
min-width:70px;
height:auto;
font-size: 18px;
flex-grow: 1;
border-right: 3px solid rgba(198, 154, 133, 0.85);
border-bottom: 3px solid rgba(198, 154, 133, 0.85);
margin:0.3em;
background-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 2px 5px #aaa;
transition: transform 0.3s ease-in-out,box-shadow 0.4s ease-in-out,font-size 0.6s ease-in-out;
padding:4px;
}
}
.flex_button_2:hover{
.neuro_button_lock{
box-shadow: 0 8px 15px #aaa;
background-color: #e3baad;
font-size: 16px;
border: 3px solid #e3baad;
}
}
.flex_button:hover{
.evil_button_lock{
transform: scale(1.15);
background-color: #b30256;
border: 3px solid #b30256;
}
}
@media (min-width: 1720px) {
.neuro_button_lock:hover{
.flex_button{
background-color: #e3c3ad;
width:50%;
color:#000;
}
.sidebar_block{
flex-basis: 300px;
}
}
}
@media (min-width: 1500px) {
.evil_button_lock:hover{
.sidebar_block_left_2{
background-color: #B30239;
max-width: 400px;
color:#000;
}
}
}
.flex_button a{
.neuro_button{
width:100%;
background-color: #e3c3ad;
height:100%;
border: 3px solid #e3c3ad;
text-decoration: none;
font-size: 24px;
display: flex;
justify-content: center;
align-items: center;
}
}
.flex_button_2 a{
.evil_button{
width:100%;
background-color: #B30239;
height:100%;
border: 3px solid #B30239;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
}
}
.sidebar_block_left{
.synopsis{
padding:0.2em;
overflow: hidden; /* 隐藏超出部分 */
margin:0.2em;
text-overflow: ellipsis; /* 使用省略号表示超出部分 */
width:100%;
word-break: break-all; /* 保证文本不会因没有空格而长单词不换行 */
}
}
 
.page_button{
.container {
width: 100%;
display: flex;
display: flex;
flex-wrap: wrap;
justify-content: center;
justify-content: center;
}
}
/*.container p{
.page_button a{
display: flex;
background-color: #eeccdd;
flex-wrap: wrap;
width: 100%;
width: 100%;
justify-content: center;
}*/
.container * a{
padding:0.2em;
padding-right:0.4em;
padding-left:0.4em;
flex: 1 1 calc(33.333% - 10px); /* 3 items per row with space for borders */
font-weight: bold;
font-size:20px;
display: flex;
display: flex;
justify-content: center;
justify-content: center;
height: 100px;
align-items: center;
align-items: center;
box-sizing: border-box;
font-size: 24px;
margin:2px; /* Space between items */
text-decoration: none;
transition: all 0.15s ease-in;
box-shadow: 5px 5px 2px rgba(150, 150, 150, 0.6);
}
.container * a:hover{
box-shadow: 7px 7px 6px rgba(150, 150, 150, 0.6);
}
.container * a.external{
background-image:none;
}
.container .en a{
background-color: rgba(1, 33, 105, 0.8); /* 80% transparent blue */
border: 5px solid rgba(200, 16, 46, 0.8); /* 5px 80% transparent red */
color: white;
color: white;
padding-left: 0;
transition:all 0.2s ease-out;
}
}
.container .en a.external:visited{
.page_button a:hover{
color: white;
text-decoration: none;
padding-left: 50%;
color: darkcyan;
background-color: #debccd;
}
}
.container .zh a{
#t-collapsible-toggle-all{
background-color: rgba(238, 28, 37, 0.8); /* 80% transparent blue */
display:none;
border: 5px solid rgba(238, 28, 37, 0.8); /* 5px 80% transparent red */
color: #ffff00;
}
}
.container .zh a.external:visited{
.synopsis_2{
color: #ffff00;
display: flex;
flex-direction: column;
justify-content: space-around;
}
}
.container .ja a{
.container_character_page {
background-color: rgba(255, 255, 255, 0.8); /* 80% transparent blue */
border: 5px solid rgba(255, 255, 255, 0.8); /* 5px 80% transparent red */
color: #bd0029;
}
.container .ja a.external:visited{
color: #bd0029;
}
 
.container_character {
width: 100%;
width: 100%;
overflow: hidden;
overflow: hidden;
display: flex;
display: flex;
background-color: rgba(255, 255, 255, 0.1);
justify-content: space-evenly;
box-shadow: 0 2px 5px #aaa;
flex-wrap: wrap;
}
}
 
.scroll-content_page{
.scroll-content {
display: flex;
display: flex;
/*animation: scroll 15s linear infinite;*/
flex-wrap: wrap;
}
align-content:center;
 
justify-content: center;
.item {
width: 160px;
height:180px;
margin:6px;
border-right: 1px solid #ccc;
text-align: center;
padding: 10px;
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 5px #aaa;
}
.item-img {
width: 150px;
height:150px;
position: relative;
overflow: hidden;
}
 
@keyframes scroll {
0% {
transform: translateX(100%);
}
50% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.container_character:hover .scroll-content {
animation-play-state: paused;
}
}

2025年1月5日 (日) 19:30的最新版本

.base_block {
	padding: 15px;
	margin: 0.8em auto;
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 5px #aaa;
}
.base_block_main{
	max-width: 1600px;
}
.base_100_img{
	margin:0;
	padding:3px;
}
.base_100_img span img{
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-height: 108px;
}
@media (max-width: 1500px) {
	.welcome_title{
		font-size: 32px;
	}
}
@media (min-width: 1500px) {
	.welcome_title{
		font-size: 36px;
	}
}
.flex_block{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.welcome_title{
	font-weight: bold;
	text-align:center;
}
.sidebar_block{
	min-width:300px;
	margin:2px;
	flex-grow: 1;
	padding: 0.6em;
	flex: 1 1 33%;
}
.statisticians_block{
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 10px;
}
.statisticians_left{
	flex: 1 1 0;
	display: flex;
}
.statisticians_right{
	flex: 1 1 0;
	float: right;
	text-align: right;
}
.title_h2{
	font-size: 1.5em;
	border-left: 8px solid var(--twitch-purple);
	padding-left: 5px;
	font-weight: 900;
}
.title_h2_neuro{
	font-size: 1.5em;
	border-left: 8px solid #e3c3ad;
	padding-left: 5px;
	font-weight: 900;
}
.title_h2_evil{
	font-size: 1.5em;
	border-left: 8px solid #b30239;
	padding-left: 5px;
	font-weight: 900;
}
.style_button{
	width: 100%;
	background-color: var(--twitch-purple);
	color: #fff;
	transition: all 0.2s ease;
}
.style_button:hover{
	background-color: var(--twitch-purple-2);
}
.style_button a{
	width: 100%;
	padding: 3px;
	color: #fff;
	display: flex;
	justify-content: center;
	font-size: 16px;
}
.sidebar_block_img{
	padding: 0;
}
.sidebar_block_img .item-img div .mw-halign-center span img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}
@media (max-width: 1669px) {
	.sidebar_block_img{
		flex: 1 1 100%;
	}
}
@media (max-width: 800px) {
	.sidebar_block_img{
		flex: auto;
	}
}
@media (min-width: 1669px) {
	.sidebar_block_img{
		flex: 1 1 33%;
	}
}

.img_button{
	height: 80px;
	color: white;
	font-weight: bold;
	font-size: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition:background-color 0.2s ease-out, color 0.3s ease-out;
	cursor:pointer;
	margin:3px;
}
.img_button:hover{
	border: 3px solid #000;
}
.neuro_button_lock{
	background-color: #e3baad;
	border: 3px solid #e3baad;
}
.evil_button_lock{
	background-color: #b30256;
	border: 3px solid #b30256;
}
.neuro_button_lock:hover{
	background-color: #e3c3ad;
	color:#000;
}
.evil_button_lock:hover{
	background-color: #B30239;
	color:#000;
}
.neuro_button{
	background-color: #e3c3ad;
	border: 3px solid #e3c3ad;
}
.evil_button{
	background-color: #B30239;
	border: 3px solid #B30239;
}
.synopsis{
	overflow: hidden; /* 隐藏超出部分 */
	text-overflow: ellipsis; /* 使用省略号表示超出部分 */
	word-break: break-all; /* 保证文本不会因没有空格而长单词不换行 */
}
.page_button{
	display: flex;
	justify-content: center;
}
.page_button a{
	background-color: #eeccdd;
	width: 100%;
	display: flex;
	justify-content: center;
	height: 100px;
	align-items: center;
	font-size: 24px;
	color: white;
	padding-left: 0;
	transition:all 0.2s ease-out;
}
.page_button a:hover{
	text-decoration: none;
	padding-left: 50%;
	color: darkcyan;
	background-color: #debccd;
}
#t-collapsible-toggle-all{
	display:none;
}
.synopsis_2{
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}
.container_character_page {
	width: 100%;
	overflow: hidden;
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
}
.scroll-content_page{
	display: flex;
	flex-wrap: wrap;
	align-content:center;
	justify-content: center;
}