MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
NowaraShone(留言 | 贡献) 无编辑摘要 |
无编辑摘要 |
||
| 第42行: | 第42行: | ||
color: white; | color: white; | ||
} | } | ||
/* 滚动容器样式 */ | |||
.scroll-container { | |||
overflow: hidden; | |||
width: 100%; | |||
white-space: nowrap; | |||
} | |||
/* 滚动文字样式 */ | |||
.scroll-text { | |||
display: inline-block; | |||
animation: scrollLeft 10s linear infinite; | |||
} | |||
/* 从右到左滚动动画 */ | |||
@keyframes scrollLeft { | |||
0% { transform: translateX(100vw); } /* 起始位置:右侧外部 */ | |||
100% { transform: translateX(-100%); } /* 结束位置:左侧外部 */ | |||
} | |||
2025年10月22日 (三) 14:02的版本
#p-logo a {
background-size: contain !important;
background-position: center !important;
width: 135px !important;
height: 135px !important;
}
body {
background: url('/resources/assets/wikibackground.jpg') no-repeat center center fixed;
background-size: cover;
}
/* 让阅读框半透明 */
#content {
background: rgba(255, 255, 255, 0.7); /* 70% 不透明度 */
border-radius: 10px; /* 圆角 */
padding: 20px;
backdrop-filter: blur(5px); /* 模糊背景 */
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* 轻微阴影 */
}
/* 让侧边栏也变透明 */
#mw-panel {
background: rgba(255, 255, 255, 0.6); /* 60% 透明度 */
backdrop-filter: blur(3px);
}
/* 让页脚变透明 */
#footer {
background: rgba(255, 255, 255, 0.5);
}
/* 黑幕效果 */
.hidden-text {
background-color: black;
color: black;
transition: color 0.3s ease;
cursor: pointer;
}
.hidden-text:hover {
color: white;
}
/* 滚动容器样式 */
.scroll-container {
overflow: hidden;
width: 100%;
white-space: nowrap;
}
/* 滚动文字样式 */
.scroll-text {
display: inline-block;
animation: scrollLeft 10s linear infinite;
}
/* 从右到左滚动动画 */
@keyframes scrollLeft {
0% { transform: translateX(100vw); } /* 起始位置:右侧外部 */
100% { transform: translateX(-100%); } /* 结束位置:左侧外部 */
}