Skip to content

Commit 4b3718e

Browse files
Stephen BarlowStephen Barlow
authored andcommitted
add padding and negative margin to field-table rows
1 parent ffc0839 commit 4b3718e

File tree

1 file changed

+4
-1
lines changed
  • packages/gatsby-theme-apollo-docs/src/components

1 file changed

+4
-1
lines changed

packages/gatsby-theme-apollo-docs/src/components/template.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Footer from './footer';
44
import MDXRenderer from 'gatsby-plugin-mdx/mdx-renderer';
55
import PageContent from './page-content';
66
import PageHeader from './page-header';
7+
import {HEADER_HEIGHT} from '../utils';
78
import PropTypes from 'prop-types';
89
import React, {Fragment, createContext, useContext} from 'react';
910
import rehypeReact from 'rehype-react';
@@ -87,7 +88,9 @@ export const StyledTable = styled.table({
8788
fontSize: 'inherit',
8889
lineHeight: 'inherit',
8990
fontWeight: 'bold',
90-
marginBottom: '5px'
91+
marginBottom: '5px',
92+
paddingTop: (HEADER_HEIGHT + 20),
93+
marginTop: -(HEADER_HEIGHT + 20)
9194
},
9295
'&:first-child p': {
9396
fontSize: '14px',

0 commit comments

Comments
 (0)