update layout

This commit is contained in:
Hossein Mehrabi 2022-10-10 18:51:53 +03:30
parent 2d714e3c48
commit 8a9ad94f95
5 changed files with 6 additions and 6 deletions

View File

@ -11,8 +11,8 @@
}
.root > aside {
width: 25vw;
flex-basis: 25vw;
width: calc(2 / 12 * 100vw);
flex-basis: calc(2 / 12 * 100vw);
flex-grow: 0;
flex-shrink: 0;
}

View File

@ -31,7 +31,7 @@ export default function FooterLayout(props: Props): JSX.Element {
className={clsx(
'row',
'col',
'col--7',
'col--8',
styles.footerContentWrapper,
hiddenSidebar ? styles.withSidebarHide : '',
)}

View File

@ -6,7 +6,7 @@ import './styles.scss'
export default function LayoutWrapper(props) {
const isIndexPage = useIsVersionIndexPage()
const store = globalStore.useCreateStore({ hiddenSidebar: isIndexPage })
const store = globalStore.useCreateStore({ hiddenSidebar: false })
return (
<globalStore.Provider store={store}>

View File

@ -19,7 +19,7 @@
top: 0;
left: 0;
height: 100%;
width: calc((7 / 12) * 100%);
width: calc((8 / 12) * 100%);
background-color: var(--ifm-background-surface-color);
}

View File

@ -113,7 +113,7 @@ export default function NavbarContent(): JSX.Element {
</div>
</div>
<div className={clsx('col col--5', styles.headerRight)}>
<div className={clsx('col col--4', styles.headerRight)}>
<ShareButton />
<NavbarColorModeToggle />
{localeDropdown && (