Hide the lede section on mobile when DiscussionTools is enabled (2nd attempt)

Previously this was reverted in I28a5c774f5f after the initial
commit I3736b488046 caused T312177.

Bug: T311760
Change-Id: Iba65615378b183f0c970afff565f45cc878f1d71
This commit is contained in:
Esanders 2022-07-06 13:05:39 +00:00 committed by Ed Sanders
parent 72bb4aed13
commit d6a8c75899

View file

@ -542,17 +542,32 @@ span[ data-mw-comment-start ] {
} }
} }
.skin-minerva { // DiscussionToolsEnableMobile disables the Minerva simplified talk page
&.ext-discussiontools-visualenhancements-enabled { // (SkinMinerva::isSimplifiedTalkPageEnabled). This is enabled on all pages
.ext-discussiontools-init-readAsWikiPage { // in the talk namespace (with wikitext content model, but this file is not
display: block; // loaded on non-wikitext pages).
/* Not sticky per T309889 */ //
width: 100%; // DiscussionToolsEnableMobile enables multiple features, including the reply tool.
padding: 1em; //
color: @colorProgressive; // Whenever we detect that DiscussionToolsEnableMobile is disabling the Minerva
background: @colorGray15; // simplified talk page, hide the lede section, and show a "Read as wiki page" button
border-top: 1px solid @colorGray14; // to reveal it.
text-align: center; //
} // The button will disable all DT features byt remove feature CSS classes.
// stylelint-disable-next-line selector-class-pattern
.skin-minerva.ns-talk.ext-discussiontools-replytool-enabled {
.mf-section-0 { /* stylelint-disable-line selector-class-pattern */
display: none;
}
.ext-discussiontools-init-readAsWikiPage {
display: block;
/* Not sticky per T309889 */
width: 100%;
padding: 1em;
color: @colorProgressive;
background: @colorGray15;
border-top: 1px solid @colorGray14;
text-align: center;
} }
} }