mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
chore: fix colors, sizes and corner roundings on admin menu (#9847)
This commit is contained in:
parent
1ccc6cae19
commit
25790c1e0b
@ -15,11 +15,11 @@ import { Link } from 'react-router-dom';
|
|||||||
import type { Theme } from '@mui/material/styles/createTheme';
|
import type { Theme } from '@mui/material/styles/createTheme';
|
||||||
|
|
||||||
const listItemButtonStyle = (theme: Theme) => ({
|
const listItemButtonStyle = (theme: Theme) => ({
|
||||||
borderRadius: theme.spacing(0.5),
|
borderRadius: theme.spacing(1),
|
||||||
borderLeft: `${theme.spacing(0.5)} solid transparent`,
|
borderLeft: `${theme.spacing(0.5)} solid transparent`,
|
||||||
m: 0,
|
m: 0,
|
||||||
paddingTop: theme.spacing(1),
|
paddingTop: theme.spacing(0.5),
|
||||||
paddingBottom: theme.spacing(1),
|
paddingBottom: theme.spacing(0.5),
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
backgroundColor: '#607B81',
|
backgroundColor: '#607B81',
|
||||||
color: theme.palette.common.white,
|
color: theme.palette.common.white,
|
||||||
@ -27,11 +27,11 @@ const listItemButtonStyle = (theme: Theme) => ({
|
|||||||
fontWeight: theme.typography.fontWeightBold,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
},
|
},
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: theme.palette.action.hover,
|
backgroundColor: '#546C71',
|
||||||
color: 'inherit',
|
color: 'inherit',
|
||||||
fontWeight: theme.typography.fontWeightLight,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
'& p': {
|
'& p': {
|
||||||
fontWeight: theme.typography.fontWeightLight,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -40,17 +40,14 @@ const listItemButtonStyle = (theme: Theme) => ({
|
|||||||
'&>.MuiAccordionSummary-content.MuiAccordionSummary-content': {
|
'&>.MuiAccordionSummary-content.MuiAccordionSummary-content': {
|
||||||
margin: '0',
|
margin: '0',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
padding: theme.spacing(0.1, 0),
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const subListItemButtonStyle = (theme: Theme) => ({
|
const subListItemButtonStyle = (theme: Theme) => ({
|
||||||
paddingLeft: theme.spacing(4),
|
paddingLeft: theme.spacing(4),
|
||||||
borderRadius: theme.spacing(0.5),
|
borderRadius: theme.spacing(1),
|
||||||
borderLeft: `${theme.spacing(0.5)} solid transparent`,
|
borderLeft: `${theme.spacing(0.5)} solid transparent`,
|
||||||
m: 0,
|
m: 0,
|
||||||
paddingTop: theme.spacing(0.75),
|
|
||||||
paddingBottom: theme.spacing(0.75),
|
|
||||||
'&.Mui-selected': {
|
'&.Mui-selected': {
|
||||||
backgroundColor: '#607B81',
|
backgroundColor: '#607B81',
|
||||||
color: theme.palette.common.white,
|
color: theme.palette.common.white,
|
||||||
@ -58,11 +55,11 @@ const subListItemButtonStyle = (theme: Theme) => ({
|
|||||||
fontWeight: theme.typography.fontWeightBold,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
},
|
},
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
backgroundColor: theme.palette.action.hover,
|
backgroundColor: '#546C71',
|
||||||
color: 'inherit',
|
color: 'inherit',
|
||||||
fontWeight: theme.typography.fontWeightLight,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
'& p': {
|
'& p': {
|
||||||
fontWeight: theme.typography.fontWeightLight,
|
fontWeight: theme.typography.fontWeightBold,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user