Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F57309661
T367240.diff
Jdlrobson (Jon Robson)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
Jdlrobson
Aug 27 2024, 10:40 PM
2024-08-27 22:40:44 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
T367240.diff
View Options
diff --git a/resources/mobile.init.styles/main.less b/resources/mobile.init.styles/main.less
index 747367f58..1b7133ede 100644
--- a/resources/mobile.init.styles/main.less
+++ b/resources/mobile.init.styles/main.less
@@ -5,6 +5,8 @@
/* stylelint-disable no-descending-specificity */
.client-js {
+ /* For Parsoid HTML hide the div until the hidden attribute has been added. */
+ section > .mw-heading + div:not( [ hidden ] ),
.collapsible-block:not( .collapsible-block-js ) {
display: none;
// But show it for tablets.
@@ -13,8 +15,9 @@
}
}
- // For expand all sections client preference:
+ // For expand all sections client preference restore visibility.
&.mf-expand-sections-clientpref-1 {
+ section > .mw-heading + div:not( [ hidden ] ),
.collapsible-block:not( .collapsible-block-js ) {
display: block;
}
@@ -24,6 +27,7 @@
align-items: center;
}
+ section > .mw-heading,
.mw-heading.mf-collapsible-heading {
cursor: pointer;
border-bottom: @border-width-base @border-style-base @border-color-muted;
@@ -39,6 +43,10 @@
margin-right: 6px;
}
}
+
+ .mw-heading:not( .mf-collapsible-heading ) [id] {
+ margin-left: 21px;
+ }
}
.section-heading .indicator {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18778756
Default Alt Text
T367240.diff (1 KB)
Attached To
Mode
T367240: Fix layout shift on parsoid section collapsing
Attached
Detach File
Event Timeline
Log In to Comment