From b3fc92091965d52645e0b4a675c8e3766102d62b Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 9 Oct 2017 23:24:25 +0700 Subject: [PATCH] Refactor EmbedLink styles --- .../routes/Configure/components/EmbedLink.css | 50 +++++++++++++++++++ .../routes/Configure/components/EmbedLink.js | 6 +-- 2 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 client/coral-admin/src/routes/Configure/components/EmbedLink.css diff --git a/client/coral-admin/src/routes/Configure/components/EmbedLink.css b/client/coral-admin/src/routes/Configure/components/EmbedLink.css new file mode 100644 index 000000000..3054bd6c5 --- /dev/null +++ b/client/coral-admin/src/routes/Configure/components/EmbedLink.css @@ -0,0 +1,50 @@ +.card { + margin-bottom: 20px; + align-items: flex-start; + min-height: 100px; + max-width: 600px; +} + +.header { + margin-top: 3px; + margin-bottom: 7px; + font-size: 18px; + font-weight: 500; +} + +.wrapper { + width: 100%; +} + +.embedInput { + width: 100%; + display: block; + outline: none; + border: 1px solid rgba(0,0,0,.12); + padding: 6px; + box-sizing: border-box; + border-radius: 2px; + margin: 5px auto; + min-height: 175px; + font-size: 14px; + resize: none; +} + +.copiedText { + display: inline-block; + color: #00796b; + padding: 12px; + font-size: 14px; + float: right; +} + +.copyButton { + display: inline-block; + width: 200px; + float: right; +} + +.actions { + display: inline-block; + width: 100%; +} diff --git a/client/coral-admin/src/routes/Configure/components/EmbedLink.js b/client/coral-admin/src/routes/Configure/components/EmbedLink.js index 744692092..694ac14c9 100644 --- a/client/coral-admin/src/routes/Configure/components/EmbedLink.js +++ b/client/coral-admin/src/routes/Configure/components/EmbedLink.js @@ -1,7 +1,7 @@ import React, {Component} from 'react'; import t from 'coral-framework/services/i18n'; import join from 'url-join'; -import styles from './Configure.css'; +import styles from './EmbedLink.css'; import {Button, Card} from 'coral-ui'; import {BASE_URL} from 'coral-framework/constants/url'; @@ -34,9 +34,9 @@ class EmbedLink extends Component { "> `.trim(); return ( - +
-
Embed Comment Stream
+
Embed Comment Stream

{t('configure.copy_and_paste')}