Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Fix elastic#21355, visualization controls showing up in reports (elas…
Browse files Browse the repository at this point in the history
…tic#21362) (elastic#21428)

Hide visualization controls and the feedback banner in reports
  • Loading branch information
chrisdavies authored Jul 30, 2018
1 parent 44f5fa7 commit 31aa8a7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,31 @@ discover-app .discover-table-footer {
display: none;
}


/**
* The global banner (e.g. "Help us improve Elastic...") should not print.
*/
#globalBannerList {
display: none;
}

/**
* Visualize Editor Tweaks
*/

/* hide unusable controls */
visualize-app
visualize
> :not(.vis-editor-content):not(.vis_editor)/* all non-content rows in interface */,
visualize-app
visualize
.vis-editor-content
.default-vis-editor
> :not(.vis-editor-canvas):not(.vis_editor) {
display: none;
visualization-editor .default-vis-editor > :not(.vis-editor-canvas) {
display: none;
}

/** THIS IS FOR TSVB UNTIL REFACTOR **/
.vis_editor__visualization {
position: static !important;
position: static !important;
}
.visualize .rhythm_chart__legend-control,
.vis-editor-hide-for-reporting {
/* all non-content rows in interface */
display: none;
/* all non-content rows in interface */
display: none;
}
/** END TSVB BAD BAD HACKS **/

Expand All @@ -82,15 +86,15 @@ visualize-app .vis-editor-canvas {
*/

/* hide unusable controls */
visualize .legend-toggle,
visualize .agg-table-controls/* export raw, export formatted, etc. */ ,
visualize .leaflet-container .leaflet-top.leaflet-left/* tilemap controls */ ,
visualize paginate-controls /* page numbers */ {
.visualize .legend-collapse-button,
.visualize .agg-table-controls/* export raw, export formatted, etc. */ ,
.visualize .leaflet-container .leaflet-top.leaflet-left/* tilemap controls */ ,
.visualize paginate-controls /* page numbers */ {
display: none;
}

/* slightly increate legend text size for readability */
visualize visualize-legend .legend-value-title {
.visualize visualize-legend .legend-value-title {
font-size: 1.2em;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,27 @@ discover-app .discover-table-footer {
display: none;
}

/**
* The global banner (e.g. "Help us improve Elastic...") should not print.
*/

#globalBannerList {
display: none;
}

/**
* Visualize Editor Tweaks
*/

/* hide unusable controls */
visualize-app
visualize
> :not(.vis-editor-content):not(.vis_editor)/* all non-content rows in interface */,
visualize-app
visualize
.vis-editor-content
.default-vis-editor
> :not(.vis-editor-canvas):not(.vis_editor) {
visualization-editor .default-vis-editor > :not(.vis-editor-canvas) {
display: none;
}
/** THIS IS FOR TSVB UNTIL REFACTOR **/
.vis_editor__visualization {
position: static !important;
}
.visualize .rhythm_chart__legend-control,
.vis-editor-hide-for-reporting {
/* all non-content rows in interface */
display: none;
Expand All @@ -82,15 +85,15 @@ visualize-app .vis-editor-canvas {
*/

/* hide unusable controls */
visualize .legend-toggle,
visualize .agg-table-controls/* export raw, export formatted, etc. */,
visualize .leaflet-container .leaflet-top.leaflet-left/* tilemap controls */,
visualize paginate-controls {
.visualize .legend-collapse-button,
.visualize .agg-table-controls/* export raw, export formatted, etc. */,
.visualize .leaflet-container .leaflet-top.leaflet-left/* tilemap controls */,
.visualize paginate-controls {
display: none;
}

/* slightly increate legend text size for readability */
visualize visualize-legend .legend-value-title {
.visualize visualize-legend .legend-value-title {
font-size: 1.2em;
}

Expand Down

0 comments on commit 31aa8a7

Please sign in to comment.