Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions x-pack/plugins/ml/public/_app.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ML has app specific coloring for it's various warning levels.
// ML has app specific coloring for it's various warning levels.
// These are used almost everywhere.

.ml-icon-severity-critical,
Expand All @@ -10,21 +10,21 @@
}

.ml-icon-severity-critical {
color: $mchColorCriticalText;
color: $mlColorCriticalText;
}

.ml-icon-severity-major {
color: $mchColorMajorText;
color: $mlColorMajorText;
}

.ml-icon-severity-minor {
color: $mchColorMinorText;
color: $mlColorMinorText;
}

.ml-icon-severity-warning {
color: $mchColorWarningText;
color: $mlColorWarningText;
}

.ml-icon-severity-unknown {
color: $mchColorUnknownText;
}
color: $mlColorUnknownText;
}
20 changes: 10 additions & 10 deletions x-pack/plugins/ml/public/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$mchColorCritical: #fe5050;
$mchColorMajor: #fba740;
$mchColorMinor: #fdec25;
$mchColorWarning: #8bc8fb;
$mchColorUnknown: #c0c0c0;
$mlColorCritical: #fe5050;
$mlColorMajor: #fba740;
$mlColorMinor: #fdec25;
$mlColorWarning: #8bc8fb;
$mlColorUnknown: #c0c0c0;

$mchColorCriticalText: makeHighContrastColor($mchColorCritical, $euiColorEmptyShade);
$mchColorMajorText: makeHighContrastColor($mchColorMajor, $euiColorEmptyShade);
$mchColorMinorText: makeHighContrastColor($mchColorMinor, $euiColorEmptyShade);
$mchColorWarningText: makeHighContrastColor($mchColorWarning, $euiColorEmptyShade);
$mchColorUnknownText: $euiColorDarkShade;
$mlColorCriticalText: makeHighContrastColor($mlColorCritical, $euiColorEmptyShade);
$mlColorMajorText: makeHighContrastColor($mlColorMajor, $euiColorEmptyShade);
$mlColorMinorText: makeHighContrastColor($mlColorMinor, $euiColorEmptyShade);
$mlColorWarningText: makeHighContrastColor($mlColorWarning, $euiColorEmptyShade);
$mlColorUnknownText: $euiColorDarkShade;
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@
// SASSTODO: Should only be three options, logic moved to the JS, where EuiIcon accepts a color
.ml-icon-severity-critical {
.euiIcon {
fill: $mchColorCriticalText;
fill: $mlColorCriticalText;
}
}

.ml-icon-severity-major {
.euiIcon {
fill: $mchColorMajorText;
fill: $mlColorMajorText;
}
}

.ml-icon-severity-minor {
.euiIcon {
fill: $mchColorMinorText;
fill: $mlColorMinorText;
}
}

.ml-icon-severity-warning {
.euiIcon {
fill: $mchColorWarningText;
fill: $mlColorWarningText;
}
}

.ml-icon-severity-unknown {
.euiIcon {
fill: $mchColorUnknownText;
fill: $mlColorUnknownText;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,37 +40,37 @@
// SASSTODO: This range of color is too large, needs to be rewritten and variablized
.progress.critical {
.progress-bar {
background-color: $mchColorCritical;
background-color: $mlColorCritical;
}
.score-label {
border-color: $mchColorCritical;
border-color: $mlColorCritical;
}
}

.progress.major {
.progress-bar {
background-color: $mchColorMajor;
background-color: $mlColorMajor;
}
.score-label {
border-color: $mchColorMajor;
border-color: $mlColorMajor;
}
}

.progress.minor {
.progress-bar {
background-color: $mchColorMinor;
background-color: $mlColorMinor;
}
.score-label {
border-color: $mchColorMinor;
border-color: $mlColorMinor;
}
}

.progress.warning {
.progress-bar {
background-color: $mchColorWarning;
background-color: $mlColorWarning;
}
.score-label {
border-color: $mchColorWarning;
border-color: $mlColorWarning;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@
}

.anomaly-marker.critical {
fill: $mchColorCritical;
fill: $mlColorCritical;
}

.anomaly-marker.major {
fill: $mchColorMajor;
fill: $mlColorMajor;
}

.anomaly-marker.minor {
fill: $mchColorMinor;
fill: $mlColorMinor;
}

.anomaly-marker.warning {
fill: $mchColorWarning;
fill: $mlColorWarning;
}

.anomaly-marker.low {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.mchJobFilterBar {
.mlJobFilterBar {
// SASSTODO: Dangerou EUI overwrites
.euiFilterGroup {
.euiPopover .euiPanel {
Expand All @@ -20,4 +20,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class JobFilterBar extends Component {
}}
filters={filters}
onChange={this.onChange}
className="mchJobFilterBar"
className="mlJobFilterBar"
/>
</EuiFlexItem>
{ this.renderError() || ''}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,19 @@
}

.anomaly-marker.critical {
fill: $mchColorCritical;
fill: $mlColorCritical;
}

.anomaly-marker.major {
fill: $mchColorMajor;
fill: $mlColorMajor;
}

.anomaly-marker.minor {
fill: $mchColorMinor;
fill: $mlColorMinor;
}

.anomaly-marker.warning {
fill: $mchColorWarning;
fill: $mlColorWarning;
}

.anomaly-marker.low {
Expand Down