From 5b1815fd813a0cd9c5c941f54b7c1e177d16f3d1 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 2 Oct 2024 08:56:47 +0000 Subject: [PATCH] idk ie6 anymore, this must be an ie6 bug git-svn-id: file:///raid/svn-personal/koakuma/trunk@29 219d0f9c-2d94-d447-890a-813e76b88fe9 --- Static/style.css | 5 ++++- koakuma.cgi.in | 18 +++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Static/style.css b/Static/style.css index cc4f956..f8f9bdf 100644 --- a/Static/style.css +++ b/Static/style.css @@ -77,10 +77,13 @@ img { } #doc { - margin-right: 14em; margin-top: -20px; } +#docinside { + margin-right: 14em; +} + a { color: #8080f0; } diff --git a/koakuma.cgi.in b/koakuma.cgi.in index 80adceb..cb80d47 100644 --- a/koakuma.cgi.in +++ b/koakuma.cgi.in @@ -241,9 +241,11 @@ proc start_html {title has_toc} { rputs " $title - Koakuma" rputs " " set msie " src=\"$koakuma_png\"" + set msie2 "" if { [info exists "env(HTTP_USER_AGENT)"] } { if { [regexp {MSIE 6} "$env(HTTP_USER_AGENT)"] } { set msie " style=\"filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$koakuma_png', sizingMethod='scale');\" src=\"/static/transparent.gif\"" + set msie2 " style=\"margin-top: 20px;\"" } } rputs " " @@ -258,7 +260,12 @@ proc start_html {title has_toc} { rputs " Root" rputs "
" if { "$has_toc" == "1" } { - rputs "
" + rputs "
" + } else { + rputs "
" + } + if { "$has_toc" == "1" } { + rputs "
" rputs "
TOC
" foreach sect $toc { if { "[string range "[regsub -all { } "$sect" "-"]" 0 0]" == "-" } { @@ -269,15 +276,12 @@ proc start_html {title has_toc} { } rputs "
" } - if { "$has_toc" == "1" } { - rputs "
" - } else { - rputs "
" - } - rputs "

$title

" + rputs "
" + rputs "

$title

" } proc end_html {has_toc} { global KOAKUMA_VERSION toc + rputs "
" rputs "
" rputs "
" rputs "
" -- 2.45.2