diff --git a/src/app/debugger-tab.js b/src/app/debugger-tab.js
index aa987c0664..66ca52d36a 100644
--- a/src/app/debugger-tab.js
+++ b/src/app/debugger-tab.js
@@ -2,16 +2,24 @@ var yo = require('yo-yo')
// -------------- styling ----------------------
var csjs = require('csjs-inject')
+var styleGuide = require('./style-guide')
+var styles = styleGuide()
var css = csjs`
.debuggerTabView {
padding: 2%;
}
+ .debugger extends ${styles.displayBox} {
+ margin-bottom: 1%;
+ }
`
module.exports = debuggerTab
function debuggerTab (container, appAPI, events, opts) {
- var el = yo`
-
-
+
+
Copy files
Copy all files to another instance of Browser-solidity.
diff --git a/src/app/righthand-panel.js b/src/app/righthand-panel.js
index 9c2d35ce2c..de7a4ea348 100644
--- a/src/app/righthand-panel.js
+++ b/src/app/righthand-panel.js
@@ -99,9 +99,7 @@ function RighthandPanel (appAPI, events, opts) {
;[...options.children].forEach((el) => { el.classList.add(css.options) })
// ----------------- tabbed menu -----------------
- var tabbedMenuAPI = {
- warnCompilerLoading: appAPI.warnCompilerLoading
- }
+ var tabbedMenuAPI = {}
// load tabbed menu component
var tabEvents = {compiler: events.compiler, app: events.app}
tabbedMenu(options, tabbedMenuAPI, tabEvents, {})
diff --git a/src/app/settings-tab.js b/src/app/settings-tab.js
index f78e39b204..06cd3a7598 100644
--- a/src/app/settings-tab.js
+++ b/src/app/settings-tab.js
@@ -12,6 +12,7 @@ var css = csjs`
}
.info extends ${styles.infoTextBox} {
margin-bottom: 2em;
+ word-break: break-word;
}
.crow {
margin-top: 1em;
@@ -21,23 +22,6 @@ var css = csjs`
float: left;
max-width: 90%;
}
- .button extends ${styles.button} {
- background-color: #C6CFF7;
- width: 100%;
- align-self: center;
- text-align: -webkit-center;
- }
- .col1 extends ${styles.titleL} {
- float: left;
- align-self: center;
- }
- .checkboxText {
- margin-left: 3px;
- }
- .compilationWarning extends ${styles.warningTextBox} {
- margin-top: 1em;
- margin-left: 0.5em;
- }
}
`
module.exports = SettingsTab
@@ -46,21 +30,6 @@ function SettingsTab (container, appAPI, appEvents, opts) {
if (typeof container === 'string') container = document.querySelector(container)
if (!container) throw new Error('no container given')
- var warnCompilationSlow = yo``
- warnCompilationSlow.className = css.compilationWarning
- appEvents.compiler.register('compilationDuration', function tabHighlighting (speed) {
- var settingsView = document.querySelector('#header #menu .settingsView')
- if (speed > 1000) {
- warnCompilationSlow.innerHTML = `Last compilation took ${speed}ms. We suggest to turn off autocompilation.`
- warnCompilationSlow.style.visibility = 'visible'
- settingsView.style.color = '#FF8B8B'
- } else {
- warnCompilationSlow.innerHTML = ''
- warnCompilationSlow.style.visibility = 'hidden'
- settingsView.style.color = ''
- }
- })
-
var el = yo`
-
- ${warnCompilationSlow}
`
container.appendChild(el)
diff --git a/src/app/staticanalysis/staticAnalysisView.js b/src/app/staticanalysis/staticAnalysisView.js
index aa32f80b37..bf717d60c0 100644
--- a/src/app/staticanalysis/staticAnalysisView.js
+++ b/src/app/staticanalysis/staticAnalysisView.js
@@ -5,12 +5,26 @@ var $ = require('jquery')
var utils = require('../utils')
var csjs = require('csjs-inject')
+var styleGuide = require('../style-guide')
+var styles = styleGuide()
+
var css = csjs`
.analysis {
font-height: 1.5em;
}
.result {
- margin-top: 1em;
+ margin-top: 1%;
+ }
+ .buttons extends ${styles.displayBox} {
+ display: flex;
+ align-items: center;
+ }
+ .buttonRun extends ${styles.button} {
+ background-color: ${styles.colors.blue};
+ margin-right: 1%;
+ }
+ .analysisModulesContainer extends ${styles.displayBox} {
+ margin-bottom: 1%;
}
`
@@ -37,13 +51,12 @@ staticAnalysisView.prototype.render = function () {
var self = this
var view = yo`
-
Static Analysis
-
- ${this.modulesView}
+ ${this.modulesView}
-
@@ -93,10 +106,10 @@ staticAnalysisView.prototype.run = function () {
})
})
if (warningContainer.html() === '') {
- $('#header #menu .staticanalysisView').css('color', '')
+ $('#righthand-panel #menu .staticanalysisView').css('color', '')
warningContainer.html('No warning to report')
} else {
- $('#header #menu .staticanalysisView').css('color', '#FF8B8B')
+ $('#righthand-panel #menu .staticanalysisView').css('color', '#FF8B8B')
}
})
} else {
@@ -123,8 +136,7 @@ function renderModules (modules) {
`
})
- return yo`
-
+ return yo`