Skip to content

Commit

Permalink
Merge pull request #1789 from ethereum/fix-eth2-headers
Browse files Browse the repository at this point in the history
Prevent Eth2 header cutoff [Fixes #1773]
  • Loading branch information
ryancreatescopy committed Nov 11, 2020
2 parents 4892205 + b52e113 commit 6684b01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/SharedStyledComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const Eth2Header = styled.h2`
font-weight: normal;
font-weight: 800;
font-size: 48px;
line-height: 100%;
line-height: 120%;
max-width: 640px;
margin-bottom: 0rem;
color: ${(props) => props.theme.colors.text00};
Expand All @@ -229,6 +229,10 @@ export const Eth2HeaderGradient = styled.span`
background-image: ${(props) => props.theme.colors.eth2Gradient};
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
@media (max-width: ${(props) => props.theme.breakpoints.s}) {
/* Avoid cutoff on mobile */
display: inline-block;
}
`

// MDX components
Expand Down

0 comments on commit 6684b01

Please sign in to comment.