From b67c7d90262344482cb61ae8b99bacd4a778e6f0 Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Thu, 15 Dec 2016 10:49:18 +0000 Subject: [PATCH] neating up colors with constnats and correcting indentation --- ui/src/components/radio/index.js | 51 ++++++++++++++++---------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/ui/src/components/radio/index.js b/ui/src/components/radio/index.js index 1eb82fd7..ce3b19e0 100644 --- a/ui/src/components/radio/index.js +++ b/ui/src/components/radio/index.js @@ -4,7 +4,8 @@ const Styled = require('styled-components'); const fns = require('../../shared/functions'); const { - boxes + boxes, + colors } = constants; const { @@ -18,11 +19,11 @@ const { const CustomInputCircle = ` content: ''; position: absolute; - width: 14px; - height: 14px; + width: 8px; + height: 8px; background: #646464; - top: -16px; - left: 12px; + top: -14px; + left: 14px; border-radius: 100%; `; @@ -34,7 +35,7 @@ const StyledInput = styled.input` ${CustomInputCircle} } &:disabled + span { - background-color: #F9f9F9; + background-color: ${colors.inactiveBackground}; } &:disabled + span::after { opacity: 0.3; @@ -51,27 +52,27 @@ const StyledContent = styled.div` `; const StyledSpan = styled.span` -color: #646464; -position: relative; + color: #646464; + position: relative; -&::before { - content: ''; - position: absolute; - width: ${remcalc(26)}; - height: ${remcalc(26)}; - background-color: #FFFFFF; - box-shadow: ${boxes.insetShaddow}; - border: ${boxes.border.unchecked}; - top: 5px; - left: 5px; - border-radius: 100%; -} - -&:hover { - &::after { - opacity: 0.3; + &::before { + content: ''; + position: absolute; + width: ${remcalc(24)}; + height: ${remcalc(24)}; + background-color: ${colors.inactiveBackground}; + box-shadow: ${boxes.insetShaddow}; + border: ${boxes.border.unchecked}; + top: 5px; + left: 5px; + border-radius: 100%; + } + + &:hover { + &::after { + opacity: 0.3; + } } -} `; const Radio = ({