Browse Source

优化丢数据 异常

pull/10914/head
期贤 3 years ago
parent
commit
bea2c5b39b
  1. 6
      src/pages/User/register-result/style.style.ts
  2. 33
      src/pages/User/register/style.style.ts
  3. 92
      src/pages/account/center/Center.style.ts
  4. 66
      src/pages/account/center/components/Applications/index.style.ts
  5. 24
      src/pages/account/center/components/ArticleListContent/index.style.ts
  6. 9
      src/pages/account/center/components/Articles/index.style.ts
  7. 37
      src/pages/account/center/components/AvatarList/index.style.ts
  8. 60
      src/pages/account/center/components/Projects/index.style.ts
  9. 55
      src/pages/account/settings/components/BaseView.style.ts
  10. 88
      src/pages/account/settings/style.style.ts
  11. 84
      src/pages/dashboard/analysis/components/Charts/ChartCard/index.style.ts
  12. 14
      src/pages/dashboard/analysis/components/Charts/Field/index.style.ts
  13. 5
      src/pages/dashboard/analysis/components/Charts/index.style.ts
  14. 50
      src/pages/dashboard/analysis/components/NumberInfo/index.style.ts
  15. 18
      src/pages/dashboard/analysis/components/Trend/index.style.ts
  16. 217
      src/pages/dashboard/analysis/style.style.ts
  17. 25
      src/pages/dashboard/monitor/components/ActiveChart/index.style.ts
  18. 12
      src/pages/dashboard/monitor/style.style.ts
  19. 16
      src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts
  20. 1
      src/pages/dashboard/workplace/style.less
  21. 315
      src/pages/dashboard/workplace/style.style.ts
  22. 62
      src/pages/form/advanced-form/style.style.ts
  23. 4
      src/pages/form/basic-form/style.style.ts
  24. 169
      src/pages/list/basic-list/style.style.ts
  25. 8
      src/pages/list/basic-list/utils/utils.style.ts
  26. 95
      src/pages/list/card-list/style.style.ts
  27. 8
      src/pages/list/card-list/utils/utils.style.ts
  28. 74
      src/pages/list/search/applications/components/StandardFormRow/index.style.ts
  29. 42
      src/pages/list/search/applications/components/TagSelect/index.style.ts
  30. 65
      src/pages/list/search/applications/style.style.ts
  31. 8
      src/pages/list/search/applications/utils/utils.style.ts
  32. 25
      src/pages/list/search/articles/components/ArticleListContent/index.style.ts
  33. 77
      src/pages/list/search/articles/components/StandardFormRow/index.style.ts
  34. 42
      src/pages/list/search/articles/components/TagSelect/index.style.ts
  35. 19
      src/pages/list/search/articles/style.style.ts
  36. 37
      src/pages/list/search/projects/components/AvatarList/index.style.ts
  37. 77
      src/pages/list/search/projects/components/StandardFormRow/index.style.ts
  38. 42
      src/pages/list/search/projects/components/TagSelect/index.style.ts
  39. 60
      src/pages/list/search/projects/style.style.ts
  40. 8
      src/pages/list/search/projects/utils/utils.style.ts
  41. 47
      src/pages/profile/advanced/style.style.ts
  42. 8
      src/pages/profile/basic/style.style.ts
  43. 8
      src/pages/result/fail/index.style.ts
  44. 16
      src/pages/result/success/index.style.ts

6
src/pages/User/register-result/style.style.ts

@ -9,7 +9,7 @@ const useStyles = createStyles(() => {
padding: '80px', padding: '80px',
background: 'none', background: 'none',
}, },
'.anticon': { anticon: {
fontSize: '64px', fontSize: '64px',
}, },
title: { title: {
@ -19,9 +19,7 @@ const useStyles = createStyles(() => {
}, },
actions: { actions: {
marginTop: '40px', marginTop: '40px',
}, 'a + a': { marginLeft: '8px' },
'a + a': {
marginLeft: '8px',
}, },
}; };
}); });

33
src/pages/User/register/style.style.ts

@ -1,44 +1,41 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
main: { main: {
width: '368px', width: "368px",
margin: '0 auto', margin: "0 auto",
}, h3: { marginBottom: "20px", fontSize: "16px" },
h3: {
marginBottom: '20px',
fontSize: '16px',
}, },
password: { password: {
marginBottom: '24px', marginBottom: "24px",
}, ".ant-form-item-explain": { display: "none" },
'.ant-form-item-explain': {
display: 'none',
}, },
getCaptcha: { getCaptcha: {
display: 'block', display: "block",
width: '100%', width: "100%",
}, },
submit: { submit: {
width: '50%', width: "50%",
}, },
login: { login: {
float: 'right', float: "right",
lineHeight: token.controlHeight, lineHeight: token.controlHeight,
}, },
success: { success: {
transition: "color 0.3s",
color: token.colorSuccess, color: token.colorSuccess,
}, },
warning: { warning: {
transition: "color 0.3s",
color: token.colorWarning, color: token.colorWarning,
}, },
error: { error: {
transition: "color 0.3s",
color: token.colorError, color: token.colorError,
}, },
'.progress-pass > .progress': {}, "progress-pass > .progress": {
'.ant-progress-bg': { ".ant-progress-bg": { backgroundColor: token.colorWarning },
backgroundColor: token.colorWarning,
}, },
}; };
}); });

92
src/pages/account/center/Center.style.ts

@ -1,65 +1,67 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
avatarHolder: { avatarHolder: {
marginBottom: '24px', marginBottom: "24px",
textAlign: 'center', textAlign: "center",
'& > img': { width: '104px', height: '104px', marginBottom: '20px' }, "& > img": { width: "104px", height: "104px", marginBottom: "20px" },
}, },
name: { name: {
marginBottom: '4px', marginBottom: "4px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500', fontWeight: "500",
fontSize: '20px', fontSize: "20px",
lineHeight: '28px', lineHeight: "28px",
}, },
detail: {}, detail: {
p: { p: {
position: 'relative', position: "relative",
marginBottom: '8px', marginBottom: "8px",
paddingLeft: '26px', paddingLeft: "26px",
'&:last-child': { marginBottom: '0' }, "&:last-child": {
}, marginBottom: "0",
i: { },
position: 'absolute', },
top: '4px', i: {
left: '0', position: "absolute",
width: '14px', top: "4px",
height: '14px', left: "0",
width: "14px",
height: "14px",
},
}, },
tagsTitle: { tagsTitle: {
marginBottom: '12px', marginBottom: "12px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500', fontWeight: "500",
}, },
teamTitle: { teamTitle: {
marginBottom: '12px', marginBottom: "12px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500', fontWeight: "500",
},
tags: {},
'.ant-tag': {
marginBottom: '8px',
}, },
team: {}, tags: {
'.ant-avatar': { ".ant-tag": { marginBottom: "8px" },
marginRight: '12px',
}, },
a: { team: {
display: 'block', ".ant-avatar": { marginRight: "12px" },
marginBottom: '24px', a: {
overflow: 'hidden', display: "block",
color: token.colorText, marginBottom: "24px",
whiteSpace: 'nowrap', overflow: "hidden",
textOverflow: 'ellipsis', color: token.colorText,
wordBreak: 'break-all', whiteSpace: "nowrap",
transition: 'color 0.3s', textOverflow: "ellipsis",
'&:hover': { color: token.colorPrimary }, wordBreak: "break-all",
transition: "color 0.3s",
"&:hover": {
color: token.colorPrimary,
},
},
}, },
tabsCard: {}, tabsCard: {
'.ant-card-head': { ".ant-card-head": { padding: "0 16px" },
padding: '0 16px',
}, },
}; };
}); });

66
src/pages/account/center/components/Applications/index.style.ts

@ -1,48 +1,42 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
filterCardList: { filterCardList: {
marginBottom: '-24px', marginBottom: "-24px",
}, ".ant-card-meta-content": { marginTop: "0" },
'.ant-card-meta-content': { ".ant-card-meta-avatar": { fontSize: "0" },
marginTop: '0', ".ant-list .ant-list-item-content-single": { maxWidth: "100%" },
},
'// disabled white space .ant-card-meta-avatar': {
fontSize: '0',
},
'.ant-list .ant-list-item-content-single': {
maxWidth: '100%',
}, },
cardInfo: { cardInfo: {
marginTop: '16px', marginTop: "16px",
marginLeft: '40px', marginLeft: "40px",
zoom: '1', zoom: "1",
'&::before, &::after': { display: 'table', content: "' '" }, "&::before, &::after": { display: "table", content: "' '" },
'&::after': { "&::after": {
clear: 'both', clear: "both",
height: '0', height: "0",
fontSize: '0', fontSize: "0",
visibility: 'hidden', visibility: "hidden",
}, },
'& > div': { "& > div": {
position: 'relative', position: "relative",
float: 'left', float: "left",
width: '50%', width: "50%",
textAlign: 'left', textAlign: "left",
p: {
margin: "0",
fontSize: "24px",
lineHeight: "32px",
},
"p:first-child": {
marginBottom: "4px",
color: token.colorTextSecondary,
fontSize: "12px",
lineHeight: "20px",
},
}, },
}, },
p: {
margin: '0',
fontSize: '24px',
lineHeight: '32px',
},
'p:first-child': {
marginBottom: '4px',
color: token.colorTextSecondary,
fontSize: '12px',
lineHeight: '20px',
},
}; };
}); });

