Refactor base styles
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { inject } from 'mobx-react';
|
import { inject } from 'mobx-react';
|
||||||
|
import { injectGlobal } from 'styled-components';
|
||||||
|
import { color } from 'shared/styles/constants';
|
||||||
import invariant from 'invariant';
|
import invariant from 'invariant';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import Dropzone from 'react-dropzone';
|
import Dropzone from 'react-dropzone';
|
||||||
@ -20,6 +22,17 @@ type Props = {
|
|||||||
history: Object,
|
history: Object,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
injectGlobal`
|
||||||
|
.activeDropZone {
|
||||||
|
background: ${color.slateDark};
|
||||||
|
svg { fill: ${color.white}; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.activeDropZone a {
|
||||||
|
color: ${color.white} !important;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
class DropToImport extends Component {
|
class DropToImport extends Component {
|
||||||
state: {
|
state: {
|
||||||
isImporting: boolean,
|
isImporting: boolean,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react';
|
import { observer } from 'mobx-react';
|
||||||
import styled from 'styled-components';
|
import styled, { injectGlobal } from 'styled-components';
|
||||||
import ReactModal from 'react-modal';
|
import ReactModal from 'react-modal';
|
||||||
import { color } from 'shared/styles/constants';
|
import { color } from 'shared/styles/constants';
|
||||||
import { fadeAndScaleIn } from 'shared/styles/animations';
|
import { fadeAndScaleIn } from 'shared/styles/animations';
|
||||||
@ -15,6 +15,12 @@ type Props = {
|
|||||||
onRequestClose: () => void,
|
onRequestClose: () => void,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
injectGlobal`
|
||||||
|
.ReactModal__Body--open {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
const Modal = ({
|
const Modal = ({
|
||||||
children,
|
children,
|
||||||
isOpen,
|
isOpen,
|
||||||
|
@ -68,16 +68,4 @@ export default `
|
|||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.activeDropZone {
|
|
||||||
background: #4E5C6E;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activeDropZone a {
|
|
||||||
color: #FFF !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ReactModal__Body--open {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
|
Reference in New Issue
Block a user