Skip to content

Commit 02a2565

Browse files
committed
Update repo tabs to better match PR tabs
1 parent 1aae48f commit 02a2565

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

src/github-custom-global-navigation.user.js

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3394,17 +3394,37 @@
33943394
33953395
${SELECTORS.header.localBar.repositoryNav} ul li a
33963396
{
3397-
padding: 3px 10px;
3397+
color: var(--fgColor-muted) !important;
3398+
font-size: var(--text-body-size-medium)
3399+
line-height: 23px !important;
3400+
padding: var(--base-size-8) var(--control-medium-paddingInline-spacious);
3401+
text-decoration: none;
3402+
background-color: transparent;
33983403
}
33993404
3400-
${SELECTORS.header.localBar.repositoryNav} ul li:has(.UnderlineNav-item.selected) a:hover
3405+
${SELECTORS.header.localBar.repositoryNav} ul li a *
34013406
{
3402-
background: none;
3407+
color: var(--fgColor-muted) !important;
3408+
}
3409+
3410+
${SELECTORS.header.localBar.repositoryNav} ul li:has(.UnderlineNav-item.selected) a *
3411+
{
3412+
fill: var(--fgColor-default) !important;
3413+
color: var(--fgColor-default) !important;
3414+
}
3415+
3416+
${SELECTORS.header.localBar.repositoryNav} ul li a:hover *
3417+
{
3418+
fill: var(--fgColor-default) !important;
3419+
color: var(--fgColor-default) !important;
3420+
-webkit-text-decoration: none;
3421+
text-decoration: none;
3422+
transition-duration: .1s;
34033423
}
34043424
34053425
${SELECTORS.header.localBar.repositoryNav} :is(.UnderlineNav-item.selected):after
34063426
{
3407-
bottom: calc(28% + var(--base-size-24)) !important;
3427+
bottom: calc(43% + var(--base-size-24)) !important;
34083428
}
34093429
`;
34103430

0 commit comments

Comments
 (0)