24
src/pages/account/center/components/ArticleListContent/index.style.ts

@ -1,25 +1,25 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
description: { description: {
maxWidth: '720px', maxWidth: "720px",
lineHeight: '22px', lineHeight: "22px",
}, },
extra: { extra: {
marginTop: '16px', marginTop: "16px",
color: token.colorTextSecondary, color: token.colorTextSecondary,
lineHeight: '22px', lineHeight: "22px",
'& > em': { "& > em": {
marginLeft: '16px', marginLeft: "16px",
color: token.colorTextDisabled, color: token.colorTextDisabled,
fontStyle: 'normal', fontStyle: "normal",
}, },
[`@media screen and (max-width: ${token.screenXS}px)`]: { [`@media screen and (max-width: ${token.screenXS}px)`]: {
'& > em': { "& > em": {
display: 'block', display: "block",
marginTop: '8px', marginTop: "8px",
marginLeft: '0', marginLeft: "0",
}, },
}, },
}, },

9
src/pages/account/center/components/Articles/index.style.ts

@ -1,12 +1,11 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
articleList: {}, articleList: {
'.ant-list-item:first-child': { ".ant-list-item:first-child": { paddingTop: "0" },
paddingTop: '0',
}, },
'a.listItemMetaTitle': { "a.listItemMetaTitle": {
color: token.colorTextHeading, color: token.colorTextHeading,
}, },
}; };

37
src/pages/account/center/components/AvatarList/index.style.ts

@ -1,26 +1,18 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
avatarList: { avatarList: {
display: 'inline-block', display: "inline-block",
}, ul: { display: "inline-block", marginLeft: "8px", fontSize: "0" },
ul: {
display: 'inline-block',
marginLeft: '8px',
fontSize: '0',
}, },
avatarItem: { avatarItem: {
display: 'inline-block', display: "inline-block",
width: token.controlHeight, width: token.controlHeight,
height: token.controlHeight, height: token.controlHeight,
marginLeft: '-8px', marginLeft: "-8px",
fontSize: token.fontSize, fontSize: token.fontSize,
}, ".ant-avatar": { border: "1px solid @border-color-base" },
'.ant-avatar': {
width: '20px',
height: '20px',
lineHeight: '20px',
}, },
avatarItemLarge: { avatarItemLarge: {
width: token.controlHeightLG, width: token.controlHeightLG,
@ -31,12 +23,17 @@ const useStyles = createStyles(({ token }) => {
height: token.controlHeightSM, height: token.controlHeightSM,
}, },
avatarItemMini: { avatarItemMini: {
width: '20px', width: "20px",
height: '20px', height: "20px",
}, ".ant-avatar": {
'.ant-avatar-string': { width: "20px",
fontSize: '12px', height: "20px",
lineHeight: '18px', lineHeight: "20px",
".ant-avatar-string": {
fontSize: "12px",
lineHeight: "18px",
},
},
}, },
}; };
}); });

60
src/pages/account/center/components/Projects/index.style.ts

@ -1,47 +1,47 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
coverCardList: {},
card: { card: {
'&:hover': {}, ".ant-card-meta-title": {
}, marginBottom: "4px",
'.ant-card-meta-title': { "& > a": {
marginBottom: '4px', display: "inline-block",
'& > a': { maxWidth: "100%",
display: 'inline-block', color: token.colorTextHeading,
maxWidth: '100%', },
color: token.colorTextHeading, },
".ant-card-meta-description": {
height: "44px",
overflow: "hidden",
lineHeight: "22px",
},
"&:hover": {
".ant-card-meta-title > a": {
color: token.colorPrimary,
},
}, },
},
'.ant-card-meta-description': {
height: '44px',
overflow: 'hidden',
lineHeight: '22px',
},
'.ant-card-meta-title > a': {
color: token.colorPrimary,
}, },
cardItemContent: { cardItemContent: {
display: 'flex', display: "flex",
height: '20px', height: "20px",
marginTop: '16px', marginTop: "16px",
marginBottom: '-4px', marginBottom: "-4px",
lineHeight: '20px', lineHeight: "20px",
'& > span': { "& > span": {
flex: '1', flex: "1",
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: '12px', fontSize: "12px",
}, },
}, },
avatarList: { avatarList: {
flex: '0 1 auto', flex: "0 1 auto",
}, },
cardList: { cardList: {
marginTop: '24px', marginTop: "24px",
}, },
'.ant-list .ant-list-item-content-single': { coverCardList: {
maxWidth: '100%', ".ant-list .ant-list-item-content-single": { maxWidth: "100%" },
}, },
}; };
}); });

55
src/pages/account/settings/components/BaseView.style.ts

@ -1,51 +1,58 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
baseView: { baseView: {
display: "flex",
paddingTop: "12px",
".ant-legacy-form-item .ant-legacy-form-item-control-wrapper": {
width: "100%",
},
[`@media screen and (max-width: ${token.screenXL}px)`]: { [`@media screen and (max-width: ${token.screenXL}px)`]: {
flexDirection: 'column-reverse', flexDirection: "column-reverse",
}, },
}, },
'.ant-legacy-form-item .ant-legacy-form-item-control-wrapper': {
width: '100%',
},
left: { left: {
minWidth: '224px', minWidth: "224px",
maxWidth: '448px', maxWidth: "448px",
}, },
right: { right: {
flex: "1",
paddingLeft: "104px",
[`@media screen and (max-width: ${token.screenXL}px)`]: { [`@media screen and (max-width: ${token.screenXL}px)`]: {
display: 'flex', display: "flex",
flexDirection: 'column', flexDirection: "column",
alignItems: 'center', alignItems: "center",
maxWidth: '448px', maxWidth: "448px",
padding: '20px', padding: "20px",
}, },
}, },
avatar_title: { avatar_title: {
height: "22px",
marginBottom: "8px",
color: token.colorTextHeading,
fontSize: token.fontSize,
lineHeight: "22px",
[`@media screen and (max-width: ${token.screenXL}px)`]: { [`@media screen and (max-width: ${token.screenXL}px)`]: {
display: 'none', display: "none",
}, },
}, },
avatar: { avatar: {
width: '144px', width: "144px",
height: '144px', height: "144px",
marginBottom: '12px', marginBottom: "12px",
overflow: 'hidden', overflow: "hidden",
}, img: { width: "100%" },
img: {
width: '100%',
}, },
button_view: { button_view: {
width: '144px', width: "144px",
textAlign: 'center', textAlign: "center",
}, },
area_code: { area_code: {
width: '72px', width: "72px",
}, },
phone_number: { phone_number: {
width: '214px', width: "214px",
}, },
}; };
}); });

88
src/pages/account/settings/style.style.ts

@ -1,74 +1,72 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
main: { main: {
display: "flex",
width: "100%",
height: "100%",
paddingTop: "16px",
paddingBottom: "16px",
backgroundColor: token.colorBgContainer,
".ant-list-split .ant-list-item:last-child": {
borderBottom: "1px solid @border-color-split",
},
".ant-list-item": { paddingTop: "14px", paddingBottom: "14px" },
[`@media screen and (max-width: ${token.screenMD}px)`]: { [`@media screen and (max-width: ${token.screenMD}px)`]: {
flexDirection: 'column', flexDirection: "column",
}, },
}, },
leftMenu: { leftMenu: {
width: "224px",
borderRight: `${token.lineWidth} ${token.borderStyle} ${token.colorSplit}`,
".ant-menu-inline": { border: "none" },
".ant-menu-horizontal": { fontWeight: "bold" },
[`@media screen and (max-width: ${token.screenMD}px)`]: { [`@media screen and (max-width: ${token.screenMD}px)`]: {
width: '100%', width: "100%",
border: 'none', border: "none",
}, },
}, },
'.ant-menu-inline': {
border: 'none',
},
'.ant-menu-horizontal': {
fontWeight: 'bold',
},
right: { right: {
flex: "1",
padding: "8px 40px",
[`@media screen and (max-width: ${token.screenMD}px)`]: { [`@media screen and (max-width: ${token.screenMD}px)`]: {
padding: '40px', padding: "40px",
}, },
}, },
title: { title: {
marginBottom: '12px', marginBottom: "12px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500', fontWeight: "500",
fontSize: '20px', fontSize: "20px",
lineHeight: '28px', lineHeight: "28px",
},
'.ant-list-split .ant-list-item:last-child': {
borderBottom: '1px solid @border-color-split',
}, },
'.ant-list-item': { taobao: {
paddingTop: '14px', display: "block",
paddingBottom: '14px', color: "#ff4000",
}, fontSize: "48px",
'.ant-list-item-meta': {}, lineHeight: "48px",
'// 账号绑定图标 .taobao': {
display: 'block',
color: '#ff4000',
fontSize: '48px',
lineHeight: '48px',
borderRadius: token.borderRadius, borderRadius: token.borderRadius,
}, },
dingding: { dingding: {
margin: '2px', margin: "2px",
padding: '6px', padding: "6px",
color: '#fff', color: "#fff",
fontSize: '32px', fontSize: "32px",
lineHeight: '32px', lineHeight: "32px",
backgroundColor: '#2eabff', backgroundColor: "#2eabff",
borderRadius: token.borderRadius, borderRadius: token.borderRadius,
}, },
alipay: { alipay: {
color: '#2eabff', color: "#2eabff",
fontSize: '48px', fontSize: "48px",
lineHeight: '48px', lineHeight: "48px",
borderRadius: token.borderRadius, borderRadius: token.borderRadius,
}, },
'// 密码强度 font.strong': { ":global": {
color: token.colorSuccess, "font.strong": { color: token.colorSuccess },
}, "font.medium": { color: token.colorWarning },
'font.medium': { "font.weak": { color: token.colorError },
color: token.colorWarning,
},
'font.weak': {
color: token.colorError,
}, },
}; };
}); });

