You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
659 B
22 lines
659 B
3 years ago
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||
2 years ago
|
import type { DerivativeToken } from '../theme';
|
||
3 years ago
|
|
||
|
// eslint-disable-next-line import/prefer-default-export
|
||
|
export const operationUnit = (token: DerivativeToken): CSSObject => ({
|
||
3 years ago
|
// FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
|
||
|
// And Typography use this to generate link style which should not do this.
|
||
|
color: token.colorLink,
|
||
3 years ago
|
textDecoration: 'none',
|
||
|
outline: 'none',
|
||
|
cursor: 'pointer',
|
||
3 years ago
|
transition: `color ${token.motionDurationSlow}`,
|
||
3 years ago
|
|
||
|
'&:focus, &:hover': {
|
||
3 years ago
|
color: token.colorLinkHover,
|
||
3 years ago
|
},
|
||
|
|
||
|
'&:active': {
|
||
3 years ago
|
color: token.colorLinkActive,
|
||
3 years ago
|
},
|
||
|
});
|