Skip to content

Commit 40c21fd

Browse files
committed
Add folder-style tabs to Old School
1 parent 2172956 commit 40c21fd

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3370,6 +3370,42 @@
33703370
{
33713371
padding-right: 4px;
33723372
}
3373+
3374+
${SELECTORS.header.localBar.topDiv} ul
3375+
{
3376+
align-items: self-end;
3377+
}
3378+
3379+
${SELECTORS.header.localBar.topDiv} ul li
3380+
{
3381+
padding-bottom: 5px;
3382+
}
3383+
3384+
${SELECTORS.header.localBar.topDiv} ul li:has(.UnderlineNav-item.selected)
3385+
{
3386+
border: 1px solid var(--borderColor-muted);
3387+
border-radius: var(--borderRadius-medium);
3388+
border-bottom-left-radius: 0px;
3389+
border-bottom-right-radius: 0px;
3390+
padding-bottom: 2px;
3391+
border-bottom: 3px solid var(--bgColor-default, var(--color-canvas-default)) !important;
3392+
background-color: var(--bgColor-default, var(--color-canvas-default)) !important;
3393+
}
3394+
3395+
${SELECTORS.header.localBar.topDiv} ul li a
3396+
{
3397+
padding: 3px 10px;
3398+
}
3399+
3400+
${SELECTORS.header.localBar.topDiv} ul li:has(.UnderlineNav-item.selected) a:hover
3401+
{
3402+
background: none;
3403+
}
3404+
3405+
:is(.UnderlineNav-item.selected):after
3406+
{
3407+
bottom: calc(28% + var(--base-size-24)) !important;
3408+
}
33733409
`;
33743410
}
33753411

0 commit comments

Comments
 (0)