84
src/pages/dashboard/analysis/components/Charts/ChartCard/index.style.ts

@ -1,77 +1,75 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
chartCard: { chartCard: {
position: 'relative', position: "relative",
}, },
chartTop: { chartTop: {
position: 'relative', position: "relative",
width: '100%', width: "100%",
overflow: 'hidden', overflow: "hidden",
}, },
chartTopMargin: { chartTopMargin: {
marginBottom: '12px', marginBottom: "12px",
}, },
chartTopHasMargin: { chartTopHasMargin: {
marginBottom: '20px', marginBottom: "20px",
}, },
metaWrap: { metaWrap: {
float: 'left', float: "left",
}, },
avatar: { avatar: {
position: 'relative', position: "relative",
top: '4px', top: "4px",
float: 'left', float: "left",
marginRight: '20px', marginRight: "20px",
}, img: { borderRadius: "100%" },
img: {
borderRadius: '100%',
}, },
meta: { meta: {
height: '22px', height: "22px",
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: token.fontSize, fontSize: token.fontSize,
lineHeight: '22px', lineHeight: "22px",
}, },
action: { action: {
position: 'absolute', position: "absolute",
top: '4px', top: "4px",
right: '0', right: "0",
lineHeight: '1', lineHeight: "1",
cursor: 'pointer', cursor: "pointer",
}, },
total: { total: {
height: '38px', height: "38px",
marginTop: '4px', marginTop: "4px",
marginBottom: '0', marginBottom: "0",
overflow: 'hidden', overflow: "hidden",
color: token.colorTextHeading, color: token.colorTextHeading,
fontSize: '30px', fontSize: "30px",
lineHeight: '38px', lineHeight: "38px",
whiteSpace: 'nowrap', whiteSpace: "nowrap",
textOverflow: 'ellipsis', textOverflow: "ellipsis",
wordBreak: 'break-all', wordBreak: "break-all",
}, },
content: { content: {
position: 'relative', position: "relative",
width: '100%', width: "100%",
marginBottom: '12px', marginBottom: "12px",
}, },
contentFixed: { contentFixed: {
position: 'absolute', position: "absolute",
bottom: '0', bottom: "0",
left: '0', left: "0",
width: '100%', width: "100%",
}, },
footer: { footer: {
marginTop: '8px', marginTop: "8px",
paddingTop: '9px', paddingTop: "9px",
borderTop: '1px solid @border-color-split', borderTop: "1px solid @border-color-split",
'& > *': { position: 'relative' }, "& > *": { position: "relative" },
}, },
footerMargin: { footerMargin: {
marginTop: '20px', marginTop: "20px",
}, },
}; };
}); });

14
src/pages/dashboard/analysis/components/Charts/Field/index.style.ts

@ -1,19 +1,19 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
field: { field: {
margin: '0', margin: "0",
overflow: 'hidden', overflow: "hidden",
whiteSpace: 'nowrap', whiteSpace: "nowrap",
textOverflow: 'ellipsis', textOverflow: "ellipsis",
}, },
label: { label: {
fontSize: token.fontSize, fontSize: token.fontSize,
lineHeight: '22px', lineHeight: "22px",
}, },
number: { number: {
marginLeft: '8px', marginLeft: "8px",
color: token.colorTextHeading, color: token.colorTextHeading,
}, },
}; };

5
src/pages/dashboard/analysis/components/Charts/index.style.ts

@ -10,10 +10,7 @@ const useStyles = createStyles(() => {
position: 'absolute', position: 'absolute',
bottom: '-28px', bottom: '-28px',
width: '100%', width: '100%',
}, '> div': { margin: '0 -5px', overflow: 'hidden' },
'> div': {
margin: '0 -5px',
overflow: 'hidden',
}, },
chartLoading: { chartLoading: {
position: 'absolute', position: 'absolute',

50
src/pages/dashboard/analysis/components/NumberInfo/index.style.ts

@ -1,51 +1,55 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
numberInfo: {},
suffix: { suffix: {
marginLeft: '4px', marginLeft: "4px",
color: token.colorText, color: token.colorText,
fontSize: '16px', fontSize: "16px",
fontStyle: 'normal', fontStyle: "normal",
}, },
numberInfoTitle: { numberInfoTitle: {
marginBottom: '16px', marginBottom: "16px",
color: token.colorText, color: token.colorText,
fontSize: token.fontSizeLg, fontSize: token.fontSizeLg,
transition: 'all 0.3s', transition: "all 0.3s",
}, },
numberInfoSubTitle: { numberInfoSubTitle: {
height: '22px', height: "22px",
overflow: 'hidden', overflow: "hidden",
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: token.fontSize, fontSize: token.fontSize,
lineHeight: '22px', lineHeight: "22px",
whiteSpace: 'nowrap', whiteSpace: "nowrap",
textOverflow: 'ellipsis', textOverflow: "ellipsis",
wordBreak: 'break-all', wordBreak: "break-all",
}, },
numberInfoValue: { numberInfoValue: {
'& > span': { color: token.colorText }, marginTop: "4px",
overflow: "hidden",
fontSize: "0",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
wordBreak: "break-all",
"& > span": { color: token.colorText },
}, },
subTotal: { subTotal: {
marginRight: '0', marginRight: "0",
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: token.fontSizeLg, fontSize: token.fontSizeLg,
verticalAlign: 'top', verticalAlign: "top",
}, },
'.anticon': { anticon: {
marginLeft: '4px', marginLeft: "4px",
fontSize: '12px', fontSize: "12px",
transform: 'scale(0.82)', transform: "scale(0.82)",
}, },
'.anticon-caret-up': { "anticon-caret-up": {
color: token.red6, color: token.red6,
}, },
'.anticon-caret-down': { "anticon-caret-down": {
color: token.green6, color: token.green6,
}, },
numberInfolight: {},
}; };
}); });

18
src/pages/dashboard/analysis/components/Trend/index.style.ts

@ -1,30 +1,26 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
trendItem: { trendItem: {
display: 'inline-block', display: "inline-block",
fontSize: token.fontSize, fontSize: token.fontSize,
lineHeight: '22px', lineHeight: "22px",
}, },
up: { up: {
color: token.red6, color: token.red6,
}, },
down: { down: {
top: '-1px', top: "-1px",
color: token.green6, color: token.green6,
}, },
span: { "trendItemGrey .up, trendItemGrey .down": {
fontSize: '12px',
transform: 'scale(0.83)',
},
'trendItemGrey .up, trendItemGrey .down': {
color: token.colorText, color: token.colorText,
}, },
'reverseColor .up': { "reverseColor .up": {
color: token.green6, color: token.green6,
}, },
'reverseColor .down': { "reverseColor .down": {
color: token.red6, color: token.red6,
}, },
}; };

217
src/pages/dashboard/analysis/style.style.ts

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

25
src/pages/dashboard/monitor/components/ActiveChart/index.style.ts

