-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(appbar): mui styles refactor Closes #646 * fix(footerTabs): mui styles refactor Closes #646 * fix(map): mui styles refactor Closes #646 * fix(mousePosition): mui styles refactor Closes #646 * fix(northArrow): mui styles refactor Closes #646 * fix(mousePosition): mui styles refactor Closes #646 * fix(mousePosition): mui styles refactor Closes #646 * fix(Scale): mui styles refactor Closes #646 * fix(Divider): mui styles refactor Closes #646 * fix(Drawer): mui styles refactor Closes #646 * fix(CheckboxList): mui styles refactor Closes #646 * fix(Modal): mui styles refactor Closes #646 * fix(Panel): mui styles refactor Closes #646 * fix(Select): mui styles refactor Closes #646 * fix(Slider): mui styles refactor Closes #646 * fix(Stepper): mui styles refactor Closes #646 * fix(Switch): mui styles refactor Closes #646 * fix(TextField): mui styles refactor Closes #646 * fix(Button): mui styles refactor Closes #646 * fix(theme): mui styles refactor Closes #646 * fix(checkboxList): single style file Closes #646 * fix(MousePosition): update native button to MUI button Closes #646 * fix(Scale): update native button to MUI button Closes #646 * fix(basemappanel): nui style refactor Closes #646 * fix(layerList): nui style refactor Closes #646 * fix(layerList): nui style refactor Closes #646 * fix(divider): nui style refactor Closes #646
- Loading branch information
1 parent
3c23569
commit bd5d95c
Showing
54 changed files
with
1,032 additions
and
1,132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* @ts-expect-error there is no mui style in this package */ | ||
export const getSxClasses = (theme) => ({ | ||
basemapCard: { | ||
'& .MuiCard-root': { | ||
backgroundColor: theme.palette.grey.A700, | ||
color: theme.palette.primary.light, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
backgroundClip: 'padding-box', | ||
border: '1px solid rgba(255,255,255,0.25)', | ||
borderRadius: '6px', | ||
boxShadow: 'none', | ||
marginBottom: '16px', | ||
transition: 'all 0.3s ease-in-out', | ||
'&:last-child': { | ||
marginBottom: '0px', | ||
}, | ||
}, | ||
'& .MuiCardHeader-root': { | ||
backgroundColor: `${theme.palette.grey.A700} !important`, | ||
color: theme.basemapPanel.header, | ||
fontSize: 14, | ||
fontWeight: 400, | ||
margin: 0, | ||
padding: '0 12px', | ||
height: 60, | ||
width: '100%', | ||
order: 2, | ||
}, | ||
'& .MuiCardContent-root': { | ||
order: 1, | ||
height: 190, | ||
position: 'relative', | ||
padding: 0, | ||
'&:last-child': { | ||
padding: 0, | ||
}, | ||
'& .basemapCardThumbnail': { | ||
position: 'absolute', | ||
height: '100%', | ||
width: '100%', | ||
objectFit: 'cover', | ||
top: 0, | ||
left: 0, | ||
}, | ||
'& .basemapCardThumbnailOverlay': { | ||
display: 'block', | ||
height: '100%', | ||
width: '100%', | ||
position: 'absolute', | ||
backgroundColor: theme.basemapPanel.overlayDefault, | ||
transition: 'all 0.3s ease-in-out', | ||
}, | ||
}, | ||
'&:hover': { | ||
cursor: 'pointer', | ||
borderColor: theme.basemapPanel.borderHover, | ||
'& .MuiCardContent-root': { | ||
'& .basemapCardThumbnailOverlay': { | ||
backgroundColor: theme.basemapPanel.overlayHover, | ||
}, | ||
}, | ||
}, | ||
'&.active': { | ||
borderColor: theme.basemapPanel.borderActive, | ||
'& .MuiCardContent-root': { | ||
'& .basemapCardThumbnailOverlay': { | ||
backgroundColor: theme.basemapPanel.overlayActive, | ||
}, | ||
}, | ||
'&:hover': { | ||
borderColor: 'rgba(255,255,255,0.75)', | ||
'& .MuiCardContent-root': { | ||
'& .basemapCardThumbnailOverlay': { | ||
backgroundColor: 'rgba(0,0,0,0)', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); |
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 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
70 changes: 70 additions & 0 deletions
70
packages/geoview-core/src/core/components/app-bar/app-bar-style.ts
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,70 @@ | ||
import { Theme } from '@mui/material/styles'; | ||
|
||
export const getSxClasses = (theme: Theme) => ({ | ||
appBar: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
minWidth: 64, | ||
zIndex: theme.zIndex.appBar, | ||
pointerEvents: 'all', | ||
backgroundColor: theme.appBar.background, | ||
border: theme.appBar.border, | ||
}, | ||
appBarList: { | ||
width: 60, | ||
'& li': { | ||
backgroundColor: 'transparent', | ||
justifyContent: 'center', | ||
margin: '16px 0', | ||
padding: 0, | ||
'&:hover': { | ||
backgroundColor: 'transparent', | ||
color: theme.palette.primary.light, | ||
}, | ||
}, | ||
'& hr': { | ||
width: '80%', | ||
marginLeft: '7px', | ||
}, | ||
}, | ||
|
||
appBarButtons: { | ||
borderRightColor: theme.appBar.border, | ||
borderRightWidth: 1, | ||
borderRightStyle: 'solid', | ||
width: 64, | ||
}, | ||
appBarButton: { | ||
backgroundColor: theme.appBar.btnDefaultBg, | ||
color: theme.palette.primary.light, | ||
height: 44, | ||
width: 44, | ||
transition: 'background-color 0.3s ease-in-out', | ||
'&:hover': { | ||
backgroundColor: theme.appBar.btnHoverBg, | ||
color: theme.palette.primary.light, | ||
}, | ||
'&:focus': { | ||
backgroundColor: theme.appBar.btnFocusBg, | ||
color: theme.palette.primary.light, | ||
}, | ||
'&:active': { | ||
backgroundColor: theme.appBar.btnActiveBg, | ||
color: theme.palette.primary.light, | ||
}, | ||
'&.active': { | ||
backgroundColor: theme.appBar.btnActiveBg, | ||
color: theme.palette.background.paper, | ||
}, | ||
'& .MuiSvgIcon-root': { | ||
height: 20, | ||
width: 20, | ||
}, | ||
}, | ||
versionButtonDiv: { | ||
position: 'absolute', | ||
bottom: 0, | ||
}, | ||
appBarPanels: {}, | ||
}); |
Oops, something went wrong.