Clean up cached .vector-menu-portal code

Follow up to I884cd33938b2670bddc90f698d8f61f37c6c29d4

Change-Id: Icd329aa4a43aa738b0127f7147b5401e07d90c05
This commit is contained in:
bwang 2022-12-14 15:53:41 -06:00
parent 1323b82aa3
commit f006e00677
4 changed files with 5 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{{! `heading` is optional. }}
<div class="vector-main-menu-action vector-main-menu-action-{{action}}">
<div class="vector-main-menu-action-item vector-menu-portal">
<div class="vector-main-menu-action-item">
{{#heading}}<div class="vector-main-menu-action-heading vector-menu-heading">{{.}}</div>{{/heading}}
<div class="vector-main-menu-action-content vector-menu-content">
{{{html-content}}}

View file

@ -1,7 +1,7 @@
{{!
See @typedef MenuDefinition
}}
<div id="{{id}}" class="vector-main-menu-group vector-menu vector-menu-portal portal{{#class}} {{.}}{{/class}}" {{{html-tooltip}}} {{{html-user-language-attributes}}}>
<div id="{{id}}" class="vector-main-menu-group vector-menu{{#class}} {{.}}{{/class}}" {{{html-tooltip}}} {{{html-user-language-attributes}}}>
<div
id="{{id}}-label"
class="vector-menu-heading{{#heading-class}} {{.}}{{/heading-class}}"

View file

@ -1,9 +1,7 @@
@import '../../common/variables.less';
@import 'mediawiki.mixins.less';
// FIXME: Remove `.vector-menu-portal` selector when cached HTML not a problem.
.vector-legacy-sidebar .vector-menu-portal,
.vector-menu-portal {
.vector-legacy-sidebar .vector-menu-portal {
margin: 0 @margin-end-portal 0 @margin-start-portal;
padding: 0.25em 0;
direction: ltr;

View file

@ -1,9 +1,8 @@
@import '../../common/variables.less';
@import 'mediawiki.mixins.less';
// FIXME: Remove .vector-menu-portal when cache has cleared
.vector-menu-portal,
.vector-main-menu-group {
.vector-main-menu-group,
.vector-main-menu-action-item {
margin: 0 @margin-end-portal 0 @margin-start-portal;
padding: 0.25em 0;
direction: ltr;