@ -5,13 +5,9 @@ const useStyles = createStyles(() => {
activeChart: { activeChart: {
position: 'relative', position: 'relative',
}, },
activeChartGrid: {}, activeChartGrid: {
p: { p: { position: 'absolute', top: '80px' },
position: 'absolute', 'p:last-child': { top: '115px' },
top: '80px',
},
'p:last-child': {
top: '115px',
}, },
activeChartLegend: { activeChartLegend: {
position: 'relative', position: 'relative',
@ -19,18 +15,9 @@ const useStyles = createStyles(() => {
marginTop: '8px', marginTop: '8px',
fontSize: '0', fontSize: '0',
lineHeight: '20px', lineHeight: '20px',
}, span: { display: 'inline-block', width: '33.33%', fontSize: '12px', textAlign: 'center' },
span: { 'span:first-child': { textAlign: 'left' },
display: 'inline-block', 'span:last-child': { textAlign: 'right' },
width: '33.33%',
fontSize: '12px',
textAlign: 'center',
},
'span:first-child': {
textAlign: 'left',
},
'span:last-child': {
textAlign: 'right',
}, },
dashedLine: { dashedLine: {
position: 'relative', position: 'relative',

12
src/pages/dashboard/monitor/style.style.ts

@ -1,17 +1,15 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
mapChart: { mapChart: {
height: "452px",
paddingTop: "24px",
img: { display: "inline-block", maxWidth: "100%", maxHeight: "437px" },
[`@media screen and (max-width: ${token.screenLG}px)`]: { [`@media screen and (max-width: ${token.screenLG}px)`]: {
height: 'auto', height: "auto",
}, },
}, },
img: {
display: 'inline-block',
maxWidth: '100%',
maxHeight: '437px',
},
}; };
}); });

16
src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts

@ -1,17 +1,17 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
linkGroup: { linkGroup: {
padding: '20px 0 8px 24px', padding: "20px 0 8px 24px",
fontSize: '0', fontSize: "0",
'& > a': { "& > a": {
display: 'inline-block', display: "inline-block",
width: '25%', width: "25%",
marginBottom: '13px', marginBottom: "13px",
color: token.colorText, color: token.colorText,
fontSize: token.fontSize, fontSize: token.fontSize,
'&:hover': { "&:hover": {
color: token.colorPrimary, color: token.colorPrimary,
}, },
}, },

1
src/pages/dashboard/workplace/style.less

@ -26,6 +26,7 @@
.activitiesList { .activitiesList {
padding: 0 24px 8px 24px; padding: 0 24px 8px 24px;
.username { .username {
color: @text-color; color: @text-color;
} }

315
src/pages/dashboard/workplace/style.style.ts

@ -1,156 +1,273 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
"clearfix()": {
zoom: "1",
"&::before, &::after": { display: "table", content: "' '" },
"&::after": {
clear: "both",
height: "0",
fontSize: "0",
visibility: "hidden",
},
},
activitiesList: { activitiesList: {
padding: '0 24px 8px 24px', padding: "0 24px 8px 24px",
}, },
username: { username: {
color: token.colorText, color: token.colorText,
}, },
event: { event: {
fontWeight: 'normal', fontWeight: "normal",
}, },
pageHeaderContent: { pageHeaderContent: {
display: "flex",
[`@media screen and (max-width: ${token.screenSM}px)`]: { [`@media screen and (max-width: ${token.screenSM}px)`]: {
display: 'block', display: "block",
}, },
}, },
avatar: { avatar: {
flex: '0 1 72px', flex: "0 1 72px",
'& > span': { "& > span": {
display: 'block', display: "block",
width: '72px', width: "72px",
height: '72px', height: "72px",
borderRadius: '72px', borderRadius: "72px",
}, },
}, },
content: { content: {
position: "relative",
top: "4px",
flex: "1 1 auto",
marginLeft: "24px",
color: token.colorTextSecondary,
lineHeight: "22px",
[`@media screen and (max-width: ${token.screenSM}px)`]: { [`@media screen and (max-width: ${token.screenSM}px)`]: {
marginLeft: '0', marginLeft: "0",
}, },
}, },
contentTitle: { contentTitle: {
marginBottom: '12px', marginBottom: "12px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500', fontWeight: "500",
fontSize: '20px', fontSize: "20px",
lineHeight: '28px', lineHeight: "28px",
}, },
extraContent: { extraContent: {
[`@media screen and (max-width: ${token.screenSM}px)`]: {}, zoom: "1",
"&::before, &::after": { display: "table", content: "' '" },
"&::after": {
clear: "both",
height: "0",
fontSize: "0",
visibility: "hidden",
},
float: "right",
whiteSpace: "nowrap",
[`@media screen and (max-width: ${token.screenXL}px) and (min-width: @screen-lg)`]:
{ marginLeft: "-44px" },
[`@media screen and (max-width: ${token.screenLG}px)`]: {
float: "none",
marginRight: "0",
},
[`@media screen and (max-width: ${token.screenMD}px)`]: {
marginLeft: "-16px",
},
}, },
statItem: { statItem: {
[`@media screen and (max-width: ${token.screenSM}px)`]: { float: 'none' }, position: "relative",
}, display: "inline-block",
'> p:first-child': { padding: "0 32px",
marginBottom: '4px', "> p:first-child": {
color: token.colorTextSecondary, marginBottom: "4px",
fontSize: token.fontSize, color: token.colorTextSecondary,
lineHeight: '22px', fontSize: token.fontSize,
}, lineHeight: "22px",
'> p': { },
margin: '0', "> p": {
color: token.colorTextHeading, margin: "0",
fontSize: '30px', color: token.colorTextHeading,
lineHeight: '38px', fontSize: "30px",
}, lineHeight: "38px",
'> span': { "> span": {
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: '20px', fontSize: "20px",
}, },
members: { },
"&::after": {
position: "absolute",
top: "8px",
right: "0",
width: "1px",
height: "40px",
backgroundColor: token.colorSplit,
content: "''",
},
"&:last-child": {
paddingRight: "0",
"&::after": {
display: "none",
},
},
[`@media screen and (max-width: ${token.screenXL}px) and (min-width: @screen-lg)`]:
{ padding: "0 16px" },
[`@media screen and (max-width: ${token.screenLG}px)`]: { [`@media screen and (max-width: ${token.screenLG}px)`]: {
marginBottom: '0', padding: "0 16px",
textAlign: "left",
"&::after": {
display: "none",
},
}, },
[`@media screen and (max-width: ${token.screenSM}px)`]: { float: "none" },
}, },
a: { members: {
display: 'inline-block', a: {
flex: '1 1 0', display: "block",
color: token.colorTextSecondary, height: "24px",
position: 'relative', margin: "12px 0",
maxHeight: '4.5em', color: token.colorText,
marginRight: '-1em', transition: "all 0.3s",
paddingRight: '1em', position: "relative",
overflow: 'hidden', maxHeight: "4.5em",
lineHeight: '1.5em', marginRight: "-1em",
textAlign: 'justify', paddingRight: "1em",
'&::before': { overflow: "hidden",
position: 'absolute', lineHeight: "1.5em",
right: '14px', textAlign: "justify",
bottom: '0', "&::before": {
padding: '0 1px', position: "absolute",
background: token.colorBgContainer, right: "14px",
content: "'...'", bottom: "0",
padding: "0 1px",
background: token.colorBgContainer,
content: "'...'",
},
"&::after": {
position: "absolute",
right: "14px",
width: "1em",
height: "1em",
marginTop: "0.2em",
background: "white",
content: "''",
},
"&:hover": {
color: token.colorPrimary,
},
}, },
'&::after': { [`@media screen and (max-width: ${token.screenXL}px) and (min-width: @screen-lg)`]:
position: 'absolute', { marginBottom: "0" },
right: '14px', [`@media screen and (max-width: ${token.screenLG}px)`]: {
width: '1em', marginBottom: "0",
height: '1em',
marginTop: '0.2em',
background: 'white',
content: "''",
}, },
'&:hover': { color: token.colorPrimary },
}, },
member: { member: {
marginLeft: '12px', marginLeft: "12px",
fontSize: token.fontSize, fontSize: token.fontSize,
lineHeight: '24px', lineHeight: "24px",
verticalAlign: 'top', verticalAlign: "top",
}, },
projectList: { projectList: {
[`@media screen and (max-width: ${token.screenXS}px)`]: {}, ".ant-card-meta-description": {
}, height: "44px",
'.ant-card-meta-description': { overflow: "hidden",
height: '44px', color: token.colorTextSecondary,
overflow: 'hidden', lineHeight: "22px",
color: token.colorTextSecondary, },
lineHeight: '22px',
}, },
cardTitle: { cardTitle: {
fontSize: '0', fontSize: "0",
a: {
display: "inline-block",
height: "24px",
marginLeft: "12px",
color: token.colorTextHeading,
fontSize: token.fontSize,
lineHeight: "24px",
verticalAlign: "top",
"&:hover": {
color: token.colorPrimary,
},
},
}, },
projectGrid: { projectGrid: {
[`@media screen and (max-width: ${token.screenXS}px)`]: { width: '100%' }, width: "33.33%",
[`@media screen and (max-width: ${token.screenMD}px)`]: { width: "50%" },
[`@media screen and (max-width: ${token.screenXS}px)`]: { width: "100%" },
}, },
projectItemContent: { projectItemContent: {
display: 'flex', display: "flex",
height: '20px', height: "20px",
marginTop: '8px', marginTop: "8px",
overflow: 'hidden', overflow: "hidden",
fontSize: '12px', fontSize: "12px",
lineHeight: '1.5em', lineHeight: "1.5em",
position: 'relative', position: "relative",
maxHeight: '4.5em', maxHeight: "4.5em",
marginRight: '-1em', marginRight: "-1em",
paddingRight: '1em', paddingRight: "1em",
textAlign: 'justify', textAlign: "justify",
'&::before': { "&::before": {
position: 'absolute', position: "absolute",
right: '14px', right: "14px",
bottom: '0', bottom: "0",
padding: '0 1px', padding: "0 1px",
background: token.colorBgContainer, background: token.colorBgContainer,
content: "'...'", content: "'...'",
}, },
'&::after': { "&::after": {
position: 'absolute', position: "absolute",
right: '14px', right: "14px",
width: '1em', width: "1em",
height: '1em', height: "1em",
marginTop: '0.2em', marginTop: "0.2em",
background: 'white', background: "white",
content: "''", content: "''",
}, },
a: {
display: "inline-block",
flex: "1 1 0",
color: token.colorTextSecondary,
position: "relative",
maxHeight: "4.5em",
marginRight: "-1em",
paddingRight: "1em",
overflow: "hidden",
lineHeight: "1.5em",
textAlign: "justify",
"&::before": {
position: "absolute",
right: "14px",
bottom: "0",
padding: "0 1px",
background: token.colorBgContainer,
content: "'...'",
},
"&::after": {
position: "absolute",
right: "14px",
width: "1em",
height: "1em",
marginTop: "0.2em",
background: "white",
content: "''",
},
"&:hover": {
color: token.colorPrimary,
},
},
}, },
datetime: { datetime: {
flex: "0 0 auto",
float: "right",
color: token.colorTextDisabled, color: token.colorTextDisabled,
}, },
activeCard: { activeCard: {
[`@media screen and (max-width: ${token.screenXL}px) and (min-width: @screen-lg)`]:
{ marginBottom: "24px" },
[`@media screen and (max-width: ${token.screenLG}px)`]: { [`@media screen and (max-width: ${token.screenLG}px)`]: {
marginBottom: '24px', marginBottom: "24px",
}, },
}, },
}; };

62
src/pages/form/advanced-form/style.style.ts

@ -1,48 +1,46 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
card: { card: {
marginBottom: '24px', marginBottom: "24px",
}, ".ant-legacy-form-item .ant-legacy-form-item-control-wrapper": {
'.ant-legacy-form-item .ant-legacy-form-item-control-wrapper': { width: "100%",
width: '100%', },
}, },
errorIcon: { errorIcon: {
float: 'left', marginRight: "12px",
marginTop: '4px',
marginRight: '12px',
paddingBottom: '22px',
color: token.colorError, color: token.colorError,
}, cursor: "pointer",
'span.anticon': { "span.anticon": { marginRight: "4px" },
marginRight: '4px', float: "left",
}, marginTop: "4px",
errorPopover: {}, paddingBottom: "22px",
'.ant-popover-inner-content': { },
minWidth: '256px', errorPopover: {
maxHeight: '290px', ".ant-popover-inner-content": {
padding: '0', minWidth: "256px",
overflow: 'auto', maxHeight: "290px",
padding: "0",
overflow: "auto",
},
}, },
errorListItem: { errorListItem: {
padding: '8px 16px', padding: "8px 16px",
listStyle: 'none', listStyle: "none",
borderBottom: '1px solid @border-color-split', borderBottom: "1px solid @border-color-split",
cursor: 'pointer', cursor: "pointer",
transition: 'all 0.3s', transition: "all 0.3s",
'&:hover': { background: token.colorBgTextActive }, "&:hover": { background: token.colorBgTextActive },
'&:last-child': { border: '0' }, "&:last-child": { border: "0" },
}, },
errorField: { errorField: {
marginTop: '2px', marginTop: "2px",
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: '12px', fontSize: "12px",
}, },
editable: {}, editable: {
td: { td: { paddingTop: "13px", paddingBottom: "12.5px" },
paddingTop: '13px',
paddingBottom: '12.5px',
}, },
}; };
}); });

