mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 16:19:15 +08:00
20 lines
477 B
TypeScript
20 lines
477 B
TypeScript
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||
|
import { DerivativeToken } from '..';
|
||
|
|
||
|
// eslint-disable-next-line import/prefer-default-export
|
||
|
export const operationUnit = (token: DerivativeToken): CSSObject => ({
|
||
|
color: token.linkColor,
|
||
|
textDecoration: 'none',
|
||
|
outline: 'none',
|
||
|
cursor: 'pointer',
|
||
|
transition: `color ${token.duration}`,
|
||
|
|
||
|
'&:focus, &:hover': {
|
||
|
color: token.linkHoverColor,
|
||
|
},
|
||
|
|
||
|
'&:active': {
|
||
|
color: token.linkActiveColor,
|
||
|
},
|
||
|
});
|