Sumit has submitted this change and it was merged.

Change subject: WikidataPageBanner toc - make toc less overlapping
......................................................................


WikidataPageBanner toc - make toc less overlapping

To prevent too much toc overlapping banner on smaller screens, following style
changes made:
* list items vertical padding removed.
* toc container given a vertical padding.
* line-height increased to 1.6
* toc made to stick to bottom, by setting bottom as 0.
* font-size changed from .85em to .8em on links

Bug: T106426
Change-Id: I787636fc1928d7973971b0eaa18c64c00e24e3c0
---
M resources/ext.WikidataPageBanner.toc.styles/ext.WikidataPageBanner.toc.less
1 file changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Sumit: Verified; Looks good to me, approved
  Jdlrobson: Looks good to me, approved
  jenkins-bot: Checked



diff --git 
a/resources/ext.WikidataPageBanner.toc.styles/ext.WikidataPageBanner.toc.less 
b/resources/ext.WikidataPageBanner.toc.styles/ext.WikidataPageBanner.toc.less
index 4692e16..d8c90ab 100644
--- 
a/resources/ext.WikidataPageBanner.toc.styles/ext.WikidataPageBanner.toc.less
+++ 
b/resources/ext.WikidataPageBanner.toc.styles/ext.WikidataPageBanner.toc.less
@@ -15,7 +15,7 @@
                display: block;
                position: absolute;
                background: rgba(0, 0, 0, 0.5) none repeat scroll 0% 0%;
-               bottom: 6px;
+               bottom: 0;
                left: 0;
                z-index: 3;
                width: 100%;
@@ -26,8 +26,8 @@
                color: white;
                background: none;
                border: medium none;
-               line-height: 1.1em;
-               padding: 0 2em 0 2em;
+               line-height: 1.6em;
+               padding: .2em 2em;
                margin: 0;
                width: auto;
 
@@ -45,7 +45,7 @@
 
                a {
                        color: white;
-                       font-size: 0.85em;
+                       font-size: 0.8em;
                        font-weight: bold;
                }
 
@@ -56,7 +56,7 @@
                // these are actual toc items
                li {
                        position: relative;
-                       padding: .5em;
+                       padding: 0 .4em;
                        margin: 0;
                        >ul {
                                list-style: none;

-- 
To view, visit https://gerrit.wikimedia.org/r/226229
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I787636fc1928d7973971b0eaa18c64c00e24e3c0
Gerrit-PatchSet: 6
Gerrit-Project: mediawiki/extensions/WikidataPageBanner
Gerrit-Branch: master
Gerrit-Owner: Sumit <asthana.sumi...@gmail.com>
Gerrit-Reviewer: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: Sumit <asthana.sumi...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to