Fossil SCM

Add horizontal lines connecting nodes to their parent directory.

joel 2014-01-05 21:43 UTC csstree
Commit 19a8ce3732c435f6eb41fd5c7e67d7fb8c7e0076
1 file changed +12 -1
+12 -1
--- src/style.c
+++ src/style.c
@@ -790,18 +790,29 @@
790790
{ ".filetree .subdir ul",
791791
"file tree lists below subdir",
792792
@ display: block;
793793
@ margin: 0 0 .5em 7px;
794794
@ padding: .2em 0 0 12px;
795
- @ border-left: 2px dotted #aaa;
795
+ @ border-left: 2px solid #ccc;
796796
},
797797
{ ".filetree .subdir li",
798798
"file tree lists items below subdir",
799
+ @ position: relative;
799800
@ display: block;
800801
@ margin: .2em 0;
801802
@ padding: 0;
802803
},
804
+ { ".filetree .subdir li:before",
805
+ "file tree horizontal lines connecting children to parent",
806
+ @ content: '';
807
+ @ position: absolute;
808
+ @ top: .5em;
809
+ @ left: -12px;
810
+ @ margin-top: 1px;
811
+ @ width: 10px;
812
+ @ border-top: 2px solid #ccc;
813
+ },
803814
{ ".filetree a",
804815
"file tree links",
805816
@ margin-right: .5em;
806817
},
807818
{ ".filetree a:before",
808819
--- src/style.c
+++ src/style.c
@@ -790,18 +790,29 @@
790 { ".filetree .subdir ul",
791 "file tree lists below subdir",
792 @ display: block;
793 @ margin: 0 0 .5em 7px;
794 @ padding: .2em 0 0 12px;
795 @ border-left: 2px dotted #aaa;
796 },
797 { ".filetree .subdir li",
798 "file tree lists items below subdir",
 
799 @ display: block;
800 @ margin: .2em 0;
801 @ padding: 0;
802 },
 
 
 
 
 
 
 
 
 
 
803 { ".filetree a",
804 "file tree links",
805 @ margin-right: .5em;
806 },
807 { ".filetree a:before",
808
--- src/style.c
+++ src/style.c
@@ -790,18 +790,29 @@
790 { ".filetree .subdir ul",
791 "file tree lists below subdir",
792 @ display: block;
793 @ margin: 0 0 .5em 7px;
794 @ padding: .2em 0 0 12px;
795 @ border-left: 2px solid #ccc;
796 },
797 { ".filetree .subdir li",
798 "file tree lists items below subdir",
799 @ position: relative;
800 @ display: block;
801 @ margin: .2em 0;
802 @ padding: 0;
803 },
804 { ".filetree .subdir li:before",
805 "file tree horizontal lines connecting children to parent",
806 @ content: '';
807 @ position: absolute;
808 @ top: .5em;
809 @ left: -12px;
810 @ margin-top: 1px;
811 @ width: 10px;
812 @ border-top: 2px solid #ccc;
813 },
814 { ".filetree a",
815 "file tree links",
816 @ margin-right: .5em;
817 },
818 { ".filetree a:before",
819

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button