Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
zenoachtig committed Jan 23, 2025
1 parent e0f7190 commit c924e29
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 66 deletions.
2 changes: 0 additions & 2 deletions packages/gitbook/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ export function Header(props: {
const hasSiteSections = sections && sections.list.length > 1;
const isMultiVariants = site && spaces.length > 1;

// customization.header.links = customization.header.links.slice(0,4);

return (
<header
className={tcls(
Expand Down
64 changes: 0 additions & 64 deletions packages/gitbook/src/components/Header/headerLinks.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,70 +10,6 @@
container-name: headerlinks;
}

/* @media(max-width:1279px) {
}
@media(max-width:1279px) {
.containerHeaderlinks > :nth-child(n + 5) {
display: none;
}
.containerHeaderlinks > :nth-child(n + 5) ~ .linkEllipsis {
display: flex;
& div > a:nth-of-type(n + 6) {
display: flex;
}
}
}
@media (max-width: 1535px) {
.containerHeaderlinks > :nth-child(n + 6) {
display: none;
}
.containerHeaderlinks > :nth-child(n + 6) ~ .linkEllipsis {
display: flex;
& div > a:nth-of-type(n + 6) {
display: flex;
}
}
} */

/* @media (max-width: 1024px) {
.containerHeaderlinks > :nth-child(n + 4) {
display: none;
}
.containerHeaderlinks > :nth-child(n + 4) ~ .linkEllipsis {
display: flex;
& div > a:nth-of-type(n + 4) {
display: flex;
}
}
}
@media (max-width: 1280px) {
.containerHeaderlinks > :nth-child(n + 5) {
display: none;
}
.containerHeaderlinks > :nth-child(n + 5) ~ .linkEllipsis {
display: flex;
& div > a:nth-of-type(n + 5) {
display: flex;
}
}
}
@media (max-width: 1536px) {
.containerHeaderlinks > :nth-child(n + 6) {
display: none;
}
.containerHeaderlinks > :nth-child(n + 6) ~ .linkEllipsis {
display: flex;
& div > a:nth-of-type(n + 6) {
display: flex;
}
}
} */

@container headerlinks ( width < 150px ) {
.containerHeaderlinks > :nth-child(n + 1) {
display: none;
Expand Down

0 comments on commit c924e29

Please sign in to comment.