Skip to content

Commit

Permalink
Improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelinagr committed Jul 23, 2024
1 parent f0d635c commit a3937a3
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 17 deletions.
8 changes: 4 additions & 4 deletions projects/mercury/src/App.theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ const globalTheme = createTheme({
contrastText: 'white'
},
secondary: {
main: '#fd759e',
contrastText: 'white'
main: '#ffdb56',
contrastText: 'black'
},
error: pink,
success: {
main: '#08a045'
},
background: {
default: '#eef0eb'
default: '#ECEDF0'
},
text: {
primary: COLORS.fsBlueDark,
Expand Down Expand Up @@ -66,7 +66,7 @@ export const scrollbarStyles = {
export default createTheme({
...globalTheme,
typography: {
fontFamily: ['Sora', 'Palanquin'].join(','),
fontFamily: 'Poppins',
fontSize: 13,
button: {
textTransform: 'none'
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/collections/CollectionEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const formatPrefix = (prefix: string) => (prefix ? `[${prefix.replace(/[/

const styles = theme => ({
textHelperBasic: {
color: theme.palette.grey['600']
color: theme.palette.mellow.main
},
textHelperWarning: {
color: theme.palette.warning.dark
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ const MetadataCard = props => {
{'Download '}
<Link
download="metadata.csv"
color="secondary"
href={
'data:text/csv;charset=utf-8,' +
encodeURIComponent(fileTemplate)
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const LEFT_MENU_EXPANSION_DELAY = 500;
export const MAIN_CONTENT_WIDTH = '65%';
export const SIDE_PANEL_WIDTH = '35%';
export const MAIN_CONTENT_MAX_HEIGHT = 'calc(100vh - 156px)';
export const LEFT_PANEL_MAX_WIDTH = 230;
export const LEFT_PANEL_MAX_WIDTH = 305;
export const COLLECTIONS_PATH = 'collections';
export const METADATA_PATH = '/metadata';
export const CROSS_WORKSPACES_SEARCH_PATH = '/workspaces/_all';
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/dashboard/DashboardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const DashboardPage = props => {
</Typography>
<Typography variant="body2" paragraph className={classes.footer} align="center">
{/* eslint-disable-next-line prettier/prettier */}
{"Created by "}
{'Created by '}
<Link className={classes.link} href={THE_HYVE_URL}>
The Hyve
</Link>
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/dashboard/DomainInfo.styles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const styles = theme => ({
paper: {
width: '160px',
width: '180px',
height: '100px',
border: 'none',
background: theme.palette.primary.main,
Expand Down
3 changes: 1 addition & 2 deletions projects/mercury/src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=Sora&display=swap');
@import url('https://fonts.googleapis.com/css?family=Palanquin&display=swap');
@import url('https://fonts.googleapis.com/css?family=Poppins&display=swap');

body {
margin: 0;
Expand Down
5 changes: 4 additions & 1 deletion projects/mercury/src/layout/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ const Layout = ({classes, renderMenu, renderMain = () => {}}) => {
onMouseEnter={handleMouseEnter}
/>
)}
<main style={{marginLeft: menuExpanded ? LEFT_PANEL_MAX_WIDTH : 0}} className={classes.main}>
<main
style={{marginLeft: menuExpanded ? LEFT_PANEL_MAX_WIDTH : 0, paddingLeft: menuExpanded ? 20 : 80}}
className={classes.main}
>
{renderMain()}
</main>
</>
Expand Down
4 changes: 3 additions & 1 deletion projects/mercury/src/layout/Layout.styles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const styles = theme => ({
main: {
backgroundColor: theme.palette.background.default,
padding: '14px 0 14px 80px',
paddingTop: 14,
paddingBottom: 14,
paddingRight: 0,
minWidth: 0, // So the Typography noWrap works
overflowY: 'scroll',
overflowX: 'hidden',
Expand Down
3 changes: 2 additions & 1 deletion projects/mercury/src/layout/MainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const styles = theme => ({
paddingBottom: 15,
textAlign: 'center',
color: theme.palette.primary.contrastText,
height: 40
height: 40,
fontSize: 14
},
mainMenuButtonSmall: {
minWidth: 40,
Expand Down
3 changes: 2 additions & 1 deletion projects/mercury/src/layout/MenuDrawer.styles.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {scrollbarStyles} from '../App.theme';
import {LEFT_PANEL_MAX_WIDTH} from '../constants';

const styles = theme => ({
drawerPaper: {
position: 'fixed',
whiteSpace: 'nowrap',
width: 280,
width: LEFT_PANEL_MAX_WIDTH,
marginTop: '0',
border: 'none',
overflow: 'hidden',
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/layout/UserMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const UserMenu = ({menuOpen, classes}) => {
<ClickAwayListener onClickAway={handleClose}>
<MenuList className={classes.menu}>
<MenuItem className={classes.userMenu} disablefocusonhover="true">
<Card sx={{minWidth: 275}}>
<Card sx={{minWidth: 250}}>
<CardContent>
<Typography sx={{fontSize: 12}} color="text.secondary" gutterBottom>
Welcome
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/metadata/views/MetadataView.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const styles = theme => ({
leftPanel: {
marginTop: 8,
paddingBottom: 10,
minWidth: 282
minWidth: 275
},
overallPanelContainer: {
height: 'calc(100vh - 64px)'
Expand Down
2 changes: 1 addition & 1 deletion projects/mercury/src/permissions/UserPermissionsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const styles = {
fontStyle: 'italic'
},
accessDropdown: {
fontSize: 14
fontSize: 13
},
accessIcon: {
verticalAlign: 'middle',
Expand Down

0 comments on commit a3937a3

Please sign in to comment.