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