Fossil SCM
Adjust file tree CSS so file ages are closer to the filenames.
Commit
797780c3ff28b589e24dbcf73056b37d728311f1
Parent
a1e256cc83a9f79…
1 file changed
+15
-3
+15
-3
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -783,10 +783,15 @@ | ||
| 783 | 783 | { ".filetree", |
| 784 | 784 | "tree-view file browser", |
| 785 | 785 | @ margin: 1em 0; |
| 786 | 786 | @ line-height: 1.5; |
| 787 | 787 | }, |
| 788 | + { | |
| 789 | + ".filetree > ul", | |
| 790 | + "tree-view top-level list", | |
| 791 | + @ display: inline-block; | |
| 792 | + }, | |
| 788 | 793 | { ".filetree ul", |
| 789 | 794 | "tree-view lists", |
| 790 | 795 | @ margin: 0; |
| 791 | 796 | @ padding: 0; |
| 792 | 797 | @ list-style: none; |
| @@ -832,25 +837,32 @@ | ||
| 832 | 837 | }, |
| 833 | 838 | { ".filetree a", |
| 834 | 839 | "tree-view links", |
| 835 | 840 | @ position: relative; |
| 836 | 841 | @ z-index: 1; |
| 837 | - @ display: inline-block; | |
| 842 | + @ display: table-cell; | |
| 838 | 843 | @ min-height: 16px; |
| 839 | 844 | @ padding-left: 21px; |
| 840 | 845 | @ background-image: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP\/\/\/yEhIf\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14GqFXImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==); |
| 841 | 846 | @ background-position: center left; |
| 842 | 847 | @ background-repeat: no-repeat; |
| 843 | 848 | }, |
| 849 | + { "div.filetreeline", | |
| 850 | + "line of a file tree", | |
| 851 | + @ display: table; | |
| 852 | + @ width: 100%; | |
| 853 | + @ white-space: nowrap; | |
| 854 | + }, | |
| 844 | 855 | { ".filetree .dir > div.filetreeline > a", |
| 845 | 856 | "tree-view directory links", |
| 846 | 857 | @ background-image: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP/WVCIiIv\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAInlI9pwa3XYniCgQtkrAFfLXkiFo1jaXpo+jUs6b5Z/K4siDu5RPUFADs=); |
| 847 | 858 | }, |
| 848 | 859 | { "div.filetreeage", |
| 849 | 860 | "Last change floating display on the right", |
| 850 | - @ clear: right; | |
| 851 | - @ float: right; | |
| 861 | + @ display: table-cell; | |
| 862 | + @ padding-left: 3em; | |
| 863 | + @ text-align: right; | |
| 852 | 864 | }, |
| 853 | 865 | { "div.filetreeline:hover", |
| 854 | 866 | "Highlight the line of a file tree", |
| 855 | 867 | @ background-color: #eee; |
| 856 | 868 | }, |
| 857 | 869 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -783,10 +783,15 @@ | |
| 783 | { ".filetree", |
| 784 | "tree-view file browser", |
| 785 | @ margin: 1em 0; |
| 786 | @ line-height: 1.5; |
| 787 | }, |
| 788 | { ".filetree ul", |
| 789 | "tree-view lists", |
| 790 | @ margin: 0; |
| 791 | @ padding: 0; |
| 792 | @ list-style: none; |
| @@ -832,25 +837,32 @@ | |
| 832 | }, |
| 833 | { ".filetree a", |
| 834 | "tree-view links", |
| 835 | @ position: relative; |
| 836 | @ z-index: 1; |
| 837 | @ display: inline-block; |
| 838 | @ min-height: 16px; |
| 839 | @ padding-left: 21px; |
| 840 | @ background-image: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP\/\/\/yEhIf\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14GqFXImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==); |
| 841 | @ background-position: center left; |
| 842 | @ background-repeat: no-repeat; |
| 843 | }, |
| 844 | { ".filetree .dir > div.filetreeline > a", |
| 845 | "tree-view directory links", |
| 846 | @ background-image: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP/WVCIiIv\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAInlI9pwa3XYniCgQtkrAFfLXkiFo1jaXpo+jUs6b5Z/K4siDu5RPUFADs=); |
| 847 | }, |
| 848 | { "div.filetreeage", |
| 849 | "Last change floating display on the right", |
| 850 | @ clear: right; |
| 851 | @ float: right; |
| 852 | }, |
| 853 | { "div.filetreeline:hover", |
| 854 | "Highlight the line of a file tree", |
| 855 | @ background-color: #eee; |
| 856 | }, |
| 857 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -783,10 +783,15 @@ | |
| 783 | { ".filetree", |
| 784 | "tree-view file browser", |
| 785 | @ margin: 1em 0; |
| 786 | @ line-height: 1.5; |
| 787 | }, |
| 788 | { |
| 789 | ".filetree > ul", |
| 790 | "tree-view top-level list", |
| 791 | @ display: inline-block; |
| 792 | }, |
| 793 | { ".filetree ul", |
| 794 | "tree-view lists", |
| 795 | @ margin: 0; |
| 796 | @ padding: 0; |
| 797 | @ list-style: none; |
| @@ -832,25 +837,32 @@ | |
| 837 | }, |
| 838 | { ".filetree a", |
| 839 | "tree-view links", |
| 840 | @ position: relative; |
| 841 | @ z-index: 1; |
| 842 | @ display: table-cell; |
| 843 | @ min-height: 16px; |
| 844 | @ padding-left: 21px; |
| 845 | @ background-image: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP\/\/\/yEhIf\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAIvlIKpxqcfmgOUvoaqDSCxrEEfF14GqFXImJZsu73wepJzVMNxrtNTj3NATMKhpwAAOw==); |
| 846 | @ background-position: center left; |
| 847 | @ background-repeat: no-repeat; |
| 848 | }, |
| 849 | { "div.filetreeline", |
| 850 | "line of a file tree", |
| 851 | @ display: table; |
| 852 | @ width: 100%; |
| 853 | @ white-space: nowrap; |
| 854 | }, |
| 855 | { ".filetree .dir > div.filetreeline > a", |
| 856 | "tree-view directory links", |
| 857 | @ background-image: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP/WVCIiIv\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAInlI9pwa3XYniCgQtkrAFfLXkiFo1jaXpo+jUs6b5Z/K4siDu5RPUFADs=); |
| 858 | }, |
| 859 | { "div.filetreeage", |
| 860 | "Last change floating display on the right", |
| 861 | @ display: table-cell; |
| 862 | @ padding-left: 3em; |
| 863 | @ text-align: right; |
| 864 | }, |
| 865 | { "div.filetreeline:hover", |
| 866 | "Highlight the line of a file tree", |
| 867 | @ background-color: #eee; |
| 868 | }, |
| 869 |