Skip to content

Commit

Permalink
reduced scrubber modal padding
Browse files Browse the repository at this point in the history
  • Loading branch information
garris committed Jan 28, 2018
1 parent b04f4e3 commit 474447b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
28 changes: 18 additions & 10 deletions compare/output/index_bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -27385,9 +27385,9 @@ Object.defineProperty(exports, "__esModule", {
function getPosFromImgId(imgId) {
switch (imgId) {
case 'refImage':
return 110;
return 100;
case 'testImage':
return -10;
return 0;
default:
return 50;
}
Expand Down Expand Up @@ -31694,7 +31694,7 @@ Object.defineProperty(exports, "__esModule", {
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _templateObject = _taggedTemplateLiteral(['\n display: block;\n'], ['\n display: block;\n']),
_templateObject2 = _taggedTemplateLiteral(['\n position: absolute;\n right: 60px;\n top: 35px;\n width: 30px;\n height: 30px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n'], ['\n position: absolute;\n right: 60px;\n top: 35px;\n width: 30px;\n height: 30px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n']),
_templateObject2 = _taggedTemplateLiteral(['\n position: absolute;\n right: 10px;\n top: 10px;\n width: 20px;\n height: 20px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n'], ['\n position: absolute;\n right: 10px;\n top: 10px;\n width: 20px;\n height: 20px;\n background-image: url(', ');\n background-size: 100%;\n background-repeat: no-repeat;\n background-color: transparent;\n border: none;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n }\n']),
_templateObject3 = _taggedTemplateLiteral(['\n display: block;\n margin: 0 auto;\n border: none;\n border-radius: 3px;\n background-color: ', ';\n text-align: center;\n padding: 12px 40px;\n color: ', ';\n font-size: 16px;\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus {\n outline: none;\n }\n'], ['\n display: block;\n margin: 0 auto;\n border: none;\n border-radius: 3px;\n background-color: ', ';\n text-align: center;\n padding: 12px 40px;\n color: ', ';\n font-size: 16px;\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus {\n outline: none;\n }\n']);

var _react = __webpack_require__(3);
Expand Down Expand Up @@ -31761,7 +31761,9 @@ var customStyles = {
left: '0',
border: 'none',
borderRadius: 'none',
padding: '25px 60px',
// padding: '25px 60px',
padding: '0',
overflow: 'hidden',
boxSizing: 'border-box'
}
};
Expand Down Expand Up @@ -32932,23 +32934,29 @@ function ImageScrubber(_ref) {
null,
_react2.default.createElement(
ScrubberViewBtn,
{ onClick: function onClick() {
{
onClick: function onClick() {
showScrubberRefImage();
} },
}
},
'REFERENCE'
),
_react2.default.createElement(
ScrubberViewBtn,
{ onClick: function onClick() {
{
onClick: function onClick() {
showScrubberTestImage();
} },
}
},
'TEST'
),
_react2.default.createElement(
ScrubberViewBtn,
{ onClick: function onClick() {
{
onClick: function onClick() {
showScrubber();
} },
}
},
'SCRUBBER'
)
),
Expand Down
12 changes: 7 additions & 5 deletions compare/src/components/ecosystems/ScrubberModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const Wrapper = styled.div`

const ButtonClose = styled.button`
position: absolute;
right: 60px;
top: 35px;
width: 30px;
height: 30px;
right: 10px;
top: 10px;
width: 20px;
height: 20px;
background-image: url(${iconClose});
background-size: 100%;
background-repeat: no-repeat;
Expand Down Expand Up @@ -72,7 +72,9 @@ const customStyles = {
left: '0',
border: 'none',
borderRadius: 'none',
padding: '25px 60px',
// padding: '25px 60px',
padding: '0',
overflow: 'hidden',
boxSizing: 'border-box'
}
}
Expand Down
5 changes: 2 additions & 3 deletions compare/src/reducers/scrubber.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function getPosFromImgId(imgId) {
switch (imgId) {
case 'refImage':
return 110
return 100
case 'testImage':
return -10
return 0
default:
return 50
}
Expand All @@ -12,7 +12,6 @@ function getPosFromImgId(imgId) {
const scrubber = (state = {}, action) => {
switch (action.type) {
case 'OPEN_SCRUBBER_MODAL':
console.log('>>>', action)
let targetImgId = ''
try {
targetImgId = action.value.targetImg.id
Expand Down

0 comments on commit 474447b

Please sign in to comment.