MediaWiki:Common.css:修订间差异
来自神国反恶俗
跳到导航跳到搜索
无编辑摘要 |
恢复顶部工具栏样式 |
||
| 第1行: | 第1行: | ||
/* | /* 神国维基顶部工具栏 */ | ||
#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: 44px; } | |||
@media (max-width: 720px) { | |||
#sg-topbar.sg-sticky-bar { position: static; flex-direction: column; align-items: flex-start; } | |||
body.sg-sticky-on { padding-top: 0; } | |||
} | |||
} | |||
2026年10月23日 (五) 13:09的版本
/* 神国维基顶部工具栏 */
#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: 44px; }
@media (max-width: 720px) {
#sg-topbar.sg-sticky-bar { position: static; flex-direction: column; align-items: flex-start; }
body.sg-sticky-on { padding-top: 0; }
}