This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
import styled , { css } from 'react-emotion' ;
2
2
3
+ const purplePrimary = '#7657fb' ;
4
+ const whiteFull = '#ffffff' ;
3
5
export const breakpoints = {
4
6
xs : '@media screen and (max-width: 40em)' ,
5
7
sm : '@media screen and (min-width: 40em) and (max-width: 52em)' ,
@@ -45,15 +47,18 @@ export const baseButton = css`
45
47
46
48
export const Button = styled . a `
47
49
${ baseButton } ;
48
- background: ${ props => ( props . inverted ? '#7657fb' : '#fff' ) }
49
- color: ${ props => ( props . inverted ? '#fff' : '#222' ) }
50
+ background: ${ props => ( props . inverted ? '#7657fb' : props . ghost ? '#fff' : '#fff' ) }
51
+ color: ${ props => ( props . inverted ? '#fff' : props . ghost ? purplePrimary : '#222' ) }
50
52
padding: ${ props => ( props . large ? '0.8rem 2.25rem' : props . medium ? '0.6rem 1.2rem' : '0.2rem 1rem' ) } ;
51
53
font-size: ${ props => ( props . large ? '1.8rem' : props . medium ? '1rem' : '1rem' ) }
54
+ outline:${ props => ( props . ghost ? `3px solid ${ purplePrimary } ` : 'none' ) }
55
+ outline-offset:${ props => ( props . ghost ? '-3px' : '0px' ) }
52
56
cursor: pointer;
53
57
user-select: none;
54
58
-webkit-touch-callout: none;
55
59
&:hover {
56
- background: ${ props => ( props . inverted ? '#6f19ed' : '#eee' ) } ;
60
+ background: ${ props => ( props . inverted ? '#6f19ed' : props . ghost ? purplePrimary : '#eee' ) } ;
61
+ color: ${ props => ( props . inverted ? '#fff' : props . ghost ? whiteFull : '#222' ) }
57
62
}
58
63
` ;
59
64
You can’t perform that action at this time.
0 commit comments