Foxtrott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/168176

Change subject: Fix TOC layout
......................................................................

Fix TOC layout

Change-Id: If0fbd874bd295727dc2e5393950bdab0d31a96eb
---
M Chameleon.php
M styles/screen.less
2 files changed, 15 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/chameleon 
refs/changes/76/168176/1

diff --git a/Chameleon.php b/Chameleon.php
index c400476..c25c442 100644
--- a/Chameleon.php
+++ b/Chameleon.php
@@ -47,7 +47,7 @@
        }
 
        // define the skin's version
-       define( 'CHAMELEON_VERSION', '1.0.1-dev' );
+       define( 'CHAMELEON_VERSION', '1.0.1' );
 
        // set credits
        $GLOBALS[ 'wgExtensionCredits' ][ 'skin' ][ ] = array(
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/168176
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If0fbd874bd295727dc2e5393950bdab0d31a96eb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/chameleon
Gerrit-Branch: master
Gerrit-Owner: Foxtrott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to