Fossil SCM
Make the new CSS for the stats_report appear at the end of legacy CSS that does not define the same elements.
Commit
21454dda94ea795113d8f5551742b2f07e0d60d3
Parent
0bdc61b4df86957…
1 file changed
+30
-28
+30
-28
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -605,38 +605,10 @@ | ||
| 605 | 605 | @ pre.verbatim { |
| 606 | 606 | @ background-color: #f5f5f5; |
| 607 | 607 | @ padding: 0.5em; |
| 608 | 608 | @ white-space: pre-wrap; |
| 609 | 609 | @} |
| 610 | -@ | |
| 611 | -@ /* The label/value pairs on (for example) the ci page */ | |
| 612 | -@ table.label-value th { | |
| 613 | -@ vertical-align: top; | |
| 614 | -@ text-align: right; | |
| 615 | -@ padding: 0.2ex 2ex; | |
| 616 | -@ } | |
| 617 | -@ | |
| 618 | -@ /* .statistics-report-* are for the /stats_report views */ | |
| 619 | -@ .statistics-report-graph-line { | |
| 620 | -@ background-color: #446979; | |
| 621 | -@ } | |
| 622 | -@ .statistics-report-table-events th { | |
| 623 | -@ padding: 0 1em 0 1em; | |
| 624 | -@ } | |
| 625 | -@ .statistics-report-table-events td { | |
| 626 | -@ padding: 0.1em 1em 0.1em 1em; | |
| 627 | -@ } | |
| 628 | -@ .statistics-report-row-year { | |
| 629 | -@ text-align: left; | |
| 630 | -@ } | |
| 631 | -@ /* row0 and row1 are for alternating table row colors */ | |
| 632 | -@ tr.row0 { | |
| 633 | -@ background: #fff; | |
| 634 | -@ } | |
| 635 | -@ tr.row1 { | |
| 636 | -@ background-color: #dadada; | |
| 637 | -@ } | |
| 638 | 610 | ; |
| 639 | 611 | |
| 640 | 612 | |
| 641 | 613 | /* The following table contains bits of default CSS that must |
| 642 | 614 | ** be included if they are not found in the application-defined |
| @@ -1039,10 +1011,40 @@ | ||
| 1039 | 1011 | { "pre.th1error", |
| 1040 | 1012 | "format for th1 script errors", |
| 1041 | 1013 | @ white-space: pre-wrap; |
| 1042 | 1014 | @ word-wrap: break-word; |
| 1043 | 1015 | @ color: red; |
| 1016 | + }, | |
| 1017 | + { "table.tale-value th", | |
| 1018 | + "The label/value pairs on (for example) the ci page", | |
| 1019 | + @ vertical-align: top; | |
| 1020 | + @ text-align: right; | |
| 1021 | + @ padding: 0.2ex 2ex; | |
| 1022 | + }, | |
| 1023 | + { ".statistics-report-graph-line", | |
| 1024 | + "for the /stats_report views", | |
| 1025 | + @ background-color: #446979; | |
| 1026 | + }, | |
| 1027 | + { ".statistics-report-table-events th" | |
| 1028 | + "", | |
| 1029 | + @ padding: 0 1em 0 1em; | |
| 1030 | + }, | |
| 1031 | + { ".statistics-report-table-events td", | |
| 1032 | + "", | |
| 1033 | + @ padding: 0.1em 1em 0.1em 1em; | |
| 1034 | + }, | |
| 1035 | + { ".statistics-report-row-year", | |
| 1036 | + "", | |
| 1037 | + @ text-align: left; | |
| 1038 | + }, | |
| 1039 | + { "tr.row0", | |
| 1040 | + "even table row color", | |
| 1041 | + @ /* use default */ | |
| 1042 | + }, | |
| 1043 | + { "tr.row1", | |
| 1044 | + "odd table row color", | |
| 1045 | + @ /* Use default */ | |
| 1044 | 1046 | }, |
| 1045 | 1047 | { 0, |
| 1046 | 1048 | 0, |
| 1047 | 1049 | 0 |
| 1048 | 1050 | } |
| 1049 | 1051 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -605,38 +605,10 @@ | |
| 605 | @ pre.verbatim { |
| 606 | @ background-color: #f5f5f5; |
| 607 | @ padding: 0.5em; |
| 608 | @ white-space: pre-wrap; |
| 609 | @} |
| 610 | @ |
| 611 | @ /* The label/value pairs on (for example) the ci page */ |
| 612 | @ table.label-value th { |
| 613 | @ vertical-align: top; |
| 614 | @ text-align: right; |
| 615 | @ padding: 0.2ex 2ex; |
| 616 | @ } |
| 617 | @ |
| 618 | @ /* .statistics-report-* are for the /stats_report views */ |
| 619 | @ .statistics-report-graph-line { |
| 620 | @ background-color: #446979; |
| 621 | @ } |
| 622 | @ .statistics-report-table-events th { |
| 623 | @ padding: 0 1em 0 1em; |
| 624 | @ } |
| 625 | @ .statistics-report-table-events td { |
| 626 | @ padding: 0.1em 1em 0.1em 1em; |
| 627 | @ } |
| 628 | @ .statistics-report-row-year { |
| 629 | @ text-align: left; |
| 630 | @ } |
| 631 | @ /* row0 and row1 are for alternating table row colors */ |
| 632 | @ tr.row0 { |
| 633 | @ background: #fff; |
| 634 | @ } |
| 635 | @ tr.row1 { |
| 636 | @ background-color: #dadada; |
| 637 | @ } |
| 638 | ; |
| 639 | |
| 640 | |
| 641 | /* The following table contains bits of default CSS that must |
| 642 | ** be included if they are not found in the application-defined |
| @@ -1039,10 +1011,40 @@ | |
| 1039 | { "pre.th1error", |
| 1040 | "format for th1 script errors", |
| 1041 | @ white-space: pre-wrap; |
| 1042 | @ word-wrap: break-word; |
| 1043 | @ color: red; |
| 1044 | }, |
| 1045 | { 0, |
| 1046 | 0, |
| 1047 | 0 |
| 1048 | } |
| 1049 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -605,38 +605,10 @@ | |
| 605 | @ pre.verbatim { |
| 606 | @ background-color: #f5f5f5; |
| 607 | @ padding: 0.5em; |
| 608 | @ white-space: pre-wrap; |
| 609 | @} |
| 610 | ; |
| 611 | |
| 612 | |
| 613 | /* The following table contains bits of default CSS that must |
| 614 | ** be included if they are not found in the application-defined |
| @@ -1039,10 +1011,40 @@ | |
| 1011 | { "pre.th1error", |
| 1012 | "format for th1 script errors", |
| 1013 | @ white-space: pre-wrap; |
| 1014 | @ word-wrap: break-word; |
| 1015 | @ color: red; |
| 1016 | }, |
| 1017 | { "table.tale-value th", |
| 1018 | "The label/value pairs on (for example) the ci page", |
| 1019 | @ vertical-align: top; |
| 1020 | @ text-align: right; |
| 1021 | @ padding: 0.2ex 2ex; |
| 1022 | }, |
| 1023 | { ".statistics-report-graph-line", |
| 1024 | "for the /stats_report views", |
| 1025 | @ background-color: #446979; |
| 1026 | }, |
| 1027 | { ".statistics-report-table-events th" |
| 1028 | "", |
| 1029 | @ padding: 0 1em 0 1em; |
| 1030 | }, |
| 1031 | { ".statistics-report-table-events td", |
| 1032 | "", |
| 1033 | @ padding: 0.1em 1em 0.1em 1em; |
| 1034 | }, |
| 1035 | { ".statistics-report-row-year", |
| 1036 | "", |
| 1037 | @ text-align: left; |
| 1038 | }, |
| 1039 | { "tr.row0", |
| 1040 | "even table row color", |
| 1041 | @ /* use default */ |
| 1042 | }, |
| 1043 | { "tr.row1", |
| 1044 | "odd table row color", |
| 1045 | @ /* Use default */ |
| 1046 | }, |
| 1047 | { 0, |
| 1048 | 0, |
| 1049 | 0 |
| 1050 | } |
| 1051 |