Skip to content

Commit

Permalink
Merge pull request #16862 from newrelic/liz/fix-top-padding
Browse files Browse the repository at this point in the history
Padding adjustments
  • Loading branch information
LizBaker committed Apr 12, 2024
2 parents 4137194 + dd1e287 commit b6380ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/components/MachineTranslationCallout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const MachineTranslationCallout = ({ englishHref }) => {
variant="important"
title=" "
css={css`
margin: 2em 0;
margin-bottom: 2em;
padding: 0.5em;
`}
>
Expand All @@ -40,8 +40,12 @@ const MachineTranslationCallout = ({ englishHref }) => {
}
`}
>
<Icon name="globe" size="2em" />
<div>
<Icon name="globe" size="3em" />
<div
css={css`
font-size: 0.875em;
`}
>
<h4>{t('machineTranslation.calloutHeading')}</h4>
<Trans i18nKey="machineTranslation.calloutBody" parent="p">
In the event of any inconsistency between the English version and
Expand Down
5 changes: 5 additions & 0 deletions src/components/PageTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const PageTitle = (props) => (
<h1
css={css`
grid-area: page-title;
&::before {
content: '';
display: block;
margin-top: -5px;
}
`}
{...props}
/>
Expand Down
1 change: 1 addition & 0 deletions src/layouts/MainLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ const MainLayout = ({ children, pageContext }) => {
css={css`
display: ${isMobileNavOpen ? 'none' : 'block'};
position: relative;
padding-top: 2.75rem;
@media (min-width: 760px) {
${!sidebar &&
Expand Down
4 changes: 2 additions & 2 deletions src/templates/docPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const BasicDoc = ({ data, location, pageContext }) => {
css={css`
display: grid;
grid-template-areas:
'mt-disclaimer mt-disclaimer'
'mt-disclaimer page-tools'
'page-title page-tools'
'content page-tools';
grid-template-columns: minmax(0, 1fr) 12.8125rem;
Expand Down Expand Up @@ -134,7 +134,7 @@ const BasicDoc = ({ data, location, pageContext }) => {
<Layout.PageTools
css={css`
background: var(--primary-background-color);
top: calc(var(--global-header-height) + 3rem);
&.page-tools-transition-enter {
translate: calc(var(--sidebar-width) - 50px);
}
Expand Down

0 comments on commit b6380ad

Please sign in to comment.