MediaWiki:Common.css

来自哲♂学中文维基
NowaraShone留言 | 贡献2025年2月25日 (二) 10:19的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
#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);
}