From 52fd2b7e09ce00cd63e5b2febf46edce86cfb19e Mon Sep 17 00:00:00 2001 From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr> Date: Tue, 14 Jan 2025 19:07:52 +0100 Subject: [PATCH] Add gap between play buttoon when needed --- macao/assets/custom.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/macao/assets/custom.js b/macao/assets/custom.js index b9b295d..6cb8058 100644 --- a/macao/assets/custom.js +++ b/macao/assets/custom.js @@ -24,4 +24,12 @@ $(document).ready(function() { // Replace <th> with a <td> containing the same content $(this).replaceWith(`<td>${content}</td>`); }); + + // Tricky way to add gap between play button and the next element + // like http://localhost:1313/macao-hugo/activities/mosorgmacao_fusion_ss_barre/mosmod10/mosmod11/mosetp129/pg334/ + $(".btn-play").parent().siblings().css("margin-top", "10px") + + if ($(window).width() > 900) { + $('.book-icon').hide(); + } }); -- GitLab