-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1232 from CBIIT/bugfix/ICDC-3788
Restore Search Input styles
- Loading branch information
Showing
6 changed files
with
172 additions
and
413 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
import React from 'react'; | ||
import { MuiThemeProvider, createTheme } from '@material-ui/core/styles'; | ||
import vectorIcon from '../../assets/header/Vector.svg'; | ||
import searchIcon from '../../assets/header/global_search_input_find.svg'; | ||
|
||
const HeaderThemeProvider = ({ children }) => { | ||
const computedTheme = createTheme({ | ||
overrides: { | ||
MuiGrid: { | ||
container: { | ||
'& div#header': { | ||
zIndex: 0, | ||
}, | ||
}, | ||
}, | ||
MuiTextField: { | ||
root: { | ||
margin: '0 auto', | ||
paddingTop: '25px', | ||
width: '260px', | ||
height: '37px', | ||
}, | ||
}, | ||
MuiInputLabel: { | ||
root: { | ||
width: '0%', | ||
opacity: '0', | ||
}, | ||
}, | ||
MuiSvgIcon: { | ||
root: { | ||
color: '#25557E', | ||
stroke: '#4A8ECB', | ||
strokeWidth: '1.1px', | ||
marginRight: '8px', | ||
cursor: 'pointer', | ||
backgroundRepeat: 'no-repeat', | ||
marginTop: '5px', | ||
backgroundImage: `url(${searchIcon})`, | ||
'& path': { | ||
display: 'none', | ||
}, | ||
}, | ||
}, | ||
MuiInputBase: { | ||
root: { | ||
fontFamily: 'Open Sans', | ||
fontSize: '13.5px', | ||
color: '#25557E', | ||
fontWeight: 400, | ||
padding: '0px', | ||
fontStyle: '1rem', | ||
lineHeight: '16px', | ||
texttransform: 'uppercase', | ||
}, | ||
input: { | ||
fontSize: '1rem', | ||
}, | ||
}, | ||
MuiOutlinedInput: { | ||
root: { | ||
border: '#4A8ECB solid 1px', | ||
borderRadius: '8px', | ||
}, | ||
|
||
notchedOutline: { | ||
border: 'none', | ||
}, | ||
inputAdornedEnd: { | ||
padding: '0 8px !important', | ||
}, | ||
}, | ||
MuiAutocomplete: { | ||
inputRoot: { | ||
'&[class*="MuiOutlinedInput-root"]': { | ||
padding: '2px', | ||
}, | ||
}, | ||
paper: { | ||
borderRadius: '8px', | ||
}, | ||
option: { | ||
'&:hover': { | ||
color: '#FFF', | ||
backgroundColor: '#1C75BC', | ||
}, | ||
}, | ||
listbox: { | ||
borderRadius: '8px', | ||
fontFamily: 'Open Sans', | ||
fontSize: '13.5px', | ||
color: '#0B3556', | ||
fontWeight: 400, | ||
border: '1px solid #4A8ECB', | ||
padding: '0px', | ||
fontStyle: 'normal', | ||
lineHeight: '26px', | ||
texttransform: 'uppercase', | ||
'& li': { | ||
// list item specific styling | ||
padding: '3px, 14px, 4px, 14px', | ||
borderBottom: '1px solid #4A8ECB', | ||
'&:nth-last-child(1)': { | ||
borderBottom: 'none', | ||
fontSize: '16px', | ||
color: '#000000', | ||
backgroundColor: '#E9E9E9', | ||
'& :hover': { | ||
color: '#000000', | ||
backgroundColor: '#E9E9E9', | ||
pointerEvents: 'none', | ||
}, | ||
'& span': { | ||
backgroundImage: `url(${vectorIcon})`, | ||
width: '165px', | ||
marginTop: '5px', | ||
float: 'right', | ||
height: '15px', | ||
display: 'block', | ||
backgroundRepeat: 'no-repeat', | ||
'& img': { | ||
display: 'none', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
return <MuiThemeProvider theme={computedTheme}>{children}</MuiThemeProvider>; | ||
}; | ||
|
||
export default HeaderThemeProvider; |
Oops, something went wrong.