From: Vincent Vanwaelscappel Date: Tue, 21 Feb 2023 11:03:19 +0000 (+0100) Subject: wait #5525 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=37aaa153b0001ad7a4683bd2a4e182d75902b9ee;p=fluidbook-toolbox.git wait #5525 @0.5 --- diff --git a/resources/linkeditor/js/linkeditor.js b/resources/linkeditor/js/linkeditor.js index c91656931..bf5de031c 100644 --- a/resources/linkeditor/js/linkeditor.js +++ b/resources/linkeditor/js/linkeditor.js @@ -428,6 +428,14 @@ LinkEditor.prototype = { return [page, page + 1]; }, + toggleWhiteOverlay: function () { + $("#linkeditor-fluidbook").toggleClass('white-overlay'); + if ($("#linkeditor-fluidbook").hasClass('white-overlay')) { + $('[data-action="toggleWhiteOverlay"]').addClass('active'); + } else { + $('[data-action="toggleWhiteOverlay"]').removeClass('active'); + } + }, // Convert global coordinates to fluidbook ones globalToFluidbook: function (x, y, onePage) { diff --git a/resources/linkeditor/style/style.sass b/resources/linkeditor/style/style.sass index ffbdf7152..973e81439 100644 --- a/resources/linkeditor/style/style.sass +++ b/resources/linkeditor/style/style.sass @@ -126,6 +126,18 @@ body, #linkeditor, html &.texts z-index: 2 + &.white-overlay + &:after + content: '' + position: absolute + top: 0 + left: 0 + width: 100% + height: 100% + z-index: 3 + pointer-events: none + background-color: rgba(255, 255, 255, 0.75) + &.single #linkeditor-page-right display: none diff --git a/resources/views/fluidbook_publication/link_editor.blade.php b/resources/views/fluidbook_publication/link_editor.blade.php index c2804b6eb..53d549a1d 100644 --- a/resources/views/fluidbook_publication/link_editor.blade.php +++ b/resources/views/fluidbook_publication/link_editor.blade.php @@ -197,6 +197,10 @@ data-tooltip="{{__('Editer les liens de l\'image supplémentaire du menu')}}"> @endif @endif +
+ + +