Aggiustamenti estetici minimap e navigazione pagine

This commit is contained in:
Luca Trupiano 2023-03-18 11:14:45 +01:00
parent eedbcaee5b
commit 6b93eafc29
3 changed files with 23 additions and 8 deletions

View File

@ -44,8 +44,8 @@ html, body {
#colMinimap { #colMinimap {
padding-top: 63px; padding-top: 63px;
min-height: 600px; min-height: 600px;
min-width: 110px !important; min-width: 111px !important;
width: 110px !important; width: 111px !important;
border-right-width: 2px !important; border-right-width: 2px !important;
border-bottom-width: 2px !important; border-bottom-width: 2px !important;
} }
@ -93,6 +93,18 @@ html, body {
border-bottom-left-radius: 0 !important; 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 { .lista-risultati:hover, .citazioneFrase:hover {
cursor: pointer; cursor: pointer;
} }
@ -326,7 +338,8 @@ li::marker {
} }
.minimap__viewer { .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 -------- */ /* ------- $success rgb(117, 159, 154) / #759F9A , #DEE2E6 -------- */

View File

@ -334,7 +334,9 @@ li::marker {
} }
.minimap__viewer { .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 -------- */ /* ------- $success rgb(5, 74, 41) / #054a29 , #DEE2E6 -------- */

View File

@ -38,13 +38,13 @@ function drawMinimap(name, onlyContent = false){
currentMinimap = name; currentMinimap = name;
if (currentMinimap == '#vistaFrasi') { if (currentMinimap == '#vistaFrasi') {
correctionFactor = 1.003; //correctionFactor = 1.003;
//correctionFactor = 0.967; correctionFactor = 1.009;
scrollCorrectionFactor = 0.997; scrollCorrectionFactor = 0.997;
//scrollCorrectionFactor = 1; //scrollCorrectionFactor = 1;
} else { } else {
correctionFactor = 1; correctionFactor = 1;
scrollCorrectionFactor = 1.003; scrollCorrectionFactor = 0.997;
}; };
initOffset = parseInt($("body").css("padding-top").replace("px", ""))+63; 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 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 = (miniCantoHeight*realScale)+6;
//var displayminimapHeight = Math.min((miniCantoHeight*realScale)+6,maxHeight); //var displayminimapHeight = Math.min((miniCantoHeight*realScale)+6,maxHeight);