# HG changeset patch # User Matti Hamalainen # Date 1521718896 -7200 # Node ID 671b7cfebf8702b52abc4afb6e301fa3204bbbad # Parent cdccda315a0f32fa1cfde345eba5f40095055ea5 Various fixes and adjustments to style. diff -r cdccda315a0f -r 671b7cfebf87 basic.css --- a/basic.css Wed Mar 21 18:39:13 2018 +0200 +++ b/basic.css Thu Mar 22 13:41:36 2018 +0200 @@ -1,9 +1,9 @@ body { - font-size: 12px; + font-size: 14px; font-family: Verdana, Arial, helvetica, sans-serif; color: white; - background: #121; + background: #454; margin: 0; padding: 0; @@ -26,6 +26,11 @@ } #imagePage { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; } h1 { @@ -48,7 +53,6 @@ border-top-left-radius: 0.5em; border-top-right-radius: 0.5em; - box-shadow: 0px -4px 4px black; } #pageInfoFooter { @@ -57,6 +61,7 @@ bottom: 0; left: 0; right: 0; + height: 1.5em; background: #565; margin: 0; @@ -82,7 +87,6 @@ display: block; text-decoration: none; position: fixed; - top: 0.25em; left: 0.15em; z-index: 30; @@ -117,8 +121,7 @@ * Albums */ div.albumHeaderText { - padding: 0.5em; - font-size: 1.25em; + padding: 0.25em; } .galleryTable { @@ -146,8 +149,8 @@ width: 100%; } -.albumTable { - border-bottom: 1px solid black; +.galleryTable + .imageTable { + border-top: 2px solid #232; } .galleryTable a, .galleryTable a:visited { @@ -172,8 +175,9 @@ * */ #pageImageBox { + position: absolute; top: 0; - bottom: 0; + bottom: 4.5em; left: 0; right: 0; } @@ -200,8 +204,8 @@ img.albumIcon { border: 0.2em solid black; - border-radius: 0.6em; - box-shadow: 0px 0px 4px black; + border-radius: 0.4em; + box-shadow: 0px 0px 2px black; } a:hover img.albumIcon, a:active img.albumIcon, a:focus img.albumIcon { @@ -280,11 +284,17 @@ } .galleryEntry div.imageCaption { - font-size: 1.25em; } -#pageImageBox div.imageCaption { +#pageImageCaption { + position: absolute; + bottom: 1.5em; + left: 0; + right: 0; + height: 2em; background: #350; + border-top: 1px solid black; + border-bottom: 1px solid black; z-index: 12; } @@ -389,7 +399,7 @@ @media screen and (min-resolution: 150dpi) { div.albumTitle, div.imageCaption { - font-size: 1.5em; + font-size: 1.2em; } #languages { @@ -406,11 +416,16 @@ } #naviBreadCrumbs { - font-size: 1.6em; + font-size: 1.5em; } - h1 { - font-size: 1.25em; + div.albumHeaderText { + background: blue; + } + + #pageImageCaption { + bottom: 0; + height: 2em; } #pageInfoFooter { @@ -421,7 +436,7 @@ font-size: 1.5em; top: auto; left: auto; - bottom: 0.5em; + bottom: 2.5em; } #pageInfoButton { @@ -443,13 +458,17 @@ @media screen and (min-resolution: 150dpi) and (orientation: portrait) { body { - font-size: 25px; + font-size: 24px; } div.galleryEntry { width: 40%; } + #pageInfoHeader { + font-size: 1.25em; + } + #pageInfoButton, #pageUpNaviButton { font-size: 2em; } diff -r cdccda315a0f -r 671b7cfebf87 mgallery.js --- a/mgallery.js Wed Mar 21 18:39:13 2018 +0200 +++ b/mgallery.js Thu Mar 22 13:41:36 2018 +0200 @@ -116,8 +116,8 @@ function mgalAdjustImageDo() { var eimg = document.getElementById("imageImage"); - var win = mgalGetElementOrWindowSize(); - var madj = 0.90; + var win = mgalGetElementOrWindowSize("pageImageBox"); + var madj = 0.99; if (eimg && win != null) { if (eimg.width > eimg.height) @@ -133,10 +133,9 @@ else { eimg.style.width = "auto"; + eimg.style.height = "100%"; if (eimg.height > win[1] * madj) eimg.style.height = (win[1] * madj)+"px"; - else - eimg.style.height = "100%"; } } adjustPID = -1; diff -r cdccda315a0f -r 671b7cfebf87 mgallery.php --- a/mgallery.php Wed Mar 21 18:39:13 2018 +0200 +++ b/mgallery.php Thu Mar 22 13:41:36 2018 +0200 @@ -603,8 +603,8 @@ "\n". mgGetNaviControlImageBoxJS($galImagesIndex, $index, "nextBtm", 1)."\n". mgGetNaviControlImageBox($galImagesIndex, $index, "next", 1)."\n". - (isset($data["caption"]) ? "
".mgGetArrStr($data, "caption", "%1")."
\n" : ""). "\n". // pageImageBox + (isset($data["caption"]) ? "
".mgGetArrStr($data, "caption", "%1")."
\n" : ""). // infoBox "
\n". mgGetArr($data, "datetime", "%1\n", "", "mgTimeStr").