Skip to content

Commit

Permalink
fix: css clean up - esp sidenavlayout.css (#4129)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen authored Jul 11, 2024
1 parent 4f97774 commit fc9d721
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.ws-preview__thumbnail-link::before,
.ws-preview__thumbnail-link::after {
position: absolute;
z-index: 500;
z-index: var(--pf-t--global--z-index--sm);
transition: .2s;
opacity: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
box-shadow: var(--pf-t--global--box-shadow--sm--bottom)
}

.ws-toc .pf-v6-c-jump-links__toggle {
background-color: var(--pf-t--global--background--color--secondary--default);
}

/* Mobile jumplinks */
@media (max-width: 1450px) {
.ws-toc.pf-m-expanded .pf-v6-c-jump-links__main {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,8 @@
flex: 1;
}

.ws-switcher-divider {
padding: 0 var(--pf-t--global--spacer--md);
}

@media (min-width: 1200px) {
.ws-page-sidebar {
box-shadow: none !important;
}
}

.ws-page-sidebar > .pf-v6-c-page__sidebar-body {
padding-top: var(--pf-t--global--spacer--md);
}

/* Search */
#algolia-autocomplete-listbox-0 {
/* Fix search results overflowing page */
min-width: 480px !important;
}
.ws-global-search.pf-v6-c-input-group {
/* remove white background on dark Masthead */
--pf-v6-c-input-group--BackgroundColor: none;
}

/* For tiny (200px) viewports */
.ws-masthead .pf-v6-c-toolbar__item {
min-width: 0;
}

.ws-masthead .pf-v6-c-switch {
align-items: center;
/* --pf-v6-c-switch__input--not-checked__label--Color: var(--pf-v6-global--Color--100); */
/* --pf-v6-c-switch__input--checked__label--Color: var(--pf-v6-global--Color--100); */
}

.ws-masthead .pf-v6-c-toggle-group {
/* --pf-v6-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-v6-global--palette--blue-400); */
--pf-v6-c-toggle-group__button--focus--BackgroundColor: transparent;
--pf-v6-c-toggle-group__button--hover--BackgroundColor: transparent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const HeaderTools = ({
</DropdownList>
</DropdownGroup>
)}
<Divider key="divider1" className="ws-switcher-divider"/>
<Divider key="divider1"/>
<DropdownGroup key="Alpha preview version" label="Alpha preview version">
<DropdownList>
<DropdownItem
Expand All @@ -177,7 +177,7 @@ const HeaderTools = ({
</DropdownItem>
</DropdownList>
</DropdownGroup>
<Divider key="divider2" className="ws-switcher-divider"/>
<Divider key="divider2"/>
<DropdownGroup key="Previous versions" label="Previous versions">
<DropdownList>
<DropdownItem
Expand Down Expand Up @@ -263,18 +263,15 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
}, []);

const SideBar = (
<PageSidebar
className="ws-page-sidebar"
theme="light"
>
<PageSidebar>
<PageSidebarBody>
<SideNav navItems={sideNavItems} groupedRoutes={groupedRoutes} />
</PageSidebarBody>
</PageSidebar>
);

const masthead = (
<Masthead className="ws-masthead">
<Masthead>
<MastheadToggle>
<PageToggleButton variant="plain" aria-label="Global navigation">
<BarsIcon />
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"screenshots": "pf-docs-framework screenshots"
},
"dependencies": {
"@patternfly/documentation-framework": "6.0.0-alpha.57",
"@patternfly/documentation-framework": "6.0.0-alpha.58",
"@patternfly/react-catalog-view-extension": "6.0.0-alpha.4",
"@patternfly/react-console": "6.0.0-alpha.3",
"@patternfly/react-docs": "7.0.0-alpha.84",
Expand Down

0 comments on commit fc9d721

Please sign in to comment.