@@ -28,78 +28,78 @@ const Warpper = styled.div<{
28
28
$cardType : string ;
29
29
$headerStyle : CardHeaderStyleType ;
30
30
$bodyStyle : CardHeaderStyleType ;
31
- $animationStyle :AnimationStyleType ;
31
+ $animationStyle : AnimationStyleType ;
32
32
} > `
33
33
height: 100%;
34
34
width: 100%;
35
- .ant-card-small >.ant-card-head {
36
- background-color: ${ props => props . $headerStyle ?. background } !important;
37
- border: ${ props => props . $headerStyle ?. border } ;
38
- border-style: ${ props => props . $headerStyle ?. borderStyle } ;
39
- border-width: ${ props => props . $headerStyle ?. borderWidth } ;
40
- border-radius: ${ props => props . $headerStyle ?. radius } ;
41
- font-size: ${ props => props . $headerStyle ?. textSize } ;
42
- font-style: ${ props => props . $headerStyle ?. fontStyle } ;
43
- font-family: ${ props => props . $headerStyle ?. fontFamily } ;
44
- font-weight: ${ props => props . $headerStyle ?. textWeight } ;
45
- text-transform: ${ props => props . $headerStyle ?. textTransform } ;
46
- text-decoration: ${ props => props . $headerStyle ?. textDecoration } ;
47
- color: ${ props => props . $headerStyle ?. text } ;
48
- rotate: ${ props => props . $headerStyle ?. rotation } ;
49
- margin: ${ props => props . $headerStyle ?. margin } ;
50
- padding: ${ props => props . $headerStyle ?. padding } ;
35
+ .ant-card-small > .ant-card-head {
36
+ background-color: ${ ( props ) => props . $headerStyle ?. background } !important;
37
+ border: ${ ( props ) => props . $headerStyle ?. border } ;
38
+ border-style: ${ ( props ) => props . $headerStyle ?. borderStyle } ;
39
+ border-width: ${ ( props ) => props . $headerStyle ?. borderWidth } ;
40
+ border-radius: ${ ( props ) => props . $headerStyle ?. radius } ;
41
+ font-size: ${ ( props ) => props . $headerStyle ?. textSize } ;
42
+ font-style: ${ ( props ) => props . $headerStyle ?. fontStyle } ;
43
+ font-family: ${ ( props ) => props . $headerStyle ?. fontFamily } ;
44
+ font-weight: ${ ( props ) => props . $headerStyle ?. textWeight } ;
45
+ text-transform: ${ ( props ) => props . $headerStyle ?. textTransform } ;
46
+ text-decoration: ${ ( props ) => props . $headerStyle ?. textDecoration } ;
47
+ color: ${ ( props ) => props . $headerStyle ?. text } ;
48
+ rotate: ${ ( props ) => props . $headerStyle ?. rotation } ;
49
+ margin: ${ ( props ) => props . $headerStyle ?. margin } ;
50
+ padding: ${ ( props ) => props . $headerStyle ?. padding } ;
51
51
}
52
52
.ant-card .ant-card-actions {
53
- border-top: 1px solid ${ props => props . $style ?. border } ;
53
+ border-top: 1px solid ${ ( props ) => props . $style ?. border } ;
54
54
}
55
- .ant-card .ant-card-actions> li:not(:last-child) {
56
- border-inline-end: 1px solid ${ props => props . $style ?. border } ;
55
+ .ant-card .ant-card-actions > li:not(:last-child) {
56
+ border-inline-end: 1px solid ${ ( props ) => props . $style ?. border } ;
57
57
}
58
58
.ant-card .ant-card-actions {
59
- background-color: ${ props => props . $style ?. background } ;
59
+ background-color: ${ ( props ) => props . $style ?. background } ;
60
60
}
61
61
.ant-card .ant-card-body {
62
- background-color: ${ props => props . $bodyStyle ?. background } !important;
63
- border: ${ props => props . $bodyStyle ?. border } ;
64
- border-style: ${ props => props . $bodyStyle ?. borderStyle } ;
65
- border-width: ${ props => props . $bodyStyle ?. borderWidth } ;
66
- border-radius: ${ props => props . $bodyStyle ?. radius } ;
67
- rotate: ${ props => props . $bodyStyle ?. rotation } ;
68
- margin: ${ props => props . $bodyStyle ?. margin } ;
69
- padding: ${ props => props . $bodyStyle ?. padding } ;
62
+ background-color: ${ ( props ) => props . $bodyStyle ?. background } !important;
63
+ border: ${ ( props ) => props . $bodyStyle ?. border } ;
64
+ border-style: ${ ( props ) => props . $bodyStyle ?. borderStyle } ;
65
+ border-width: ${ ( props ) => props . $bodyStyle ?. borderWidth } ;
66
+ border-radius: ${ ( props ) => props . $bodyStyle ?. radius } ;
67
+ rotate: ${ ( props ) => props . $bodyStyle ?. rotation } ;
68
+ margin: ${ ( props ) => props . $bodyStyle ?. margin } ;
69
+ padding: ${ ( props ) => props . $bodyStyle ?. padding } ;
70
70
}
71
71
.ant-card {
72
72
display: flex;
73
73
flex-direction: column;
74
74
justify-content: space-between;
75
- background-color: ${ props => props . $style ?. background } ;
76
- border: ${ props => props . $style ?. border } ;
77
- border-style: ${ props => props . $style ?. borderStyle } ;
78
- border-radius: ${ props => props . $style ?. radius } ;
79
- border-width: ${ props => props . $style ?. borderWidth } ;
80
- ${ props => props . $animationStyle }
75
+ background-color: ${ ( props ) => props . $style ?. background } ;
76
+ border: ${ ( props ) => props . $style ?. border } ;
77
+ border-style: ${ ( props ) => props . $style ?. borderStyle } ;
78
+ border-radius: ${ ( props ) => props . $style ?. radius } ;
79
+ border-width: ${ ( props ) => props . $style ?. borderWidth } ;
80
+ ${ ( props ) => props . $animationStyle }
81
81
}
82
82
.ant-card-body {
83
- display: ${ props => props . $showMate ? '' : 'none' } ;
84
- height: ${ props => props . $cardType == 'custom' ? '100%' : 'auto' } ;
83
+ display: ${ ( props ) => ( props . $showMate ? '' : 'none' ) } ;
84
+ height: ${ ( props ) => ( props . $cardType == 'custom' ? '100%' : 'auto' ) } ;
85
85
}
86
- .ant-card-body .ant-card-meta .ant-card-meta-title{
87
- color: ${ props => props . $bodyStyle ?. text } !important;
88
- font-size: ${ props => props . $bodyStyle ?. textSize } ;
89
- font-style: ${ props => props . $bodyStyle ?. fontStyle } ;
90
- font-family: ${ props => props . $bodyStyle ?. fontFamily } ;
91
- font-weight: ${ props => props . $bodyStyle ?. textWeight } ;
92
- text-transform: ${ props => props . $bodyStyle ?. textTransform } ;
93
- text-decoration: ${ props => props . $bodyStyle ?. textDecoration } ;
86
+ .ant-card-body .ant-card-meta .ant-card-meta-title {
87
+ color: ${ ( props ) => props . $bodyStyle ?. text } !important;
88
+ font-size: ${ ( props ) => props . $bodyStyle ?. textSize } ;
89
+ font-style: ${ ( props ) => props . $bodyStyle ?. fontStyle } ;
90
+ font-family: ${ ( props ) => props . $bodyStyle ?. fontFamily } ;
91
+ font-weight: ${ ( props ) => props . $bodyStyle ?. textWeight } ;
92
+ text-transform: ${ ( props ) => props . $bodyStyle ?. textTransform } ;
93
+ text-decoration: ${ ( props ) => props . $bodyStyle ?. textDecoration } ;
94
94
}
95
- .ant-card-body .ant-card-meta .ant-card-meta-description{
96
- color: ${ props => props . $bodyStyle ?. text } !important;
97
- font-size: ${ props => props . $bodyStyle ?. textSize } ;
98
- font-style: ${ props => props . $bodyStyle ?. fontStyle } ;
99
- font-family: ${ props => props . $bodyStyle ?. fontFamily } ;
100
- font-weight: ${ props => props . $bodyStyle ?. textWeight } ;
101
- text-transform: ${ props => props . $bodyStyle ?. textTransform } ;
102
- text-decoration: ${ props => props . $bodyStyle ?. textDecoration } ;
95
+ .ant-card-body .ant-card-meta .ant-card-meta-description {
96
+ color: ${ ( props ) => props . $bodyStyle ?. text } !important;
97
+ font-size: ${ ( props ) => props . $bodyStyle ?. textSize } ;
98
+ font-style: ${ ( props ) => props . $bodyStyle ?. fontStyle } ;
99
+ font-family: ${ ( props ) => props . $bodyStyle ?. fontFamily } ;
100
+ font-weight: ${ ( props ) => props . $bodyStyle ?. textWeight } ;
101
+ text-transform: ${ ( props ) => props . $bodyStyle ?. textTransform } ;
102
+ text-decoration: ${ ( props ) => props . $bodyStyle ?. textDecoration } ;
103
103
}
104
104
` ;
105
105
0 commit comments