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

来自NeuroWiki
跳转到导航 跳转到搜索
创建页面,内容为“.mainpage-title{ font-size:1.6em; font-weight: bold; text-shadow: rgba(150, 150, 150, 0.6) 2px 1px 2px; } .text-container { position: relative; width: 100%; →‎可以根据需要调整:​ height: 64px; →‎可以根据需要调整:​ margin: 0 auto; →‎居中对齐:​ overflow: hidden; text-align: center; } .text-slide { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; animation:…”
 
无编辑摘要
 
(未显示同一用户的179个中间版本)
第1行: 第1行:
.mainpage-title{
.base_block {
font-size:1.6em;
padding: 15px;
margin: 0.8em auto;
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 5px #aaa;
}
.mw-indicators{
display:none;
}
.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;
}
.news{
clear: both;
text-align: left;
flex: 1 1 auto;
max-height:400px;
overflow-y: scroll;
}
}
@media (min-width: 1500px) {
.welcome_title{
font-size: 36px;
}
.news{
clear: both;
text-align: left;
flex: 1 1 0;
overflow-y: scroll;
}
}
.flex_block{
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.welcome_title{
font-weight: bold;
font-weight: bold;
text-shadow: rgba(150, 150, 150, 0.6) 2px 1px 2px;
text-align:center;
}
}
.text-container {
.sidebar_block{
    position: relative;
min-width:300px;
    width: 100%; /* 可以根据需要调整 */
margin:2px;
    height: 64px; /* 可以根据需要调整 */
flex-grow: 1;
    margin: 0 auto; /* 居中对齐 */
padding: 0.6em;
    overflow: hidden;
flex: 1 1 33%;
    text-align: center;  
}
}
 
.sidebar_block ul{
.text-slide {
flex: 1;
    position: absolute;
}
    width: 100%;
.statisticians_block{
    height: 100%;
display: flex;
    top: 0;
flex-wrap: nowrap;
    left: 0;
justify-content: space-between;
    opacity: 0;
gap: 10px;
    animation: slide-animation 6s infinite;
}
.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) {
.text-slide:nth-child(1) {
.sidebar_block_img{
    animation-delay: 0s;
flex: 1 1 100%;
}
.sidebar_block_img > div{
max-width: 450px;
position: relative;
margin: 0 auto
}
}
}
 
@media (max-width: 800px) {
.text-slide:nth-child(2) {
.sidebar_block_img{
    animation-delay: 2s;
flex: auto;
}
}
}
 
@media (min-width: 1669px) {
.text-slide:nth-child(3) {
.sidebar_block_img{
    animation-delay: 4s;
flex: 1 1 33%;
}
}
}


@keyframes slide-animation {
.img_button{
    0%, 20% {
height: 80px;
        opacity: 0;
color: white;
        transform: translateX(0);
font-weight: bold;
    }
font-size: 32px;
    25%, 45% {
display: flex;
        opacity: 1;
justify-content: center;
        transform: translateX(-1px);
align-items: center;
    }
transition:background-color 0.2s ease-out, color 0.3s ease-out;
    30%, 40% {
cursor:pointer;
        transform: translateX(1px);
margin:3px;
    }
    50%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
}
}
/*什么*/
.img_button:hover{
.textbox {
border: 3px solid #000;
margin: 0 auto;
    max-width: 1320px;
    height: auto;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.25);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 5px 5px 2px rgba(150, 150, 150, 0.6);
}
}
.left-child, .right-child {
.neuro_button_lock{
    background-color: rgba(240, 240, 240, 0.25);
background-color: #e3baad;
    flex: 1 1 100%;
border: 3px solid #e3baad;
    box-sizing: border-box;
    padding: 10px;
}
}
@media (min-width: 980px) {
.evil_button_lock{
    .left-child,
background-color: #b30256;
    .right-child {
border: 3px solid #b30256;
        flex: 1;
    }
    .right-child {
max-width:900px;
    }
    .left-child {
        border-right: 1px solid black;
        max-width:390px;
    }
}
}
 
.neuro_button_lock:hover{
 
background-color: #e3c3ad;
.container {
color:#000;
    width: 100%;
}
}
.container p{
.evil_button_lock:hover{
    display: flex;
background-color: #B30239;
    flex-wrap: wrap;
color:#000;
    width: 100%;
    justify-content: center;
}
}
.container p * a{
.neuro_button{
max-width:270px;
background-color: #e3c3ad;
min-width:190px;
border: 3px solid #e3c3ad;
    flex: 1 1 calc(33.333% - 10px); /* 3 items per row with space for borders */
    height: 64px;
    font-weight: bold;
    font-size:20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin: 5px; /* Space between items */
    text-decoration: none;
    transition: all 0.15s ease-in;
    box-shadow: 5px 5px 2px rgba(150, 150, 150, 0.6);
}
}
.container p * a:hover{
.evil_button{
height: 72px;
background-color: #B30239;
box-shadow: 7px 7px 6px rgba(150, 150, 150, 0.6);
border: 3px solid #B30239;
}
}
.container p * a.external{
.synopsis{
background-image:none;
overflow: hidden; /* 隐藏超出部分 */
text-overflow: ellipsis; /* 使用省略号表示超出部分 */
word-break: break-all; /* 保证文本不会因没有空格而长单词不换行 */
}
}
.container p .en a{
.page_button{
background-color: rgba(1, 33, 105, 0.8); /* 80% transparent blue */
display: flex;
    border: 5px solid rgba(200, 16, 46, 0.8); /* 5px 80% transparent red */
justify-content: center;
}
}
.container p .en a.external:visited{
.page_button a{
background-color: #eeccdd;
width: 100%;
display: flex;
justify-content: center;
height: 100px;
align-items: center;
font-size: 24px;
color: white;
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;
}
}
.container p .zh a{
.synopsis_2{
background-color: rgba(238, 28, 37, 0.8); /* 80% transparent blue */
display: flex;
    border: 5px solid rgba(238, 28, 37, 0.8); /* 5px 80% transparent red */
flex-direction: column;
justify-content: space-around;
}
}
.container p .zh a.external:visited{
.container_character_page {
color: #ffff00;
width: 100%;
overflow: hidden;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
}
.container p .ja a{
.scroll-content_page{
background-color: rgba(255, 255, 255, 0.8); /* 80% transparent blue */
display: flex;
    border: 5px solid rgba(255, 255, 255, 0.8); /* 5px 80% transparent red */
flex-wrap: wrap;
align-content:center;
justify-content: center;
}
}
.container p .ja a.external:visited{
.cdx-button.edit-button {
color: #bd0029;
font-family:sans-serif;
font-size: 1rem;
float: right;
}
}

2025年4月16日 (三) 16:23的最新版本

.base_block {
	padding: 15px;
	margin: 0.8em auto;
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 5px #aaa;
}
.mw-indicators{
	display:none;
}
.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;
	}
	.news{
		clear: both;
		text-align: left;
		flex: 1 1 auto;
		max-height:400px;
		overflow-y: scroll;
	}
}
@media (min-width: 1500px) {
	.welcome_title{
		font-size: 36px;
	}
	.news{
		clear: both;
		text-align: left;
		flex: 1 1 0;
		overflow-y: scroll;
	}
}
.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%;
}
.sidebar_block ul{
	flex: 1;
}
.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%;
	}
	.sidebar_block_img > div{
		max-width: 450px;
		position: relative;
		margin: 0 auto
	}
}
@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;
}
.cdx-button.edit-button {
	font-family:sans-serif;
	font-size: 1rem;
	float: right;
}