mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
docs: optimize demo style of lunar (#50944)
This commit is contained in:
parent
a10f4c2ca3
commit
13530a0ba6
@ -12,6 +12,12 @@ const useStyle = createStyles(({ token, css, cx }) => {
|
||||
color: ${token.colorTextTertiary};
|
||||
font-size: ${token.fontSizeSM}px;
|
||||
`;
|
||||
const weekend = css`
|
||||
color: ${token.colorError};
|
||||
&.gray {
|
||||
opacity: 0.4;
|
||||
}
|
||||
`;
|
||||
return {
|
||||
wrapper: css`
|
||||
width: 450px;
|
||||
@ -64,6 +70,9 @@ const useStyle = createStyles(({ token, css, cx }) => {
|
||||
color: ${token.colorTextLightSolid};
|
||||
opacity: 0.9;
|
||||
}
|
||||
.${cx(weekend)} {
|
||||
color: ${token.colorTextLightSolid};
|
||||
}
|
||||
`,
|
||||
monthCell: css`
|
||||
width: 120px;
|
||||
@ -82,12 +91,7 @@ const useStyle = createStyles(({ token, css, cx }) => {
|
||||
opacity: 0.8;
|
||||
}
|
||||
`,
|
||||
weekend: css`
|
||||
color: ${token.colorError};
|
||||
&.gray {
|
||||
opacity: 0.4;
|
||||
}
|
||||
`,
|
||||
weekend,
|
||||
};
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user