4
src/pages/form/basic-form/style.style.ts

@ -1,10 +1,10 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
optional: { optional: {
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontStyle: 'normal', fontStyle: "normal",
}, },
}; };
}); });

169
src/pages/list/basic-list/style.style.ts

@ -1,98 +1,139 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
standardList: { standardList: {
'@media screen and (max-width: 1400px)': {}, ".ant-card-head": { borderBottom: "none" },
}, ".ant-card-head-title": { padding: "24px 0", lineHeight: "32px" },
'.ant-card-head': { ".ant-card-extra": { padding: "24px 0" },
borderBottom: 'none', ".ant-list-pagination": { marginTop: "24px", textAlign: "right" },
}, ".ant-avatar-lg": { width: "48px", height: "48px", lineHeight: "48px" },
'.ant-card-head-title': {
[`@media screen and (max-width: ${token.screenXS}px)`]: { [`@media screen and (max-width: ${token.screenXS}px)`]: {
overflow: 'visible', ".ant-list-item-content": {
display: "block",
flex: "none",
width: "100%",
},
".ant-list-item-action": {
marginLeft: "0",
},
}, },
}, },
'.ant-card-extra': {
padding: '24px 0',
},
'.ant-list-pagination': {
marginTop: '24px',
textAlign: 'right',
},
'.ant-avatar-lg': {
width: '48px',
height: '48px',
lineHeight: '48px',
},
headerInfo: { headerInfo: {
position: "relative",
textAlign: "center",
"& > span": {
display: "inline-block",
marginBottom: "4px",
color: token.colorTextSecondary,
fontSize: token.fontSize,
lineHeight: "22px",
},
"& > p": {
margin: "0",
color: token.colorTextHeading,
fontSize: "24px",
lineHeight: "32px",
},
"& > em": {
position: "absolute",
top: "0",
right: "0",
width: "1px",
height: "56px",
backgroundColor: token.colorSplit,
},
[`@media screen and (max-width: ${token.screenSM}px)`]: { [`@media screen and (max-width: ${token.screenSM}px)`]: {
marginBottom: '16px', marginBottom: "16px",
'& > em': { "& > em": {
display: 'none', display: "none",
}, },
}, },
}, },
listContent: { listContent: {
'@media screen and (max-width: 1400px)': { fontSize: "0",
textAlign: 'right', [`@media screen and (max-width: ${token.screenXS}px)`]: {
'& > div:last-child': { marginLeft: "0",
top: '0', "& > div": {
marginLeft: "0",
},
},
[`@media screen and (max-width: ${token.screenMD}px)`]: {
"& > div": {
display: "block",
},
"& > div:last-child": {
top: "0",
width: "100%",
},
},
[`@media screen and (max-width: ${token.screenLG}px) and (min-width: @screen-md)`]:
{
"& > div": {
display: "block",
},
"& > div:last-child": {
top: "0",
width: "100%",
},
},
[`@media screen and (max-width: ${token.screenXL}px)`]: {
"& > div": {
marginLeft: "24px",
},
"& > div:last-child": {
top: "0",
},
},
"@media screen and (max-width: 1400px)": {
textAlign: "right",
"& > div:last-child": {
top: "0",
}, },
}, },
}, },
listContentItem: { listContentItem: {
display: 'inline-block', display: "inline-block",
marginLeft: '40px', marginLeft: "40px",
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: token.fontSize, fontSize: token.fontSize,
verticalAlign: 'middle', verticalAlign: "middle",
}, "> span": { lineHeight: "20px" },
'> span': { "> p": { marginTop: "4px", marginBottom: "0", lineHeight: "22px" },
lineHeight: '20px',
},
'> p': {
marginTop: '4px',
marginBottom: '0',
lineHeight: '22px',
}, },
extraContentSearch: { extraContentSearch: {
width: "272px",
marginLeft: "16px",
[`@media screen and (max-width: ${token.screenSM}px)`]: { [`@media screen and (max-width: ${token.screenSM}px)`]: {
width: '100%', width: "100%",
marginLeft: '0', marginLeft: "0",
}, },
}, },
'.ant-list-item-content': { listCard: {
[`@media screen and (max-width: ${token.screenXS}px)`]: {
display: 'block',
flex: 'none',
width: '100%',
},
},
'.ant-list-item-action': {
[`@media screen and (max-width: ${token.screenXS}px)`]: { [`@media screen and (max-width: ${token.screenXS}px)`]: {
marginLeft: '0', ".ant-card-head-title": {
overflow: "visible",
},
}, },
},
listCard: {
[`@media screen and (max-width: ${token.screenMD}px)`]: {},
},
'.ant-radio-group': {
[`@media screen and (max-width: ${token.screenMD}px)`]: { [`@media screen and (max-width: ${token.screenMD}px)`]: {
display: 'block', ".ant-radio-group": {
marginBottom: '8px', display: "block",
marginBottom: "8px",
},
}, },
}, },
standardListForm: {}, standardListForm: {
'.ant-form-item': { ".ant-form-item": {
marginBottom: '12px', marginBottom: "12px",
'&:last-child': { marginBottom: '32px', paddingTop: '4px' }, "&:last-child": {
marginBottom: "32px",
paddingTop: "4px",
},
},
}, },
formResult: { formResult: {
width: '100%', width: "100%",
}, "[class^='title']": { marginBottom: "8px" },
"[class^='title']": {
marginBottom: '8px',
}, },
}; };
}); });

