MediaWiki:Common.css:修订间差异
来自神国反恶俗
跳到导航跳到搜索
最终工具栏样式 |
左下角图片固定到目标位置 |
||
| 第81行: | 第81行: | ||
} | } | ||
#f-copyrightico { | #f-copyrightico { | ||
position: static !important; | |||
left: auto !important; | |||
bottom: auto !important; | |||
padding: 0; | |||
background: transparent; | |||
} | |||
} | |||
/* 左下角图片:用侧栏伪元素固定在目标位置,避免被页脚/固定侧栏遮挡 */ | |||
#f-copyrightico { display: none !important; } | |||
#column-one::after { | |||
content: ""; | |||
position: fixed; | |||
left: 12px; | |||
bottom: 46px; | |||
width: 88px; | |||
height: 31px; | |||
background: #ffffff url('/resources/assets/sx-removebg-preview.png') center / contain no-repeat; | |||
z-index: 9500; | |||
pointer-events: none; | |||
border-radius: 4px; | |||
} | |||
@media (max-width: 720px) { | |||
#column-one::after { display: none; } | |||
#f-copyrightico { | |||
display: block !important; | |||
position: static !important; | position: static !important; | ||
left: auto !important; | left: auto !important; | ||
2026年10月24日 (六) 21:28的版本
/* 神国维基顶部工具栏 */
#sg-topbar.sg-sticky-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 7px 16px;
background: #ffffff;
border-bottom: 1px solid #a7d7f9;
box-shadow: 0 1px 5px rgba(0,0,0,.12);
font-size: 14px;
line-height: 1.5;
}
#sg-topbar .sg-bar-left,
#sg-topbar .sg-bar-right {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
#sg-topbar a {
color: #0645ad;
text-decoration: none;
white-space: nowrap;
}
#sg-topbar a:hover { text-decoration: underline; }
body.sg-sticky-on { padding-top: 48px; }
/* 顶部工具栏高度变量,修复左栏/正文与顶栏之间的缝 */
:root { --sg-topbar-height: 37px; }
body.sg-sticky-on { padding-top: var(--sg-topbar-height) !important; }
/* 左侧栏固定跟随 + 纵向滚动条 */
#column-one {
position: fixed !important;
top: var(--sg-topbar-height, 37px) !important;
bottom: 0 !important;
left: 0 !important;
height: auto !important;
max-height: calc(100vh - var(--sg-topbar-height, 37px)) !important;
overflow-y: scroll !important;
overflow-x: hidden !important;
z-index: 9000;
background: #ffffff;
box-sizing: border-box;
padding-bottom: 70px !important;
scrollbar-width: thin;
scrollbar-color: #a7d7f9 #f0f4f8;
}
#column-one::-webkit-scrollbar { width: 7px; }
#column-one::-webkit-scrollbar-track { background: #f0f4f8; }
#column-one::-webkit-scrollbar-thumb { background: #a7d7f9; border-radius: 4px; }
#column-one::-webkit-scrollbar-thumb:hover { background: #7cb8e8; }
/* 左下角页脚图片:固定在左栏上方,避免被固定侧栏盖住 */
#f-copyrightico {
position: fixed !important;
left: 8px !important;
bottom: 8px !important;
z-index: 9500 !important;
background: #ffffff;
padding: 4px;
border-radius: 4px;
line-height: 0;
}
@media (max-width: 720px) {
#column-one {
position: static !important;
top: auto !important;
bottom: auto !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
padding-bottom: 18px !important;
}
#f-copyrightico {
position: static !important;
left: auto !important;
bottom: auto !important;
padding: 0;
background: transparent;
}
}
/* 左下角图片:用侧栏伪元素固定在目标位置,避免被页脚/固定侧栏遮挡 */
#f-copyrightico { display: none !important; }
#column-one::after {
content: "";
position: fixed;
left: 12px;
bottom: 46px;
width: 88px;
height: 31px;
background: #ffffff url('/resources/assets/sx-removebg-preview.png') center / contain no-repeat;
z-index: 9500;
pointer-events: none;
border-radius: 4px;
}
@media (max-width: 720px) {
#column-one::after { display: none; }
#f-copyrightico {
display: block !important;
position: static !important;
left: auto !important;
bottom: auto !important;
padding: 0;
background: transparent;
}
}