Skip to content
Snippets Groups Projects
Unverified Commit cca26393 authored by Clément Aubin's avatar Clément Aubin
Browse files

Revert "XWIKI-14162: Position Save buttons on a fixed-bottom area"

This reverts commit 38b4e794.
parent 8c107556
No related merge requests found
......@@ -6,18 +6,6 @@
.bottombuttons {
.buttons {
margin: 10px 0;
&.buttons-fixed {
z-index: 1030;
position: fixed;
bottom: 0;
left: 0;
right: 0;
margin: 0;
padding: 1em;
background-color: white;
box-shadow: 0 0 1em rgba(0, 0, 0, 0.3);
}
}
}
......
......@@ -370,20 +370,3 @@ function init() {
// End XWiki augmentation.
return XWiki;
}(XWiki || {}));
// Make sure the action buttons are visible at the bottom of the window.
require(['jquery'], function ($) {
var $container = $('.bottombuttons');
var $buttons = $container.find('.buttons');
var $window = $(window);
$window.on("scroll resize load click", function() {
var position = $container.offset().top + $buttons.height() - $window.scrollTop();
if (position > $window.height()) {
$buttons.addClass('buttons-fixed');
} else {
$buttons.removeClass('buttons-fixed');
}
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment