Show empty state on mobile when there is only non-discussion content

Bug: T313801
Change-Id: I4e9910ef7d63c6ce330da1a896f518a9a22a12cd
This commit is contained in:
Ed Sanders 2022-07-26 13:52:22 +01:00
parent c93edc44b7
commit 1d1df63cab
2 changed files with 7 additions and 2 deletions

View file

@ -4,7 +4,7 @@
"stylelint-config-wikimedia/mediawiki"
],
"rules": {
"selector-class-pattern": "^(ext|ve|mw|oo-ui|client|skin)-",
"selector-class-pattern": "^(ext|ve|mw|oo-ui|client|skin|mf)-",
"unit-disallowed-list": null
}
}

View file

@ -558,10 +558,15 @@ span[ data-mw-comment-start ] {
// 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 */
.mf-section-0 > *:not( .ext-discussiontools-emptystate ) {
display: none;
}
.mf-section-0 > .ext-discussiontools-emptystate {
border-top: 0;
margin-top: 0;
}
.ext-discussiontools-init-readAsWikiPage {
display: block;
/* Not sticky per T309889 */