Skip to content

Commit

Permalink
[docs] Polish banner effects
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 6, 2021
1 parent 53a1655 commit 125f3db
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const useStyles = makeStyles(
flex: '1 0 100%',
},
hero: {
paddingTop: theme.spacing(8) + 30,
paddingTop: theme.spacing(8) + 36,
color: theme.palette.primary.main,
},
content: {
Expand Down
6 changes: 3 additions & 3 deletions docs/src/modules/components/AppTableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import PageContext from 'docs/src/modules/components/PageContext';

const useStyles = makeStyles((theme) => ({
root: {
top: 100,
top: 70 + 36,
// Fix IE 11 position sticky issue.
marginTop: 100,
marginTop: 70 + 36,
width: 175,
flexShrink: 0,
position: 'sticky',
height: 'calc(100vh - 70px)',
height: 'calc(100vh - 70px - 36px)',
overflowY: 'auto',
padding: theme.spacing(2, 2, 2, 0),
display: 'none',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/MarkdownDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function findIndex(array, comp) {
const styles = (theme) => ({
root: {
width: '100%',
paddingTop: 30,
paddingTop: 36,
},
container: {
position: 'relative',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/MarkdownElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const styles = (theme) => ({
color: theme.palette.text.primary,
wordBreak: 'break-word',
'& .anchor-link': {
marginTop: -96, // Offset for the anchor.
marginTop: -(96 + 36), // Offset for the anchor.
position: 'absolute',
},
'& pre': {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/landing/Pro.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useSelector } from 'react-redux';
const useStyles = makeStyles(
(theme) => ({
root: {
marginTop: 30,
marginTop: 36,
padding: theme.spacing(1, 2, 1, 2),
right: 0,
left: 0,
Expand Down

0 comments on commit 125f3db

Please sign in to comment.