Smaller sidebar, visible header (#250)

This commit is contained in:
The Dude..io
2020-10-15 20:05:04 +02:00
committed by GitHub
parent 1bfb3321a3
commit 30141d31f3
4 changed files with 7 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ export default ({categoryName}) => {
return (
<div aria-labelledby="category-description">
<h2 id="category-description">
Mind expanding books on {categoryName}
{categoryName}
</h2>
</div>
)

View File

@@ -3,12 +3,11 @@ import PropTypes from "prop-types"
import React from "react"
const Header = ({ siteTitle }) => (
<header className="my-1 bg-red" aria-labelledby='main-title'>
<header className="my-1 bg-red custom-header" aria-labelledby='main-title'>
<h1 id="main-title" style={{ margin: 0 }}>
<Link
to="/"
style={{
color: `white`,
textDecoration: `none`,
}}
>

View File

@@ -0,0 +1,3 @@
.custom-header{
position: fixed;
}

View File

@@ -4,8 +4,9 @@
bottom: 0;
left: 0;
min-height: 100vh !important;
padding: 48px 0 0;
margin: 70px 0 0;
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
width: max-content;
}
#sidebar-wrapper {
min-height: 100vh !important;
@@ -20,7 +21,6 @@
padding: 0.875rem 1.25rem;
font-size: 1.2rem;
}
#page-content-wrapper {
min-width: 0;
width: 100%;