From b00d2f569eef91bce6dae967a175ef9d7d372b04 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 26 Jun 2017 16:01:07 -0300 Subject: [PATCH] Removing styles from default.css --- client/coral-embed-stream/style/default.css | 27 ------------------- .../client/components/PermalinkButton.js | 7 ++--- .../client/components/styles.css | 18 ++++++++++--- 3 files changed, 19 insertions(+), 33 deletions(-) diff --git a/client/coral-embed-stream/style/default.css b/client/coral-embed-stream/style/default.css index 701a06fd5..a752493a3 100644 --- a/client/coral-embed-stream/style/default.css +++ b/client/coral-embed-stream/style/default.css @@ -335,33 +335,6 @@ button.comment__action-button[disabled], display: inline-block; } -.coral-plugin-permalinks-container { - /*position: relative;*/ - z-index: 2; -} - -.coral-plugin-permalinks-popover { - display: none; - background-color: white; - border: 1px solid black; - position: absolute; - padding: 5px; -} - -.coral-plugin-permalinks-popover.active { - display: block; -} - -.coral-plugin-permalinks-copy-field { - display: block; - width: calc(100% - 5px); -} - -.coral-plugin-permalinks-copied-text { - float: right; - margin: 8px; -} - /* Flag Styles */ .coral-plugin-flags-popup-form { diff --git a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js index b4dd190d8..6a92d69ce 100644 --- a/plugins/talk-plugin-permalink/client/components/PermalinkButton.js +++ b/plugins/talk-plugin-permalink/client/components/PermalinkButton.js @@ -61,7 +61,7 @@ export default class PermalinkButton extends React.Component { const {asset} = this.props; return ( -
+
+
this.popover = ref} - className={cn([`${name}-popover`, styles.container, {active: popoverOpen}])}> + className={cn([`${name}-popover`, styles.popover, {[styles.active]: popoverOpen}])}> this.permalinkInput = input} - value={`${asset.url}#${this.props.commentId}`} + defaultValue={`${asset.url}#${this.props.commentId}`} />