MediaWiki:Mobile.css:修订间差异
跳到导航
跳到搜索
无编辑摘要 |
无编辑摘要 |
||
第29行: | 第29行: | ||
/* 表格内图片设置最小宽度*/ | /* 表格内图片设置最小宽度*/ |
2023年3月21日 (二) 16:01的版本
/* 这里放置的CSS将影响使用移动版网站的用户 */ /*手机端 */ @media screen and (max-width: 640px) { body { font-size: small; } .wikitable, .infobox { font-size: x-small } .infobox-main-title { width: 100vw; } } /* 通知样式 */ .mw-echo-ui-notificationsInboxWidget-toolbarWrapper { background: transparent !important; } .overlay-header h2>* { color: #333 !important; } .notification-count { background: transparent !important; } /* 表格内图片设置最小宽度*/ .wikitable img { min-width: 24px; } /* 使行宽占满表格 */ th.fullline, td.fullline { width: 850px; } /* 缩小显示表格 */ table.scaletable { transform: scale(0.5); transform-origin: top left; width: 200% !important; } /* 隐藏元素 */ .nomobile { display: none !important; } /** 隐藏登录后的首页欢迎语 **/ body.page-Main_Page.is-authenticated .pre-content { display: none !important; } /* 侧栏调整 */ .navigation-enabled #mw-mf-viewport { overflow: hidden; min-height: 100%; height: 100% !important; } nav#mw-mf-page-left { height: 100% } nav#mw-mf-page-left>.menu.view-border-box { overflow-x: hidden; overflow-y: scroll; height: 100%; position: relative; } nav ul li a:hover { box-shadow: inset 5px 0 0 0 var(--senior); text-decoration: none; } nav .mw-parser-output ul li a { font-weight: bold; line-height: 1.857; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } nav .mw-parser-output ul li a>i { margin-right: 0.76em; font-size: 1.4em; vertical-align: middle; width: 24px; text-align: center; } .overlay-header h2>* { color: #333 !important; } .notification-count { background: transparent !important; } /* 隐藏首页和sandbox顶部内容 */ body.page-首页 .pre-content, body.page-首页_sandbox .pre-content { display: none; } /* Style for horizontal lists (separator following item) */ .skin-monobook .hlist dl, .skin-modern .hlist dl, .skin-vector .hlist dl { line-height: 1.5em; } .hlist dl, .hlist ol, .hlist ul { margin: 0; } .hlist dd, .hlist dt, .hlist li { display: inline; margin: 0; } /* Display nested lists inline */ .hlist dl dl, .hlist ol ol, .hlist ul ul { display: inline; } /* Generate interpuncts */ .hlist dt:after { content: " :"; } .hlist dd:after, .hlist li:after { content: " · "; font-weight: bold; } .hlist dd:last-child:after, .hlist dt:last-child:after, .hlist li:last-child:after { content: none; } /* for IE 8 */ .hlist dd.nopunct:after, .hlist dt.nopunct:after, .hlist li.nopunct:after { content: none; } /* Add parens around nested lists */ .hlist dl dl:before, .hlist ol ol:before, .hlist ul ul:before { content: "("; } .hlist dl dl:after, .hlist ol ol:after, .hlist ul ul:after { content: ")"; } /* Put numbers in ordered lists */ .hlist.hnum ol li { counter-increment: level1; } .hlist.hnum ol li:before { content: counter(level1) " "; } .hlist.hnum ol ol li { counter-increment: level2; } .hlist.hnum ol ol li:before { content: counter(level2) " "; } /* 增加交通字体 */ @font-face { font-family: "JTBZ"; src: url("https://w.zhbus.org/fonts/stjtbz.ttf"); } /* busroute卡片*/ @media { .content table { display:revert !important; } } /* 回到顶部 */ .backToTop { display: none; opacity: 1; filter: alpha(opacity=100); position: fixed; _position: absolute; z-index: 9999; bottom: 20px; right: 20px; height: 48px; width: 48px; line-height: 48px; background-color: var(--theme); cursor: pointer; color: #fff; border-radius: 50%; font-size: 24px; text-align: center; -webkit-box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12); box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12); } /* 在页面标题后增加复制URL按钮 */ body:not(.ns--1) h1#section_0 { pointer-events: none; cursor: text; } body:not(.ns--1) h1#section_0::after { content: "\f0c1"; font-family: 'Font Awesome 5 Free'; font-weight: 900; -webkit-font-smoothing: antialiased; display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; line-height: 1; font-size: 70%; margin-left: .4em; color: var(--blue); pointer-events: auto; cursor: pointer; }