From c8e5704887ba7db9895c800c38c1c753e1f0c174 Mon Sep 17 00:00:00 2001 From: Caitlyn Knudsvig Date: Mon, 16 Jul 2018 14:30:44 -0500 Subject: [PATCH] Font changes to story page Changed font family and added some small size/padding tweaks --- src/components/Story/Body.jsx | 16 +++++++++++++--- src/components/Story/Header.jsx | 10 +++++----- src/pages/_document.jsx | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/components/Story/Body.jsx b/src/components/Story/Body.jsx index 5774286..97046bb 100644 --- a/src/components/Story/Body.jsx +++ b/src/components/Story/Body.jsx @@ -15,14 +15,23 @@ const Body = (props) => { #story-body .container *{ max-width: 100%; } + #story-body { - font-family: 'News Cycle', sans-serif; + font-family: 'Raleway', sans-serif; } #story-body > .container { margin-top: -10vh; + } + + #story-body h3 { + margin-top: 2rem; + } + #story-body h2.teaser { + font-size: 1.5rem; } + @media screen and (max-width: 600px) { .fr-img-caption, iframe { @@ -31,10 +40,11 @@ const Body = (props) => { } `} - -

+ +

{teaser}

+
{/* eslint-disable-next-line react/no-danger */}
diff --git a/src/components/Story/Header.jsx b/src/components/Story/Header.jsx index 3e8b6cf..84e9941 100644 --- a/src/components/Story/Header.jsx +++ b/src/components/Story/Header.jsx @@ -32,7 +32,7 @@ const Header = (props) => { } div.bg-imgIx:before { - backgound: transparent + backgound: transparent; transition: background 0.5s linear; margin-bottom: calc(20vh - 55px); } @@ -44,7 +44,7 @@ const Header = (props) => { right: 0; bottom: 0; left: 0; - background:rgba(0,0,0,0.25); + background:rgba(0,0,0,0.45); -webkit-transition: background 1.5s ease-out; -moz-transition: background 1.5s ease-out; -o-transition: background 1.5s ease-out; @@ -64,10 +64,10 @@ const Header = (props) => { } .post-heading h1 { - text-shadow: -3px -3px 3px rgba(0,0,0,.25), 3px 3px 3px #000; + // text-shadow: -3px -3px 3px rgba(0,0,0,.25), 3px 3px 3px #000; color: #fff; - font-size: 6vmax; - font-family: 'Roboto', sans-serif; + font-size: 5vmax; + font-family: 'Ubuntu', sans-serif; } `} diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx index bb966ae..1f12c9e 100644 --- a/src/pages/_document.jsx +++ b/src/pages/_document.jsx @@ -14,7 +14,7 @@ export default class MyDocument extends Document { - +