MediaWiki:Common.css:修订间差异
来自神国反恶俗
跳到导航跳到搜索
恢复顶部工具栏样式 |
工具栏固定跟随和横向滚动条 |
||
| 第16行: | 第16行: | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 1.5; | line-height: 1.5; | ||
box-sizing: border-box; | |||
max-width: 100vw; | |||
overflow-x: auto; | |||
overflow-y: hidden; | |||
-webkit-overflow-scrolling: touch; | |||
scrollbar-width: thin; | |||
scrollbar-color: #a7d7f9 #f0f4f8; | |||
} | } | ||
#sg-topbar .sg-bar-left, | #sg-topbar .sg-bar-left, | ||
| 第22行: | 第29行: | ||
align-items: center; | align-items: center; | ||
gap: 12px; | gap: 12px; | ||
flex-wrap: | flex-wrap: nowrap; | ||
flex-shrink: 0; | |||
} | } | ||
#sg-topbar a { | #sg-topbar a { | ||
| 第30行: | 第38行: | ||
} | } | ||
#sg-topbar a:hover { text-decoration: underline; } | #sg-topbar a:hover { text-decoration: underline; } | ||
body.sg-sticky-on { padding-top: | body.sg-sticky-on { padding-top: 48px; } | ||
#sg-topbar::-webkit-scrollbar { height: 6px; } | |||
#sg-topbar::-webkit-scrollbar-track { background: #f0f4f8; } | |||
#sg-topbar::-webkit-scrollbar-thumb { background: #a7d7f9; border-radius: 3px; } | |||
#sg-topbar::-webkit-scrollbar-thumb:hover { background: #7cb8e8; } | |||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
#sg-topbar.sg-sticky-bar { | #sg-topbar.sg-sticky-bar { padding: 6px 10px; font-size: 13px; gap: .6rem; } | ||
body.sg-sticky-on { padding-top: | body.sg-sticky-on { padding-top: 46px; } | ||
} | } | ||
2026年10月24日 (六) 18:19的版本
/* 神国维基顶部工具栏 */
#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;
box-sizing: border-box;
max-width: 100vw;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin;
scrollbar-color: #a7d7f9 #f0f4f8;
}
#sg-topbar .sg-bar-left,
#sg-topbar .sg-bar-right {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: nowrap;
flex-shrink: 0;
}
#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; }
#sg-topbar::-webkit-scrollbar { height: 6px; }
#sg-topbar::-webkit-scrollbar-track { background: #f0f4f8; }
#sg-topbar::-webkit-scrollbar-thumb { background: #a7d7f9; border-radius: 3px; }
#sg-topbar::-webkit-scrollbar-thumb:hover { background: #7cb8e8; }
@media (max-width: 720px) {
#sg-topbar.sg-sticky-bar { padding: 6px 10px; font-size: 13px; gap: .6rem; }
body.sg-sticky-on { padding-top: 46px; }
}