-

汇聚密码安全智慧 共享实战经验!

  • 我们目前有643个页面,13个用户,731次编辑。

MediaWiki:Mobile.css:修订间差异

来自炼石百科
跳转到导航 跳转到搜索
无编辑摘要
标签移动版编辑 移动版网页编辑
无编辑摘要
标签移动版编辑 移动版网页编辑
第14行: 第14行:
     height: 25px;
     height: 25px;
     line-height: 25px;
     line-height: 25px;
     margin: 0;
     margin: 0 !important;
     padding: 0;
     padding: 0 !important;
     list-style: none;
     list-style: none !important;
     -webkit-transition: margin-left 0.73s ease-in-out;
     -webkit-transition: margin-left 0.73s ease-in-out !important;
     -moz-transition: margin-left 0.73s ease-in-out;
     -moz-transition: margin-left 0.73s ease-in-out !important;
     -o-transition: margin-left 0.73s ease-in-out;
     -o-transition: margin-left 0.73s ease-in-out !important;
     transition: margin-left 0.73s ease-in-out;
     transition: margin-left 0.73s ease-in-out !important;
     display: block;
     display: block !important;
     white-space: nowrap;
     white-space: nowrap !important;
     position: relative;
     position: relative !important;
    will-change: margin-left;
}
}


第29行: 第30行:
     height: 25px;
     height: 25px;
     line-height: 25px;
     line-height: 25px;
     list-style: none;
     list-style: none !important;
     float: left;
     float: left !important;
     width: 100%;
     width: 100% !important;
     display: inline-block;
     display: inline-block !important;
     box-sizing: border-box;
     box-sizing: border-box !important;
     padding: 0 10px;
     padding: 0 10px;
     vertical-align: top;
     vertical-align: top;
    flex-shrink: 0;
}
}



2025年12月19日 (五) 07:58的版本

/* 网站公告的 CSS - 移动端和桌面端通用 */

#siteNoticeScroll {
    width: 100%;
    height: 25px;
    line-height: 25px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 0.25em;
    position: relative;
}

#siteNoticeScroll ul {
    height: 25px;
    line-height: 25px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    -webkit-transition: margin-left 0.73s ease-in-out !important;
    -moz-transition: margin-left 0.73s ease-in-out !important;
    -o-transition: margin-left 0.73s ease-in-out !important;
    transition: margin-left 0.73s ease-in-out !important;
    display: block !important;
    white-space: nowrap !important;
    position: relative !important;
    will-change: margin-left;
}

#siteNoticeScroll li {
    height: 25px;
    line-height: 25px;
    list-style: none !important;
    float: left !important;
    width: 100% !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    padding: 0 10px;
    vertical-align: top;
    flex-shrink: 0;
}

/* 移动端优化 */
@media screen and (max-width: 720px) {
    #siteNoticeScroll {
        height: auto;
        min-height: 25px;
    }
    
    #siteNoticeScroll ul {
        height: auto;
        min-height: 25px;
    }
    
    #siteNoticeScroll li {
        height: auto;
        min-height: 25px;
        line-height: 1.5;
        padding: 2px 10px;
    }
}

/* 确保在移动端也能正常显示 */
.mw-mf-viewport #siteNoticeScroll {
    width: 100%;
    overflow: hidden;
}