docs: optimize demo style of lunar (#50944)

This commit is contained in:
kiner-tang 2024-09-21 20:09:37 +08:00 committed by GitHub
parent a10f4c2ca3
commit 13530a0ba6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
};
});