Last active
April 15, 2019 18:57
-
-
Save pedronauck/64845fba387fdda6234a450b4cfcaeab to your computer and use it in GitHub Desktop.
Beauty Button
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as t from 'PRIVATE_PACKAGE' | |
import { css } from 'styled-components' | |
const hover = (content: any) => css` | |
&:not(:disabled):hover, | |
&:not(:disabled):focus, | |
&:not(:disabled):active, | |
&:not(:disabled).active { | |
${content}; | |
} | |
` | |
export const base = css` | |
${hover(css` | |
background: ${t.neutrals('N2')}; | |
`)} | |
` | |
export const filled = css` | |
${hover(css` | |
background: ${t.brighten(t.intentBase, 0.4)}; | |
`)} | |
` | |
export const ghost = css` | |
${hover(css` | |
background: ${t.intentBase}; | |
color: ${t.intentLight}; | |
`)} | |
` | |
export const link = css` | |
${hover(css` | |
background: transparent; | |
`)} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment