From 03b93820b96da1a21b78c1641336235497b3db71 Mon Sep 17 00:00:00 2001 From: Milos Lajtman Date: Sat, 19 Oct 2019 14:55:43 +0200 Subject: [PATCH] Wrap clicked/targeted reflist item in red highlight frame --- src/components/contentWrapper.js | 2 +- src/components/reflist.js | 14 +++++++++++--- src/utils/colors.js | 4 +++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/components/contentWrapper.js b/src/components/contentWrapper.js index c003bb9..0be24a6 100644 --- a/src/components/contentWrapper.js +++ b/src/components/contentWrapper.js @@ -7,7 +7,7 @@ const ContentWrapper = ({ children, style }) => ( css={css` max-width: 850px; width: 80%; - margin: 0 auto; + margin: 0 auto 2em; @media (max-width: 700px) { width: 90%; } diff --git a/src/components/reflist.js b/src/components/reflist.js index 17ffea1..07760a9 100644 --- a/src/components/reflist.js +++ b/src/components/reflist.js @@ -1,5 +1,6 @@ import React from 'react'; import { css } from '@emotion/core'; +import { redExtraLight, redLight } from '../utils/colors'; export const citations = [ { @@ -79,10 +80,17 @@ const RefList = () => ( {citations.map(x => (