-
汇聚密码安全智慧 共享实战经验!
- 我们目前有643个页面,13个用户,731次编辑。
MediaWiki:Mobile.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 标签:移动版编辑 移动版网页编辑 |
无编辑摘要 标签:移动版编辑 移动版网页编辑 |
||
| (未显示同一用户的8个中间版本) | |||
| 第2行: | 第2行: | ||
#siteNoticeScroll { | #siteNoticeScroll { | ||
width: 100%; | width: 100% !important; | ||
height: 25px; | height: 25px !important; | ||
line-height: 25px; | line-height: 25px !important; | ||
overflow: hidden; | overflow: hidden !important; | ||
text-align: center; | text-align: center !important; | ||
margin-bottom: 0.25em; | margin-bottom: 0.25em !important; | ||
position: relative; | position: relative !important; | ||
display: block !important; | |||
} | } | ||
#siteNoticeScroll ul { | #siteNoticeScroll ul { | ||
height: 25px; | height: 25px !important; | ||
line-height: 25px; | line-height: 25px !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
list-style: none !important; | list-style: none !important; | ||
-webkit-transition: | -webkit-transition: transform 0.73s ease-in-out !important; | ||
-moz-transition: | -moz-transition: transform 0.73s ease-in-out !important; | ||
-o-transition: | -o-transition: transform 0.73s ease-in-out !important; | ||
transition: | transition: transform 0.73s ease-in-out !important; | ||
display: block !important; | display: block !important; | ||
white-space: nowrap !important; | white-space: nowrap !important; | ||
position: relative !important; | position: relative !important; | ||
will-change: | will-change: transform !important; | ||
-webkit-backface-visibility: hidden !important; | |||
backface-visibility: hidden !important; | |||
overflow: visible !important; | |||
} | } | ||
#siteNoticeScroll li { | #siteNoticeScroll li { | ||
height: 25px; | height: 25px !important; | ||
line-height: 25px; | line-height: 25px !important; | ||
list-style: none !important; | list-style: none !important; | ||
float: left !important; | float: left !important; | ||
| 第35行: | 第39行: | ||
display: inline-block !important; | display: inline-block !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
padding: 0 | padding: 0 !important; | ||
vertical-align: top; | margin: 0 !important; | ||
flex-shrink: 0; | vertical-align: top !important; | ||
flex-shrink: 0 !important; | |||
white-space: nowrap !important; | |||
overflow: visible !important; | |||
text-overflow: clip !important; | |||
text-align: center !important; | |||
word-break: keep-all !important; | |||
word-wrap: normal !important; | |||
max-width: 100% !important; | |||
position: relative !important; | |||
} | |||
#siteNoticeScroll li * { | |||
text-align: center !important; | |||
white-space: nowrap !important; | |||
display: inline !important; | |||
} | |||
/* 确保 strong 标签不会导致换行 */ | |||
#siteNoticeScroll li strong { | |||
white-space: nowrap !important; | |||
display: inline !important; | |||
} | } | ||
| 第43行: | 第68行: | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
#siteNoticeScroll { | #siteNoticeScroll { | ||
height: auto; | height: auto !important; | ||
min-height: 25px; | min-height: 25px !important; | ||
} | } | ||
#siteNoticeScroll ul { | #siteNoticeScroll ul { | ||
height: auto; | height: auto !important; | ||
min-height: 25px; | min-height: 25px !important; | ||
} | } | ||
#siteNoticeScroll li { | #siteNoticeScroll li { | ||
height: auto; | height: auto !important; | ||
min-height: 25px; | min-height: 25px !important; | ||
line-height: 1.5; | line-height: 1.5 !important; | ||
padding: | padding: 0 !important; | ||
white-space: nowrap !important; | |||
overflow: visible !important; | |||
text-overflow: clip !important; | |||
} | } | ||
} | } | ||
2025年12月19日 (五) 08:37的最新版本
/* 网站公告的 CSS - 移动端和桌面端通用 */
#siteNoticeScroll {
width: 100% !important;
height: 25px !important;
line-height: 25px !important;
overflow: hidden !important;
text-align: center !important;
margin-bottom: 0.25em !important;
position: relative !important;
display: block !important;
}
#siteNoticeScroll ul {
height: 25px !important;
line-height: 25px !important;
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
-webkit-transition: transform 0.73s ease-in-out !important;
-moz-transition: transform 0.73s ease-in-out !important;
-o-transition: transform 0.73s ease-in-out !important;
transition: transform 0.73s ease-in-out !important;
display: block !important;
white-space: nowrap !important;
position: relative !important;
will-change: transform !important;
-webkit-backface-visibility: hidden !important;
backface-visibility: hidden !important;
overflow: visible !important;
}
#siteNoticeScroll li {
height: 25px !important;
line-height: 25px !important;
list-style: none !important;
float: left !important;
width: 100% !important;
display: inline-block !important;
box-sizing: border-box !important;
padding: 0 !important;
margin: 0 !important;
vertical-align: top !important;
flex-shrink: 0 !important;
white-space: nowrap !important;
overflow: visible !important;
text-overflow: clip !important;
text-align: center !important;
word-break: keep-all !important;
word-wrap: normal !important;
max-width: 100% !important;
position: relative !important;
}
#siteNoticeScroll li * {
text-align: center !important;
white-space: nowrap !important;
display: inline !important;
}
/* 确保 strong 标签不会导致换行 */
#siteNoticeScroll li strong {
white-space: nowrap !important;
display: inline !important;
}
/* 移动端优化 */
@media screen and (max-width: 720px) {
#siteNoticeScroll {
height: auto !important;
min-height: 25px !important;
}
#siteNoticeScroll ul {
height: auto !important;
min-height: 25px !important;
}
#siteNoticeScroll li {
height: auto !important;
min-height: 25px !important;
line-height: 1.5 !important;
padding: 0 !important;
white-space: nowrap !important;
overflow: visible !important;
text-overflow: clip !important;
}
}
/* 确保在移动端也能正常显示 */
.mw-mf-viewport #siteNoticeScroll {
width: 100%;
overflow: hidden;
}