more library styling: make only the list scroll, don't overlap close button
authorRobert Kaiser <kairo@kairo.at>
Sun, 22 Oct 2017 17:41:50 +0000 (19:41 +0200)
committerRobert Kaiser <kairo@kairo.at>
Sun, 22 Oct 2017 17:41:50 +0000 (19:41 +0200)
index.html
style/lantea.css

index 74b5152c6a0f07777657f4a8ae40818100d19521..c3c491d2528e6b10e3ea8553f3998bf0fcb720c9 100644 (file)
@@ -149,7 +149,7 @@ upload from multiple devices.</p>
 </div>
 
 <div id="libraryArea" class="overlayArea fullScreenOverlay secondaryUI hidden">
 </div>
 
 <div id="libraryArea" class="overlayArea fullScreenOverlay secondaryUI hidden">
-The following tracks are saved on the Lantea Maps Server:
+<p>The following tracks are saved on the Lantea Maps Server:</p>
 <ul id="libTrackList">
 </ul>
 <p id="libTrackPages" class="hidden"></p>
 <ul id="libTrackList">
 </ul>
 <p id="libTrackPages" class="hidden"></p>
index 7835b4215e3f715dcd0ea9cc58fcf895aa4e55ec..589beff92bb657bd98b4a32f3af584fbc9bf0de4 100644 (file)
@@ -442,7 +442,6 @@ h1 {
   bottom: 1%;
   right: 1%;
   left: 1%;
   bottom: 1%;
   right: 1%;
   left: 1%;
-  overflow: auto;
   z-index: 10;
   background-color: rgba(15, 15, 15, 1.0);
   border: 0;
   z-index: 10;
   background-color: rgba(15, 15, 15, 1.0);
   border: 0;
@@ -472,6 +471,26 @@ h1 {
 }
 */
 
 }
 */
 
+.fullScreenOverlay p {
+  margin: 0.5em 0;
+}
+
+.fullScreenOverlay > p:first-child {
+  margin-top: 0;
+  /* leave space for close button */
+  margin-right: 1.5em;
+}
+
+#libTrackList {
+  overflow: auto;
+  /* 2em is top/bottom margin, and one line is shown above and below, with .5em margin each */
+  height: calc(100% - 5em);
+}
+
+#libTrackPages {
+  margin-bottom: 0;
+}
+
 /* small screen media adaptations */
 @media screen and (max-width: 500px),
        screen and (max-height: 500px) {
 /* small screen media adaptations */
 @media screen and (max-width: 500px),
        screen and (max-height: 500px) {