Skip to content

Commit 6456d86

Browse files
authored
fix(SiteCommon): mobile table styles should not be applie to infoboxes (qiuwenbaike#1639)
* fix(SiteCommon): mobile table styles should not apply to infoboxes
1 parent 3b4d523 commit 6456d86

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dist/SiteCommon/SiteCommon.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/SiteCommon/modules/mobile.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/* 移动端优化 */
2+
@not_infobox_selector: ~'.metadata, .infobox, .sidebar, .vertical-navbox';
3+
24
@media only screen and (max-width: 768px) {
35
/* !important to ignore inline styles */
46

57
/* .mw-body-content to increase specificity */
68
.mw-body-content {
79
word-wrap: break-word;
810

9-
table {
11+
table:not(@{not_infobox_selector}) {
1012
display: block;
1113
max-width: 92.5% !important;
1214
margin-right: auto !important;

0 commit comments

Comments
 (0)