8
src/pages/list/basic-list/utils/utils.style.ts

@ -1,6 +1,12 @@
import { createStyles } from 'antd-style'; import { createStyles } from 'antd-style';
const useStyles = createStyles(() => { const useStyles = createStyles(() => {
return {}; return {
'clearfix()': {
zoom: '1',
'&::before, &::after': { display: 'table', content: "' '" },
'&::after': { clear: 'both', height: '0', fontSize: '0', visibility: 'hidden' },
},
};
}); });
export default useStyles; export default useStyles;

95
src/pages/list/card-list/style.style.ts

@ -1,71 +1,86 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
cardList: {}, card: {
card: {}, ".ant-card-meta-title": {
'.ant-card-meta-title': { marginBottom: "12px",
marginBottom: '12px', "& > a": {
'& > a': { display: "inline-block",
display: 'inline-block', maxWidth: "100%",
maxWidth: '100%', color: token.colorTextHeading,
color: token.colorTextHeading, },
},
".ant-card-body:hover": {
".ant-card-meta-title > a": {
color: token.colorPrimary,
},
}, },
},
'.ant-card-body:hover': {},
'.ant-card-meta-title > a': {
color: token.colorPrimary,
}, },
item: { item: {
height: '64px', height: "64px",
}, },
'.ant-list .ant-list-item-content-single': { cardList: {
maxWidth: '100%', ".ant-list .ant-list-item-content-single": { maxWidth: "100%" },
}, },
extraImg: { extraImg: {
width: "155px",
marginTop: "-20px",
textAlign: "center",
img: { width: "100%" },
[`@media screen and (max-width: ${token.screenMD}px)`]: { [`@media screen and (max-width: ${token.screenMD}px)`]: {
display: 'none', display: "none",
},
},
img: {
[`@media screen and (max-width: ${token.screenSM}px)`]: {
marginRight: '4px',
}, },
}, },
newButton: { newButton: {
width: '100%', width: "100%",
height: '201px', height: "201px",
color: token.colorTextSecondary, color: token.colorTextSecondary,
backgroundColor: token.colorBgContainer, backgroundColor: token.colorBgContainer,
borderColor: token.colorBorder, borderColor: token.colorBorder,
}, },
cardAvatar: { cardAvatar: {
width: '48px', width: "48px",
height: '48px', height: "48px",
borderRadius: '48px', borderRadius: "48px",
}, },
cardDescription: { cardDescription: {
overflow: 'hidden', overflow: "hidden",
whiteSpace: 'nowrap', whiteSpace: "nowrap",
textOverflow: 'ellipsis', textOverflow: "ellipsis",
wordBreak: 'break-all', wordBreak: "break-all",
}, },
pageHeaderContent: { pageHeaderContent: {
position: "relative",
[`@media screen and (max-width: ${token.screenSM}px)`]: { [`@media screen and (max-width: ${token.screenSM}px)`]: {
paddingBottom: '30px', paddingBottom: "30px",
}, },
}, },
contentLink: { contentLink: {
[`@media screen and (max-width: ${token.screenSM}px)`]: { marginTop: "16px",
position: 'absolute', a: {
bottom: '-4px', marginRight: "32px",
left: '0', img: {
width: '1000px', width: "24px",
},
},
img: { marginRight: "8px", verticalAlign: "middle" },
[`@media screen and (max-width: ${token.screenLG}px)`]: {
a: {
marginRight: "16px",
},
}, },
},
a: {
[`@media screen and (max-width: ${token.screenSM}px)`]: { [`@media screen and (max-width: ${token.screenSM}px)`]: {
marginRight: '16px', position: "absolute",
bottom: "-4px",
left: "0",
width: "1000px",
a: {
marginRight: "16px",
},
img: {
marginRight: "4px",
},
}, },
}, },
}; };

8
src/pages/list/card-list/utils/utils.style.ts

@ -1,6 +1,12 @@
import { createStyles } from 'antd-style'; import { createStyles } from 'antd-style';
const useStyles = createStyles(() => { const useStyles = createStyles(() => {
return {}; return {
'clearfix()': {
zoom: '1',
'&::before, &::after': { display: 'table', content: "' '" },
'&::after': { clear: 'both', height: '0', fontSize: '0', visibility: 'hidden' },
},
};
}); });
export default useStyles; export default useStyles;

74
src/pages/list/search/applications/components/StandardFormRow/index.style.ts

@ -1,53 +1,59 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
standardFormRow: { standardFormRow: {
display: 'flex', display: "flex",
marginBottom: '16px', marginBottom: "16px",
paddingBottom: '16px', paddingBottom: "16px",
borderBottom: '1px dashed @border-color-split', borderBottom: "1px dashed @border-color-split",
}, ".ant-form-item, .ant-legacy-form-item": { marginRight: "24px" },
'.ant-form-item, .ant-legacy-form-item': { ".ant-form-item-label, .ant-legacy-form-item-label": {
'&:last-child': { marginRight: '0' }, label: {
}, marginRight: "0",
'.ant-form-item-label, .ant-legacy-form-item-label': { color: token.colorText,
float: 'left', },
},
".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":
{ padding: "0", lineHeight: "32px" },
}, },
label: { label: {
flex: '0 0 auto', flex: "0 0 auto",
marginRight: '24px', marginRight: "24px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontSize: token.fontSize, fontSize: token.fontSize,
textAlign: 'right', textAlign: "right",
'& > span': { "& > span": {
display: 'inline-block', display: "inline-block",
height: '32px', height: "32px",
lineHeight: '32px', lineHeight: "32px",
'&::after': { "&::after": {
content: "':'", content: "':'",
}, },
}, },
}, },
'.ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control':
{
padding: '0',
lineHeight: '32px',
},
content: { content: {
flex: '1 1 0', flex: "1 1 0",
".ant-form-item, .ant-legacy-form-item": {
"&:last-child": {
marginRight: "0",
},
},
}, },
standardFormRowLast: { standardFormRowLast: {
marginBottom: '0', marginBottom: "0",
paddingBottom: '0', paddingBottom: "0",
border: 'none', border: "none",
},
standardFormRowBlock: {
".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":
{ display: "block" },
},
standardFormRowGrid: {
".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":
{ display: "block" },
".ant-form-item-label, .ant-legacy-form-item-label": { float: "left" },
}, },
standardFormRowBlock: {},
'.ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper':
{
display: 'block',
},
standardFormRowGrid: {},
}; };
}); });

42
src/pages/list/search/applications/components/TagSelect/index.style.ts

@ -1,35 +1,33 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
tagSelect: { tagSelect: {
position: 'relative', position: "relative",
maxHeight: '32px', maxHeight: "32px",
marginLeft: '-8px', marginLeft: "-8px",
overflow: 'hidden', overflow: "hidden",
lineHeight: '32px', lineHeight: "32px",
transition: 'all 0.3s', transition: "all 0.3s",
userSelect: 'none', userSelect: "none",
}, ".ant-tag": {
'.ant-tag': { marginRight: "24px",
marginRight: '24px', padding: "0 8px",
padding: '0 8px', fontSize: token.fontSize,
fontSize: token.fontSize, },
}, },
expanded: { expanded: {
maxHeight: '200px', maxHeight: "200px",
transition: 'all 0.3s', transition: "all 0.3s",
}, },
trigger: { trigger: {
position: 'absolute', position: "absolute",
top: '0', top: "0",
right: '0', right: "0",
}, "span.anticon": { fontSize: "12px" },
'span.anticon': {
fontSize: '12px',
}, },
hasExpandTag: { hasExpandTag: {
paddingRight: '50px', paddingRight: "50px",
}, },
}; };
}); });

65
src/pages/list/search/applications/style.style.ts

