UNPKG

react-github-login-button

Version:
75 lines (65 loc) 1.51 kB
const baseStyle = { height: '50px', width: '240px', border: 'none', textAlign: 'center', verticalAlign: 'center', boxShadow: '0 2px 4px 0 rgba(0,0,0,.25)', fontSize: '16px', lineHeight: '48px', display: 'block', borderRadius: '1px', transition: 'background-color .218s, border-color .218s, box-shadow .218s', fontFamily: 'Roboto,arial,sans-serif', cursor: 'pointer', userSelect: 'none' } export const darkStyle = { backgroundColor: '#000000', color: '#fff', ...baseStyle } export const lightStyle = { backgroundColor: '#fff', color: 'rgba(0,0,0,.54)', ...baseStyle } export const iconStyle = { width: '48px', height: '48px', justifyContent: 'center', alignItems: 'center', display: 'flex', marginTop: '1px', marginLeft: '1px', float: 'left', backgroundColor: '#fff', borderRadius: '1px', whiteSpace: 'nowrap' } export const svgStyle = { width: '24px', height: '24px', display: 'block' } export const disabledSvgStyle = { width: '24px', height: '24px', display: 'block', fill: 'rgba(0, 0, 0, .40)' } export const hoverStyle = { boxShadow: '0 0 3px 3px rgba(66,133,244,.3)', transition: 'background-color .218s, border-color .218s, box-shadow .218s' } // export const pressedStyle = { // backgroundColor: '#3367D6' // } export const disabledStyle = { backgroundColor: 'rgba(37, 5, 5, .08)', color: 'rgba(0, 0, 0, .40)', cursor: 'not-allowed' } export const disabledIconStyle = { backgroundColor: 'transparent' }