Main Page/styles.css: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
m Selfice moved page Styles.css to Main Page/styles.css without leaving a redirect: Misspelled title
No edit summary
Line 1: Line 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);
Line 7: Line 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{
Line 13: Line 33:
justify-content: center;
justify-content: center;
}
}
.video_block{
.welcome_title{
position: relative;  
font-weight: bold;
box-shadow: 0 2px 5px #aaa;
text-align:center;
max-width: 800px;
}
transition: transform 0.3s ease-in-out;
.sidebar_block{
overflow: hidden;
min-width:300px;
margin:2px;
flex-grow: 1;
padding: 0.6em;
flex: 1 1 33%;
}
}
.video_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;
}
}
.video_block .neuro-button{
.statisticians_left{
position: absolute;
flex: 1 1 0;
width: 0;
display: flex;
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{
.statisticians_right{
width: 120px;
flex: 1 1 0;
padding: 3px;
float: right;
padding-left:6px;
text-align: right;
padding-right:6px;
}
}
.video_block .neuro-button:hover{
.title_h2{
height: 60px;
font-size: 1.5em;
padding: 9px;
border-left: 8px solid var(--twitch-purple);
padding-left: 5px;
font-weight: 900;
}
}
.video_block #neuro{
.title_h2_neuro{
top: 55%;
font-size: 1.5em;
right: 5%;
border-left: 8px solid #e3c3ad;
animation: float-neuro 0.35s infinite ease-in-out;
padding-left: 5px;
font-weight: 900;
}
}
.video_block #evil{
.title_h2_evil{
top: 53%;
font-size: 1.5em;
left: 18%;
border-left: 8px solid #b30239;
animation: float-evil 0.27s infinite ease-in-out;
padding-left: 5px;
font-weight: 900;
}
}
.video_block #vedal{
.style_button{
top: 25%;
width: 100%;
right: 25%;
background-color: var(--twitch-purple);
animation: float-vedal 0.41s infinite ease-in-out;
color: #fff;
transition: all 0.2s ease;
}
}
.video_block * a{
.style_button:hover{
color: white;
background-color: var(--twitch-purple-2);
width:100%;
height:100%;
text-decoration: none;
justify-content: center;
align-items: center;
}
}
.video_block * a.new{
.style_button a{
color: white;
width: 100%;
width:100%;
padding: 3px;
height:100%;
color: #fff;
text-decoration: none;
display: flex;
justify-content: center;
justify-content: center;
align-items: center;
font-size: 16px;
}
}
@keyframes float {
.sidebar_block_img{
0%, 100% {
padding: 0;
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
}
@keyframes float-neuro {
.sidebar_block_img .item-img div .mw-halign-center span img{
0%, 100% {transform: translate(0px, 0px);}
width: 100%;
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%;
height: 100%;
object-fit: contain;
object-fit: contain;
}
}
.video_block .progress_bar{
@media (max-width: 1669px) {
position: absolute;
.sidebar_block_img{
bottom: 0;
flex: 1 1 100%;
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{
@media (max-width: 800px) {
height: 64px;
.sidebar_block_img{
flex: auto;
}
}
}
.video_block .progress_bar .bar{
@media (min-width: 1669px) {
position: absolute;
.sidebar_block_img{
top: 22px;
flex: 1 1 33%;
left: 2.5%;
}
width: 95%;
height: 4px;
color: white;
text-align: center;
background-color: rgba(255, 255, 255, 0.8);
}
}
.dOOPAe {
.img_button{
position: absolute;
height: 80px;
top: 26px;
left: 24px;
color: white;
color: white;
font-size: 20px;
font-weight: bold;
text-align: center;
font-size: 32px;
}
display: flex;
.dO1PAe {
justify-content: center;
position: absolute;
align-items: center;
top: 4px;
transition:background-color 0.2s ease-out, color 0.3s ease-out;
left: 20px;
cursor:pointer;
color: white;
margin:3px;
text-align: center;
}
.sidebar_block{
min-width:300px;
margin:0;
flex-grow: 1;
padding: 0;
}
.flex_button{
width:auto;
min-width:70px;
height:150px;
flex-grow: 1;
transition: transform 0.3s ease-in-out;
}
}
.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%;
}
}
 
.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%;
.container .zh a{
color: darkcyan;
background-color: rgba(238, 28, 37, 0.8); /* 80% transparent blue */
background-color: #debccd;
border: 5px solid rgba(238, 28, 37, 0.8); /* 5px 80% transparent red */
color: #ffff00;
}
.container .zh a.external:visited{
color: #ffff00;
}
.container .ja a{
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%;
overflow: hidden;
display: flex;
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 5px #aaa;
}
 
.scroll-content {
display: flex;
/*animation: scroll 15s linear infinite;*/
}
 
.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 {
#t-collapsible-toggle-all{
animation-play-state: paused;
display:none;
}
}

Revision as of 16:46, 5 January 2025

.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; /* 使用省略号表示超出部分 */
}
.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;
}