@ -1,46 +1,41 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
filterCardList: {}, filterCardList: {
'.ant-card-meta-content': { ".ant-card-meta-content": { marginTop: "0" },
marginTop: '0', ".ant-card-meta-avatar": { fontSize: "0" },
}, ".ant-list .ant-list-item-content-single": { maxWidth: "100%" },
'// disabled white space .ant-card-meta-avatar': {
fontSize: '0',
},
'.ant-list .ant-list-item-content-single': {
maxWidth: '100%',
}, },
cardInfo: { cardInfo: {
marginTop: '16px', marginTop: "16px",
marginLeft: '40px', marginLeft: "40px",
zoom: '1', zoom: "1",
'&::before, &::after': { display: 'table', content: "' '" }, "&::before, &::after": { display: "table", content: "' '" },
'&::after': { "&::after": {
clear: 'both', clear: "both",
height: '0', height: "0",
fontSize: '0', fontSize: "0",
visibility: 'hidden', visibility: "hidden",
}, },
'& > div': { "& > div": {
position: 'relative', position: "relative",
float: 'left', float: "left",
width: '50%', width: "50%",
textAlign: 'left', textAlign: "left",
p: {
margin: "0",
fontSize: "24px",
lineHeight: "32px",
},
"p:first-child": {
marginBottom: "4px",
color: token.colorTextSecondary,
fontSize: "12px",
lineHeight: "20px",
},
}, },
}, },
p: {
margin: '0',
fontSize: '24px',
lineHeight: '32px',
},
'p:first-child': {
marginBottom: '4px',
color: token.colorTextSecondary,
fontSize: '12px',
lineHeight: '20px',
},
}; };
}); });

8
src/pages/list/search/applications/utils/utils.style.ts

@ -1,6 +1,12 @@
import { createStyles } from 'antd-style'; import { createStyles } from 'antd-style';
const useStyles = createStyles(() => { const useStyles = createStyles(() => {
return {}; return {
'clearfix()': {
zoom: '1',
'&::before, &::after': { display: 'table', content: "' '" },
'&::after': { clear: 'both', height: '0', fontSize: '0', visibility: 'hidden' },
},
};
}); });
export default useStyles; export default useStyles;

25
src/pages/list/search/articles/components/ArticleListContent/index.style.ts

@ -1,20 +1,25 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
listContent: {
[`@media screen and (max-width: ${token.screenXS}px)`]: {},
},
description: { description: {
maxWidth: '720px', maxWidth: "720px",
lineHeight: '22px', lineHeight: "22px",
}, },
extra: { extra: {
marginTop: "16px",
color: token.colorTextSecondary,
lineHeight: "22px",
"& > em": {
marginLeft: "16px",
color: token.colorTextDisabled,
fontStyle: "normal",
},
[`@media screen and (max-width: ${token.screenXS}px)`]: { [`@media screen and (max-width: ${token.screenXS}px)`]: {
'& > em': { "& > em": {
display: 'block', display: "block",
marginTop: '8px', marginTop: "8px",
marginLeft: '0', marginLeft: "0",
}, },
}, },
}, },

77
src/pages/list/search/articles/components/StandardFormRow/index.style.ts

@ -1,54 +1,61 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
standardFormRow: { standardFormRow: {
display: 'flex', display: "flex",
width: '100%', width: "100%",
marginBottom: '16px', marginBottom: "16px",
paddingBottom: '16px', paddingBottom: "16px",
borderBottom: '1px dashed @border-color-split', borderBottom: "1px dashed @border-color-split",
}, ".ant-form-item, .ant-legacy-form-item": { marginRight: "24px" },
'.ant-form-item, .ant-legacy-form-item': { ".ant-form-item-label, .ant-legacy-form-item-label": {
'&:last-child': { display: 'block', marginRight: '0' }, label: {
}, marginRight: "0",
'.ant-form-item-label, .ant-legacy-form-item-label': { color: token.colorText,
float: 'left', },
},
".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":
{ padding: "0", lineHeight: "32px" },
}, },
label: { label: {
flex: '0 0 auto', flex: "0 0 auto",
marginRight: '24px', marginRight: "24px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontSize: token.fontSize, fontSize: token.fontSize,
textAlign: 'right', textAlign: "right",
'& > span': { "& > span": {
display: 'inline-block', display: "inline-block",
height: '32px', height: "32px",
lineHeight: '32px', lineHeight: "32px",
'&::after': { "&::after": {
content: "':'", content: "':'",
}, },
}, },
}, },
'.ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control':
{
padding: '0',
lineHeight: '32px',
},
content: { content: {
flex: '1 1 0', flex: "1 1 0",
".ant-form-item, .ant-legacy-form-item": {
"&:last-child": {
display: "block",
marginRight: "0",
},
},
}, },
standardFormRowLast: { standardFormRowLast: {
marginBottom: '0', marginBottom: "0",
paddingBottom: '0', paddingBottom: "0",
border: 'none', border: "none",
},
standardFormRowBlock: {
".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":
{ display: "block" },
},
standardFormRowGrid: {
".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":
{ display: "block" },
".ant-form-item-label, .ant-legacy-form-item-label": { float: "left" },
}, },
standardFormRowBlock: {},
'.ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper':
{
display: 'block',
},
standardFormRowGrid: {},
}; };
}); });

42
src/pages/list/search/articles/components/TagSelect/index.style.ts

@ -1,35 +1,33 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
tagSelect: { tagSelect: {
position: 'relative', position: "relative",
maxHeight: '32px', maxHeight: "32px",
marginLeft: '-8px', marginLeft: "-8px",
overflow: 'hidden', overflow: "hidden",
lineHeight: '32px', lineHeight: "32px",
transition: 'all 0.3s', transition: "all 0.3s",
userSelect: 'none', userSelect: "none",
}, ".ant-tag": {
'.ant-tag': { marginRight: "24px",
marginRight: '24px', padding: "0 8px",
padding: '0 8px', fontSize: token.fontSize,
fontSize: token.fontSize, },
}, },
expanded: { expanded: {
maxHeight: '200px', maxHeight: "200px",
transition: 'all 0.3s', transition: "all 0.3s",
}, },
trigger: { trigger: {
position: 'absolute', position: "absolute",
top: '0', top: "0",
right: '0', right: "0",
}, "span.anticon": { fontSize: "12px" },
'span.anticon': {
fontSize: '12px',
}, },
hasExpandTag: { hasExpandTag: {
paddingRight: '50px', paddingRight: "50px",
}, },
}; };
}); });

19
src/pages/list/search/articles/style.style.ts

@ -1,20 +1,27 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
'a.listItemMetaTitle': { "a.listItemMetaTitle": {
color: token.colorTextHeading, color: token.colorTextHeading,
}, },
listItemExtra: { listItemExtra: {
width: "272px",
height: "1px",
[`@media screen and (max-width: ${token.screenLG}px)`]: { [`@media screen and (max-width: ${token.screenLG}px)`]: {
width: '0', width: "0",
height: '1px', height: "1px",
}, },
}, },
selfTrigger: { selfTrigger: {
marginLeft: "12px",
[`@media screen and (max-width: ${token.screenXS}px)`]: {
display: "block",
marginLeft: "0",
},
[`@media screen and (max-width: ${token.screenMD}px)`]: { [`@media screen and (max-width: ${token.screenMD}px)`]: {
display: 'block', display: "block",
marginLeft: '0', marginLeft: "0",
}, },
}, },
}; };

37
src/pages/list/search/projects/components/AvatarList/index.style.ts

@ -1,26 +1,18 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
avatarList: { avatarList: {
display: 'inline-block', display: "inline-block",
}, ul: { display: "inline-block", marginLeft: "8px", fontSize: "0" },
ul: {
display: 'inline-block',
marginLeft: '8px',
fontSize: '0',
}, },
avatarItem: { avatarItem: {
display: 'inline-block', display: "inline-block",
width: token.controlHeight, width: token.controlHeight,
height: token.controlHeight, height: token.controlHeight,
marginLeft: '-8px', marginLeft: "-8px",
fontSize: token.fontSize, fontSize: token.fontSize,
}, ".ant-avatar": { border: "1px solid @border-color-base" },
'.ant-avatar': {
width: '20px',
height: '20px',
lineHeight: '20px',
}, },
avatarItemLarge: { avatarItemLarge: {
width: token.controlHeightLG, width: token.controlHeightLG,
@ -31,12 +23,17 @@ const useStyles = createStyles(({ token }) => {
height: token.controlHeightSM, height: token.controlHeightSM,
}, },
avatarItemMini: { avatarItemMini: {
width: '20px', width: "20px",
height: '20px', height: "20px",
}, ".ant-avatar": {
'.ant-avatar-string': { width: "20px",
fontSize: '12px', height: "20px",
lineHeight: '18px', lineHeight: "20px",
".ant-avatar-string": {
fontSize: "12px",
lineHeight: "18px",
},
},
}, },
}; };
}); });

77
src/pages/list/search/projects/components/StandardFormRow/index.style.ts

