jenkins-bot has submitted this change and it was merged.
Change subject: Fix TOC layout
......................................................................
Fix TOC layout
Change-Id: I087994335876a02cda6081ec51f35fd7b1cee128
---
M styles/screen.less
1 file changed, 14 insertions(+), 9 deletions(-)
Approvals:
Foxtrott: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/styles/screen.less b/styles/screen.less
index 2739cbb..653dd8a 100644
--- a/styles/screen.less
+++ b/styles/screen.less
@@ -95,25 +95,30 @@
padding: 0;
text-align: left;
text-indent: 0;
- display: table;
li {
- display: table-row-group;
-
&:before{
content: none;
}
a {
- display: table-row;
-
.tocnumber {
- display: table-cell;
- padding-right: 1ex;
+ display: inline-block;
+ text-align: right;
+ margin-right: .5ex;
+ min-width: 2ex; //up to two digits
+ }
+ }
+
+ ul li {
+ a .tocnumber {
+ min-width: 3.5ex; // two digits + dot +
digit
}
- .toctext {
- display: table-cell;
+ ul li {
+ a .tocnumber {
+ min-width: 5ex; // two digits +
dot + digit + dot + digit
+ }
}
}
}
--
To view, visit https://gerrit.wikimedia.org/r/168177
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I087994335876a02cda6081ec51f35fd7b1cee128
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/skins/chameleon
Gerrit-Branch: master
Gerrit-Owner: Foxtrott <[email protected]>
Gerrit-Reviewer: Foxtrott <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits