“MediaWiki:Mobile.css”的版本间的差异
来自小鱼君和他的朋友们
小 (导入1个版本) |
2019年9月4日 (三) 23:44的最新版本
/* 放置于这里的CSS将影响使用移动版网站的用户 */ .heimu, .heimu a, a .heimu, .heimu a.new { background-color: #252525; color: #252525; text-shadow: none; } .heimu:hover, .heimu:active { color: white; } .heimu:hover a, a:hover .heimu { color: lightblue; } .heimu:hover .new, .heimu .new:hover, .new:hover .heimu { color: #BA0000; } /* 页顶提示模板相关 */ #commonBoxInfo { color: #f00; font-weight: bold; text-align: center; } #commonBoxList > .commonBoxButton { display: inline-block; border-bottom: 3px solid #000; width: 40px; height: 40px; background: #fff 50% 50% no-repeat; background-size: contain; cursor: pointer; transition: opacity .5s; } #commonBoxList.open > .commonBoxButton { opacity: .1; } #commonBoxList.open > .commonBoxButton.current { opacity: 1; } /* infoBox */ .infoBox { margin: 0 auto; clear: both; } .infoBoxTitle { margin: 3px auto; padding: 0; text-align: center; font-weight: bold; } .infoBoxIcon { display: table-cell; padding: 2px 0 2px 0.5em; vertical-align: middle; } .infoBoxText { display: table-cell; padding: 0.25em 0.5em 0.25em 1.3em; width: 100%; vertical-align: middle; } .infoBoxContent { border: 1px solid #ddd; border-left-width: 0; background: #fbfbfb; } .infoBoxBelow { margin: 0 auto; padding: 0; text-align: center; } /*尝试强行载入navbox*/ /* wikitable border */ #content.content table.wikitable { border: none; } .navbox th, .navbox-group { background: #a5e4a5; } /* 来个高优先级的 */ body .content .navbox { display: table!important; } .navbox .content table { width: 100% !important; } .navbox { border: 1px solid #aaa; clear: both; padding: 1px; text-align: center; width: 100%; } .navbox-group { white-space: nowrap; } .navbox table { width: 100% !important; margin: 0 !important; } .navbox-subgroup .navbox-group { background: #e6f6e6; } .navbox-title > div:first-of-type { display: none; } /* Fix by case : Rev 1327309 ([[Special:Permalink/1327309]]) Address alignment issue of nested tabs in Navbox */ .navbox .TabLabel { text-align: left; } @media screen and (max-width: 640px) { .navbox-group { display: block; } .navbox-group + * { display: block; width: 100%; border-left: 1em solid #a5e4a5 !important; padding-left: 3px !important; padding-top: 3px !important; box-sizing: border-box; } .navbox-subgroup .navbox-group + * { border-left: 1em solid #e6f6e6 !important; } }