@comicrelief/component-library 6.1.0 → 6.1.3
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/dist/components/Atoms/Checkbox/Checkbox.js +1 -1
- package/dist/components/Atoms/Checkbox/Checkbox.test.js +1 -1
- package/dist/components/Atoms/Logo/Logo.js +0 -5
- package/dist/components/Atoms/RadioButton/RadioButton.js +1 -1
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +1 -1
- package/dist/components/Molecules/Logos/Logos.js +1 -21
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.js +1 -0
- package/src/components/Atoms/Checkbox/Checkbox.test.js +6 -0
- package/src/components/Atoms/Logo/Logo.js +0 -3
- package/src/components/Atoms/RadioButton/RadioButton.js +1 -0
- package/src/components/Atoms/RadioButton/RadioButton.test.js +6 -0
- package/src/components/Molecules/Logos/Logos.js +1 -19
- package/dist/components/Atoms/Logo/assets/big-night-logo.png +0 -0
- package/src/components/Atoms/Logo/assets/big-night-logo.png +0 -0
|
@@ -26,7 +26,7 @@ var StyledCheckboxInput = _styledComponents.default.input.attrs({
|
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "Checkbox__StyledCheckboxInput",
|
|
28
28
|
componentId: "sc-ngak0-0"
|
|
29
|
-
})(["font-size:", ";display:block;box-sizing:border-box;opacity:0;position:absolute;left:0px;width:24px;height:24px;margin:0;border:1px solid ", ";+ span{margin-right:12px;width:24px;height:24px;border-radius:4px;background-color:", ";border:1px solid ", ";float:left;}:checked + span{background:url(", ") no-repeat center;background-color:", ";border-color:", ";background-size:contain;}:focus + span{border-color:", ";border-width:1px;}"], function (_ref) {
|
|
29
|
+
})(["font-size:", ";display:block;box-sizing:border-box;opacity:0;position:absolute;left:0px;width:24px;height:24px;margin:0;border:1px solid ", ";+ span{margin-right:12px;width:24px;height:24px;border-radius:4px;background-color:", ";border:1px solid ", ";float:left;flex-shrink:0;}:checked + span{background:url(", ") no-repeat center;background-color:", ";border-color:", ";background-size:contain;}:focus + span{border-color:", ";border-width:1px;}"], function (_ref) {
|
|
30
30
|
var theme = _ref.theme;
|
|
31
31
|
return theme.fontSize('sm');
|
|
32
32
|
}, function (_ref2) {
|
|
@@ -20,5 +20,5 @@ it('renders correctly', function () {
|
|
|
20
20
|
value: "Handball",
|
|
21
21
|
label: "Handball"
|
|
22
22
|
}))).toJSON();
|
|
23
|
-
expect(tree).toMatchInlineSnapshot("\n Array [\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n display: block;\n box-sizing: border-box;\n opacity: 0;\n position: absolute;\n left: 0px;\n width: 24px;\n height: 24px;\n margin: 0;\n border: 1px solid #969598;\n }\n\n .c1 + span {\n margin-right: 12px;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n background-color: #FFFFFF;\n border: 1px solid #969598;\n float: left;\n }\n\n .c1:checked + span {\n background: url(mock.asset) no-repeat center;\n background-color: #E52630;\n border-color: #E52630;\n background-size: contain;\n }\n\n .c1:focus + span {\n border-color: #E52630;\n border-width: 1px;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: 8px;\n }\n\n <label\n className=\"c0\"\n >\n <input\n className=\"c1\"\n name=\"sport\"\n type=\"checkbox\"\n value=\"Tenis\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Tenis\n </span>\n </label>,\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n display: block;\n box-sizing: border-box;\n opacity: 0;\n position: absolute;\n left: 0px;\n width: 24px;\n height: 24px;\n margin: 0;\n border: 1px solid #969598;\n }\n\n .c1 + span {\n margin-right: 12px;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n background-color: #FFFFFF;\n border: 1px solid #969598;\n float: left;\n }\n\n .c1:checked + span {\n background: url(mock.asset) no-repeat center;\n background-color: #E52630;\n border-color: #E52630;\n background-size: contain;\n }\n\n .c1:focus + span {\n border-color: #E52630;\n border-width: 1px;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: 8px;\n }\n\n <label\n className=\"c0\"\n >\n <input\n className=\"c1\"\n name=\"sport\"\n type=\"checkbox\"\n value=\"Handball\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Handball\n </span>\n </label>,\n ]\n ");
|
|
23
|
+
expect(tree).toMatchInlineSnapshot("\n Array [\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n display: block;\n box-sizing: border-box;\n opacity: 0;\n position: absolute;\n left: 0px;\n width: 24px;\n height: 24px;\n margin: 0;\n border: 1px solid #969598;\n }\n\n .c1 + span {\n margin-right: 12px;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n background-color: #FFFFFF;\n border: 1px solid #969598;\n float: left;\n -webkit-flex-shrink: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n }\n\n .c1:checked + span {\n background: url(mock.asset) no-repeat center;\n background-color: #E52630;\n border-color: #E52630;\n background-size: contain;\n }\n\n .c1:focus + span {\n border-color: #E52630;\n border-width: 1px;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: 8px;\n }\n\n <label\n className=\"c0\"\n >\n <input\n className=\"c1\"\n name=\"sport\"\n type=\"checkbox\"\n value=\"Tenis\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Tenis\n </span>\n </label>,\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n display: block;\n box-sizing: border-box;\n opacity: 0;\n position: absolute;\n left: 0px;\n width: 24px;\n height: 24px;\n margin: 0;\n border: 1px solid #969598;\n }\n\n .c1 + span {\n margin-right: 12px;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n background-color: #FFFFFF;\n border: 1px solid #969598;\n float: left;\n -webkit-flex-shrink: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n }\n\n .c1:checked + span {\n background: url(mock.asset) no-repeat center;\n background-color: #E52630;\n border-color: #E52630;\n background-size: contain;\n }\n\n .c1:focus + span {\n border-color: #E52630;\n border-width: 1px;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: 8px;\n }\n\n <label\n className=\"c0\"\n >\n <input\n className=\"c1\"\n name=\"sport\"\n type=\"checkbox\"\n value=\"Handball\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Handball\n </span>\n </label>,\n ]\n ");
|
|
24
24
|
});
|
|
@@ -21,8 +21,6 @@ var _srLogo = _interopRequireDefault(require("./assets/sr-logo.svg"));
|
|
|
21
21
|
|
|
22
22
|
var _srGameonLogo = _interopRequireDefault(require("./assets/sr-gameon-logo.svg"));
|
|
23
23
|
|
|
24
|
-
var _bigNightLogo = _interopRequireDefault(require("./assets/big-night-logo.png"));
|
|
25
|
-
|
|
26
24
|
var Image = _styledComponents.default.img.withConfig({
|
|
27
25
|
displayName: "Logo__Image",
|
|
28
26
|
componentId: "sc-18yiye8-0"
|
|
@@ -54,9 +52,6 @@ var themeSwitcher = function themeSwitcher(theme) {
|
|
|
54
52
|
case 'Sport Relief Gameon':
|
|
55
53
|
return _srGameonLogo.default;
|
|
56
54
|
|
|
57
|
-
case 'Big Night In':
|
|
58
|
-
return _bigNightLogo.default;
|
|
59
|
-
|
|
60
55
|
default:
|
|
61
56
|
return _crLogo.default;
|
|
62
57
|
}
|
|
@@ -25,7 +25,7 @@ var _excluded = ["label", "name", "value"];
|
|
|
25
25
|
var StyledRadioInput = _styledComponents.default.input.withConfig({
|
|
26
26
|
displayName: "RadioButton__StyledRadioInput",
|
|
27
27
|
componentId: "sc-2c24wq-0"
|
|
28
|
-
})(["background-color:", ";font-size:", ";z-index:1;top:0;margin:5px 10px;width:30px;height:30px;opacity:0;left:0;right:0;+ span{left:2px;border-radius:30px;background-clip:padding-box;position:absolute;top:0px;width:30px;height:30px;border:1px solid ", ";}:checked + span{background-color:", ";border:1px solid ", ";:before{position:absolute;content:'';top:8px;left:0;right:0;background-color:", ";border-radius:30px;width:12px;height:12px;z-index:1;margin:0 auto;opacity:1;}}"], function (_ref) {
|
|
28
|
+
})(["background-color:", ";font-size:", ";z-index:1;top:0;margin:5px 10px;width:30px;height:30px;opacity:0;left:0;right:0;flex-shrink:0;+ span{left:2px;border-radius:30px;background-clip:padding-box;position:absolute;top:0px;width:30px;height:30px;border:1px solid ", ";}:checked + span{background-color:", ";border:1px solid ", ";:before{position:absolute;content:'';top:8px;left:0;right:0;background-color:", ";border-radius:30px;width:12px;height:12px;z-index:1;margin:0 auto;opacity:1;}}"], function (_ref) {
|
|
29
29
|
var color = _ref.color,
|
|
30
30
|
theme = _ref.theme;
|
|
31
31
|
return color ? theme.color(color) : theme.color('white');
|
|
@@ -22,5 +22,5 @@ it('renders correctly', function () {
|
|
|
22
22
|
value: "female",
|
|
23
23
|
label: "Female"
|
|
24
24
|
}))).toJSON();
|
|
25
|
-
expect(tree).toMatchInlineSnapshot("\n Array [\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n background-color: #FFFFFF;\n z-index: 1;\n top: 0;\n margin: 5px 10px;\n width: 30px;\n height: 30px;\n opacity: 0;\n left: 0;\n right: 0;\n }\n\n .c1 + span {\n left: 2px;\n border-radius: 30px;\n background-clip: padding-box;\n position: absolute;\n top: 0px;\n width: 30px;\n height: 30px;\n border: 1px solid #666;\n }\n\n .c1:checked + span {\n background-color: #6F3AAB;\n border: 1px solid #6F3AAB;\n }\n\n .c1:checked + span:before {\n position: absolute;\n content: '';\n top: 8px;\n left: 0;\n right: 0;\n background-color: #FFFFFF;\n border-radius: 30px;\n width: 12px;\n height: 12px;\n z-index: 1;\n margin: 0 auto;\n opacity: 1;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n }\n\n <label\n className=\"c0\"\n htmlFor=\"male\"\n >\n <input\n className=\"c1\"\n id=\"male\"\n name=\"gender\"\n type=\"radio\"\n value=\"male\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Male\n </span>\n </label>,\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n background-color: #FFFFFF;\n z-index: 1;\n top: 0;\n margin: 5px 10px;\n width: 30px;\n height: 30px;\n opacity: 0;\n left: 0;\n right: 0;\n }\n\n .c1 + span {\n left: 2px;\n border-radius: 30px;\n background-clip: padding-box;\n position: absolute;\n top: 0px;\n width: 30px;\n height: 30px;\n border: 1px solid #666;\n }\n\n .c1:checked + span {\n background-color: #6F3AAB;\n border: 1px solid #6F3AAB;\n }\n\n .c1:checked + span:before {\n position: absolute;\n content: '';\n top: 8px;\n left: 0;\n right: 0;\n background-color: #FFFFFF;\n border-radius: 30px;\n width: 12px;\n height: 12px;\n z-index: 1;\n margin: 0 auto;\n opacity: 1;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n }\n\n <label\n className=\"c0\"\n htmlFor=\"female\"\n >\n <input\n className=\"c1\"\n id=\"female\"\n name=\"gender\"\n type=\"radio\"\n value=\"female\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Female\n </span>\n </label>,\n ]\n ");
|
|
25
|
+
expect(tree).toMatchInlineSnapshot("\n Array [\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n background-color: #FFFFFF;\n z-index: 1;\n top: 0;\n margin: 5px 10px;\n width: 30px;\n height: 30px;\n opacity: 0;\n left: 0;\n right: 0;\n -webkit-flex-shrink: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n }\n\n .c1 + span {\n left: 2px;\n border-radius: 30px;\n background-clip: padding-box;\n position: absolute;\n top: 0px;\n width: 30px;\n height: 30px;\n border: 1px solid #666;\n }\n\n .c1:checked + span {\n background-color: #6F3AAB;\n border: 1px solid #6F3AAB;\n }\n\n .c1:checked + span:before {\n position: absolute;\n content: '';\n top: 8px;\n left: 0;\n right: 0;\n background-color: #FFFFFF;\n border-radius: 30px;\n width: 12px;\n height: 12px;\n z-index: 1;\n margin: 0 auto;\n opacity: 1;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n }\n\n <label\n className=\"c0\"\n htmlFor=\"male\"\n >\n <input\n className=\"c1\"\n id=\"male\"\n name=\"gender\"\n type=\"radio\"\n value=\"male\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Male\n </span>\n </label>,\n .c2 {\n font-size: 1rem;\n line-height: 1rem;\n text-transform: inherit;\n font-weight: bold;\n line-height: normal;\n font-family: 'Montserrat',Helvetica,Arial,sans-serif;\n }\n\n .c1 {\n background-color: #FFFFFF;\n z-index: 1;\n top: 0;\n margin: 5px 10px;\n width: 30px;\n height: 30px;\n opacity: 0;\n left: 0;\n right: 0;\n -webkit-flex-shrink: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n }\n\n .c1 + span {\n left: 2px;\n border-radius: 30px;\n background-clip: padding-box;\n position: absolute;\n top: 0px;\n width: 30px;\n height: 30px;\n border: 1px solid #666;\n }\n\n .c1:checked + span {\n background-color: #6F3AAB;\n border: 1px solid #6F3AAB;\n }\n\n .c1:checked + span:before {\n position: absolute;\n content: '';\n top: 8px;\n left: 0;\n right: 0;\n background-color: #FFFFFF;\n border-radius: 30px;\n width: 12px;\n height: 12px;\n z-index: 1;\n margin: 0 auto;\n opacity: 1;\n }\n\n .c0 {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-align-items: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n }\n\n <label\n className=\"c0\"\n htmlFor=\"female\"\n >\n <input\n className=\"c1\"\n id=\"female\"\n name=\"gender\"\n type=\"radio\"\n value=\"female\"\n />\n <span />\n <span\n className=\"c2\"\n color=\"inherit\"\n size=\"s\"\n >\n Female\n </span>\n </label>,\n ]\n ");
|
|
26
26
|
});
|
|
@@ -33,26 +33,6 @@ var Logos = function Logos(_ref) {
|
|
|
33
33
|
})));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
if (campaign === 'Big Night In') {
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
38
|
-
href: "/",
|
|
39
|
-
title: "Go to Comic Relief homepage"
|
|
40
|
-
}, /*#__PURE__*/_react.default.createElement(_Logo.default, {
|
|
41
|
-
rotate: true,
|
|
42
|
-
sizeSm: "50px",
|
|
43
|
-
sizeMd: "60px",
|
|
44
|
-
campaign: "Comic Relief"
|
|
45
|
-
})), /*#__PURE__*/_react.default.createElement("a", {
|
|
46
|
-
href: "/big-night-in",
|
|
47
|
-
title: "Big night in homepage"
|
|
48
|
-
}, /*#__PURE__*/_react.default.createElement(_Logo.default, {
|
|
49
|
-
rotate: false,
|
|
50
|
-
sizeSm: "100px",
|
|
51
|
-
sizeMd: "200px",
|
|
52
|
-
campaign: "Big Night In"
|
|
53
|
-
})));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
36
|
if (campaign === 'Sport Relief') {
|
|
57
37
|
return /*#__PURE__*/_react.default.createElement("a", {
|
|
58
38
|
href: "/sportrelief",
|
|
@@ -67,7 +47,7 @@ var Logos = function Logos(_ref) {
|
|
|
67
47
|
href: "/",
|
|
68
48
|
title: "Go to Comic Relief homepage"
|
|
69
49
|
}, /*#__PURE__*/_react.default.createElement(_Logo.default, {
|
|
70
|
-
rotate:
|
|
50
|
+
rotate: false,
|
|
71
51
|
campaign: "Comic Relief"
|
|
72
52
|
}));
|
|
73
53
|
};
|
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ const StyledCheckboxInput = styled.input.attrs({ type: 'checkbox' })`
|
|
|
24
24
|
background-color: ${({ theme }) => theme.color('white')};
|
|
25
25
|
border: 1px solid ${({ theme }) => theme.color('grey')};
|
|
26
26
|
float: left;
|
|
27
|
+
flex-shrink: 0;
|
|
27
28
|
}
|
|
28
29
|
:checked + span {
|
|
29
30
|
background: url(${checkBoxIcon}) no-repeat center;
|
|
@@ -42,6 +42,9 @@ it('renders correctly', () => {
|
|
|
42
42
|
background-color: #FFFFFF;
|
|
43
43
|
border: 1px solid #969598;
|
|
44
44
|
float: left;
|
|
45
|
+
-webkit-flex-shrink: 0;
|
|
46
|
+
-ms-flex-negative: 0;
|
|
47
|
+
flex-shrink: 0;
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
.c1:checked + span {
|
|
@@ -115,6 +118,9 @@ it('renders correctly', () => {
|
|
|
115
118
|
background-color: #FFFFFF;
|
|
116
119
|
border: 1px solid #969598;
|
|
117
120
|
float: left;
|
|
121
|
+
-webkit-flex-shrink: 0;
|
|
122
|
+
-ms-flex-negative: 0;
|
|
123
|
+
flex-shrink: 0;
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
.c1:checked + span {
|
|
@@ -7,7 +7,6 @@ import spacing from '../../../theme/shared/spacing';
|
|
|
7
7
|
import crLogo from './assets/cr-logo.svg';
|
|
8
8
|
import srLogo from './assets/sr-logo.svg';
|
|
9
9
|
import srLogoGameOn from './assets/sr-gameon-logo.svg';
|
|
10
|
-
import bigNiht from './assets/big-night-logo.png';
|
|
11
10
|
|
|
12
11
|
const Image = styled.img`
|
|
13
12
|
object-fit: cover;
|
|
@@ -37,8 +36,6 @@ const themeSwitcher = theme => {
|
|
|
37
36
|
return srLogo;
|
|
38
37
|
case 'Sport Relief Gameon':
|
|
39
38
|
return srLogoGameOn;
|
|
40
|
-
case 'Big Night In':
|
|
41
|
-
return bigNiht;
|
|
42
39
|
default:
|
|
43
40
|
return crLogo;
|
|
44
41
|
}
|
|
@@ -32,6 +32,9 @@ it('renders correctly', () => {
|
|
|
32
32
|
opacity: 0;
|
|
33
33
|
left: 0;
|
|
34
34
|
right: 0;
|
|
35
|
+
-webkit-flex-shrink: 0;
|
|
36
|
+
-ms-flex-negative: 0;
|
|
37
|
+
flex-shrink: 0;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
.c1 + span {
|
|
@@ -116,6 +119,9 @@ it('renders correctly', () => {
|
|
|
116
119
|
opacity: 0;
|
|
117
120
|
left: 0;
|
|
118
121
|
right: 0;
|
|
122
|
+
-webkit-flex-shrink: 0;
|
|
123
|
+
-ms-flex-negative: 0;
|
|
124
|
+
flex-shrink: 0;
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
.c1 + span {
|
|
@@ -17,24 +17,6 @@ const Logos = ({ campaign }) => {
|
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
if (campaign === 'Big Night In') {
|
|
21
|
-
return (
|
|
22
|
-
<>
|
|
23
|
-
<a href="/" title="Go to Comic Relief homepage">
|
|
24
|
-
<Logo rotate sizeSm="50px" sizeMd="60px" campaign="Comic Relief" />
|
|
25
|
-
</a>
|
|
26
|
-
<a href="/big-night-in" title="Big night in homepage">
|
|
27
|
-
<Logo
|
|
28
|
-
rotate={false}
|
|
29
|
-
sizeSm="100px"
|
|
30
|
-
sizeMd="200px"
|
|
31
|
-
campaign="Big Night In"
|
|
32
|
-
/>
|
|
33
|
-
</a>
|
|
34
|
-
</>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
20
|
if (campaign === 'Sport Relief') {
|
|
39
21
|
return (
|
|
40
22
|
<a href="/sportrelief" title="Sport Relief in homepage">
|
|
@@ -45,7 +27,7 @@ const Logos = ({ campaign }) => {
|
|
|
45
27
|
|
|
46
28
|
return (
|
|
47
29
|
<a href="/" title="Go to Comic Relief homepage">
|
|
48
|
-
<Logo rotate campaign="Comic Relief" />
|
|
30
|
+
<Logo rotate={false} campaign="Comic Relief" />
|
|
49
31
|
</a>
|
|
50
32
|
);
|
|
51
33
|
};
|
|
Binary file
|
|
Binary file
|