Skip to content

Commit

Permalink
Fix font size of submenu items
Browse files Browse the repository at this point in the history
Bug: T288336
  • Loading branch information
MusikAnimal committed Aug 9, 2021
1 parent 1b3b119 commit 79da5ff
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Expand Up @@ -11,7 +11,7 @@
"Want to add custom links? See [[meta:MoreMenu#Customization]].",
"",
"Script: MoreMenu.js",
"Version: 5.1.7",
"Version: 5.1.12",
"Author: MusikAnimal",
"License: MIT",
"Documentation: [[meta:MoreMenu]]",
Expand Down
8 changes: 4 additions & 4 deletions dist/MoreMenu.js
Expand Up @@ -4,9 +4,9 @@
* Please submit code changes as a pull request to the source repository at https://github.com/wikimedia-gadgets/MoreMenu
* Are there missing translations? See [[meta:MoreMenu#Localization]].
* Want to add custom links? See [[meta:MoreMenu#Customization]].
*
*
* Script: MoreMenu.js
* Version: 5.1.11
* Version: 5.1.12
* Author: MusikAnimal
* License: MIT
* Documentation: [[meta:MoreMenu]]
Expand Down Expand Up @@ -399,7 +399,7 @@ $(function () {
function addCSS() {
switch (config.currentUser.skin) {
case 'vector':
return mw.util.addCSS("\n .mm-submenu {\n background: #ffffff;\n border: 1px solid #a2a9b1;\n min-width: 120px !important;\n ".concat(rightKey, ": inherit !important;\n top: -1px !important;\n }\n #p-views {\n padding-left: inherit !important;\n padding-right: inherit !important;\n }\n #p-views .vector-menu-content::after {\n display: none !important;\n }\n .rtl #p-views .vector-menu-content::before {\n display: none !important;\n }\n "));
return mw.util.addCSS("\n .mm-submenu {\n background: #ffffff;\n border: 1px solid #a2a9b1;\n min-width: 120px !important;\n ".concat(rightKey, ": inherit !important;\n top: -1px !important;\n }\n #p-views {\n padding-left: inherit !important;\n padding-right: inherit !important;\n }\n #p-views .vector-menu-content::after {\n display: none !important;\n }\n .rtl #p-views .vector-menu-content::before {\n display: none !important;\n }\n .mm-submenu .mm-item {\n font-size: inherit;\n }\n "));

case 'timeless':
return mw.util.addCSS("\n .mm-submenu-wrapper {\n cursor: default;\n }\n .mm-submenu {\n background: #f8f9fa;\n border: 1px solid rgb(200, 204, 209);\n box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.05);\n padding: 1.2em 1.5em !important;\n top: -1.2em;\n white-space: nowrap;\n z-index: 95;\n }\n .mm-submenu::after {\n border-bottom: 8px solid transparent;\n border-top: 8px solid transparent;\n border-".concat(leftKey, ": 8px solid rgb(200, 204, 209);\n content: '';\n height: 0;\n padding-").concat(rightKey, ": 4px;\n position: absolute;\n top: 20px;\n width: 0;\n ").concat(rightKey, ": -13px;\n }\n @media screen and (max-width: 1339px) and (min-width: 1100px) {\n .mm-submenu::after {\n border-").concat(leftKey, ": none;\n border-").concat(rightKey, ": 8px solid rgb(200, 204, 209);\n padding-").concat(leftKey, ": 4px;\n padding-").concat(rightKey, ": inherit;\n ").concat(rightKey, ": inherit;\n ").concat(leftKey, ": -35px;\n }\n }\n @media screen and (max-width: 850px) {\n .mm-submenu {\n top: -2.2em;\n }\n }\n "));
Expand Down Expand Up @@ -1097,4 +1097,4 @@ $(function () {


init();
});
});
6 changes: 3 additions & 3 deletions dist/MoreMenu.messages.en.js
Expand Up @@ -4,9 +4,9 @@
* Please submit code changes as a pull request to the source repository at https://github.com/wikimedia-gadgets/MoreMenu
* Are there missing translations? See [[meta:MoreMenu#Localization]].
* Want to add custom links? See [[meta:MoreMenu#Customization]].
*
*
* Script: MoreMenu.js
* Version: 5.1.11
* Version: 5.1.12
* Author: MusikAnimal
* License: MIT
* Documentation: [[meta:MoreMenu]]
Expand Down Expand Up @@ -109,4 +109,4 @@ $.extend(window.MoreMenu.messages, {
"view-block": "View block",
"view-block-log": "View block log",
"whois": "WHOIS"
}, window.MoreMenu.messages);
}, window.MoreMenu.messages);
6 changes: 3 additions & 3 deletions dist/MoreMenu.page.js
Expand Up @@ -4,9 +4,9 @@
* Please submit code changes as a pull request to the source repository at https://github.com/wikimedia-gadgets/MoreMenu
* Are there missing translations? See [[meta:MoreMenu#Localization]].
* Want to add custom links? See [[meta:MoreMenu#Customization]].
*
*
* Script: MoreMenu.js
* Version: 5.1.11
* Version: 5.1.12
* Author: MusikAnimal
* License: MIT
* Documentation: [[meta:MoreMenu]]
Expand Down Expand Up @@ -246,4 +246,4 @@ window.MoreMenu.page = function (config) {
visible: -1 !== ['monobook', 'modern'].indexOf(config.currentUser.skin)
}), _page)
};
};
};
6 changes: 3 additions & 3 deletions dist/MoreMenu.user.js
Expand Up @@ -4,9 +4,9 @@
* Please submit code changes as a pull request to the source repository at https://github.com/wikimedia-gadgets/MoreMenu
* Are there missing translations? See [[meta:MoreMenu#Localization]].
* Want to add custom links? See [[meta:MoreMenu#Customization]].
*
*
* Script: MoreMenu.js
* Version: 5.1.11
* Version: 5.1.12
* Author: MusikAnimal
* License: MIT
* Documentation: [[meta:MoreMenu]]
Expand Down Expand Up @@ -311,4 +311,4 @@ window.MoreMenu.user = function (config) {
}
}
};
};
};
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "moremenu",
"version": "5.1.11",
"version": "5.1.12",
"description": "Dropdown menus with links to common tasks, user and page analytic tools and logs.",
"private": true,
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/MoreMenu.js
Expand Up @@ -382,6 +382,9 @@ $(() => {
.rtl #p-views .vector-menu-content::before {
display: none !important;
}
.mm-submenu .mm-item {
font-size: inherit;
}
`);
case 'timeless':
return mw.util.addCSS(`
Expand Down

0 comments on commit 79da5ff

Please sign in to comment.