IMPR: Sidebar
This commit is contained in:
parent
e65f349637
commit
0959559d61
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -79,13 +79,6 @@
|
||||||
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
|
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Sticky Sidebar JavaScript Plugin.
|
|
||||||
* @version 3.3.1
|
|
||||||
* @author Ahmed Bouhuolia <a.bouhuolia@gmail.com>
|
|
||||||
* @license The MIT License (MIT)
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**!
|
/**!
|
||||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||||
* @version 1.16.1
|
* @version 1.16.1
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -77,7 +77,7 @@
|
||||||
"eslint": "^4.19.1",
|
"eslint": "^4.19.1",
|
||||||
"eslint-plugin-import": "^2.22.0",
|
"eslint-plugin-import": "^2.22.0",
|
||||||
"eslint-plugin-jquery": "^1.5.1",
|
"eslint-plugin-jquery": "^1.5.1",
|
||||||
"eslint-plugin-react": "^7.20.3",
|
"eslint-plugin-react": "^7.20.5",
|
||||||
"exports-loader": "^0.7.0",
|
"exports-loader": "^0.7.0",
|
||||||
"favicons-webpack-plugin": "0.0.9",
|
"favicons-webpack-plugin": "0.0.9",
|
||||||
"file-loader": "^5.1.0",
|
"file-loader": "^5.1.0",
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
"svg-url-loader": "^2.3.3",
|
"svg-url-loader": "^2.3.3",
|
||||||
"terser-webpack-plugin": "^2.3.7",
|
"terser-webpack-plugin": "^2.3.7",
|
||||||
"url-loader": "^0.6.2",
|
"url-loader": "^0.6.2",
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.44.1",
|
||||||
"webpack-cli": "^3.3.12",
|
"webpack-cli": "^3.3.12",
|
||||||
"webpack-dev-server": "^3.11.0",
|
"webpack-dev-server": "^3.11.0",
|
||||||
"webpack-manifest-plugin": "^1.3.2",
|
"webpack-manifest-plugin": "^1.3.2",
|
||||||
|
|
|
@ -53,9 +53,9 @@ const SidebarUI = (($) => {
|
||||||
$innerWrapper.attr('style', '');
|
$innerWrapper.attr('style', '');
|
||||||
}else if(scrollPos >= (contentOffset + contentOffsetHeight - $innerWrapper[0].offsetHeight)){
|
}else if(scrollPos >= (contentOffset + contentOffsetHeight - $innerWrapper[0].offsetHeight)){
|
||||||
// bottom pos
|
// bottom pos
|
||||||
$innerWrapper.attr('style', `position:absolute;bottom:${fontSize}px`);
|
$innerWrapper.attr('style', `position:absolute;bottom:${fontSize}px`);
|
||||||
}else {
|
}else {
|
||||||
// scrolled pos
|
// scrolled pos
|
||||||
$innerWrapper.attr('style', `position:fixed;top:${fontSize}px;width:${sidebarWidth}px`);
|
$innerWrapper.attr('style', `position:fixed;top:${fontSize}px;width:${sidebarWidth}px`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue