Clean all sizes, fonts and colors into style.js

This commit is contained in:
John Lyon-Smith
2018-03-07 11:01:55 -08:00
parent c06669873f
commit 9adca547f7
48 changed files with 152 additions and 3179 deletions

View File

@@ -1,8 +1,8 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import style from './Modal.style'
import Radium from 'radium'
import { Dimmer } from 'ui'
import { colorInfo, sizeInfo } from 'ui/style'
class Modal extends Component {
static propTypes = {
@@ -15,12 +15,19 @@ class Modal extends Component {
width: '60%',
}
static style = {
zIndex: 101,
background: colorInfo.modalBackground,
borderRadius: 4,
boxShadow: `0 0 ${sizeInfo.modalShadowWidth} ${colorInfo.modalShadow}`
}
render() {
const { open, children, width } = this.props
return (
<Dimmer active={open}>
<div style={[style.modal, { width }]}>
<div style={[Modal.style, { width }]}>
{children}
</div>
</Dimmer>