From 6b93eafc290f54a2b40a892545b2a7bb1be15a0d Mon Sep 17 00:00:00 2001 From: Luca Trupiano Date: Sat, 18 Mar 2023 11:14:45 +0100 Subject: [PATCH] Aggiustamenti estetici minimap e navigazione pagine --- css/custom1_4.2.css | 19 ++++++++++++++++--- css/custom2_4.2.css | 4 +++- js/minimap.js | 8 ++++---- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/css/custom1_4.2.css b/css/custom1_4.2.css index 3629c1a..083f144 100644 --- a/css/custom1_4.2.css +++ b/css/custom1_4.2.css @@ -44,8 +44,8 @@ html, body { #colMinimap { padding-top: 63px; min-height: 600px; - min-width: 110px !important; - width: 110px !important; + min-width: 111px !important; + width: 111px !important; border-right-width: 2px !important; border-bottom-width: 2px !important; } @@ -93,6 +93,18 @@ html, body { border-bottom-left-radius: 0 !important; } + +.page-link { + position: relative; + display: block; + padding: 0.5rem 0.75rem; + margin-left: -1px; + line-height: 1.25; + color: #5f8ec2; + background-color: #fff; + border: 1px solid #dee2e6; +} + .lista-risultati:hover, .citazioneFrase:hover { cursor: pointer; } @@ -326,7 +338,8 @@ li::marker { } .minimap__viewer { - border-color: #5f8ec2; + border-color: rgba(203, 203, 192, 1); + background-color: rgba(203, 203, 192, 0.5); } /* ------- $success rgb(117, 159, 154) / #759F9A , #DEE2E6 -------- */ diff --git a/css/custom2_4.2.css b/css/custom2_4.2.css index cfa500b..11c4c6a 100644 --- a/css/custom2_4.2.css +++ b/css/custom2_4.2.css @@ -334,7 +334,9 @@ li::marker { } .minimap__viewer { - border-color: #734450; +/* border-color: #734450; */ + border-color: rgba(222, 226, 230, 1); + background-color: rgba(222, 226, 230, 0.5); } /* ------- $success rgb(5, 74, 41) / #054a29 , #DEE2E6 -------- */ diff --git a/js/minimap.js b/js/minimap.js index 95fb8af..c4e784d 100644 --- a/js/minimap.js +++ b/js/minimap.js @@ -38,13 +38,13 @@ function drawMinimap(name, onlyContent = false){ currentMinimap = name; if (currentMinimap == '#vistaFrasi') { - correctionFactor = 1.003; - //correctionFactor = 0.967; + //correctionFactor = 1.003; + correctionFactor = 1.009; scrollCorrectionFactor = 0.997; //scrollCorrectionFactor = 1; } else { correctionFactor = 1; - scrollCorrectionFactor = 1.003; + scrollCorrectionFactor = 0.997; }; initOffset = parseInt($("body").css("padding-top").replace("px", ""))+63; @@ -145,7 +145,7 @@ function showMinimap(onlyContent) { } let viewerHeight = (miniCantoHeight*realScale*heightRatio/correctionFactor)-2; // -2 = bordi - let viewerWidth = Math.min(viewerHeight/resizableRatio, maxWidth-2); // -2 bordi + let viewerWidth = Math.min(viewerHeight/resizableRatio, maxWidth-3)+2; // -3 bordi var displayminimapHeight = (miniCantoHeight*realScale)+6; //var displayminimapHeight = Math.min((miniCantoHeight*realScale)+6,maxHeight);