@ -1,54 +1,61 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
standardFormRow: { standardFormRow: {
display: 'flex', display: "flex",
width: '100%', width: "100%",
marginBottom: '16px', marginBottom: "16px",
paddingBottom: '16px', paddingBottom: "16px",
borderBottom: '1px dashed @border-color-split', borderBottom: "1px dashed @border-color-split",
}, ".ant-form-item, .ant-legacy-form-item": { marginRight: "24px" },
'.ant-form-item, .ant-legacy-form-item': { ".ant-form-item-label, .ant-legacy-form-item-label": {
'&:last-child': { display: 'block', marginRight: '0' }, label: {
}, marginRight: "0",
'.ant-form-item-label, .ant-legacy-form-item-label': { color: token.colorText,
float: 'left', },
},
".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":
{ padding: "0", lineHeight: "32px" },
}, },
label: { label: {
flex: '0 0 auto', flex: "0 0 auto",
marginRight: '24px', marginRight: "24px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontSize: token.fontSize, fontSize: token.fontSize,
textAlign: 'right', textAlign: "right",
'& > span': { "& > span": {
display: 'inline-block', display: "inline-block",
height: '32px', height: "32px",
lineHeight: '32px', lineHeight: "32px",
'&::after': { "&::after": {
content: "':'", content: "':'",
}, },
}, },
}, },
'.ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control':
{
padding: '0',
lineHeight: '32px',
},
content: { content: {
flex: '1 1 0', flex: "1 1 0",
".ant-form-item, .ant-legacy-form-item": {
"&:last-child": {
display: "block",
marginRight: "0",
},
},
}, },
standardFormRowLast: { standardFormRowLast: {
marginBottom: '0', marginBottom: "0",
paddingBottom: '0', paddingBottom: "0",
border: 'none', border: "none",
},
standardFormRowBlock: {
".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":
{ display: "block" },
},
standardFormRowGrid: {
".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":
{ display: "block" },
".ant-form-item-label, .ant-legacy-form-item-label": { float: "left" },
}, },
standardFormRowBlock: {},
'.ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper':
{
display: 'block',
},
standardFormRowGrid: {},
}; };
}); });

42
src/pages/list/search/projects/components/TagSelect/index.style.ts

@ -1,35 +1,33 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
tagSelect: { tagSelect: {
position: 'relative', position: "relative",
maxHeight: '32px', maxHeight: "32px",
marginLeft: '-8px', marginLeft: "-8px",
overflow: 'hidden', overflow: "hidden",
lineHeight: '32px', lineHeight: "32px",
transition: 'all 0.3s', transition: "all 0.3s",
userSelect: 'none', userSelect: "none",
}, ".ant-tag": {
'.ant-tag': { marginRight: "24px",
marginRight: '24px', padding: "0 8px",
padding: '0 8px', fontSize: token.fontSize,
fontSize: token.fontSize, },
}, },
expanded: { expanded: {
maxHeight: '200px', maxHeight: "200px",
transition: 'all 0.3s', transition: "all 0.3s",
}, },
trigger: { trigger: {
position: 'absolute', position: "absolute",
top: '0', top: "0",
right: '0', right: "0",
}, "span.anticon": { fontSize: "12px" },
'span.anticon': {
fontSize: '12px',
}, },
hasExpandTag: { hasExpandTag: {
paddingRight: '50px', paddingRight: "50px",
}, },
}; };
}); });

60
src/pages/list/search/projects/style.style.ts

@ -1,47 +1,47 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
coverCardList: {},
card: { card: {
'&:hover': {}, ".ant-card-meta-title": {
}, marginBottom: "4px",
'.ant-card-meta-title': { "& > a": {
marginBottom: '4px', display: "inline-block",
'& > a': { maxWidth: "100%",
display: 'inline-block', color: token.colorTextHeading,
maxWidth: '100%', },
color: token.colorTextHeading, },
".ant-card-meta-description": {
height: "44px",
overflow: "hidden",
lineHeight: "22px",
},
"&:hover": {
".ant-card-meta-title > a": {
color: token.colorPrimary,
},
}, },
},
'.ant-card-meta-description': {
height: '44px',
overflow: 'hidden',
lineHeight: '22px',
},
'.ant-card-meta-title > a': {
color: token.colorPrimary,
}, },
cardItemContent: { cardItemContent: {
display: 'flex', display: "flex",
height: '20px', height: "20px",
marginTop: '16px', marginTop: "16px",
marginBottom: '-4px', marginBottom: "-4px",
lineHeight: '20px', lineHeight: "20px",
'& > span': { "& > span": {
flex: '1', flex: "1",
color: token.colorTextSecondary, color: token.colorTextSecondary,
fontSize: '12px', fontSize: "12px",
}, },
}, },
avatarList: { avatarList: {
flex: '0 1 auto', flex: "0 1 auto",
}, },
cardList: { cardList: {
marginTop: '24px', marginTop: "24px",
}, },
'.ant-list .ant-list-item-content-single': { coverCardList: {
maxWidth: '100%', ".ant-list .ant-list-item-content-single": { maxWidth: "100%" },
}, },
}; };
}); });

8
src/pages/list/search/projects/utils/utils.style.ts

@ -1,6 +1,12 @@
import { createStyles } from 'antd-style'; import { createStyles } from 'antd-style';
const useStyles = createStyles(() => { const useStyles = createStyles(() => {
return {}; return {
'clearfix()': {
zoom: '1',
'&::before, &::after': { display: 'table', content: "' '" },
'&::after': { clear: 'both', height: '0', fontSize: '0', visibility: 'hidden' },
},
};
}); });
export default useStyles; export default useStyles;

47
src/pages/profile/advanced/style.style.ts

@ -1,40 +1,37 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
main: {}, main: {
'.ant-descriptions-row > td': { ".ant-descriptions-row > td": { paddingBottom: "8px" },
paddingBottom: '8px', ".ant-page-header-heading-extra": { flexDirection: "column" },
},
'.ant-page-header-heading-extra': {
flexDirection: 'column',
}, },
headerList: { headerList: {
marginBottom: '4px', marginBottom: "4px",
".ant-descriptions-row > td": { paddingBottom: "8px" },
}, },
stepDescription: { stepDescription: {
[`@media screen and (max-width: ${token.screenSM}px)`]: { left: '8px' }, position: "relative",
}, left: "38px",
'> div': { paddingTop: "8px",
marginTop: '8px', fontSize: "14px",
marginBottom: '4px', textAlign: "left",
"> div": { marginTop: "8px", marginBottom: "4px" },
[`@media screen and (max-width: ${token.screenSM}px)`]: { left: "8px" },
}, },
pageHeader: { pageHeader: {
[`@media screen and (max-width: ${token.screenSM}px)`]: {}, ".ant-page-header-heading-extra > * + *": { marginLeft: "8px" },
},
'.ant-page-header-heading-extra > * + *': {
marginLeft: '8px',
},
moreInfo: {
display: 'flex',
justifyContent: 'space-between',
width: '200px',
},
'.ant-pro-page-header-wrap-row': {
[`@media screen and (max-width: ${token.screenSM}px)`]: { [`@media screen and (max-width: ${token.screenSM}px)`]: {
flexDirection: 'column', ".ant-pro-page-header-wrap-row": {
flexDirection: "column",
},
}, },
}, },
moreInfo: {
display: "flex",
justifyContent: "space-between",
width: "200px",
},
}; };
}); });

8
src/pages/profile/basic/style.style.ts

@ -1,12 +1,12 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
title: { title: {
marginBottom: '16px', marginBottom: "16px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500', fontWeight: "500",
fontSize: '16px', fontSize: "16px",
}, },
}; };
}); });

8
src/pages/result/fail/index.style.ts

@ -1,4 +1,4 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
@ -6,10 +6,10 @@ const useStyles = createStyles(({ token }) => {
color: token.colorBgTextActive, color: token.colorBgTextActive,
}, },
title: { title: {
marginBottom: '16px', marginBottom: "16px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500', fontWeight: "500",
fontSize: '16px', fontSize: "16px",
}, },
}; };
}); });

16
src/pages/result/success/index.style.ts

@ -1,18 +1,18 @@
import { createStyles } from 'antd-style'; import { createStyles } from "antd-style";
const useStyles = createStyles(({ token }) => { const useStyles = createStyles(({ token }) => {
return { return {
title: { title: {
position: 'relative', position: "relative",
color: token.colorText, color: token.colorText,
fontSize: '12px', fontSize: "12px",
textAlign: 'center', textAlign: "center",
}, },
'head-title': { "head-title": {
marginBottom: '20px', marginBottom: "20px",
color: token.colorTextHeading, color: token.colorTextHeading,
fontWeight: '500px', fontWeight: "500px",
fontSize: '16px', fontSize: "16px",
}, },
}; };
}); });

Loading…
Cancel
Save