mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-04 18:58:37 +00:00
ac88166da1
Using display:inline causes the <p> to be destroyed when empty. Bug: T197987 Change-Id: Icfcb2ddc91e6793221608fac9f2995c6afeb4313
37 lines
1.3 KiB
CSS
37 lines
1.3 KiB
CSS
/*!
|
|
* VisualEditor ContentEditable MediaWiki MWTableNode styles.
|
|
*
|
|
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/* Override tablesorter's cursor: pointer */
|
|
.ve-ce-mwTableNode.jquery-tablesorter th.ve-ce-tableCellNode-header.headerSort {
|
|
cursor: default;
|
|
}
|
|
|
|
.ve-ce-mwTableNode.jquery-tablesorter th.ve-ce-tableCellNode-header.ve-ce-tableCellNode-editing.headerSort {
|
|
cursor: text;
|
|
}
|
|
|
|
/* Prevent jQuery.makeCollapsible from hiding the rows, even if collapsed by default */
|
|
.client-js .ve-ce-mwTableNode.mw-collapsed:not( .mw-made-collapsible ) tr:not( :first-child ) {
|
|
display: table-row;
|
|
}
|
|
|
|
.client-js .ve-ce-mwTableNode.mw-collapsed:not( .mw-made-collapsible ) > thead + tbody {
|
|
display: table-row-group;
|
|
}
|
|
|
|
/*
|
|
* Grey out the fake toggles to make it more obvious they are not interactive.
|
|
* Don't bother trying to float the toggles, as the text they are floating around
|
|
* 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).
|
|
*/
|
|
.ve-ce-mwTableNode.mw-collapsible :first-child tr:first-child th:last-child:before,
|
|
.ve-ce-mwTableNode.mw-collapsible > caption:first-child:after {
|
|
color: #999;
|
|
float: none;
|
|
}
|