From 6ae639c2878f0dc92490256e40e15aee4efe937c Mon Sep 17 00:00:00 2001 From: sulemanof Date: Fri, 22 Mar 2019 14:26:44 +0300 Subject: [PATCH] Remove excessive styles --- .../visualizations/components/_index.scss | 1 - .../visualizations/components/_legend.scss | 92 ------------------- .../components/_timeseries_chart.scss | 29 ------ .../visualize/components/_visualization.scss | 1 - 4 files changed, 123 deletions(-) delete mode 100644 src/legacy/core_plugins/metrics/public/visualizations/components/_legend.scss diff --git a/src/legacy/core_plugins/metrics/public/visualizations/components/_index.scss b/src/legacy/core_plugins/metrics/public/visualizations/components/_index.scss index c5ce0ff8c8513..30f8889622825 100644 --- a/src/legacy/core_plugins/metrics/public/visualizations/components/_index.scss +++ b/src/legacy/core_plugins/metrics/public/visualizations/components/_index.scss @@ -1,6 +1,5 @@ @import './annotation'; @import './gauge'; @import './metric'; -@import './legend'; @import './timeseries_chart'; @import './top_n'; diff --git a/src/legacy/core_plugins/metrics/public/visualizations/components/_legend.scss b/src/legacy/core_plugins/metrics/public/visualizations/components/_legend.scss deleted file mode 100644 index 429e7c682f21e..0000000000000 --- a/src/legacy/core_plugins/metrics/public/visualizations/components/_legend.scss +++ /dev/null @@ -1,92 +0,0 @@ -// LEGEND - -.tvbLegend { - @include euiFontSizeXS; - display: flex; - width: 200px; - padding: $euiSizeXS 0; - overflow: auto; -} - -.tvbLegend__toggle { - align-self: flex-start; - color: $tvbValueColor; - - .tvbVisTimeSeries--reversed & { - color: $tvbValueColorReversed; - } -} - -.tvbLegend__series { - flex-grow: 1; -} - -.tvbLegend__item { - cursor: pointer; - padding: $euiSizeXS; - border-bottom: 1px solid $tvbLineColor; - display: flex; - max-width: 170px; - - &.disabled { - opacity: .5; - } - - &:first-child { - border-top: 1px solid $tvbLineColor; - } - - .tvbVisTimeSeries--reversed & { - border-color: $tvbLineColorReversed; - } -} - -.tvbLegend__button { - text-align: left; - display: flex; - width: 100%; -} - -.tvbLegend__itemLabel { - @include euiTextTruncate; - flex-grow: 1; - - span { - color: $euiTextColor; - margin-left: $euiSizeXS; - - .tvbVisTimeSeries--reversed & { - color: $tvbTextColorReversed; - } - } -} - -.tvbLegend__itemValue { - font-weight: $euiFontWeightSemiBold; - color: $tvbValueColor; - margin-left: $euiSizeXS; - - .tvbVisTimeSeries--reversed & { - color: $tvbValueColorReversed; - } -} - -.tvbLegend--horizontal { - width: auto; - display: flex; - - .tvbLegend__series { - display: flex; - flex-wrap: wrap; - } - - .tvbLegend__item { - max-width: inherit; - margin-right: $euiSizeM; - border: none; - } - - .tvbLegend__itemLabel { - flex: 0 1 auto; - } -} diff --git a/src/legacy/core_plugins/metrics/public/visualizations/components/_timeseries_chart.scss b/src/legacy/core_plugins/metrics/public/visualizations/components/_timeseries_chart.scss index d8a6492e0dacb..ff5c9b17c4832 100644 --- a/src/legacy/core_plugins/metrics/public/visualizations/components/_timeseries_chart.scss +++ b/src/legacy/core_plugins/metrics/public/visualizations/components/_timeseries_chart.scss @@ -2,13 +2,6 @@ @import '@elastic/eui/src/components/tool_tip/mixins'; .tvbVisTimeSeries { - position: relative; - display: flex; - flex-direction: column; - flex: 1 0 auto; -} - -.tvbVisTimeSeries__content { position: absolute; top: 0; right: 0; @@ -20,28 +13,6 @@ overflow: visible; // Ensures the tooltip doesn't cause scrollbars } -.tvbVisTimeSeries__visualization { - cursor: crosshair; - display: flex; - flex-direction: column; - flex: 1 0 auto; - position: relative; - - > .tvbVisTimeSeries__container { - min-width: 1px; - width: 100%; - height: 100%; - } -} - -.tvbVisTimeSeries__container { - @include euiFontSizeXS; - position: relative; - display: flex; - flex-direction: column; - flex: 1 0 auto; -} - .tvbVisTimeSeries__axisLabel { font-weight: $euiFontWeightBold; color: $tvbTextColor; diff --git a/src/legacy/ui/public/visualize/components/_visualization.scss b/src/legacy/ui/public/visualize/components/_visualization.scss index 785968d2883e7..05f1e093b3fc5 100644 --- a/src/legacy/ui/public/visualize/components/_visualization.scss +++ b/src/legacy/ui/public/visualize/components/_visualization.scss @@ -11,7 +11,6 @@ flex-direction: column; width: 100%; height: 100%; - overflow: auto; position: relative; padding: $euiSizeS; flex: 1 1 100%;