Skip to content
Snippets Groups Projects
Commit c24d3c1e authored by chris's avatar chris
Browse files

add icons

parent 0ff4ae71
No related branches found
No related tags found
1 merge request!330Gap question
...@@ -6,7 +6,7 @@ import { Tools } from 'wax-prosemirror-services'; ...@@ -6,7 +6,7 @@ import { Tools } from 'wax-prosemirror-services';
@injectable() @injectable()
class CreateGap extends Tools { class CreateGap extends Tools {
title = 'Create Gap Option'; title = 'Create Gap Option';
label = 'Create Gap'; icon = 'insertGap';
name = 'Create Gap'; name = 'Create Gap';
get run() { get run() {
......
...@@ -5,7 +5,7 @@ import { Tools } from 'wax-prosemirror-services'; ...@@ -5,7 +5,7 @@ import { Tools } from 'wax-prosemirror-services';
@injectable() @injectable()
class FillTheGapQuestion extends Tools { class FillTheGapQuestion extends Tools {
title = 'Add Fill The Gap Question'; title = 'Add Fill The Gap Question';
label = 'Fill The Gap'; icon = 'gapQuestion';
name = 'Fill The Gap'; name = 'Fill The Gap';
get run() { get run() {
......
...@@ -15,9 +15,11 @@ const EditorWrapper = styled.span` ...@@ -15,9 +15,11 @@ const EditorWrapper = styled.span`
display: inline-flex; display: inline-flex;
.ProseMirror { .ProseMirror {
border-bottom: 1px solid #145dbf; background: #a6a6a6;
border: 1px solid #a6a6a6;
border-radius: 4px;
box-shadow: none; box-shadow: none;
color: #145dbf; color: #fff;
display: inline; display: inline;
min-width: 50px; min-width: 50px;
padding: 0px 2px 0px 2px; padding: 0px 2px 0px 2px;
......
...@@ -44,16 +44,14 @@ const TopMenu = styled.div` ...@@ -44,16 +44,14 @@ const TopMenu = styled.div`
${th('colorFurniture')}; ${th('colorFurniture')};
} }
> div:nth-last-of-type(-n + 2) {
margin-left: auto;
}
> div:last-child { > div:last-child {
margin-left: 0; border-left: ${th('borderWidth')} ${th('borderStyle')}
${th('colorFurniture')};
margin-left: auto;
margin-right: ${grid(5)}; margin-right: ${grid(5)};
} }
> div[data-name='Tables'] { > div[data-name='FillTheGap'] {
border-right: none; border-right: none;
} }
`; `;
......
...@@ -418,4 +418,24 @@ export default { ...@@ -418,4 +418,24 @@ export default {
/> />
</Svg> </Svg>
), ),
multipleChoice: ({ className }) => (
<Svg className={className} fill="none" viewBox="0 0 24 24">
<title> Add Multiple Choice </title>
<path d="M16.54,11L13,7.46l1.41-1.41l2.12,2.12l4.24-4.24l1.41,1.41L16.54,11z M11,7H2v2h9V7z M21,13.41L19.59,12L17,14.59 L14.41,12L13,13.41L15.59,16L13,18.59L14.41,20L17,17.41L19.59,20L21,18.59L18.41,16L21,13.41z M11,15H2v2h9V15z" />
</Svg>
),
gapQuestion: ({ className }) => (
<Svg className={className} fill="none" viewBox="0 0 24 24">
<title> Add Fill The Gap Question </title>
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 15h14v3H5z" />
</Svg>
),
insertGap: ({ className }) => (
<Svg className={className} fill="none" viewBox="0 0 24 24">
<title> Add Gap </title>
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M18 9v4H6V9H4v6h16V9h-2z" />
</Svg>
),
}; };
...@@ -17,7 +17,7 @@ const checkifEmpty = view => { ...@@ -17,7 +17,7 @@ const checkifEmpty = view => {
@injectable() @injectable()
class MultipleChoiceQuestion extends Tools { class MultipleChoiceQuestion extends Tools {
title = 'Add Multiple Choice Question'; title = 'Add Multiple Choice Question';
label = 'Multiple Choice'; icon = 'multipleChoice';
name = 'Multiple Choice'; name = 'Multiple Choice';
get run() { get run() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment