Skip to content

Commit

Permalink
fix(Page): custom style not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Jul 9, 2024
1 parent a9fbf31 commit d43891a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Page/Content/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const useStyles = createStyles(
({ css, token }) => {
return {
root: css`
padding-top: ${token.paddingXS}px;
width: 100%;
`,
};
},
Expand Down
3 changes: 3 additions & 0 deletions src/Page/Header/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ export const useStyles = createStyles(
return {
root: bordered
? css`
margin-bottom: ${token.marginXS}px;
padding: ${token.padding}px;
background-color: ${token.colorBgBase};
border-radius: ${token.borderRadius}px;
box-shadow: ${token.boxShadowTertiary};
`
: css`
padding-top: ${token.paddingXS}px;
margin-bottom: ${token.marginXS}px;
${divider &&
css`
padding-bottom: ${token.paddingLG}px;
Expand Down
27 changes: 12 additions & 15 deletions src/Page/Title/style.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { createStyles } from 'antd-style';

export const useStyles = createStyles(
({ css, token }) => {
return {
root: css`
margin: 0;
export const useStyles = createStyles(({ css, token }) => {
return {
root: css`
margin: 0;
font-family: ${token.fontFamily};
font-size: 16px;
font-weight: ${token.fontWeightStrong};
line-height: ${token.lineHeight};
color: ${token.colorText};
`,
};
},
{ hashPriority: 'low' }
);
font-family: ${token.fontFamily};
font-size: 16px;
font-weight: ${token.fontWeightStrong};
line-height: ${token.lineHeight};
color: ${token.colorText};
`,
};
});

0 comments on commit d43891a

Please sign in to comment.