Skip to content

Commit

Permalink
[explore] remove grey background in standalone mode (#2503)
Browse files Browse the repository at this point in the history
* [explore] remove grey background in standalone mode

* Going with background-transparent
  • Loading branch information
mistercrunch authored Mar 29, 2017
1 parent a58194b commit d3b50cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ class ChartContainer extends React.PureComponent {

render() {
if (this.props.standalone) {
// dom manipulation hack to get rid of the boostrap theme's body background
$('body').addClass('background-transparent');
return this.renderChart();
}
const queryResponse = this.props.queryResponse;
Expand Down
4 changes: 4 additions & 0 deletions superset/assets/javascripts/explorev2/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
margin-bottom: 0px;
box-shadow: none;
}

.background-transparent {
background-color: transparent !important;
}

0 comments on commit d3b50cb

Please sign in to comment.