diff --git a/client/src/components/CodeSandbox/CodeSandbox.css b/client/src/components/CodeSandbox/CodeSandbox.css new file mode 100644 index 0000000..5651462 --- /dev/null +++ b/client/src/components/CodeSandbox/CodeSandbox.css @@ -0,0 +1,32 @@ +.column { + margin: auto; + font-family: "Rubik", sans-serif; + font-size: 1.2rem; + color: #333; +} + +.field { + display: inline-block; + text-align: center; + width:30%; + margin-bottom: 10px; +} + +select { + font-family: "Rubik", sans-serif; + font-size: 1.1rem; + +} + +.ace_editor { + width: 100%; +} + +.ace_content { + width: 100%; +} + +.editor { + width: 100%; +} + diff --git a/client/src/components/CodeSandbox/CodeSandbox.js b/client/src/components/CodeSandbox/CodeSandbox.js index 218b1b6..1fc402f 100644 --- a/client/src/components/CodeSandbox/CodeSandbox.js +++ b/client/src/components/CodeSandbox/CodeSandbox.js @@ -2,6 +2,7 @@ import React, { Component } from "react"; import { render } from "react-dom"; import brace from "brace"; import AceEditor from "react-ace"; +import "./CodeSandbox.css" import "brace/mode/jsx"; import "brace/mode/javascript"; @@ -123,7 +124,7 @@ class CodeSandbox extends Component {
- +

- +

+ {props.editTerm ? :

{props.definition}

} +
); diff --git a/client/src/components/TermMain/TermMain.css b/client/src/components/TermMain/TermMain.css index a7ce12c..7392aea 100644 --- a/client/src/components/TermMain/TermMain.css +++ b/client/src/components/TermMain/TermMain.css @@ -21,6 +21,23 @@ font-family: "Rubik", sans-serif; } +.editDefinition { + width: 100%; + height: 100px; + font-size: 1.2rem; +} + +.termMain button { + display: inline-block; + font-size: 1rem; + line-height: 1.8rem; + font-family: "Rubik", sans-serif; + padding: 3px 8px; + border: 1.5px solid white; + color: white; + background-color: #015249; + } + .termMain:hover { transition: all 0.3s ease-out; box-shadow: -2px 8px 22px 0 rgba(0, 0, 0, 0.15); diff --git a/client/src/components/TermMain/TermMain.js b/client/src/components/TermMain/TermMain.js index 5fc7de7..418fb40 100644 --- a/client/src/components/TermMain/TermMain.js +++ b/client/src/components/TermMain/TermMain.js @@ -4,10 +4,10 @@ import "./TermMain.css"; const TermMain = (props) => (

{props.word}

- {props.edit ? + {props.edit ? :

{props.summary}

} - {props.admin && props.edit === false && } - {props.admin && props.edit && } + {props.admin && props.edit === false && } + {props.admin && props.edit && }
);