diff --git a/src/app.jsx b/src/app.jsx index 8ec65a3d..09fc7714 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -17,7 +17,7 @@ import { ApiStyleStore } from './apistore.js' import theme from './theme.js' import { colors, fullHeight } from './theme.js' -import './index.scss' +import './index.css' export default class App extends React.Component { static childContextTypes = { diff --git a/src/chromepicker.jsx b/src/chromepicker.jsx deleted file mode 100644 index 71c719b0..00000000 --- a/src/chromepicker.jsx +++ /dev/null @@ -1,144 +0,0 @@ -import React from 'react' -import reactCSS from 'reactcss' - -import { ColorWrap, Saturation, Hue, Alpha, Checkboard } from 'react-color/lib/components/common' -import ChromeFields from 'react-color/lib/components/chrome/ChromeFields' -import ChromePointer from 'react-color/lib/components/chrome/ChromePointer' -import ChromePointerCircle from 'react-color/lib/components/chrome/ChromePointerCircle' - -import theme from './theme.js' - -export const Chrome = ({ onChange, disableAlpha, rgb, hsl, hsv, hex, renderers }) => { - const styles = reactCSS({ - 'default': { - picker: { - background: theme.colors.secondary, - borderRadius: '2px', - boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)', - boxSizing: 'initial', - width: '225px', - }, - saturation: { - width: '100%', - paddingBottom: '55%', - position: 'relative', - borderRadius: '2px 2px 0 0', - overflow: 'hidden', - }, - Saturation: { - radius: '2px 2px 0 0', - }, - body: { - padding: '16px 16px 12px', - }, - controls: { - display: 'flex', - }, - color: { - width: '32px', - }, - swatch: { - marginTop: '6px', - width: '16px', - height: '16px', - borderRadius: '8px', - position: 'relative', - overflow: 'hidden', - }, - active: { - absolute: '0px 0px 0px 0px', - borderRadius: '8px', - boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)', - background: `rgba(${ rgb.r }, ${ rgb.g }, ${ rgb.b }, ${ rgb.a })`, - zIndex: '2', - }, - toggles: { - flex: '1', - }, - hue: { - height: '10px', - position: 'relative', - marginBottom: '8px', - }, - Hue: { - radius: '2px', - }, - alpha: { - height: '10px', - position: 'relative', - }, - Alpha: { - radius: '2px', - }, - }, - 'disableAlpha': { - color: { - width: '22px', - }, - alpha: { - display: 'none', - }, - hue: { - marginBottom: '0px', - }, - swatch: { - width: '10px', - height: '10px', - marginTop: '0px', - }, - }, - }, { disableAlpha }) - - return ( -