mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
deabd6bd51
jQuery.makeCollapsible styles now display "fake" expand/collapse toggles. This is nice, but some bits and pieces clashed with our styles, this fixes it. Also ensure that the styles are loaded if the page previously had no collapsible elements on it. Bug: T194323 Change-Id: If8f0869e6677811147f272337da7d96286792fe0
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;
|
|
}
|
|
|
|
/* Allow jQuery.makeCollapsible fake toggle buttons to float around the text */
|
|
.ve-ce-mwTableNode .ve-ce-tableCaptionNode .ve-ce-paragraphNode:only-child,
|
|
.ve-ce-mwTableNode .ve-ce-tableCellNode .ve-ce-paragraphNode:only-child {
|
|
display: inline;
|
|
}
|
|
|
|
/* 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 > caption:first-child:after {
|
|
color: #999;
|
|
}
|