Merge pull request #730 from ONLYOFFICE/fix/table-styler

Fix table styler for dark theme
This commit is contained in:
Julia Radzhabova 2021-03-05 00:41:09 +03:00 committed by GitHub
commit d887ef8659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -677,10 +677,12 @@ define([
};
me.setTableColor = function(color) {
table_content.toggleClass('transparent', color == 'transparent');
table_content.css('background-color', (color == 'transparent' ) ? color : ('#'+color));
};
me.setCellsColor = function(color) {
!me.spacingMode && table_content.toggleClass('transparent', color == 'transparent');
cells_content.css('background-color', (color == 'transparent' ) ? color : ('#'+color));
};

View file

@ -1,4 +1,9 @@
.table-styler {
table {
&.transparent {
background-color: @canvas-content-background !important;
}
}
td {
padding: 0;