]> git.sesse.net Git - pr0n/commitdiff
Lots of IE-specific positioning fixes.
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 16:03:31 +0000 (18:03 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 16:03:31 +0000 (18:03 +0200)
pr0n-fullscreen.css
pr0n-fullscreen.js

index c52800081d09aa5b7477179aec4a5e2b20894d8a..9aab84d9b252a063a2a3b6f7da166ee9d1658fed 100644 (file)
@@ -1,12 +1,14 @@
+* {
+       margin: 0;
+       padding: 0;
+}
+
 body {
        background-color: black;
        color: white;
 body {
        background-color: black;
        color: white;
-       margin: 0;
-       padding: 0;
 }
 .container {
        text-align: center;
 }
 .container {
        text-align: center;
-/*     border: 1px solid red; */
 }
 img {
        vertical-align: middle;
 }
 img {
        vertical-align: middle;
@@ -26,8 +28,8 @@ img {
 }
 #preload {
        position: absolute;
 }
 #preload {
        position: absolute;
-       left: -2px;
-       top: -2px;
+       left: -2000px;
+       top: -2000px;
        width: 1px;
        height: 1px; 
 /*     left: 10px;
        width: 1px;
        height: 1px; 
 /*     left: 10px;
@@ -37,13 +39,10 @@ img {
 }
 
 /* IE5/6 madness */
 }
 
 /* IE5/6 madness */
-html
-{
+html {
        overflow: hidden;
 }
        overflow: hidden;
 }
-
 body
 {
        height: 100%;
 body
 {
        height: 100%;
-       overflow: auto;
 }
 }
index d28c2a4421ccbacbcec99d7266c3be6cf01ab4fb..31b51ec3d4470b4ff3c9ed5ff16fbd4290016ff4 100644 (file)
@@ -5,12 +5,12 @@ function find_width()
                return [window.innerWidth, window.innerHeight];
        } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
                // IE 6+ in 'standards compliant mode'
                return [window.innerWidth, window.innerHeight];
        } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
                // IE 6+ in 'standards compliant mode'
-               return [document.documentElement.clientWidth, document.documentElement.clientHeight - 42];
+               return [document.documentElement.clientWidth, document.documentElement.clientHeight];
        } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
                // IE 4-compatible
                return [document.body.clientWidth, document.body.clientHeight];
        }
        } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
                // IE 4-compatible
                return [document.body.clientWidth, document.body.clientHeight];
        }
-       return (null,null);
+       return [null,null];
 }
 
 /*
 }
 
 /*
@@ -95,9 +95,6 @@ function relayout()
        main.style.width = adjusted_size[0] + "px";
        main.style.height = adjusted_size[1] + "px";
        main.style.lineHeight = adjusted_size[1] + "px"; 
        main.style.width = adjusted_size[0] + "px";
        main.style.height = adjusted_size[1] + "px";
        main.style.lineHeight = adjusted_size[1] + "px"; 
-       if (document.all) {  // IE-specific
-               main.style.fontSize = adjusted_size[1] + "px";
-       }
 
        set_opacity("previous", can_go_previous() ? 0.7 : 0.1);
        set_opacity("next", can_go_next() ? 0.7 : 0.1);
 
        set_opacity("previous", can_go_previous() ? 0.7 : 0.1);
        set_opacity("next", can_go_next() ? 0.7 : 0.1);