Skip to content

Commit

Permalink
fix(updates to styling): updates to styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hagmic committed May 30, 2019
1 parent b4d7acf commit abc9b74
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// @flow
import Draftable from './Draftable';
import { defaultToolbarConfig } from './toolbar';
import DraftableState, { FORMAT_HTML, FORMAT_MARKDOWN } from './lib/DraftableState';
import { BLOCK_TYPES_INLINE, BLOCK_TYPES_LISTS, BLOCK_TYPES_INDENT } from './lib/BlockTypes';

export {
Draftable, DraftableState, FORMAT_HTML, FORMAT_MARKDOWN,
Draftable,
DraftableState,
FORMAT_HTML,
FORMAT_MARKDOWN,
defaultToolbarConfig,
BLOCK_TYPES_INLINE,
BLOCK_TYPES_LISTS,
BLOCK_TYPES_INDENT,
};
4 changes: 2 additions & 2 deletions src/lib/BlockTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export const BLOCK_TYPES_LISTS:Array<ToolbarButtonType> = [

export const BLOCK_TYPES_INDENT:Array<ToolbarButtonType> = [
{
label: '->', style: 'indent', Icon: Indent, toggle: 'indent', type: 'style',
label: '<-', style: 'outdent', Icon: Outdent, toggle: 'indent', type: 'style',
},
{
label: '<-', style: 'outdent', Icon: Outdent, toggle: 'indent', type: 'style',
label: '->', style: 'indent', Icon: Indent, toggle: 'indent', type: 'style',
},
];
4 changes: 2 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
}

.ToolbarGroup-root:not(:first-of-type):not(:last-of-type) {
margin: 0 14px;
margin: 0 24px;
}

.ToolbarButton-root {
border: none;
background: none;
margin: 0 8px;
margin: 0 4px;
padding: 0;
}

Expand Down

0 comments on commit abc9b74

Please sign in to comment.