Skip to content

Commit 069dfeb

Browse files
author
Stephen Barlow
authored
Merge pull request apollographql#159 from apollographql/sb/padding-for-apiref-headers
Add padding and negative margin to field-table rows
2 parents ffc0839 + 4b3718e commit 069dfeb

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)