Fossil SCM
Let Refined skins use the full page width, align document titles, keep footers at the page bottom, and wrap forum subjects on phones.
Commit
ba1f52b9d34d88eb607a4d20267fbffccfc240b8a44a5c6270565be8a060fcab
Parent
64db2ffb995f3fb…
2 files changed
+21
-2
+21
-2
+21
-2
| --- skins/refined-dark/css.txt | ||
| +++ skins/refined-dark/css.txt | ||
| @@ -34,10 +34,15 @@ | ||
| 34 | 34 | --tint-rgb: 39 42 48; --tint-mute: 0.4; --chat-mute: 0.3; --bubble-shadow: 0.35; --popup-shadow: 0.5; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /* Base, matching the default skin's sizing */ |
| 38 | 38 | body { |
| 39 | + box-sizing: border-box; | |
| 40 | + min-height: 100vh; | |
| 41 | + min-height: 100dvh; | |
| 42 | + display: flex; | |
| 43 | + flex-direction: column; | |
| 39 | 44 | margin: 0 auto; |
| 40 | 45 | background-color: var(--bg); |
| 41 | 46 | color: var(--text); |
| 42 | 47 | font-family: var(--font); |
| 43 | 48 | font-size: 16px; |
| @@ -348,10 +353,14 @@ | ||
| 348 | 353 | } |
| 349 | 354 | input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; } |
| 350 | 355 | :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; } |
| 351 | 356 | .mainmenu a:focus-visible { outline-offset: -3px; } |
| 352 | 357 | |
| 358 | +/* Let short pages fill the viewport without overlaying long content. */ | |
| 359 | +body > .content { flex: 1 0 auto; min-width: 0; } | |
| 360 | +body > header, body > nav, body > footer { flex-shrink: 0; } | |
| 361 | + | |
| 353 | 362 | /* Footer */ |
| 354 | 363 | footer { |
| 355 | 364 | border-top: 1px solid var(--border); |
| 356 | 365 | padding: 10px; |
| 357 | 366 | font-size: 0.85em; |
| @@ -647,12 +656,17 @@ | ||
| 647 | 656 | @media screen and (min-width: 600px) { |
| 648 | 657 | body { padding-left: 20px; padding-right: 20px; } |
| 649 | 658 | .mainmenu a { padding: 12px 20px; } |
| 650 | 659 | .mainmenu { padding: 0; } |
| 651 | 660 | .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; } |
| 652 | - /* Keep running text a comfortable width on wide screens */ | |
| 653 | - .doc > .content, .wiki > .content, .forum > .content, .artifact > .content { max-width: 70em; } | |
| 661 | + /* Fossil renders a document's title outside .content. Match its h1 inset. */ | |
| 662 | + body.doc > h1.page-title { | |
| 663 | + box-sizing: border-box; | |
| 664 | + width: 100%; | |
| 665 | + margin-inline: 0; | |
| 666 | + padding-inline: 10pt; | |
| 667 | + } | |
| 654 | 668 | .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p, |
| 655 | 669 | .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul, |
| 656 | 670 | .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p, |
| 657 | 671 | .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul, |
| 658 | 672 | .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul, |
| @@ -786,10 +800,15 @@ | ||
| 786 | 800 | background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; |
| 787 | 801 | color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em; |
| 788 | 802 | margin-right: 0.6em; cursor: pointer; |
| 789 | 803 | } |
| 790 | 804 | input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); } |
| 805 | + | |
| 806 | +/* Forum subjects may shrink below a long word on narrow screens. */ | |
| 807 | +@media screen and (max-width: 600px) { | |
| 808 | + body.forum td.subject { overflow-wrap: anywhere; } | |
| 809 | +} | |
| 791 | 810 | |
| 792 | 811 | /* Long hashes in titles and headings wrap instead of widening the page */ |
| 793 | 812 | .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; } |
| 794 | 813 | .title { min-width: 0; } |
| 795 | 814 | .content :not(pre) > code { overflow-wrap: break-word; } |
| 796 | 815 |
| --- skins/refined-dark/css.txt | |
| +++ skins/refined-dark/css.txt | |
| @@ -34,10 +34,15 @@ | |
| 34 | --tint-rgb: 39 42 48; --tint-mute: 0.4; --chat-mute: 0.3; --bubble-shadow: 0.35; --popup-shadow: 0.5; |
| 35 | } |
| 36 | |
| 37 | /* Base, matching the default skin's sizing */ |
| 38 | body { |
| 39 | margin: 0 auto; |
| 40 | background-color: var(--bg); |
| 41 | color: var(--text); |
| 42 | font-family: var(--font); |
| 43 | font-size: 16px; |
| @@ -348,10 +353,14 @@ | |
| 348 | } |
| 349 | input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; } |
| 350 | :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; } |
| 351 | .mainmenu a:focus-visible { outline-offset: -3px; } |
| 352 | |
| 353 | /* Footer */ |
| 354 | footer { |
| 355 | border-top: 1px solid var(--border); |
| 356 | padding: 10px; |
| 357 | font-size: 0.85em; |
| @@ -647,12 +656,17 @@ | |
| 647 | @media screen and (min-width: 600px) { |
| 648 | body { padding-left: 20px; padding-right: 20px; } |
| 649 | .mainmenu a { padding: 12px 20px; } |
| 650 | .mainmenu { padding: 0; } |
| 651 | .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; } |
| 652 | /* Keep running text a comfortable width on wide screens */ |
| 653 | .doc > .content, .wiki > .content, .forum > .content, .artifact > .content { max-width: 70em; } |
| 654 | .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p, |
| 655 | .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul, |
| 656 | .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p, |
| 657 | .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul, |
| 658 | .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul, |
| @@ -786,10 +800,15 @@ | |
| 786 | background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; |
| 787 | color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em; |
| 788 | margin-right: 0.6em; cursor: pointer; |
| 789 | } |
| 790 | input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); } |
| 791 | |
| 792 | /* Long hashes in titles and headings wrap instead of widening the page */ |
| 793 | .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; } |
| 794 | .title { min-width: 0; } |
| 795 | .content :not(pre) > code { overflow-wrap: break-word; } |
| 796 |
| --- skins/refined-dark/css.txt | |
| +++ skins/refined-dark/css.txt | |
| @@ -34,10 +34,15 @@ | |
| 34 | --tint-rgb: 39 42 48; --tint-mute: 0.4; --chat-mute: 0.3; --bubble-shadow: 0.35; --popup-shadow: 0.5; |
| 35 | } |
| 36 | |
| 37 | /* Base, matching the default skin's sizing */ |
| 38 | body { |
| 39 | box-sizing: border-box; |
| 40 | min-height: 100vh; |
| 41 | min-height: 100dvh; |
| 42 | display: flex; |
| 43 | flex-direction: column; |
| 44 | margin: 0 auto; |
| 45 | background-color: var(--bg); |
| 46 | color: var(--text); |
| 47 | font-family: var(--font); |
| 48 | font-size: 16px; |
| @@ -348,10 +353,14 @@ | |
| 353 | } |
| 354 | input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; } |
| 355 | :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; } |
| 356 | .mainmenu a:focus-visible { outline-offset: -3px; } |
| 357 | |
| 358 | /* Let short pages fill the viewport without overlaying long content. */ |
| 359 | body > .content { flex: 1 0 auto; min-width: 0; } |
| 360 | body > header, body > nav, body > footer { flex-shrink: 0; } |
| 361 | |
| 362 | /* Footer */ |
| 363 | footer { |
| 364 | border-top: 1px solid var(--border); |
| 365 | padding: 10px; |
| 366 | font-size: 0.85em; |
| @@ -647,12 +656,17 @@ | |
| 656 | @media screen and (min-width: 600px) { |
| 657 | body { padding-left: 20px; padding-right: 20px; } |
| 658 | .mainmenu a { padding: 12px 20px; } |
| 659 | .mainmenu { padding: 0; } |
| 660 | .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; } |
| 661 | /* Fossil renders a document's title outside .content. Match its h1 inset. */ |
| 662 | body.doc > h1.page-title { |
| 663 | box-sizing: border-box; |
| 664 | width: 100%; |
| 665 | margin-inline: 0; |
| 666 | padding-inline: 10pt; |
| 667 | } |
| 668 | .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p, |
| 669 | .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul, |
| 670 | .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p, |
| 671 | .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul, |
| 672 | .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul, |
| @@ -786,10 +800,15 @@ | |
| 800 | background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; |
| 801 | color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em; |
| 802 | margin-right: 0.6em; cursor: pointer; |
| 803 | } |
| 804 | input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); } |
| 805 | |
| 806 | /* Forum subjects may shrink below a long word on narrow screens. */ |
| 807 | @media screen and (max-width: 600px) { |
| 808 | body.forum td.subject { overflow-wrap: anywhere; } |
| 809 | } |
| 810 | |
| 811 | /* Long hashes in titles and headings wrap instead of widening the page */ |
| 812 | .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; } |
| 813 | .title { min-width: 0; } |
| 814 | .content :not(pre) > code { overflow-wrap: break-word; } |
| 815 |
+21
-2
| --- skins/refined-light/css.txt | ||
| +++ skins/refined-light/css.txt | ||
| @@ -35,10 +35,15 @@ | ||
| 35 | 35 | --veil: 0; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /* Base, matching the default skin's sizing */ |
| 39 | 39 | body { |
| 40 | + box-sizing: border-box; | |
| 41 | + min-height: 100vh; | |
| 42 | + min-height: 100dvh; | |
| 43 | + display: flex; | |
| 44 | + flex-direction: column; | |
| 40 | 45 | margin: 0 auto; |
| 41 | 46 | background-color: var(--bg); |
| 42 | 47 | color: var(--text); |
| 43 | 48 | font-family: var(--font); |
| 44 | 49 | font-size: 16px; |
| @@ -349,10 +354,14 @@ | ||
| 349 | 354 | } |
| 350 | 355 | input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; } |
| 351 | 356 | :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; } |
| 352 | 357 | .mainmenu a:focus-visible { outline-offset: -3px; } |
| 353 | 358 | |
| 359 | +/* Let short pages fill the viewport without overlaying long content. */ | |
| 360 | +body > .content { flex: 1 0 auto; min-width: 0; } | |
| 361 | +body > header, body > nav, body > footer { flex-shrink: 0; } | |
| 362 | + | |
| 354 | 363 | /* Footer */ |
| 355 | 364 | footer { |
| 356 | 365 | border-top: 1px solid var(--border); |
| 357 | 366 | padding: 10px; |
| 358 | 367 | font-size: 0.85em; |
| @@ -634,12 +643,17 @@ | ||
| 634 | 643 | @media screen and (min-width: 600px) { |
| 635 | 644 | body { padding-left: 20px; padding-right: 20px; } |
| 636 | 645 | .mainmenu a { padding: 12px 20px; } |
| 637 | 646 | .mainmenu { padding: 0; } |
| 638 | 647 | .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; } |
| 639 | - /* Keep running text a comfortable width on wide screens */ | |
| 640 | - .doc > .content, .wiki > .content, .forum > .content, .artifact > .content { max-width: 70em; } | |
| 648 | + /* Fossil renders a document's title outside .content. Match its h1 inset. */ | |
| 649 | + body.doc > h1.page-title { | |
| 650 | + box-sizing: border-box; | |
| 651 | + width: 100%; | |
| 652 | + margin-inline: 0; | |
| 653 | + padding-inline: 10pt; | |
| 654 | + } | |
| 641 | 655 | .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p, |
| 642 | 656 | .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul, |
| 643 | 657 | .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p, |
| 644 | 658 | .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul, |
| 645 | 659 | .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul, |
| @@ -773,10 +787,15 @@ | ||
| 773 | 787 | background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; |
| 774 | 788 | color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em; |
| 775 | 789 | margin-right: 0.6em; cursor: pointer; |
| 776 | 790 | } |
| 777 | 791 | input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); } |
| 792 | + | |
| 793 | +/* Forum subjects may shrink below a long word on narrow screens. */ | |
| 794 | +@media screen and (max-width: 600px) { | |
| 795 | + body.forum td.subject { overflow-wrap: anywhere; } | |
| 796 | +} | |
| 778 | 797 | |
| 779 | 798 | /* Long hashes in titles and headings wrap instead of widening the page */ |
| 780 | 799 | .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; } |
| 781 | 800 | .title { min-width: 0; } |
| 782 | 801 | .content :not(pre) > code { overflow-wrap: break-word; } |
| 783 | 802 |
| --- skins/refined-light/css.txt | |
| +++ skins/refined-light/css.txt | |
| @@ -35,10 +35,15 @@ | |
| 35 | --veil: 0; |
| 36 | } |
| 37 | |
| 38 | /* Base, matching the default skin's sizing */ |
| 39 | body { |
| 40 | margin: 0 auto; |
| 41 | background-color: var(--bg); |
| 42 | color: var(--text); |
| 43 | font-family: var(--font); |
| 44 | font-size: 16px; |
| @@ -349,10 +354,14 @@ | |
| 349 | } |
| 350 | input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; } |
| 351 | :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; } |
| 352 | .mainmenu a:focus-visible { outline-offset: -3px; } |
| 353 | |
| 354 | /* Footer */ |
| 355 | footer { |
| 356 | border-top: 1px solid var(--border); |
| 357 | padding: 10px; |
| 358 | font-size: 0.85em; |
| @@ -634,12 +643,17 @@ | |
| 634 | @media screen and (min-width: 600px) { |
| 635 | body { padding-left: 20px; padding-right: 20px; } |
| 636 | .mainmenu a { padding: 12px 20px; } |
| 637 | .mainmenu { padding: 0; } |
| 638 | .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; } |
| 639 | /* Keep running text a comfortable width on wide screens */ |
| 640 | .doc > .content, .wiki > .content, .forum > .content, .artifact > .content { max-width: 70em; } |
| 641 | .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p, |
| 642 | .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul, |
| 643 | .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p, |
| 644 | .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul, |
| 645 | .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul, |
| @@ -773,10 +787,15 @@ | |
| 773 | background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; |
| 774 | color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em; |
| 775 | margin-right: 0.6em; cursor: pointer; |
| 776 | } |
| 777 | input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); } |
| 778 | |
| 779 | /* Long hashes in titles and headings wrap instead of widening the page */ |
| 780 | .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; } |
| 781 | .title { min-width: 0; } |
| 782 | .content :not(pre) > code { overflow-wrap: break-word; } |
| 783 |
| --- skins/refined-light/css.txt | |
| +++ skins/refined-light/css.txt | |
| @@ -35,10 +35,15 @@ | |
| 35 | --veil: 0; |
| 36 | } |
| 37 | |
| 38 | /* Base, matching the default skin's sizing */ |
| 39 | body { |
| 40 | box-sizing: border-box; |
| 41 | min-height: 100vh; |
| 42 | min-height: 100dvh; |
| 43 | display: flex; |
| 44 | flex-direction: column; |
| 45 | margin: 0 auto; |
| 46 | background-color: var(--bg); |
| 47 | color: var(--text); |
| 48 | font-family: var(--font); |
| 49 | font-size: 16px; |
| @@ -349,10 +354,14 @@ | |
| 354 | } |
| 355 | input[type=submit]:disabled, input[type=button]:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; } |
| 356 | :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; } |
| 357 | .mainmenu a:focus-visible { outline-offset: -3px; } |
| 358 | |
| 359 | /* Let short pages fill the viewport without overlaying long content. */ |
| 360 | body > .content { flex: 1 0 auto; min-width: 0; } |
| 361 | body > header, body > nav, body > footer { flex-shrink: 0; } |
| 362 | |
| 363 | /* Footer */ |
| 364 | footer { |
| 365 | border-top: 1px solid var(--border); |
| 366 | padding: 10px; |
| 367 | font-size: 0.85em; |
| @@ -634,12 +643,17 @@ | |
| 643 | @media screen and (min-width: 600px) { |
| 644 | body { padding-left: 20px; padding-right: 20px; } |
| 645 | .mainmenu a { padding: 12px 20px; } |
| 646 | .mainmenu { padding: 0; } |
| 647 | .content dd, .content dt, .content div, .content li, .content p, .content table { line-height: 1.45em; } |
| 648 | /* Fossil renders a document's title outside .content. Match its h1 inset. */ |
| 649 | body.doc > h1.page-title { |
| 650 | box-sizing: border-box; |
| 651 | width: 100%; |
| 652 | margin-inline: 0; |
| 653 | padding-inline: 10pt; |
| 654 | } |
| 655 | .doc > .content > p, .doc > .content > .markdown > p, .doc > .content > .fossil-doc > p, |
| 656 | .doc > .content > ol, .doc > .content > ul, .doc > .content > .markdown > ol, .doc > .content > .markdown > ul, |
| 657 | .wiki > .content > p, .wiki > .content > .markdown > p, .wiki > .content > .fossil-doc > p, |
| 658 | .wiki > .content > ol, .wiki > .content > ul, .wiki > .content > .markdown > ol, .wiki > .content > .markdown > ul, |
| 659 | .artifact > .content > .markdown > p, .artifact > .content > .markdown > ol, .artifact > .content > .markdown > ul, |
| @@ -773,10 +787,15 @@ | |
| 787 | background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; |
| 788 | color: var(--text); font-family: var(--font); font-size: 0.95em; padding: 0.35em 0.8em; |
| 789 | margin-right: 0.6em; cursor: pointer; |
| 790 | } |
| 791 | input[type=file]::file-selector-button:hover { background: var(--btn-hover); border-color: var(--muted); } |
| 792 | |
| 793 | /* Forum subjects may shrink below a long word on narrow screens. */ |
| 794 | @media screen and (max-width: 600px) { |
| 795 | body.forum td.subject { overflow-wrap: anywhere; } |
| 796 | } |
| 797 | |
| 798 | /* Long hashes in titles and headings wrap instead of widening the page */ |
| 799 | .title, span.page-title, .content h1, .content h2, .content h3 { overflow-wrap: anywhere; } |
| 800 | .title { min-width: 0; } |
| 801 | .content :not(pre) > code { overflow-wrap: break-word; } |
| 802 |