diff --git a/plugins/talk-plugin-rich-text/client/components/CommentContent.css b/plugins/talk-plugin-rich-text/client/components/CommentContent.css new file mode 100644 index 000000000..cff2284b9 --- /dev/null +++ b/plugins/talk-plugin-rich-text/client/components/CommentContent.css @@ -0,0 +1,8 @@ +.content { + blockquote { + background-color: #F6F6F6; + padding: 10px; + margin: 20px 0px 20px 10px; + font-style: italic; + } +} diff --git a/plugins/talk-plugin-rich-text/client/components/CommentContent.js b/plugins/talk-plugin-rich-text/client/components/CommentContent.js index a0e045c6f..2cf481830 100644 --- a/plugins/talk-plugin-rich-text/client/components/CommentContent.js +++ b/plugins/talk-plugin-rich-text/client/components/CommentContent.js @@ -1,17 +1,20 @@ import React from 'react'; import PropTypes from 'prop-types'; import { PLUGIN_NAME } from '../constants'; +import cn from 'classnames'; +import styles from './CommentContent.css'; class CommentContent extends React.Component { render() { const { comment } = this.props; + const className = cn(`${PLUGIN_NAME}-text`, styles.content); return comment.richTextBody ? (
) : ( -
{comment.body}
+
{comment.body}
); } } diff --git a/plugins/talk-plugin-rich-text/client/components/Editor.css b/plugins/talk-plugin-rich-text/client/components/Editor.css index 09614f5be..eabc1ee94 100644 --- a/plugins/talk-plugin-rich-text/client/components/Editor.css +++ b/plugins/talk-plugin-rich-text/client/components/Editor.css @@ -1,4 +1,5 @@ .contentEditable { + composes: content from "./CommentContent.css"; background: #fff; border: solid 1px #bbb; min-height: 120px;