Fossil SCM
Fixes to default styling.
Commit
e814b1e583dc92b3a532a889d19c45227ba8d16df04beba567ca79167526777c
Parent
c0a3a90b28e05da…
2 files changed
+20
-13
+6
-8
+20
-13
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -784,22 +784,13 @@ | ||
| 784 | 784 | @ font-style: italic; |
| 785 | 785 | @ font-size: small; |
| 786 | 786 | }, |
| 787 | 787 | { "table.timelineTable", |
| 788 | 788 | "the format for the timeline data table", |
| 789 | - @ border: 0; | |
| 789 | + @ border: 0px; | |
| 790 | 790 | @ border-collapse: collapse; |
| 791 | 791 | }, |
| 792 | - { "td.timelineTableCell", | |
| 793 | - "the format for the timeline data cells", | |
| 794 | - @ vertical-align: top; | |
| 795 | - @ text-align: left; | |
| 796 | - }, | |
| 797 | - { "td.timelineDetailCell", | |
| 798 | - "the format for the timeline data cells for the detail column", | |
| 799 | - @ padding-left: 2em; | |
| 800 | - }, | |
| 801 | 792 | { "tr.timelineCurrent", |
| 802 | 793 | "the format for the timeline data cell of the current checkout", |
| 803 | 794 | @ padding: .1em .2em; |
| 804 | 795 | @ border: 1px dashed #446979; |
| 805 | 796 | @ box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); |
| @@ -837,17 +828,33 @@ | ||
| 837 | 828 | "the format for the graph placeholder cells in timelines", |
| 838 | 829 | @ width: 20px; |
| 839 | 830 | @ text-align: left; |
| 840 | 831 | @ vertical-align: top; |
| 841 | 832 | }, |
| 842 | - { "span.timelineComment", | |
| 843 | - "The check-in comment text in a timeline", | |
| 833 | + { "span.timelineCompactComment", | |
| 834 | + "The check-in comment text in Compact mode", | |
| 844 | 835 | @ cursor: pointer; |
| 845 | 836 | }, |
| 846 | 837 | { "span.timelineEllipsis", |
| 847 | - "The ellipsis mark at the end of a check-in comment in a timeline", | |
| 838 | + "The ellipsis mark at the end of a compact comment in a timeline", | |
| 848 | 839 | @ cursor: pointer; |
| 840 | + }, | |
| 841 | + { ".timelineNormalCell, .timelineColumnarCell, .timelineDetailCell", | |
| 842 | + "The entry details for a normal timeline", | |
| 843 | + @ vertical-align: top; | |
| 844 | + @ text-align: left; | |
| 845 | + @ padding: 0.75em; | |
| 846 | + @ border: 1px #ccc solid; | |
| 847 | + @ border-radius: 1em; | |
| 848 | + }, | |
| 849 | + { ".timelineNormalDetail", | |
| 850 | + "Detail text for a normal timeline display", | |
| 851 | + @ font-size: 80%; | |
| 852 | + @ text-align: right; | |
| 853 | + @ float: right; | |
| 854 | + @ opacity: 0.75; | |
| 855 | + @ margin-top: 0.5em; | |
| 849 | 856 | }, |
| 850 | 857 | { "td.timelineGraph", |
| 851 | 858 | "the format for the graph placeholder cells in timelines", |
| 852 | 859 | @ width: 20px; |
| 853 | 860 | @ text-align: left; |
| 854 | 861 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -784,22 +784,13 @@ | |
| 784 | @ font-style: italic; |
| 785 | @ font-size: small; |
| 786 | }, |
| 787 | { "table.timelineTable", |
| 788 | "the format for the timeline data table", |
| 789 | @ border: 0; |
| 790 | @ border-collapse: collapse; |
| 791 | }, |
| 792 | { "td.timelineTableCell", |
| 793 | "the format for the timeline data cells", |
| 794 | @ vertical-align: top; |
| 795 | @ text-align: left; |
| 796 | }, |
| 797 | { "td.timelineDetailCell", |
| 798 | "the format for the timeline data cells for the detail column", |
| 799 | @ padding-left: 2em; |
| 800 | }, |
| 801 | { "tr.timelineCurrent", |
| 802 | "the format for the timeline data cell of the current checkout", |
| 803 | @ padding: .1em .2em; |
| 804 | @ border: 1px dashed #446979; |
| 805 | @ box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); |
| @@ -837,17 +828,33 @@ | |
| 837 | "the format for the graph placeholder cells in timelines", |
| 838 | @ width: 20px; |
| 839 | @ text-align: left; |
| 840 | @ vertical-align: top; |
| 841 | }, |
| 842 | { "span.timelineComment", |
| 843 | "The check-in comment text in a timeline", |
| 844 | @ cursor: pointer; |
| 845 | }, |
| 846 | { "span.timelineEllipsis", |
| 847 | "The ellipsis mark at the end of a check-in comment in a timeline", |
| 848 | @ cursor: pointer; |
| 849 | }, |
| 850 | { "td.timelineGraph", |
| 851 | "the format for the graph placeholder cells in timelines", |
| 852 | @ width: 20px; |
| 853 | @ text-align: left; |
| 854 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -784,22 +784,13 @@ | |
| 784 | @ font-style: italic; |
| 785 | @ font-size: small; |
| 786 | }, |
| 787 | { "table.timelineTable", |
| 788 | "the format for the timeline data table", |
| 789 | @ border: 0px; |
| 790 | @ border-collapse: collapse; |
| 791 | }, |
| 792 | { "tr.timelineCurrent", |
| 793 | "the format for the timeline data cell of the current checkout", |
| 794 | @ padding: .1em .2em; |
| 795 | @ border: 1px dashed #446979; |
| 796 | @ box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); |
| @@ -837,17 +828,33 @@ | |
| 828 | "the format for the graph placeholder cells in timelines", |
| 829 | @ width: 20px; |
| 830 | @ text-align: left; |
| 831 | @ vertical-align: top; |
| 832 | }, |
| 833 | { "span.timelineCompactComment", |
| 834 | "The check-in comment text in Compact mode", |
| 835 | @ cursor: pointer; |
| 836 | }, |
| 837 | { "span.timelineEllipsis", |
| 838 | "The ellipsis mark at the end of a compact comment in a timeline", |
| 839 | @ cursor: pointer; |
| 840 | }, |
| 841 | { ".timelineNormalCell, .timelineColumnarCell, .timelineDetailCell", |
| 842 | "The entry details for a normal timeline", |
| 843 | @ vertical-align: top; |
| 844 | @ text-align: left; |
| 845 | @ padding: 0.75em; |
| 846 | @ border: 1px #ccc solid; |
| 847 | @ border-radius: 1em; |
| 848 | }, |
| 849 | { ".timelineNormalDetail", |
| 850 | "Detail text for a normal timeline display", |
| 851 | @ font-size: 80%; |
| 852 | @ text-align: right; |
| 853 | @ float: right; |
| 854 | @ opacity: 0.75; |
| 855 | @ margin-top: 0.5em; |
| 856 | }, |
| 857 | { "td.timelineGraph", |
| 858 | "the format for the graph placeholder cells in timelines", |
| 859 | @ width: 20px; |
| 860 | @ text-align: left; |
| 861 |
+6
-8
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -458,22 +458,20 @@ | ||
| 458 | 458 | } |
| 459 | 459 | db_reset(&bisectQuery); |
| 460 | 460 | } |
| 461 | 461 | drawDetailEllipsis = (tmFlags & TIMELINE_COMPACT)!=0; |
| 462 | 462 | db_column_blob(pQuery, commentColumn, &comment); |
| 463 | + if( tmFlags & TIMELINE_COMPACT ){ | |
| 464 | + @ <span class='timelineCompactComment' onclick='toggleDetail(%d(rid))'> | |
| 465 | + }else{ | |
| 466 | + @ <span class='timeline%s(zStyle)Comment'> | |
| 467 | + } | |
| 463 | 468 | if( zType[0]!='c' ){ |
| 464 | 469 | /* Comments for anything other than a check-in are generated by |
| 465 | 470 | ** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */ |
| 466 | - @ <span class='timelineComment' onclick='toggleDetail(%d(rid))'> | |
| 467 | 471 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 468 | - @ </span> | |
| 469 | 472 | }else{ |
| 470 | - if( tmFlags & TIMELINE_COMPACT ){ | |
| 471 | - @ <span class='timelineComment' onclick='toggleDetail(%d(rid))'> | |
| 472 | - }else{ | |
| 473 | - @ <span class='timelineComment'> | |
| 474 | - } | |
| 475 | 473 | if( bCommentGitStyle ){ |
| 476 | 474 | /* Truncate comment at first blank line */ |
| 477 | 475 | int ii, jj; |
| 478 | 476 | int n = blob_size(&comment); |
| 479 | 477 | char *z = blob_str(&comment); |
| @@ -494,12 +492,12 @@ | ||
| 494 | 492 | blob_reset(&truncated); |
| 495 | 493 | drawDetailEllipsis = 0; |
| 496 | 494 | }else{ |
| 497 | 495 | cgi_printf("%W",blob_str(&comment)); |
| 498 | 496 | } |
| 499 | - @ </span> | |
| 500 | 497 | } |
| 498 | + @ </span> | |
| 501 | 499 | blob_reset(&comment); |
| 502 | 500 | |
| 503 | 501 | /* Generate extra information and hyperlinks to follow the comment. |
| 504 | 502 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 505 | 503 | */ |
| 506 | 504 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -458,22 +458,20 @@ | |
| 458 | } |
| 459 | db_reset(&bisectQuery); |
| 460 | } |
| 461 | drawDetailEllipsis = (tmFlags & TIMELINE_COMPACT)!=0; |
| 462 | db_column_blob(pQuery, commentColumn, &comment); |
| 463 | if( zType[0]!='c' ){ |
| 464 | /* Comments for anything other than a check-in are generated by |
| 465 | ** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */ |
| 466 | @ <span class='timelineComment' onclick='toggleDetail(%d(rid))'> |
| 467 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 468 | @ </span> |
| 469 | }else{ |
| 470 | if( tmFlags & TIMELINE_COMPACT ){ |
| 471 | @ <span class='timelineComment' onclick='toggleDetail(%d(rid))'> |
| 472 | }else{ |
| 473 | @ <span class='timelineComment'> |
| 474 | } |
| 475 | if( bCommentGitStyle ){ |
| 476 | /* Truncate comment at first blank line */ |
| 477 | int ii, jj; |
| 478 | int n = blob_size(&comment); |
| 479 | char *z = blob_str(&comment); |
| @@ -494,12 +492,12 @@ | |
| 494 | blob_reset(&truncated); |
| 495 | drawDetailEllipsis = 0; |
| 496 | }else{ |
| 497 | cgi_printf("%W",blob_str(&comment)); |
| 498 | } |
| 499 | @ </span> |
| 500 | } |
| 501 | blob_reset(&comment); |
| 502 | |
| 503 | /* Generate extra information and hyperlinks to follow the comment. |
| 504 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 505 | */ |
| 506 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -458,22 +458,20 @@ | |
| 458 | } |
| 459 | db_reset(&bisectQuery); |
| 460 | } |
| 461 | drawDetailEllipsis = (tmFlags & TIMELINE_COMPACT)!=0; |
| 462 | db_column_blob(pQuery, commentColumn, &comment); |
| 463 | if( tmFlags & TIMELINE_COMPACT ){ |
| 464 | @ <span class='timelineCompactComment' onclick='toggleDetail(%d(rid))'> |
| 465 | }else{ |
| 466 | @ <span class='timeline%s(zStyle)Comment'> |
| 467 | } |
| 468 | if( zType[0]!='c' ){ |
| 469 | /* Comments for anything other than a check-in are generated by |
| 470 | ** "fossil rebuild" and expect to be rendered as text/x-fossil-wiki */ |
| 471 | wiki_convert(&comment, 0, WIKI_INLINE); |
| 472 | }else{ |
| 473 | if( bCommentGitStyle ){ |
| 474 | /* Truncate comment at first blank line */ |
| 475 | int ii, jj; |
| 476 | int n = blob_size(&comment); |
| 477 | char *z = blob_str(&comment); |
| @@ -494,12 +492,12 @@ | |
| 492 | blob_reset(&truncated); |
| 493 | drawDetailEllipsis = 0; |
| 494 | }else{ |
| 495 | cgi_printf("%W",blob_str(&comment)); |
| 496 | } |
| 497 | } |
| 498 | @ </span> |
| 499 | blob_reset(&comment); |
| 500 | |
| 501 | /* Generate extra information and hyperlinks to follow the comment. |
| 502 | ** Example: "(check-in: [abcdefg], user: drh, tags: trunk)" |
| 503 | */ |
| 504 |