From 9e0b38895913af6513e975bca17ad828fedd1bf4 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 3 Mar 2011 13:51:36 +0100 Subject: design: Position reference anchors in negative space This will hopefully fix all known scrolling issues as we got rid of the master content scrolling div. Needs to be tested thoroughly on touchscreen browsers. Also, paging by the Space key works now once page is rendered. --- templates/styles.css | 15 ++++++++++----- templates/template-album.tmpl | 9 ++++++--- templates/template-index.tmpl | 9 ++++++--- 3 files changed, 22 insertions(+), 11 deletions(-) (limited to 'templates') diff --git a/templates/styles.css b/templates/styles.css index 8c3aaf2..b96f19f 100644 --- a/templates/styles.css +++ b/templates/styles.css @@ -24,11 +24,8 @@ a:hover { } div.master_content { - overflow: auto; - position: absolute; - top: 3.4em; - bottom: 1.8em; - width: 100%; + padding-top: 3.4em; + padding-bottom: 1.8em; } /****** NAVIGATION ******/ @@ -36,6 +33,7 @@ div.navigation { position: fixed; top: 0px; overflow: hidden; + z-index: 1; background-color: #606466; width: 100%; padding: 0.4em 0em 0.4em 0em; @@ -76,6 +74,7 @@ div.footer { position: fixed; bottom: 0px; overflow: hidden; + z-index: 1; text-align: center; background-color: #4F5659; width: 100%; @@ -177,6 +176,12 @@ div.exif td { } +/****** GENERAL CLASSES ******/ +div.position_marker { + position: relative; + top: -4.3em; +} + /****** ALBUM THUMBNAILS ******/ div.album_thumbs { text-align: left; diff --git a/templates/template-album.tmpl b/templates/template-album.tmpl index 0162f68..9f31fb3 100644 --- a/templates/template-album.tmpl +++ b/templates/template-album.tmpl @@ -35,7 +35,8 @@
-