|
3 | 3 | @namespace https://github.com/xthexder/wide-github |
4 | 4 | @description Change all GitHub repository and gist pages to be full width and dynamically sized. |
5 | 5 | @author xthexder |
6 | | -@copyright 2013-2023, xthexder (https://github.com/xthexder) |
| 6 | +@copyright 2013-2024, xthexder (https://github.com/xthexder) |
7 | 7 | @contributor Jason Frey (https://github.com/Fryguy) |
8 | 8 | @contributor Marti Martz (https://github.com/Martii) |
9 | 9 | @contributor Paul "Joey" Clark (https://github.com/joeytwiddle) |
10 | 10 | @contributor Robert Laverty (https://github.com/roblav96) |
11 | 11 | @contributor Amir Meimari (https://github.com/amirmeimari) |
12 | 12 | @license MIT; https://raw.githubusercontent.com/xthexder/wide-github/master/LICENSE |
13 | | -@version 1.6.5 |
| 13 | +@version 1.6.6 |
14 | 14 | @homepageURL https://github.com/xthexder/wide-github |
15 | 15 | @supportURL https://github.com/xthexder/wide-github/issues |
16 | 16 | ==/UserStyle== */ |
17 | 17 |
|
18 | 18 | @-moz-document regexp("^https://(?:gist\\.)?github\\.com/.*") { |
19 | 19 |
|
| 20 | + /* General full-page container */ |
20 | 21 | body:not(.wgh-disabled) .application-main .container-xl { |
21 | 22 | max-width: none !important; |
22 | 23 | } |
| 24 | + /* General content sub-container */ |
23 | 25 | body:not(.wgh-disabled) .application-main .container-lg { |
24 | 26 | max-width: none !important; |
25 | 27 | margin-left: 0px !important; |
26 | 28 | } |
27 | 29 |
|
28 | | - /* New github repository react divs (2023) */ |
| 30 | + /* Repository home sidebar */ |
29 | 31 | body:not(.wgh-disabled) .react-repos-overview-margin { |
30 | 32 | margin-right: 0; |
31 | 33 | } |
32 | | - body:not(.wgh-disabled) .Layout-main div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) { |
33 | | - max-width: none; |
34 | | - } |
35 | | - /* Alternative match for above to handle JS-loaded vs full refresh pages */ |
36 | | - body:not(.wgh-disabled) .Layout-main div[style="--sticky-pane-height:100vh"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) { |
37 | | - max-width: none; |
38 | | - } |
39 | | - body:not(.wgh-disabled) .Layout-main div[data-selector="repos-split-pane-content"] { |
40 | | - max-width: none; |
41 | | - } |
42 | 34 |
|
43 | | - /* Commit History page */ |
44 | | - body:not(.wgh-disabled) #js-repo-pjax-container div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-']:first-child { |
| 35 | + /* Commit History and Branches page */ |
| 36 | + body:not(.wgh-disabled) #js-repo-pjax-container div[style^="--sticky-pane-height:"] > div[class^='Box-sc-']:first-child { |
45 | 37 | max-width: none; |
46 | 38 | } |
47 | | - /* Your Branches page */ |
48 | | - body:not(.wgh-disabled) #js-repo-pjax-container div[style="--sticky-pane-height:100vh"] > div[class^='Box-sc-']:first-child { |
49 | | - max-width: none; |
| 39 | + |
| 40 | + /* Repository Tags page */ |
| 41 | + body:not(.wgh-disabled) .application-main .col-11 { |
| 42 | + width: 100%; |
50 | 43 | } |
51 | 44 |
|
52 | 45 | /* Issue list Assignee alignment */ |
53 | 46 | body:not(.wgh-disabled) #js-repo-pjax-container .js-issue-row .text-right { |
54 | 47 | max-width: 303px !important; |
55 | 48 | } |
56 | 49 |
|
| 50 | + /* New React layout (2024) */ |
| 51 | + |
| 52 | + /* Issues list page */ |
| 53 | + body:not(.wgh-disabled) .application-main div[style^="--sticky-pane-height:"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) > div[class^='Box-sc-'] { |
| 54 | + max-width: none; |
| 55 | + } |
| 56 | + |
| 57 | + /* Issue page */ |
| 58 | + body:not(.wgh-disabled) #js-repo-pjax-container div[data-target="react-app.reactRoot"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] { |
| 59 | + max-width: none; |
| 60 | + } |
| 61 | + |
57 | 62 | } |
0 commit comments