👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
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.
 
 
 

160 lines
4.0 KiB

import { createStyles } from 'antd-style';
const useStyles = createStyles(({ token }) => {
return {
iconGroup: {
'span.anticon': {
marginLeft: '16px',
color: token.colorTextSecondary,
cursor: 'pointer',
transition: 'color 0.32s',
'&:hover': {
color: token.colorText,
},
},
},
rankingList: {
margin: '25px 0 0',
padding: '0',
listStyle: 'none',
li: {
display: 'flex',
alignItems: 'center',
marginTop: '16px',
zoom: '1',
'&::before, &::after': {
display: 'table',
content: "' '",
},
'&::after': {
clear: 'both',
height: '0',
fontSize: '0',
visibility: 'hidden',
},
},
[`@media screen and (max-width: ${token.screenLG}px)`]: {
li: {
'span:first-child': { marginRight: '8px' },
},
},
},
rankingItemNumber: {
display: 'inline-block',
width: '20px',
height: '20px',
marginTop: '1.5px',
marginRight: '16px',
fontWeight: '600',
fontSize: '12px',
lineHeight: '20px',
textAlign: 'center',
borderRadius: '20px',
backgroundColor: token.colorBgContainerDisabled,
},
rankingItemTitle: {
flex: '1',
marginRight: '8px',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
},
rankingItemNumberActive: {
display: 'inline-block',
width: '20px',
height: '20px',
marginTop: '1.5px',
marginRight: '16px',
fontWeight: '600',
fontSize: '12px',
lineHeight: '20px',
textAlign: 'center',
borderRadius: '20px',
color: '#fff',
backgroundColor: token.colorBgSpotlight,
},
salesExtra: {
display: 'inline-block',
marginRight: '24px',
a: {
marginLeft: '24px',
color: token.colorText,
'&:hover': {
color: token.colorPrimary,
},
},
[`@media screen and (max-width: ${token.screenLG}px)`]: {
display: 'none',
},
},
currentDate: {
color: token.colorPrimary,
fontWeight: 'bold',
},
salesBar: {
padding: '0 0 32px 32px',
[`@media screen and (max-width: ${token.screenMD}px)`]: {
padding: '16px',
},
},
salesRank: {
padding: '0 32px 32px 72px',
},
salesCard: {
'.ant-tabs-bar, .ant-tabs-nav-wrap': {
paddingLeft: '16px',
'.ant-tabs-nav .ant-tabs-tab': {
paddingTop: '16px',
paddingBottom: '14px',
lineHeight: '24px',
},
},
'.ant-tabs-extra-content': { paddingRight: '24px', lineHeight: '55px' },
'.ant-card-head': { position: 'relative' },
'.ant-card-head-title': { alignItems: 'normal' },
[`@media screen and (max-width: ${token.screenMD}px)`]: {
padding: '16px',
},
[`@media screen and (max-width: ${token.screenSM}px)`]: {
'.ant-tabs-content': {
paddingTop: '30px',
},
},
},
salesCardExtra: {
height: 'inherit',
},
salesTypeRadio: {
position: 'absolute',
right: '54px',
bottom: '12px',
},
offlineCard: {
'.ant-tabs-ink-bar': { bottom: 'auto' },
'.ant-tabs-bar': { borderBottom: 'none' },
'.ant-tabs-nav-container-scrolling': {
paddingRight: '40px',
paddingLeft: '40px',
},
'.ant-tabs-tab-prev-icon::before': { position: 'relative', left: '6px' },
'.ant-tabs-tab-next-icon::before': { position: 'relative', right: '6px' },
'.ant-tabs-tab-active h4': { color: token.colorPrimary },
},
trendText: {
marginLeft: '8px',
color: token.colorTextHeading,
},
rankingTitle: {
[`@media screen and (max-width: ${token.screenMD}px)`]: {
marginTop: '16px',
},
},
salesExtraWrap: {
[`@media screen and (max-width: ${token.screenSM}px)`]: {
display: 'none',
},
},
};
});
export default useStyles;