1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Changed color picker library and moved color logic to front end

Since the old library was GPLv3 i changed the color picker to tiny-color-picker which is MIT.
Also extracted the styles to a shared view and move color calculation logic to javascript side.
This commit is contained in:
Dan Brown
2016-03-06 10:52:10 +00:00
parent 0774ecc89c
commit e744d4c82c
10 changed files with 60 additions and 109 deletions

View File

@ -95,7 +95,7 @@ $(function () {
scrollTop.style.display = 'block';
scrollTopShowing = true;
setTimeout(() => {
scrollTop.style.opacity = 1;
scrollTop.style.opacity = 0.4;
}, 1);
} else if (scrollTopShowing && document.body.scrollTop < scrollTopBreakpoint) {
scrollTop.style.opacity = 0;