mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
fix: do not uppercase menu items by default
This commit is contained in:
parent
11947ed68e
commit
0d45cc26f1
|
@ -104,7 +104,7 @@ export const MenuItemLi = withProps<{ depth: number }>(styled.li)`
|
|||
export const menuItemDepth = {
|
||||
0: css`
|
||||
opacity: 0.7;
|
||||
text-transform: uppercase;
|
||||
text-transform: ${({ theme }) => theme.menu.groupItems.textTransform};
|
||||
font-size: 0.8em;
|
||||
padding-bottom: 0;
|
||||
cursor: default;
|
||||
|
@ -112,7 +112,7 @@ export const menuItemDepth = {
|
|||
`,
|
||||
1: css`
|
||||
font-size: 0.929em;
|
||||
text-transform: uppercase;
|
||||
text-transform: ${({ theme }) => theme.menu.level1Items.textTransform};
|
||||
&:hover {
|
||||
color: ${props => props.theme.colors.main};
|
||||
}
|
||||
|
|
12
src/theme.ts
12
src/theme.ts
|
@ -60,6 +60,12 @@ const defaultTheme: ThemeInterface = {
|
|||
menu: {
|
||||
width: '260px',
|
||||
backgroundColor: '#fafafa',
|
||||
groupItems: {
|
||||
textTransform: 'uppercase',
|
||||
},
|
||||
level1Items: {
|
||||
textTransform: 'none',
|
||||
},
|
||||
},
|
||||
logo: {
|
||||
maxHeight: ({ menu }) => menu.width,
|
||||
|
@ -167,6 +173,12 @@ export interface ResolvedThemeInterface {
|
|||
menu: {
|
||||
width: string;
|
||||
backgroundColor: string;
|
||||
groupItems: {
|
||||
textTransform: string;
|
||||
};
|
||||
level1Items: {
|
||||
textTransform: string;
|
||||
};
|
||||
};
|
||||
logo: {
|
||||
maxHeight: string;
|
||||
|
|
Loading…
Reference in New Issue
Block a user