[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] (Almost) rewrite of tools tools/xslt/svnindex.css

From: Ævar Arnfjörð Bjarmason <jeedo_at_users.sourceforge.net>
Date: 2004-01-31 20:16:36 CET

-------- Original Message --------
Subject: [PATCH] (Almost) rewrite of tools tools/xslt/svnindex.css
Date: Sat, 31 Jan 2004 13:39:37 +0000
From: Ævar Arnfjörð Bjarmason <jeedo@users.sourceforge.net>
To: dev@subversion.tigris.org

Please CC: me any replies, i'm not subscribed

Here in are patches for two files in subversion,

I modified them for two resons, first; the directory lists look crappy in
text browsers, and second i wanted to make the code more understandable for
newbies like me who intend to modify it and make their own custom directory
list.

The changes i made were mostly background changes, but some small changes to
the look as well, please consider applying all the changes of individual ones.

Changes in tools/xslt/svnindex.css:
   * added new .updir:before and .updir:after declorations
   * <li> hover draws a small border at the left side of <a links>,
   * more styles to render the document correctly due to the changes of the XSL
file
   * made color names shorter, e.g. #FFCC66 -> #fc6

--- /home/share/software/src/subversion/tools/xslt/svnindex.css 2004-01-24 17:10:06.000000000 +0000
+++ svnindex.css 2004-01-31 04:05:33.000000000 +0000
@@ -1,12 +1,30 @@
-body{
+body {
   margin: 0;
   padding: 0;
 }
 
-a {
+/*a:link {
   color: navy;
 }
 
+a:hover, a:hover:visited {
+ color: navy;
+}
+
+a:active {
+ color: navy;
+}
+
+a:visited {
+ color: navy;
+}*/
+
+ul {
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+}
+
 .footer {
   margin-top: 8em;
   padding: 0.5em 1em 0.5em;
@@ -16,6 +34,7 @@
   border-color: rgb(30%,30%,50%) navy rgb(75%,80%,85%) navy;
   background: rgb(88%,90%,92%);
   font-size: 80%;
+ font-style: italic;
 }
 
 .svn {
@@ -24,9 +43,16 @@
 
 .rev {
   margin-right: 3px;
+ margin-bottom: 3px;
   padding-left: 3px;
   text-align: left;
   font-size: 120%;
+ font-weight: normal;
+}
+
+#list {
+ margin-top: 0;
+ padding: 0;
 }
 
 .dir a {
@@ -42,43 +68,72 @@
 .path {
   margin: 3px;
   padding: 3px;
- background: #FFCC66;
+ background: #fc6;
   font-size: 120%;
 }
 
+.updir:before {
+ content: "[ ";
+}
+
+.updir:after {
+ content: " ]";
+}
+
 .updir {
   margin: 3px;
   padding: 3px;
   margin-left: 3em;
- background: #FFEEAA;
+ background: #fea;
 }
 
 .file {
   margin: 3px;
   padding: 3px;
- margin-left: 3em;
+ margin-left:3em;
+
   background: rgb(95%,95%,95%);
+ border-left: 2px rgb(95%,95%,95%) solid;
+}
+
+.file ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ border: none;
 }
 
 .file:hover {
   margin: 3px;
   padding: 3px;
   margin-left: 3em;
+
   background: rgb(100%,100%,90%);
-/* border: 1px black solid; */
+ border-left: 2px rgb(95%,95%,95%) solid;
 }
 
 .dir {
   margin: 3px;
   padding: 3px;
   margin-left: 3em;
+
   background: rgb(90%,90%,90%);
+ border-left: 2px rgb(90%,90%,90%) solid;
+}
+
+.dir ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ border: none;
 }
 
+
 .dir:hover {
   margin: 3px;
   padding: 3px;
- margin-left: 3em;
+ margin-left:3em;
+
   background: rgb(100%,100%,80%);
-/* border: 1px black solid; */
+ border-left: 2px rgb(90%,90%,90%) solid;
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jan 31 21:09:11 2004

This is an archived mail posted to the Subversion Dev mailing list.