2022-03-18 17:26:17 +08:00
|
|
|
// deps-lint-skip-all
|
2022-05-09 22:20:07 +08:00
|
|
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import { Keyframes } from '@ant-design/cssinjs';
|
|
|
|
import type { GenerateStyle, PresetColorType, FullToken } from '../../_util/theme';
|
|
|
|
import { resetComponent, PresetColors, genComponentStyleHook, mergeToken } from '../../_util/theme';
|
2022-03-18 17:26:17 +08:00
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
interface BadgeToken extends FullToken<'Badge'> {
|
2022-06-01 21:47:44 +08:00
|
|
|
badgeFontHeight: number;
|
2022-03-18 17:26:17 +08:00
|
|
|
badgeZIndex: number | string;
|
|
|
|
badgeHeight: number;
|
|
|
|
badgeHeightSm: number;
|
|
|
|
badgeTextColor: string;
|
|
|
|
badgeFontWeight: string;
|
|
|
|
badgeFontSize: number;
|
|
|
|
badgeColor: string;
|
|
|
|
badgeDotSize: number;
|
|
|
|
badgeFontSizeSm: number;
|
|
|
|
badgeStatusSize: number;
|
2022-06-01 21:47:44 +08:00
|
|
|
badgeShadowSize: number;
|
|
|
|
badgeProcessingDuration: string;
|
|
|
|
badgeRibbbonOffset: number;
|
|
|
|
badgeRibbbonCornerTransform: string;
|
|
|
|
badgeRibbbonCornerFilter: string;
|
2022-03-18 17:26:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const antStatusProcessing = new Keyframes('antStatusProcessing', {
|
|
|
|
'0%': { transform: 'scale(0.8)', opacity: 0.5 },
|
|
|
|
'100%': { transform: 'scale(2.4)', opacity: 0 },
|
|
|
|
});
|
|
|
|
|
|
|
|
const antZoomBadgeIn = new Keyframes('antZoomBadgeIn', {
|
|
|
|
'0%': { transform: 'scale(0) translate(50%, -50%)', opacity: 0 },
|
|
|
|
'100%': { transform: 'scale(1) translate(50%, -50%)' },
|
|
|
|
});
|
|
|
|
|
|
|
|
const antZoomBadgeOut = new Keyframes('antZoomBadgeOut', {
|
|
|
|
'0%': { transform: 'scale(1) translate(50%, -50%)' },
|
|
|
|
'100%': { transform: 'scale(0) translate(50%, -50%)', opacity: 0 },
|
|
|
|
});
|
|
|
|
|
|
|
|
const antNoWrapperZoomBadgeIn = new Keyframes('antNoWrapperZoomBadgeIn', {
|
|
|
|
'0%': { transform: 'scale(0)', opacity: 0 },
|
|
|
|
'100%': { transform: 'scale(1)' },
|
|
|
|
});
|
|
|
|
const antNoWrapperZoomBadgeOut = new Keyframes('antNoWrapperZoomBadgeOut', {
|
|
|
|
'0%': { transform: 'scale(1)' },
|
|
|
|
'100%': { transform: 'scale(0)', opacity: 0 },
|
|
|
|
});
|
|
|
|
const antBadgeLoadingCircle = new Keyframes('antBadgeLoadingCircle', {
|
|
|
|
'0%': { transformOrigin: '50%' },
|
|
|
|
'100%': {
|
|
|
|
transform: 'translate(50%, -50%) rotate(360deg)',
|
|
|
|
transformOrigin: '50%',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2022-04-21 02:06:22 +08:00
|
|
|
const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token: BadgeToken): CSSObject => {
|
2022-06-01 21:47:44 +08:00
|
|
|
const {
|
|
|
|
componentCls,
|
|
|
|
iconCls,
|
|
|
|
antCls,
|
|
|
|
badgeFontHeight,
|
|
|
|
badgeShadowSize,
|
|
|
|
badgeHeightSm,
|
|
|
|
motionDurationSlow,
|
|
|
|
badgeStatusSize,
|
|
|
|
marginXS,
|
|
|
|
badgeRibbbonOffset,
|
|
|
|
} = token;
|
2022-04-08 00:18:02 +08:00
|
|
|
const numberPrefixCls = `${antCls}-scroll-number`;
|
|
|
|
const ribbonPrefixCls = `${antCls}-ribbon`;
|
|
|
|
const ribbonWrapperPrefixCls = `${antCls}-ribbon-wrapper`;
|
2022-03-18 17:26:17 +08:00
|
|
|
|
2022-03-21 16:48:25 +08:00
|
|
|
const statusPreset = PresetColors.reduce((prev: CSSObject, colorKey: keyof PresetColorType) => {
|
|
|
|
const darkColor = token[`${colorKey}-6`];
|
|
|
|
return {
|
|
|
|
...prev,
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-${colorKey}`]: {
|
2022-03-21 16:48:25 +08:00
|
|
|
background: darkColor,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}, {} as CSSObject);
|
|
|
|
const statusRibbonPreset = PresetColors.reduce(
|
2022-03-18 17:26:17 +08:00
|
|
|
(prev: CSSObject, colorKey: keyof PresetColorType) => {
|
|
|
|
const darkColor = token[`${colorKey}-6`];
|
|
|
|
return {
|
|
|
|
...prev,
|
2022-04-08 00:18:02 +08:00
|
|
|
[`&${ribbonPrefixCls}-color-${colorKey}`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
background: darkColor,
|
|
|
|
color: darkColor,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
{} as CSSObject,
|
|
|
|
);
|
|
|
|
|
|
|
|
return {
|
2022-04-08 00:18:02 +08:00
|
|
|
[componentCls]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
...resetComponent(token),
|
|
|
|
position: 'relative',
|
|
|
|
display: 'inline-block',
|
|
|
|
lineHeight: 1,
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-count`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
zIndex: token.badgeZIndex,
|
|
|
|
minWidth: token.badgeHeight,
|
|
|
|
height: token.badgeHeight,
|
|
|
|
color: token.badgeTextColor,
|
|
|
|
fontWeight: token.badgeFontWeight,
|
|
|
|
fontSize: token.badgeFontSize,
|
|
|
|
lineHeight: `${token.badgeHeight}px`,
|
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
textAlign: 'center',
|
|
|
|
background: token.badgeColor,
|
|
|
|
borderRadius: token.badgeHeight / 2,
|
2022-06-01 21:47:44 +08:00
|
|
|
boxShadow: `0 0 0 ${badgeShadowSize}px ${token.colorBgComponent}`,
|
2022-03-18 17:26:17 +08:00
|
|
|
a: {
|
|
|
|
color: token.badgeTextColor,
|
|
|
|
},
|
|
|
|
'a:hover': {
|
|
|
|
color: token.badgeTextColor,
|
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-count-sm`]: {
|
2022-06-01 21:47:44 +08:00
|
|
|
minWidth: badgeHeightSm,
|
|
|
|
height: badgeHeightSm,
|
2022-03-18 17:26:17 +08:00
|
|
|
fontSize: token.badgeFontSizeSm,
|
2022-06-01 21:47:44 +08:00
|
|
|
lineHeight: `${badgeHeightSm}px`,
|
|
|
|
borderRadius: badgeHeightSm / 2,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-multiple-words`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
padding: `0 ${token.paddingXS}px`,
|
|
|
|
},
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-dot`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
zIndex: token.badgeZIndex,
|
|
|
|
width: token.badgeDotSize,
|
|
|
|
minWidth: token.badgeDotSize,
|
|
|
|
height: token.badgeDotSize,
|
|
|
|
background: token.badgeColor,
|
|
|
|
borderRadius: '100%',
|
2022-06-01 21:47:44 +08:00
|
|
|
boxShadow: `0 0 0 ${badgeShadowSize}px ${token.colorBgComponent}`,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-dot${numberPrefixCls}`]: {
|
2022-06-01 21:47:44 +08:00
|
|
|
transition: `background ${motionDurationSlow}`,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-count, ${componentCls}-dot, ${numberPrefixCls}-custom-component`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
position: 'absolute',
|
|
|
|
top: 0,
|
|
|
|
insetInlineEnd: 0,
|
|
|
|
transform: 'translate(50%, -50%)',
|
|
|
|
transformOrigin: '100% 0%',
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${iconCls}-spin`]: {
|
2022-04-21 02:06:22 +08:00
|
|
|
animationName: antBadgeLoadingCircle,
|
|
|
|
animationDuration: token.motionDurationFast,
|
|
|
|
animationIterationCount: 'infinite',
|
|
|
|
animationTimingFunction: 'linear',
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`&${componentCls}-status`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
lineHeight: 'inherit',
|
|
|
|
verticalAlign: 'baseline',
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-dot`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
position: 'relative',
|
2022-06-01 21:47:44 +08:00
|
|
|
top: -1, // Magic number, but seems better experience
|
2022-03-18 17:26:17 +08:00
|
|
|
display: 'inline-block',
|
2022-06-01 21:47:44 +08:00
|
|
|
width: badgeStatusSize,
|
|
|
|
height: badgeStatusSize,
|
2022-03-18 17:26:17 +08:00
|
|
|
verticalAlign: 'middle',
|
|
|
|
borderRadius: '50%',
|
|
|
|
},
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-success`]: {
|
2022-03-22 09:37:37 +08:00
|
|
|
backgroundColor: token.colorSuccess,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-processing`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
position: 'relative',
|
2022-03-22 09:37:37 +08:00
|
|
|
backgroundColor: token.colorPrimary,
|
2022-03-18 17:26:17 +08:00
|
|
|
|
|
|
|
'&::after': {
|
|
|
|
position: 'absolute',
|
|
|
|
top: 0,
|
|
|
|
insetInlineStart: 0,
|
|
|
|
width: '100%',
|
|
|
|
height: '100%',
|
2022-06-01 21:47:44 +08:00
|
|
|
border: `${badgeShadowSize}px solid ${token.colorPrimary}`,
|
2022-03-18 17:26:17 +08:00
|
|
|
borderRadius: '50%',
|
2022-04-21 02:06:22 +08:00
|
|
|
animationName: antStatusProcessing,
|
2022-06-01 21:47:44 +08:00
|
|
|
animationDuration: token.badgeProcessingDuration,
|
2022-04-21 02:06:22 +08:00
|
|
|
animationIterationCount: 'infinite',
|
|
|
|
animationTimingFunction: 'ease-in-out',
|
2022-03-18 17:26:17 +08:00
|
|
|
content: '""',
|
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-default`]: {
|
2022-06-01 21:47:44 +08:00
|
|
|
backgroundColor: token.colorPlaceholder,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-error`]: {
|
2022-03-22 09:37:37 +08:00
|
|
|
backgroundColor: token.colorError,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-warning`]: {
|
2022-03-22 09:37:37 +08:00
|
|
|
backgroundColor: token.colorWarning,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
...statusPreset,
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-status-text`]: {
|
2022-06-01 21:47:44 +08:00
|
|
|
marginInlineStart: marginXS,
|
2022-03-22 09:37:37 +08:00
|
|
|
color: token.colorText,
|
2022-03-18 17:26:17 +08:00
|
|
|
fontSize: token.fontSize,
|
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {
|
2022-04-21 02:06:22 +08:00
|
|
|
animationName: antZoomBadgeIn,
|
|
|
|
animationDuration: token.motionDurationSlow,
|
|
|
|
animationTimingFunction: token.motionEaseOutBack,
|
2022-03-18 17:26:17 +08:00
|
|
|
animationFillMode: 'both',
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-zoom-leave`]: {
|
2022-04-21 02:06:22 +08:00
|
|
|
animationName: antZoomBadgeOut,
|
|
|
|
animationDuration: token.motionDurationSlow,
|
|
|
|
animationTimingFunction: token.motionEaseOutBack,
|
2022-03-18 17:26:17 +08:00
|
|
|
animationFillMode: 'both',
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`&${componentCls}-not-a-wrapper`]: {
|
|
|
|
[`${componentCls}-zoom-appear, ${componentCls}-zoom-enter`]: {
|
2022-04-21 02:06:22 +08:00
|
|
|
animationName: antNoWrapperZoomBadgeIn,
|
|
|
|
animationDuration: token.motionDurationSlow,
|
|
|
|
animationTimingFunction: token.motionEaseOutBack,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${componentCls}-zoom-leave`]: {
|
2022-04-21 02:06:22 +08:00
|
|
|
animationName: antNoWrapperZoomBadgeOut,
|
|
|
|
animationDuration: token.motionDurationSlow,
|
|
|
|
animationTimingFunction: token.motionEaseOutBack,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`&:not(${componentCls}-status)`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
verticalAlign: 'middle',
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${numberPrefixCls}-custom-component, ${componentCls}-count`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
transform: 'none',
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${numberPrefixCls}-custom-component, ${numberPrefixCls}`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
position: 'relative',
|
|
|
|
top: 'auto',
|
|
|
|
display: 'block',
|
|
|
|
transformOrigin: '50% 50%',
|
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${numberPrefixCls}`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
overflow: 'hidden',
|
|
|
|
direction: 'ltr',
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${numberPrefixCls}-only`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
position: 'relative',
|
|
|
|
display: 'inline-block',
|
|
|
|
height: token.badgeHeight,
|
2022-03-22 20:02:04 +08:00
|
|
|
transition: `all ${token.motionDurationSlow} ${token.motionEaseOutBack}`,
|
2022-03-18 17:26:17 +08:00
|
|
|
WebkitTransformStyle: 'preserve-3d',
|
|
|
|
WebkitBackfaceVisibility: 'hidden',
|
2022-04-08 00:18:02 +08:00
|
|
|
[`> p${numberPrefixCls}-only-unit`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
height: token.badgeHeight,
|
|
|
|
margin: 0,
|
|
|
|
WebkitTransformStyle: 'preserve-3d',
|
|
|
|
WebkitBackfaceVisibility: 'hidden',
|
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${numberPrefixCls}-symbol`]: { verticalAlign: 'top' },
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${ribbonWrapperPrefixCls}`]: { position: 'relative' },
|
|
|
|
[`${ribbonPrefixCls}`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
...resetComponent(token),
|
|
|
|
position: 'absolute',
|
2022-06-01 21:47:44 +08:00
|
|
|
top: marginXS,
|
|
|
|
height: badgeFontHeight,
|
2022-03-18 17:26:17 +08:00
|
|
|
padding: `0 ${token.paddingXS}px`,
|
|
|
|
color: token.badgeTextColor,
|
2022-06-01 21:47:44 +08:00
|
|
|
lineHeight: `${badgeFontHeight}px`,
|
2022-03-18 17:26:17 +08:00
|
|
|
whiteSpace: 'nowrap',
|
2022-03-22 09:37:37 +08:00
|
|
|
backgroundColor: token.colorPrimary,
|
2022-03-22 13:26:29 +08:00
|
|
|
borderRadius: token.controlRadius,
|
2022-06-01 21:47:44 +08:00
|
|
|
[`${ribbonPrefixCls}-text`]: { color: token.colorTextLightSolid },
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${ribbonPrefixCls}-corner`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
position: 'absolute',
|
|
|
|
top: '100%',
|
2022-06-01 21:47:44 +08:00
|
|
|
width: badgeRibbbonOffset,
|
|
|
|
height: badgeRibbbonOffset,
|
2022-03-18 17:26:17 +08:00
|
|
|
color: 'currentcolor',
|
2022-06-01 21:47:44 +08:00
|
|
|
border: `${badgeRibbbonOffset / 2}px solid`,
|
|
|
|
transform: token.badgeRibbbonCornerTransform,
|
2022-03-18 17:26:17 +08:00
|
|
|
transformOrigin: 'top',
|
2022-06-01 21:47:44 +08:00
|
|
|
filter: token.badgeRibbbonCornerFilter,
|
2022-03-18 17:26:17 +08:00
|
|
|
},
|
|
|
|
...statusRibbonPreset,
|
2022-04-08 00:18:02 +08:00
|
|
|
[`&${ribbonPrefixCls}-placement-end`]: {
|
2022-06-01 21:47:44 +08:00
|
|
|
insetInlineEnd: -badgeRibbbonOffset,
|
2022-04-19 11:27:09 +08:00
|
|
|
borderEndEndRadius: 0,
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${ribbonPrefixCls}-corner`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
insetInlineEnd: 0,
|
|
|
|
borderColor: 'currentcolor transparent transparent currentcolor',
|
|
|
|
},
|
|
|
|
},
|
2022-04-08 00:18:02 +08:00
|
|
|
[`&${ribbonPrefixCls}-placement-start`]: {
|
2022-06-01 21:47:44 +08:00
|
|
|
insetInlineStart: -badgeRibbbonOffset,
|
2022-04-19 11:27:09 +08:00
|
|
|
borderEndStartRadius: 0,
|
2022-04-08 00:18:02 +08:00
|
|
|
[`${ribbonPrefixCls}-corner`]: {
|
2022-03-18 17:26:17 +08:00
|
|
|
insetInlineStart: 0,
|
|
|
|
borderColor: 'currentcolor currentcolor transparent transparent',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// ============================== Export ==============================
|
2022-04-21 02:06:22 +08:00
|
|
|
export default genComponentStyleHook('Badge', token => {
|
2022-06-01 21:47:44 +08:00
|
|
|
const { fontSize, lineHeight, fontSizeSM, controlLineWidth, marginXS } = token;
|
|
|
|
|
|
|
|
const badgeFontHeight = Math.round(fontSize * lineHeight);
|
|
|
|
const badgeShadowSize = controlLineWidth;
|
2022-03-18 17:26:17 +08:00
|
|
|
const badgeZIndex = 'auto';
|
2022-06-01 21:47:44 +08:00
|
|
|
const badgeHeight = badgeFontHeight - 2 * badgeShadowSize;
|
2022-03-22 20:02:04 +08:00
|
|
|
const badgeTextColor = token.colorBgComponent;
|
2022-03-18 17:26:17 +08:00
|
|
|
const badgeFontWeight = 'normal';
|
2022-06-01 21:47:44 +08:00
|
|
|
const badgeFontSize = fontSizeSM;
|
|
|
|
const badgeColor = token.colorError;
|
|
|
|
const badgeHeightSm = fontSize;
|
|
|
|
const badgeDotSize = fontSizeSM / 2;
|
|
|
|
const badgeFontSizeSm = fontSizeSM;
|
|
|
|
const badgeStatusSize = fontSizeSM / 2;
|
2022-03-18 17:26:17 +08:00
|
|
|
|
2022-04-11 16:04:00 +08:00
|
|
|
const badgeToken = mergeToken<BadgeToken>(token, {
|
2022-06-01 21:47:44 +08:00
|
|
|
badgeFontHeight,
|
|
|
|
badgeShadowSize,
|
2022-03-18 17:26:17 +08:00
|
|
|
badgeZIndex,
|
|
|
|
badgeHeight,
|
|
|
|
badgeTextColor,
|
|
|
|
badgeFontWeight,
|
|
|
|
badgeFontSize,
|
|
|
|
badgeColor,
|
|
|
|
badgeHeightSm,
|
|
|
|
badgeDotSize,
|
|
|
|
badgeFontSizeSm,
|
|
|
|
badgeStatusSize,
|
2022-06-01 21:47:44 +08:00
|
|
|
badgeProcessingDuration: '1.2s',
|
|
|
|
badgeRibbbonOffset: marginXS,
|
|
|
|
|
|
|
|
// Follow token just by Design. Not related with token
|
|
|
|
badgeRibbbonCornerTransform: 'scaleY(0.75)',
|
|
|
|
badgeRibbbonCornerFilter: `brightness(75%)`,
|
2022-04-11 16:04:00 +08:00
|
|
|
});
|
2022-03-18 17:26:17 +08:00
|
|
|
|
2022-06-01 21:47:44 +08:00
|
|
|
return [genSharedBadgeStyle(badgeToken)];
|
2022-04-08 00:18:02 +08:00
|
|
|
});
|