Sharing global styles

This commit is contained in:
Tom Moor
2017-10-26 22:42:08 -07:00
parent 4863680d86
commit fc45d6a180
53 changed files with 165 additions and 266 deletions

View File

@@ -6,7 +6,7 @@ import Portal from 'react-portal';
import { observable } from 'mobx';
import { observer } from 'mobx-react';
import styled from 'styled-components';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import PlusIcon from 'components/Icon/PlusIcon';
import BlockMenu from 'menus/BlockMenu';
import type { State } from '../types';

View File

@@ -2,7 +2,7 @@
import React from 'react';
import styled from 'styled-components';
import CopyButton from './CopyButton';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import type { Props } from '../types';
export default function Code({ children, node, readOnly, attributes }: Props) {

View File

@@ -3,7 +3,7 @@ import React, { Component } from 'react';
import { observable } from 'mobx';
import { observer } from 'mobx-react';
import { List } from 'immutable';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import headingToSlug from '../headingToSlug';
import type { State, Block } from '../types';
import styled from 'styled-components';

View File

@@ -2,7 +2,7 @@
import React, { Component } from 'react';
import { observable } from 'mobx';
import { observer } from 'mobx-react';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import styled from 'styled-components';
import CopyToClipboard from 'components/CopyToClipboard';

View File

@@ -2,7 +2,7 @@
import React from 'react';
import styled from 'styled-components';
import type { Props } from '../types';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
function HorizontalRule(props: Props) {
const { state, node } = props;

View File

@@ -2,7 +2,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import type { Props } from '../types';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
class Image extends Component {
props: Props;

View File

@@ -1,6 +1,6 @@
// @flow
import styled from 'styled-components';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
const InlineCode = styled.code`
padding: .25em;

View File

@@ -1,7 +1,7 @@
// @flow
import React, { Component } from 'react';
import styled from 'styled-components';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import type { Props } from '../types';
export default class TodoItem extends Component {

View File

@@ -1,7 +1,7 @@
// @flow
import React from 'react';
import styled from 'styled-components';
import { fontWeight, color } from 'styles/constants';
import { fontWeight, color } from 'shared/styles/constants';
import Document from 'models/Document';
import NextIcon from 'components/Icon/NextIcon';