From fd54c0cdaec91a7ba10c5478cad576a3611218a4 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 6 Feb 2018 14:51:18 -0500 Subject: [PATCH] move css styles of support-tab to its own file --- src/app/tabs/styles/support-tab-styles.js | 56 +++++++++++++++++++++ src/app/tabs/support-tab.js | 60 ++--------------------- 2 files changed, 59 insertions(+), 57 deletions(-) create mode 100644 src/app/tabs/styles/support-tab-styles.js diff --git a/src/app/tabs/styles/support-tab-styles.js b/src/app/tabs/styles/support-tab-styles.js new file mode 100644 index 0000000000..36defdfe4a --- /dev/null +++ b/src/app/tabs/styles/support-tab-styles.js @@ -0,0 +1,56 @@ +var csjs = require('csjs-inject') +var styleGuide = require('remix-lib').ui.themeChooser +var styles = styleGuide.chooser() + +var css = csjs` + .supportTabView { + height: 100vh; + padding: 2%; + padding-bottom: 3em; + display: flex; + flex-direction: column; + overflow: hidden; + } + .chat { + ${styles.rightPanel.supportTab.box_IframeContainer} + display: flex; + flex-direction: column; + align-items: center; + height: 85%; + padding: 0; + } + .chatTitle { + height: 40px; + width: 90%; + display: flex; + align-items: center; + justify-content: center; + margin-top: 15px; + } + .chatTitle:hover { + cursor: pointer; + } + .icon { + height: 70%; + margin-right: 2%; + } + .chatTitleText { + font-size: 17px; + font-weight: bold; + } + .chatTitleText { + opacity: 0.8; + } + .chatIframe { + width: 100%; + height: 100%; + transform: scale(0.9); + padding: 0; + border: none; + } + .infoBox { + ${styles.rightPanel.supportTab.box_SupportInfo} + } +` + +module.exports = css diff --git a/src/app/tabs/support-tab.js b/src/app/tabs/support-tab.js index c3bfb49701..e195ed70d5 100644 --- a/src/app/tabs/support-tab.js +++ b/src/app/tabs/support-tab.js @@ -1,60 +1,6 @@ var yo = require('yo-yo') -// -------------- styling ---------------------- -var csjs = require('csjs-inject') -var styleGuide = require('remix-lib').ui.themeChooser -var styles = styleGuide.chooser() - -var css = csjs` - .supportTabView { - height: 100vh; - padding: 2%; - padding-bottom: 3em; - display: flex; - flex-direction: column; - overflow: hidden; - } - .chat { - ${styles.rightPanel.supportTab.box_IframeContainer} - display: flex; - flex-direction: column; - align-items: center; - height: 85%; - padding: 0; - } - .chatTitle { - height: 40px; - width: 90%; - display: flex; - align-items: center; - justify-content: center; - margin-top: 15px; - } - .chatTitle:hover { - cursor: pointer; - } - .icon { - height: 70%; - margin-right: 2%; - } - .chatTitleText { - font-size: 17px; - font-weight: bold; - } - .chatTitleText { - opacity: 0.8; - } - .chatIframe { - width: 100%; - height: 100%; - transform: scale(0.9); - padding: 0; - border: none; - } - .infoBox { - ${styles.rightPanel.supportTab.box_SupportInfo} - } -` +var css = require('./styles/support-tab-styles') var infoText = yo`
@@ -65,8 +11,6 @@ var infoText = yo`
` -module.exports = supportTab - function supportTab (container, appAPI, events, opts) { var el = yo`
@@ -90,3 +34,5 @@ function supportTab (container, appAPI, events, opts) { function openLink () { window.open('https://gitter.im/ethereum/remix') } + +module.exports = supportTab