mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
ef09eefb85
* refactor: move to css in js * add some style * update code style * update * update * update * update * add reset styles * use token.errorColors * remove less files * add operationUnit * getEditableStyles * fix overflow * fix ediable/copy * fix ediable/copy * refactor: move to css in js * add some style * update code style * update * update * update * update * add reset styles * use token.errorColors * remove less files * add operationUnit * getEditableStyles * fix overflow * fix ediable/copy * fix ediable/copy * rtl style * rtl style * add TypographyToken * fix ts * use GenerateStyle<TypographyToken> * fix ts errors * fix ediable * remove comment * fix ediable * fix ediable * revert less files * comment less * fix review issues * fix review issues * fix review issues * fix missing style
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,
|
|
},
|
|
});
|