]> git.decadent.org.uk Git - dak.git/commitdiff
add CSS for show_new
authorThomas Viehmann <tv@beamnet.de>
Sat, 3 May 2008 14:01:40 +0000 (14:01 +0000)
committerThomas Viehmann <tv@beamnet.de>
Sat, 3 May 2008 14:01:40 +0000 (14:01 +0000)
dak/show_new.py
web/style.css

index 34baba954940946f1184253da5e40a9cd40cf051..2596f864670cba26a96920802524fbdad9241220 100644 (file)
@@ -53,7 +53,7 @@ def html_header(name, filestoexamine):
     <meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8"
     />
     <title>%(name)s - Debian NEW package overview</title>
-    <link type="text/css" rel="stylesheet" href="style.css" />
+    <link type="text/css" rel="stylesheet" href="/style.css" />
     <link rel="shortcut icon" href="http://www.debian.org/favicon.ico" />
     <script type="text/javascript">
       //<![CDATA[
@@ -79,7 +79,7 @@ def html_header(name, filestoexamine):
       //]]>
     </script>
   </head>
-  <body>
+  <body id="NEW-details-page">
     <div id="logo">
       <a href="http://www.debian.org/">
         <img src="http://www.debian.org/logos/openlogo-nd-50.png"
@@ -89,7 +89,6 @@ def html_header(name, filestoexamine):
         alt="Debian Project" /></a>
     </div>
     <div id="titleblock">
-
       <img src="http://www.debian.org/Pics/red-upperleft.png"
       id="red-upperleft" alt="corner image"/>
       <img src="http://www.debian.org/Pics/red-lowerleft.png"
index fe4e693bbaee937c80be7bf5563db8b4e4d955a3..c46c8ab6bdfdf9cbdb5465136f172a8bd4ceb47e 100644 (file)
@@ -172,3 +172,106 @@ a:hover{
  font-size: 90%;
 }
 
+/************* NEW details pages ************/
+#NEW-details-page a img {
+       text-decoration: none;
+       border: none;
+}
+#NEW-details-page #logo {
+       text-align: center;
+       margin-bottom: 1.5em;
+}
+#NEW-details-page #titleblock {
+       position: relative;
+       width: 100%;
+       text-align: center;
+       background-color: #DF0451;
+       color: #FFFF00;
+       padding: 0.2em;
+       margin-bottom: 1.5em;
+}
+#NEW-details-page #titleblock a {
+        color: #FFFF00;
+        text-decoration: none;
+}
+#NEW-details-page #titleblock a:hover {
+       color: #FFFF00;
+       text-decoration: underline;
+}
+#NEW-details-page #red-upperleft {
+       position: absolute;
+       top: 0px;
+       left: 0px;
+}
+#NEW-details-page #red-lowerleft {
+       position: absolute;
+       bottom: 0px;
+       left: 0px;
+}
+#NEW-details-page #red-upperright {
+       position: absolute;
+       top: 0px;
+       right: 0px;
+}
+#NEW-details-page #red-lowerright {
+       position: absolute;
+       bottom: 0px;
+       right: 0px;
+}
+#NEW-details-page #titleblock .title {
+       vertical-align: middle;
+        font-weight: normal;
+       font-family: serif;
+       font-size: 22px;
+}
+#NEW-details-page #menu {
+       font-size: 80%;
+       position: fixed;
+       bottom: 1em;
+       right: 0em;
+       background: #ddd;
+       width: 9%;
+       padding: 0.5em 0 0.5em 0.5em;
+}
+#NEW-details-page #menu p {
+       margin: 0px;
+}
+#NEW-details-page .infobox {
+       width: 80%;
+       border: solid black 2px;
+       margin: 1em auto;
+}
+#NEW-details-page #menu .title,.infobox .title {
+       text-align: center;
+       font-weight: bold;
+       border-bottom: dashed 1px black;
+       margin: 0.2em;
+}
+#NEW-details-page .infobox .subtitle { 
+       text-align: center;
+       font-weight: bold;
+       border-bottom: dashed 1px black;
+       margin: 0.2em;
+}
+#NEW-details-page table.infobox {
+       padding: 0 .5em 1em .5em;
+}
+#NEW-details-page div.infobody {
+       margin: .5em 1em;
+}
+#NEW-details-page .rfc822 .key,#NEW-details-page .val {
+       font-family: monospace;
+}
+#NEW-details-page .rfc822 .key {
+       vertical-align: baseline;
+}
+#NEW-details-page .rfc822 .val {
+}
+#NEW-details-page .copyright .infobody {
+       font-family: monospace;
+       white-space: pre;
+}
+
+#NEW-details-page td pre { 
+        margin: 0pt
+}