From 0f8a3080ea4be4e6f9085b1d8f90cb683b31d996 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Tue, 12 Mar 2019 22:48:51 -0700 Subject: Add mission semicolon & remove margin --- src/components/button.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/components') diff --git a/src/components/button.js b/src/components/button.js index a80e93d..524d878 100644 --- a/src/components/button.js +++ b/src/components/button.js @@ -6,22 +6,22 @@ import { margins, radius, transitions, colours } from './globals' const makeButtonStyle = p => css` - font-size: ${p.fontSize || '1em'}; - font-weight: ${p.fontWeight || '500'} - margin: ${margins.sm}px; - padding: ${margins.md}px ${margins.md}px; - border: 0.5px solid #ffffff; - border-radius: ${radius.sm}px; - display: block; - transition: ${transitions.hover}; - text-decoration: none; - background: ${p.background || 'none'}; - &:hover { - background: ${p.hoverBackground || 'none'}; - border-color: ${p.background || 'none'}; - color: ${p.hoverColour || 'initial'}; - } -` + font-size: ${p.fontSize || '1em'}; + font-weight: ${p.fontWeight || '500'}; + margin: 0; + padding: ${margins.md}px ${margins.md}px; + border: 0.5px solid #ffffff; + border-radius: ${radius.sm}px; + display: block; + transition: ${transitions.hover}; + text-decoration: none; + background: ${p.background || 'none'}; + &:hover { + background: ${p.hoverBackground || 'none'}; + border-color: ${p.background || 'none'}; + color: ${p.hoverColour || 'initial'}; + } + ` export const Button = p => { const buttonStyle = makeButtonStyle(p) -- cgit v1.2.3