Give up on realistic styling of mw-collapsible

Using display:inline causes the <p> to be destroyed
when empty.

Bug: T197987
Change-Id: Icfcb2ddc91e6793221608fac9f2995c6afeb4313
This commit is contained in:
Ed Sanders 2018-06-23 14:17:21 +01:00
parent 5d9f90ea46
commit ac88166da1

View file

@ -23,14 +23,14 @@
display: table-row-group; display: table-row-group;
} }
/* Allow jQuery.makeCollapsible fake toggle buttons to float around the text */ /*
.ve-ce-mwTableNode .ve-ce-tableCaptionNode .ve-ce-paragraphNode:only-child, * Grey out the fake toggles to make it more obvious they are not interactive.
.ve-ce-mwTableNode .ve-ce-tableCellNode .ve-ce-paragraphNode:only-child { * Don't bother trying to float the toggles, as the text they are floating around
display: inline; * is now paragraph wrapped. Making these paragraphs display:inline would fix the
} * rendering but causes them to be destroyed by the CE when empty (T197987).
*/
/* Grey out the fake toggles to make it more obvious they are not interactive */
.ve-ce-mwTableNode.mw-collapsible :first-child tr:first-child th:last-child:before, .ve-ce-mwTableNode.mw-collapsible :first-child tr:first-child th:last-child:before,
.ve-ce-mwTableNode.mw-collapsible > caption:first-child:after { .ve-ce-mwTableNode.mw-collapsible > caption:first-child:after {
color: #999; color: #999;
float: none;
} }