]> Git repositories of Nishi - koakuma.git/commitdiff
idk ie6 anymore, this must be an ie6 bug
authorNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 08:56:47 +0000 (08:56 +0000)
committerNishi <nishi@nishi.boats>
Wed, 2 Oct 2024 08:56:47 +0000 (08:56 +0000)
git-svn-id: file:///raid/svn-personal/koakuma/trunk@29 219d0f9c-2d94-d447-890a-813e76b88fe9

Static/style.css
koakuma.cgi.in

index cc4f9564dad508b5c350f107c6f65efd26d9292a..f8f9bdfef62ddc97c0e3b4f08a7649f4b422e77d 100644 (file)
@@ -77,10 +77,13 @@ img {
 }
 
 #doc {
-       margin-right: 14em;
        margin-top: -20px;
 }
 
+#docinside {
+       margin-right: 14em;
+}
+
 a {
        color: #8080f0;
 }
index 80adceb00d529fc52fa9b2bebeeb71df5d5fbd58..cb80d479528254cfd30a460ff4435d28801efd54 100644 (file)
@@ -241,9 +241,11 @@ proc start_html {title has_toc} {
        rputs   "               <title>$title - Koakuma</title>"
        rputs   "               <link rel=\"stylesheet\" href=\"$css\">"
        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   "       </head>"
@@ -258,7 +260,12 @@ proc start_html {title has_toc} {
        rputs   "               <a href=\"$env(SCRIPT_NAME)\">Root</a>"
        rputs   "               <div id=\"clearfix\"></div>"
        if { "$has_toc" == "1" } {
-               rputs   "               <div id=\"toc\">"
+               rputs   "               <div id=\"doc\">"
+       } else {
+               rputs   "               <div id=\"doc-notoc\">"
+       }
+       if { "$has_toc" == "1" } {
+               rputs   "               <div id=\"toc\"$msie2>"
                rputs   "                       <div id=\"toctitle\">TOC</div>"
                foreach sect $toc {
                        if { "[string range "[regsub -all { } "$sect" "-"]" 0 0]" == "-" } {
@@ -269,15 +276,12 @@ proc start_html {title has_toc} {
                }
                rputs   "               </div>"
        }
-       if { "$has_toc" == "1" } {
-               rputs   "               <div id=\"doc\">"
-       } else {
-               rputs   "               <div id=\"doc-notoc\">"
-       }
-       rputs   "                       <h1>$title</h1>"
+       rputs   "                       <div id=\"docinside\">"
+       rputs   "                               <h1>$title</h1>"
 }
 proc end_html {has_toc} {
        global KOAKUMA_VERSION toc
+       rputs   "                       </div>"
        rputs   "               </div>"
        rputs   "               <div id=\"clearfix\"></div>"
        rputs   "               <hr>"