-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Removing anomaly detection scss files (#197447)
Removes last remaining scss files in favour of inline css with emotion. **Before** ![image](https://github.com/user-attachments/assets/16910734-8e28-459c-b798-d55d7ab10323) **After** ![image](https://github.com/user-attachments/assets/5f8a07b7-8796-4302-af24-6facebeb3b48) **Before** ![image](https://github.com/user-attachments/assets/06657e7f-b913-4393-aeaa-50fc0c53831c) **After** ![image](https://github.com/user-attachments/assets/fd9eab67-ab91-45c6-9ad9-5addce40a76e)
- Loading branch information
1 parent
0ee9684
commit e3f3e27
Showing
5 changed files
with
101 additions
and
84 deletions.
There are no files selected for viewing
61 changes: 0 additions & 61 deletions
61
...s/jobs_list/components/start_datafeed_modal/time_range_selector/_time_range_selector.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
..._list/components/start_datafeed_modal/time_range_selector/time_range_selector_wrapper.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { FC, PropsWithChildren } from 'react'; | ||
import React from 'react'; | ||
import { useEuiTheme } from '@elastic/eui'; | ||
|
||
export const TimeRangeSelectorWrapper: FC<PropsWithChildren> = ({ children }) => { | ||
const { euiTheme } = useEuiTheme(); | ||
const style = { | ||
'.time-range-section-title': { | ||
fontWeight: 'bold', | ||
marginBottom: euiTheme.size.s, | ||
}, | ||
'.time-range-section': { | ||
flex: '50%', | ||
padding: `0 ${euiTheme.size.s}`, | ||
borderRight: euiTheme.border.thin, | ||
}, | ||
|
||
'.tab-stack': { | ||
marginBottom: 0, | ||
paddingLeft: 0, | ||
listStyle: 'none', | ||
|
||
'& > li': { | ||
float: 'none', | ||
position: 'relative', | ||
display: 'block', | ||
marginBottom: euiTheme.size.xs, | ||
|
||
'& > a': { | ||
position: 'relative', | ||
display: 'block', | ||
padding: `${euiTheme.size.s} ${euiTheme.size.base}`, | ||
borderRadius: euiTheme.border.radius.medium, | ||
}, | ||
'& > a:hover': { | ||
backgroundColor: euiTheme.colors.lightestShade, | ||
}, | ||
'.body': { | ||
display: 'none', | ||
}, | ||
}, | ||
'& > li.active': { | ||
'& > a': { | ||
color: euiTheme.colors.emptyShade, | ||
backgroundColor: euiTheme.colors.primary, | ||
}, | ||
'.body': { | ||
display: 'block', | ||
'.euiFieldText': { | ||
borderRadius: `0 0 ${euiTheme.border.radius.medium} ${euiTheme.border.radius.medium}`, | ||
}, | ||
}, | ||
}, | ||
'& > li.has-body.active': { | ||
'& > a': { | ||
borderRadius: `${euiTheme.border.radius.medium} ${euiTheme.border.radius.medium} 0 0`, | ||
}, | ||
'.react-datepicker': { | ||
borderRadius: `0 0 ${euiTheme.border.radius.medium} ${euiTheme.border.radius.medium}`, | ||
borderTop: 'none', | ||
}, | ||
}, | ||
}, | ||
'.time-range-section:last-child': { | ||
borderRight: 'none', | ||
}, | ||
}; | ||
|
||
// @ts-expect-error style object strings cause a type error | ||
return <div css={style}>{children}</div>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...lication/jobs/new_job/pages/components/pick_fields_step/components/split_cards/style.scss
This file was deleted.
Oops, something went wrong.