Skip to content

Commit

Permalink
styling componnts
Browse files Browse the repository at this point in the history
  • Loading branch information
cphelefu committed Feb 23, 2024
1 parent 0002734 commit 6963d20
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
6 changes: 6 additions & 0 deletions packages/geoview-core/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,10 @@ table.state {

.config-json-valid {
color: green
}

@media only screen and (max-width: 767px) {
body {
padding: 2px; /* Adjust the value as needed */
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export function FooterBar(): JSX.Element | null {
<IconButton
onClick={handleDynamicFocus}
tooltip={isFocusToMap ? 'footerBar.focusToMap' : 'footerBar.focusToFooter'}
className='style3'
className="style3"
disabled={
isCollapsed || isMapFullScreen || footerPanelResizeValues[footerPanelResizeValues.length - 1] === footerPanelResizeValue
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function SingleLayer({ isDragging, depth, layer, setIsLayersListPanelVisi
}
if (layer.layerStatus === 'error') {
return (
<IconButton edge="end" size="small" onClick={handleReloadLayer} tooltip="layers.reloadLayer" className="style1">
<IconButton edge="end" size="small" onClick={handleReloadLayer} tooltip="layers.reloadLayer" className="style1">
<RestartAltIcon />
</IconButton>
);
Expand All @@ -185,13 +185,7 @@ export function SingleLayer({ isDragging, depth, layer, setIsLayersListPanelVisi
}

return (
<IconButton
edge="end"
size="small"
onClick={() => handleToggleVisibility()}
tooltip="layers.toggleVisibility"
className="style1"
>
<IconButton edge="end" size="small" onClick={() => handleToggleVisibility()} tooltip="layers.toggleVisibility" className="style1">
{(() => {
if (layer.isVisible === 'no') return <VisibilityOffOutlinedIcon />;
return <VisibilityOutlinedIcon />;
Expand Down
5 changes: 3 additions & 2 deletions packages/geoview-core/src/ui/style/themeOptionsGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ export const generateThemeOptions = (geoViewColors: IGeoViewColors = defaultGeoV
color: `${geoViewColors.bgColor.dark[450]}`,
},
},
'&.style3': { //used for app-bar buttons
'&.style3': {
// used for app-bar buttons
backgroundColor: `tranparent`,
border: `2px solid transparent`,
color: `${geoViewColors.primary.main}`,
Expand All @@ -250,7 +251,7 @@ export const generateThemeOptions = (geoViewColors: IGeoViewColors = defaultGeoV
'&:disabled': {
color: `${geoViewColors.bgColor.dark[450]}`,
},
}
},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/geoview-layers-panel/src/reorder-layers-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function ReorderLayersList({ mapId, title, layerIds, setReorderLayersVisible, se
return (
<>
<Box sx={{ display: 'flex', justifyContent: 'end', zIndex: 2 }}>
<IconButton className='style3' onClick={() => setReorderLayersVisible(false)}>
<IconButton className="style3" onClick={() => setReorderLayersVisible(false)}>
<CloseIcon />
</IconButton>
</Box>
Expand Down

0 comments on commit 6963d20

Please sign in to comment.