@arcblock/ux 1.16.23 → 1.16.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Footer/index.js +7 -6
- package/package.json +4 -4
- package/src/Footer/index.js +38 -12
package/lib/Footer/index.js
CHANGED
|
@@ -47,14 +47,15 @@ function Footer(props) {
|
|
|
47
47
|
className: "footer-brand"
|
|
48
48
|
}, brand)), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
49
49
|
component: "p",
|
|
50
|
-
className: "footer-item"
|
|
50
|
+
className: "footer-item",
|
|
51
|
+
style: {
|
|
52
|
+
justifyContent: 'flex-end',
|
|
53
|
+
flexShrink: 0
|
|
54
|
+
}
|
|
51
55
|
}, "Powered by", /*#__PURE__*/_react.default.createElement(_Logo.default, {
|
|
52
56
|
mode: dark ? 'light' : 'dark',
|
|
53
57
|
layout: "horizontal",
|
|
54
|
-
|
|
55
|
-
transform: 'scale(0.6)',
|
|
56
|
-
opacity: 0.5
|
|
57
|
-
}
|
|
58
|
+
className: "logo-container"
|
|
58
59
|
}))));
|
|
59
60
|
}
|
|
60
61
|
|
|
@@ -76,4 +77,4 @@ Footer.defaultProps = {
|
|
|
76
77
|
const Container = _styledComponents.default.div.withConfig({
|
|
77
78
|
displayName: "Footer__Container",
|
|
78
79
|
componentId: "sc-1qpifuv-0"
|
|
79
|
-
})(["margin-top:64px;padding:24px 0 32px;border-top:1px solid ", ";box-sizing:border-box;width:100
|
|
80
|
+
})(["margin-top:64px;padding:24px 0 32px;border-top:1px solid ", ";box-sizing:border-box;width:100%;@media (max-width:540px){padding:8px 0;}.footer{display:flex;align-items:center;justify-content:space-between;.footer-item{color:", ";display:flex;align-items:center;flex-wrap:wrap;font-size:0.9rem;}.footer-brand{margin-left:8px;margin-right:8px;}.logo-container{margin:0 24px;width:90px;opacity:0.5;}@media (max-width:540px){.footer-item{font-size:0.7rem;}.logo-container{margin:0 0 0 16px;width:70px;height:40px;}}@media (max-width:380px){.footer-item{font-size:0.65rem;}.logo-container{margin:0 0 0 8px;height:24px;}}}"], props => props.dark ? props.theme.palette.grey[900] : '#dee2e7', props => props.theme.palette.grey[900]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.24",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"react": ">=16.12.0",
|
|
54
54
|
"react-ga": "^2.7.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a23dc693aeb4487ddd6305666aece71f04cdbd49",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@arcblock/icons": "^1.16.
|
|
59
|
-
"@arcblock/react-hooks": "^1.16.
|
|
58
|
+
"@arcblock/icons": "^1.16.24",
|
|
59
|
+
"@arcblock/react-hooks": "^1.16.24",
|
|
60
60
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
61
61
|
"@material-ui/core": "^4.12.3",
|
|
62
62
|
"@material-ui/icons": "4.11.2",
|
package/src/Footer/index.js
CHANGED
|
@@ -21,13 +21,12 @@ export default function Footer(props) {
|
|
|
21
21
|
<span className="footer-copy">© Copyright {copyYear} </span>
|
|
22
22
|
<span className="footer-brand">{brand}</span>
|
|
23
23
|
</Typography>
|
|
24
|
-
<Typography
|
|
24
|
+
<Typography
|
|
25
|
+
component="p"
|
|
26
|
+
className="footer-item"
|
|
27
|
+
style={{ justifyContent: 'flex-end', flexShrink: 0 }}>
|
|
25
28
|
Powered by
|
|
26
|
-
<Logo
|
|
27
|
-
mode={dark ? 'light' : 'dark'}
|
|
28
|
-
layout="horizontal"
|
|
29
|
-
style={{ transform: 'scale(0.6)', opacity: 0.5 }}
|
|
30
|
-
/>
|
|
29
|
+
<Logo mode={dark ? 'light' : 'dark'} layout="horizontal" className="logo-container" />
|
|
31
30
|
</Typography>
|
|
32
31
|
</Typography>
|
|
33
32
|
</Container>
|
|
@@ -57,17 +56,15 @@ const Container = styled.div`
|
|
|
57
56
|
box-sizing: border-box;
|
|
58
57
|
width: 100%;
|
|
59
58
|
|
|
59
|
+
@media (max-width: 540px) {
|
|
60
|
+
padding: 8px 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
60
63
|
.footer {
|
|
61
64
|
display: flex;
|
|
62
65
|
align-items: center;
|
|
63
66
|
justify-content: space-between;
|
|
64
67
|
|
|
65
|
-
@media (max-width: 540px) {
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
align-items: flex-start;
|
|
68
|
-
justify-content: flex-start;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
68
|
.footer-item {
|
|
72
69
|
color: ${props => props.theme.palette.grey[900]};
|
|
73
70
|
display: flex;
|
|
@@ -80,5 +77,34 @@ const Container = styled.div`
|
|
|
80
77
|
margin-left: 8px;
|
|
81
78
|
margin-right: 8px;
|
|
82
79
|
}
|
|
80
|
+
|
|
81
|
+
.logo-container {
|
|
82
|
+
margin: 0 24px;
|
|
83
|
+
width: 90px;
|
|
84
|
+
opacity: 0.5;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (max-width: 540px) {
|
|
88
|
+
.footer-item {
|
|
89
|
+
font-size: 0.7rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.logo-container {
|
|
93
|
+
margin: 0 0 0 16px;
|
|
94
|
+
width: 70px;
|
|
95
|
+
height: 40px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (max-width: 380px) {
|
|
100
|
+
.footer-item {
|
|
101
|
+
font-size: 0.65rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.logo-container {
|
|
105
|
+
margin: 0 0 0 8px;
|
|
106
|
+
height: 24px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
83
109
|
}
|
|
84
110
|
`;
|