|
@@ -1,8 +1,9 @@
|
|
|
import React, { PureComponent } from 'react';
|
|
import React, { PureComponent } from 'react';
|
|
|
import { css, cx } from 'emotion';
|
|
import { css, cx } from 'emotion';
|
|
|
|
|
+import tinycolor from 'tinycolor2';
|
|
|
import { last } from 'lodash';
|
|
import { last } from 'lodash';
|
|
|
|
|
|
|
|
-import { Themeable, withTheme, GrafanaTheme, selectThemeVariant, getLogRowStyles } from '@grafana/ui';
|
|
|
|
|
|
|
+import { Themeable, withTheme, GrafanaTheme, getLogRowStyles } from '@grafana/ui';
|
|
|
import { LogsModel, LogRowModel, TimeZone } from '@grafana/data';
|
|
import { LogsModel, LogRowModel, TimeZone } from '@grafana/data';
|
|
|
|
|
|
|
|
import ElapsedTime from './ElapsedTime';
|
|
import ElapsedTime from './ElapsedTime';
|
|
@@ -23,17 +24,15 @@ const getStyles = (theme: GrafanaTheme) => ({
|
|
|
logsRowFresh: css`
|
|
logsRowFresh: css`
|
|
|
label: logs-row-fresh;
|
|
label: logs-row-fresh;
|
|
|
color: ${theme.colors.text};
|
|
color: ${theme.colors.text};
|
|
|
- background-color: ${selectThemeVariant(
|
|
|
|
|
- { light: theme.background.logsFresh, dark: theme.background.logsFresh },
|
|
|
|
|
- theme.type
|
|
|
|
|
- )};
|
|
|
|
|
|
|
+ background-color: ${tinycolor(theme.colors.blueLight)
|
|
|
|
|
+ .setAlpha(0.25)
|
|
|
|
|
+ .toString()};
|
|
|
animation: fade 1s ease-out 1s 1 normal forwards;
|
|
animation: fade 1s ease-out 1s 1 normal forwards;
|
|
|
@keyframes fade {
|
|
@keyframes fade {
|
|
|
from {
|
|
from {
|
|
|
- background-color: ${selectThemeVariant(
|
|
|
|
|
- { light: theme.background.logsFresh, dark: theme.background.logsFresh },
|
|
|
|
|
- theme.type
|
|
|
|
|
- )};
|
|
|
|
|
|
|
+ background-color: ${tinycolor(theme.colors.blueLight)
|
|
|
|
|
+ .setAlpha(0.25)
|
|
|
|
|
+ .toString()};
|
|
|
}
|
|
}
|
|
|
to {
|
|
to {
|
|
|
background-color: transparent;
|
|
background-color: transparent;
|