From: Steinar H. Gunderson Date: Sun, 2 Sep 2007 17:12:40 +0000 (+0200) Subject: Update the IE fullscreen CSS hacks for IE7. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=ccb2ed620dc4bb9140f64edd0942756fec546d74 Update the IE fullscreen CSS hacks for IE7. --- diff --git a/files/pr0n-fullscreen-ie.css b/files/pr0n-fullscreen-ie.css new file mode 100644 index 0000000..012386e --- /dev/null +++ b/files/pr0n-fullscreen-ie.css @@ -0,0 +1,12 @@ +/* IE centering hacks */ +#iehack { + position: absolute; + top: 50%; + left: 50%; +} +#image { + position: relative; + top: -50%; + left: -50%; +} + diff --git a/files/pr0n-fullscreen.css b/files/pr0n-fullscreen.css index 7ef5221..a61676c 100644 --- a/files/pr0n-fullscreen.css +++ b/files/pr0n-fullscreen.css @@ -11,18 +11,6 @@ body { text-align: center; } -/* IE centering hacks */ -#iehack { - _position: absolute; - _top: 50%; - _left: 50%; -} -#image { - _position: relative; - _top: -50%; - _left: -50%; -} - img, #text { vertical-align: middle; } diff --git a/perl/Sesse/pr0n/pr0n.pm b/perl/Sesse/pr0n/pr0n.pm index b65ccf0..16b6964 100644 --- a/perl/Sesse/pr0n/pr0n.pm +++ b/perl/Sesse/pr0n/pr0n.pm @@ -25,6 +25,7 @@ sub handler { $uri eq '/blah.png' || $uri eq '/faq.html' || $uri eq '/pr0n-fullscreen.css' || + $uri eq '/pr0n-fullscreen-ie.css' || $uri eq '/pr0n-fullscreen.js' || $uri eq '/previous.png' || $uri eq '/next.png' || diff --git a/templates/default/fullscreen-header b/templates/default/fullscreen-header index 179753f..0a77d72 100644 --- a/templates/default/fullscreen-header +++ b/templates/default/fullscreen-header @@ -5,6 +5,9 @@ %TITLE% +