Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
[58500] Fix | Delete
':focus': {
[58501] Fix | Delete
border: '1px solid ' + String(color.core.borderMedium)
[58502] Fix | Delete
},
[58503] Fix | Delete
[58504] Fix | Delete
':hover': {
[58505] Fix | Delete
border: '1px solid ' + String(color.core.borderMedium)
[58506] Fix | Delete
},
[58507] Fix | Delete
[58508] Fix | Delete
':active': {
[58509] Fix | Delete
background: color.backgroundDark
[58510] Fix | Delete
}
[58511] Fix | Delete
},
[58512] Fix | Delete
[58513] Fix | Delete
DayPickerNavigation_button__horizontal: {},
[58514] Fix | Delete
[58515] Fix | Delete
DayPickerNavigation_button__horizontalDefault: {
[58516] Fix | Delete
position: 'absolute',
[58517] Fix | Delete
top: 18,
[58518] Fix | Delete
lineHeight: 0.78,
[58519] Fix | Delete
borderRadius: 3,
[58520] Fix | Delete
padding: '6px 9px'
[58521] Fix | Delete
},
[58522] Fix | Delete
[58523] Fix | Delete
DayPickerNavigation_leftButton__horizontalDefault: {
[58524] Fix | Delete
left: 22
[58525] Fix | Delete
},
[58526] Fix | Delete
[58527] Fix | Delete
DayPickerNavigation_rightButton__horizontalDefault: {
[58528] Fix | Delete
right: 22
[58529] Fix | Delete
},
[58530] Fix | Delete
[58531] Fix | Delete
DayPickerNavigation_button__vertical: {},
[58532] Fix | Delete
[58533] Fix | Delete
DayPickerNavigation_button__verticalDefault: {
[58534] Fix | Delete
padding: 5,
[58535] Fix | Delete
background: color.background,
[58536] Fix | Delete
boxShadow: '0 0 5px 2px rgba(0, 0, 0, 0.1)',
[58537] Fix | Delete
position: 'relative',
[58538] Fix | Delete
display: 'inline-block',
[58539] Fix | Delete
height: '100%',
[58540] Fix | Delete
width: '50%'
[58541] Fix | Delete
},
[58542] Fix | Delete
[58543] Fix | Delete
DayPickerNavigation_prevButton__verticalDefault: {},
[58544] Fix | Delete
[58545] Fix | Delete
DayPickerNavigation_nextButton__verticalDefault: {
[58546] Fix | Delete
borderLeft: 0
[58547] Fix | Delete
},
[58548] Fix | Delete
[58549] Fix | Delete
DayPickerNavigation_nextButton__verticalScrollableDefault: {
[58550] Fix | Delete
width: '100%'
[58551] Fix | Delete
},
[58552] Fix | Delete
[58553] Fix | Delete
DayPickerNavigation_svg__horizontal: {
[58554] Fix | Delete
height: 19,
[58555] Fix | Delete
width: 19,
[58556] Fix | Delete
fill: color.core.grayLight,
[58557] Fix | Delete
display: 'block'
[58558] Fix | Delete
},
[58559] Fix | Delete
[58560] Fix | Delete
DayPickerNavigation_svg__vertical: {
[58561] Fix | Delete
height: 42,
[58562] Fix | Delete
width: 42,
[58563] Fix | Delete
fill: color.text,
[58564] Fix | Delete
display: 'block'
[58565] Fix | Delete
}
[58566] Fix | Delete
};
[58567] Fix | Delete
})(DayPickerNavigation);
[58568] Fix | Delete
[58569] Fix | Delete
/***/ }),
[58570] Fix | Delete
[58571] Fix | Delete
/***/ "zt9T":
[58572] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[58573] Fix | Delete
[58574] Fix | Delete
"use strict";
[58575] Fix | Delete
[58576] Fix | Delete
[58577] Fix | Delete
var util = __webpack_require__("jB5C");
[58578] Fix | Delete
[58579] Fix | Delete
function scrollIntoView(elem, container, config) {
[58580] Fix | Delete
config = config || {};
[58581] Fix | Delete
// document 归一化到 window
[58582] Fix | Delete
if (container.nodeType === 9) {
[58583] Fix | Delete
container = util.getWindow(container);
[58584] Fix | Delete
}
[58585] Fix | Delete
[58586] Fix | Delete
var allowHorizontalScroll = config.allowHorizontalScroll;
[58587] Fix | Delete
var onlyScrollIfNeeded = config.onlyScrollIfNeeded;
[58588] Fix | Delete
var alignWithTop = config.alignWithTop;
[58589] Fix | Delete
var alignWithLeft = config.alignWithLeft;
[58590] Fix | Delete
var offsetTop = config.offsetTop || 0;
[58591] Fix | Delete
var offsetLeft = config.offsetLeft || 0;
[58592] Fix | Delete
var offsetBottom = config.offsetBottom || 0;
[58593] Fix | Delete
var offsetRight = config.offsetRight || 0;
[58594] Fix | Delete
[58595] Fix | Delete
allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll;
[58596] Fix | Delete
[58597] Fix | Delete
var isWin = util.isWindow(container);
[58598] Fix | Delete
var elemOffset = util.offset(elem);
[58599] Fix | Delete
var eh = util.outerHeight(elem);
[58600] Fix | Delete
var ew = util.outerWidth(elem);
[58601] Fix | Delete
var containerOffset = undefined;
[58602] Fix | Delete
var ch = undefined;
[58603] Fix | Delete
var cw = undefined;
[58604] Fix | Delete
var containerScroll = undefined;
[58605] Fix | Delete
var diffTop = undefined;
[58606] Fix | Delete
var diffBottom = undefined;
[58607] Fix | Delete
var win = undefined;
[58608] Fix | Delete
var winScroll = undefined;
[58609] Fix | Delete
var ww = undefined;
[58610] Fix | Delete
var wh = undefined;
[58611] Fix | Delete
[58612] Fix | Delete
if (isWin) {
[58613] Fix | Delete
win = container;
[58614] Fix | Delete
wh = util.height(win);
[58615] Fix | Delete
ww = util.width(win);
[58616] Fix | Delete
winScroll = {
[58617] Fix | Delete
left: util.scrollLeft(win),
[58618] Fix | Delete
top: util.scrollTop(win)
[58619] Fix | Delete
};
[58620] Fix | Delete
// elem 相对 container 可视视窗的距离
[58621] Fix | Delete
diffTop = {
[58622] Fix | Delete
left: elemOffset.left - winScroll.left - offsetLeft,
[58623] Fix | Delete
top: elemOffset.top - winScroll.top - offsetTop
[58624] Fix | Delete
};
[58625] Fix | Delete
diffBottom = {
[58626] Fix | Delete
left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight,
[58627] Fix | Delete
top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom
[58628] Fix | Delete
};
[58629] Fix | Delete
containerScroll = winScroll;
[58630] Fix | Delete
} else {
[58631] Fix | Delete
containerOffset = util.offset(container);
[58632] Fix | Delete
ch = container.clientHeight;
[58633] Fix | Delete
cw = container.clientWidth;
[58634] Fix | Delete
containerScroll = {
[58635] Fix | Delete
left: container.scrollLeft,
[58636] Fix | Delete
top: container.scrollTop
[58637] Fix | Delete
};
[58638] Fix | Delete
// elem 相对 container 可视视窗的距离
[58639] Fix | Delete
// 注意边框, offset 是边框到根节点
[58640] Fix | Delete
diffTop = {
[58641] Fix | Delete
left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft,
[58642] Fix | Delete
top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop
[58643] Fix | Delete
};
[58644] Fix | Delete
diffBottom = {
[58645] Fix | Delete
left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight,
[58646] Fix | Delete
top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom
[58647] Fix | Delete
};
[58648] Fix | Delete
}
[58649] Fix | Delete
[58650] Fix | Delete
if (diffTop.top < 0 || diffBottom.top > 0) {
[58651] Fix | Delete
// 强制向上
[58652] Fix | Delete
if (alignWithTop === true) {
[58653] Fix | Delete
util.scrollTop(container, containerScroll.top + diffTop.top);
[58654] Fix | Delete
} else if (alignWithTop === false) {
[58655] Fix | Delete
util.scrollTop(container, containerScroll.top + diffBottom.top);
[58656] Fix | Delete
} else {
[58657] Fix | Delete
// 自动调整
[58658] Fix | Delete
if (diffTop.top < 0) {
[58659] Fix | Delete
util.scrollTop(container, containerScroll.top + diffTop.top);
[58660] Fix | Delete
} else {
[58661] Fix | Delete
util.scrollTop(container, containerScroll.top + diffBottom.top);
[58662] Fix | Delete
}
[58663] Fix | Delete
}
[58664] Fix | Delete
} else {
[58665] Fix | Delete
if (!onlyScrollIfNeeded) {
[58666] Fix | Delete
alignWithTop = alignWithTop === undefined ? true : !!alignWithTop;
[58667] Fix | Delete
if (alignWithTop) {
[58668] Fix | Delete
util.scrollTop(container, containerScroll.top + diffTop.top);
[58669] Fix | Delete
} else {
[58670] Fix | Delete
util.scrollTop(container, containerScroll.top + diffBottom.top);
[58671] Fix | Delete
}
[58672] Fix | Delete
}
[58673] Fix | Delete
}
[58674] Fix | Delete
[58675] Fix | Delete
if (allowHorizontalScroll) {
[58676] Fix | Delete
if (diffTop.left < 0 || diffBottom.left > 0) {
[58677] Fix | Delete
// 强制向上
[58678] Fix | Delete
if (alignWithLeft === true) {
[58679] Fix | Delete
util.scrollLeft(container, containerScroll.left + diffTop.left);
[58680] Fix | Delete
} else if (alignWithLeft === false) {
[58681] Fix | Delete
util.scrollLeft(container, containerScroll.left + diffBottom.left);
[58682] Fix | Delete
} else {
[58683] Fix | Delete
// 自动调整
[58684] Fix | Delete
if (diffTop.left < 0) {
[58685] Fix | Delete
util.scrollLeft(container, containerScroll.left + diffTop.left);
[58686] Fix | Delete
} else {
[58687] Fix | Delete
util.scrollLeft(container, containerScroll.left + diffBottom.left);
[58688] Fix | Delete
}
[58689] Fix | Delete
}
[58690] Fix | Delete
} else {
[58691] Fix | Delete
if (!onlyScrollIfNeeded) {
[58692] Fix | Delete
alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft;
[58693] Fix | Delete
if (alignWithLeft) {
[58694] Fix | Delete
util.scrollLeft(container, containerScroll.left + diffTop.left);
[58695] Fix | Delete
} else {
[58696] Fix | Delete
util.scrollLeft(container, containerScroll.left + diffBottom.left);
[58697] Fix | Delete
}
[58698] Fix | Delete
}
[58699] Fix | Delete
}
[58700] Fix | Delete
}
[58701] Fix | Delete
}
[58702] Fix | Delete
[58703] Fix | Delete
module.exports = scrollIntoView;
[58704] Fix | Delete
[58705] Fix | Delete
/***/ })
[58706] Fix | Delete
[58707] Fix | Delete
/******/ });
[58708] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function