diff --git a/assets/css/browser-solidity.css b/assets/css/browser-solidity.css deleted file mode 100644 index d72db57491..0000000000 --- a/assets/css/browser-solidity.css +++ /dev/null @@ -1,322 +0,0 @@ -#files .file { - padding: 0 0.6em; - box-sizing: border-box; - background-color: hsla(229, 100%, 97%, 1); /* backgroundBlue in style-guide.js */ - cursor: pointer; - border-right: 0.5em solid white; - position: relative; - display: table-cell; - text-align: center; - vertical-align: middle; - color: hsla(0, 0%, 40%, 1); /* grey in style-guide.js */ -} - -#files .file.active { - color: black; - font-weight: bold; - border-bottom: 0 none; - padding-right: 2em; -} -#files .file .remove { - position: absolute; - right: 0; - top: 0; - height: 1.25em; - width: 1.25em; - line-height: 1em; - color: hsla(0, 82%, 82%, 1); /* red in style-guide.js */ - display: none; - margin: 0.4em; - text-align: center; -} - -#files .file input { - background-color: transparent; - border: 0 none; - border-bottom: 1px dotted black; - line-height: 1em; - margin: 0.5em 0; -} - -#files .file.active .remove { - display: inline-block; -} - -#righthand-panel { - top: 0; - right: 0; - bottom: 0; - box-sizing: border-box; - overflow: hidden; -} - -#righthand-panel { - display: flex; - flex-direction: column; -} - -#righthand-panel #solIcon { - float: right; - height: 90%; - background-color: white; - padding-right: 5%; - padding-left: 5%; -} - -#righthand-panel #menu { - border-bottom: 3px solid hsla(229, 100%, 97%, 1); /* backgroundBlue in style-guide.js*/ - height: 2em; - font-size: 1em; - margin-top: 0.5em; - box-sizing: content-box; - display: flex; -} - -#righthand-panel #options { - list-style: none; - margin: 0; - padding: 0; - display: flex; - justify-content: space-between; -} - -#righthand-panel #options li.active { - background-color: hsla(229, 100%, 97%, 1); /* backgroundBlue in style-guide.js*/; -} - -#righthand-panel #options li a { - color: inherit; -} - -#righthand-panel #optionViews { - background-color: hsla(229, 100%, 97%, 1); /* backgroundBlue in style-guide.js*/; - overflow: scroll; - height: 100%; -} - -#righthand-panel #optionViews > div { - display: none; -} - -#righthand-panel #optionViews.txView #txView { - display: block; -} - -#righthand-panel #optionViews.settingsView #settingsView { - display: block; -} - -#righthand-panel #optionViews.publishView #publishView { - display: block; -} - -#righthand-panel #optionViews.compileView #compileTabView { - display: block; -} - -#righthand-panel #optionViews.runView #runTabView { - display: block; -} - -#righthand-panel #optionViews.debugView #debugView { - display: block; -} - -#righthand-panel #optionViews.verificationView #verificationView { - display: block; -} - -#righthand-panel #optionViews.staticanalysisView #staticanalysisView { - display: block; -} - -#header #optionViews.supportView #supportView { - display: block; -} - -#header #optionViews.txView input, -#header #optionViews.txView select { - max-width: 13em; - padding: 0.3em; - box-sizing: border-box; - border: 1px solid hsl(0, 0%, 0%); /* black in style-guide.js */ - border-radius: 3px; -} - -#righthand-panel #optionViews .pre { - word-wrap: break-word; - background-color: hsl(0, 0%, 100%); /* white in style-guide.js */ - border-radius: 3px; - display: inline-block; - padding: 0 0.6em; -} - -#righthand-panel #optionViews .hide { - display: none; -} - -#righthand-panel .info { - min-height: 6em; - padding: 0.25em 0; - padding-left: 6em; -} - -#settingsView button { - background-color: hsla(229, 75%, 87%, .5); /* lightBlue in style-guide.js*/ - font-size: 12px; - padding: 0.25em; - margin: 3em 1em .5em 0; - color: black; - border:0 none; - border-radius: 3px; - width: 8em; - cursor: pointer; -} - -#header .origin { - display: block; - word-wrap: break-word; - padding: 1.5em; - font-weight: bold; -} - -#output .udapp { - border: 0 none; - box-shadow: none; - border-bottom: 3px solid hsla(229, 100%, 97%, 1); /* backgroundBlue in style-guide.js*/; -} - -.crow { - overflow: auto; - display: block; - clear: both; - margin: .5em .5em 0 .5em; - padding: .5em; - font-weight: bold; -} - -.crow #txorigin { - margin-left: 0.5em; - text-decoration: none; - background-color: hsla(229, 75%, 87%, .5); /* lightBlue in style-guide.js*/ - cursor: pointer; - font-size: 12px; - color: black; - border-radius: 3px; - border: 0 none; -} - -.contractDetails button { - background-color: transparent; - border: 0 none; - padding: 0; - display: inline-block; - text-decoration: underline; - color: blue; - cursor: pointer; - width: auto; - min-width: 4em; - margin-bottom: 1em; -} - -.sol.success, -.sol.error, -.sol.warning { - word-wrap: break-word; - cursor: pointer; - position: relative; - margin: 0.5em 0 1em 0; - border-radius: 5px; - line-height: 20px; - padding: 8px 15px; -} - -.sol.success pre, -.sol.error pre, -.sol.warning pre { - background-color: transparent; - margin: 0; - font-size: 12px; - border: 0 none; - padding: 0; - border-radius: 0; -} - -.sol.success .close, -.sol.error .close, -.sol.warning .close { - font-weight: bold; - position: absolute; - color: hsl(0, 0%, 0%); /* black in style-guide.js */ - top: 0; - right: 0; - padding: 0.5em; -} - -.sol.error { - background-color: hsla(0, 82%, 82%, 0.1); - border: .2em dotted hsla(0, 82%, 82%, 1); /* red in style-guide.js */ -} - -.sol.warning { - background-color: hsla(59, 56%, 78%, 0.5); - border: .2em dotted hsla(44, 100%, 50%, 1); /* orange in style-guide.js */ -} - -.sol.success { - background-color: hsla(141, 58%, 95%, 1); - border: .2em dotted hsla(141, 40%, 48%, 1); -} - -#ghostbar { - width: 1px; - background-color: hsla(0, 82%, 82%, 1); /* orange in style-guide.js */ - opacity: 0.5; - position: absolute; - cursor: col-resize; - z-index: 9999; - top: 0; - bottom: 0; -} - -input[readonly] { - display: block; - width: 100%; - height: 7px; - padding: .8em; -} - -input[type="file"] { - display: none; -} - -.highlightreference { - position:absolute; - z-index:20; - background-color: lightgrey; - opacity: 0.7 -} - -.highlightreferenceline { - position:absolute; - z-index:20; - background-color: hsla(229, 75%, 87%, .5); /* lightBlue in style-guide.js*/ - opacity: 0.7 -} - -.highlightcode { - position:absolute; - z-index:20; - background-color:hsla(0, 82%, 82%, 1); /* red in style-guide.js */ -} - -.highlightcode_fullLine { - position:absolute; - z-index:20; - background-color: hsla(0, 82%, 82%, .5); /* lightRed in style-guide.js */ - opacity: 0.5; -} - -.ace_gutter-cell.ace_breakpoint{ - background-color: hsla(0, 82%, 82%, 1); /* red in style-guide.js */ -} diff --git a/assets/css/styles.css b/assets/css/styles.css deleted file mode 100644 index 0c7d7070d4..0000000000 --- a/assets/css/styles.css +++ /dev/null @@ -1,281 +0,0 @@ -/*@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);*/ - -body { - padding: 50px; - font: 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; - color: #777; - font-weight: 300; - overflow: hidden; -} - -h1, h2, h3, h4, h5, h6 { - margin: 20px 0 10px; -} - -p, ul, ol, table, pre, dl { - margin: 0 0 20px; -} - -h1, h2, h3 { - line-height: 1.1; -} - -h1 { - font-size: 28px; -} - -h2 { - color: #393939; -} - -a { - color: #39c; - font-weight: 400; - text-decoration: none; -} - -a:hover { - color: #069; -} - -a small { - font-size: 11px; - color: #777; - margin-top: -0.6em; - display: block; -} - -a:hover small { - color: #777; -} - -.wrapper { - width: 860px; - margin: 0 auto; -} - -blockquote { - border-left: 1px solid #e5e5e5; - margin: 0; - padding: 0 0 0 20px; - font-style: italic; -} - -code, pre { - color: #333; - font-size: 11px; -} - -pre { - font: 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 12px; - padding: 8px 15px; - background: #f8f8f8; - border-radius: 5px; - border: 1px solid #e5e5e5; - overflow-x: auto; -} - -table { - width: 100%; - border-collapse: collapse; -} - -th, td { - text-align: left; - padding: 5px 10px; - border-bottom: 1px solid #e5e5e5; -} - -dt { - color: #444; - font-weight: 700; -} - -th { - color: #444; -} - -img { - max-width: 100%; -} - -header { - width: 270px; - float: left; - position: fixed; -} - -header ul { - list-style: none; - height: 40px; - padding: 0; - background: #eee; - background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f8f8f8), color-stop(100%, #dddddd)); - background: -webkit-linear-gradient(top, #f8f8f8 0%, #dddddd 100%); - background: -o-linear-gradient(top, #f8f8f8 0%, #dddddd 100%); - background: -ms-linear-gradient(top, #f8f8f8 0%, #dddddd 100%); - background: linear-gradient(top, #f8f8f8 0%, #dddddd 100%); - border-radius: 5px; - border: 1px solid #d2d2d2; - box-shadow: inset #fff 0 1px 0, inset rgba(0, 0, 0, 0.03) 0 -1px 0; - width: 270px; -} - -header li { - width: 89px; - float: left; - border-right: 1px solid #d2d2d2; - height: 40px; -} - -header li:first-child a { - border-radius: 5px 0 0 5px; -} - -header li:last-child a { - border-radius: 0 5px 5px 0; -} - -header ul a { - line-height: 1; - font-size: 11px; - color: #999; - display: block; - text-align: center; - padding-top: 6px; - height: 34px; -} - -header ul a:hover { - color: #999; - background: -moz-linear-gradient(top, #fff 0%, #ddd 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #ddd)); - background: -webkit-linear-gradient(top, #fff 0%, #ddd 100%); - background: -o-linear-gradient(top, #fff 0%, #ddd 100%); - background: -ms-linear-gradient(top, #fff 0%, #ddd 100%); - background: linear-gradient(top, #fff 0%, #ddd 100%); -} - -header ul a:active { - -webkit-box-shadow: inset 0 2px 2px 0 #ddd; - -moz-box-shadow: inset 0 2px 2px 0 #ddd; - box-shadow: inset 0 2px 2px 0 #ddd; -} - -strong { - color: #222; - font-weight: 700; -} - -header ul li + li { - width: 88px; - border-left: 1px solid #fff; -} - -header ul li + li + li { - border-right: none; - width: 89px; -} - -header ul a strong { - font-size: 14px; - display: block; - color: #222; -} - -section { - width: 500px; - float: right; - padding-bottom: 50px; -} - -small { - font-size: 11px; -} - -hr { - border: 0; - background: #e5e5e5; - height: 1px; - margin: 0 0 20px; -} - -footer { - width: 270px; - float: left; - position: fixed; - bottom: 50px; -} - -@media print, screen and (max-width: 960px) { - - div.wrapper { - width: auto; - margin: 0; - } - - header, section, footer { - float: none; - position: static; - width: auto; - } - - header { - padding-right:320px; - } - - section { - border: 1px solid #e5e5e5; - border-width: 1px 0; - padding: 20px 0; - margin: 0 0 20px; - } - - header a small { - display: inline; - } - - header ul { - position: absolute; - right: 50px; - top: 52px; - } -} - -@media print, screen and (max-width: 720px) { - body { - word-wrap: break-word; - } - - header { - padding: 0; - } - - header ul, header p.view { - position: static; - } - - pre, code { - word-wrap: normal; - } -} - -@media print, screen and (max-width: 480px) { - body { - padding: 15px; - } - - header ul { - display: none; - } -} - -@media print { - body { - padding: 0.4in; - font-size: 12pt; - color: #444; - } -} diff --git a/src/app.js b/src/app.js index f888d9d52a..7c5e68b1b5 100644 --- a/src/app.js +++ b/src/app.js @@ -44,12 +44,16 @@ var css = csjs` html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } body { + font: 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; margin : 0; padding : 0; font-size : 12px; - color : ${styles.colors.black}; + color : ${styles.leftPanel.text_Primary}; font-weight : normal; } + pre { + overflow-x: auto; + } .browsersolidity { position : relative; width : 100vw; @@ -57,6 +61,7 @@ var css = csjs` overflow : hidden; } .centerpanel { + background-color : ${styles.colors.transparent}; display : flex; flex-direction : column; position : absolute; @@ -65,6 +70,7 @@ var css = csjs` overflow : hidden; } .leftpanel { + background-color : ${styles.leftPanel.backgroundColor_Panel}; display : flex; flex-direction : column; position : absolute; @@ -74,6 +80,7 @@ var css = csjs` overflow : hidden; } .rightpanel { + background-color : ${styles.rightPanel.backgroundColor_Panel}; display : flex; flex-direction : column; position : absolute; @@ -82,6 +89,17 @@ var css = csjs` bottom : 0; overflow : hidden; } + .highlightcode { + position:absolute; + z-index:20; + background-color: ${styles.editor.backgroundColor_DebuggerMode}; + } + .highlightcode_fullLine { + position:absolute; + z-index:20; + background-color: ${styles.editor.backgroundColor_DebuggerMode}; + opacity: 0.5; + } ` class App { @@ -576,7 +594,7 @@ function run () { if (config.get('currentFile') !== this.source) { fileManager.switchFile(this.source) } - this.statementMarker = editor.addMarker(lineColumnPos, this.source, 'highlightcode') + this.statementMarker = editor.addMarker(lineColumnPos, this.source, css.highlightcode) editor.scrollToLine(lineColumnPos.start.line, true, true, function () {}) if (lineColumnPos.start.line === lineColumnPos.end.line) { this.fullLineMarker = editor.addMarker({ @@ -588,7 +606,7 @@ function run () { line: lineColumnPos.start.line + 1, column: 0 } - }, this.source, 'highlightcode_fullLine') + }, this.source, css.highlightcode_fullLine) } } }, diff --git a/src/app/editor/contextView.js b/src/app/editor/contextView.js index 671e4d2d57..c857402a2b 100644 --- a/src/app/editor/contextView.js +++ b/src/app/editor/contextView.js @@ -1,40 +1,43 @@ 'use strict' var yo = require('yo-yo') +var csjs = require('csjs-inject') var remix = require('ethereum-remix') var styleGuide = remix.ui.styleGuide -var SourceMappingDecoder = remix.util.SourceMappingDecoder var styles = styleGuide() -var csjs = require('csjs-inject') +var SourceMappingDecoder = remix.util.SourceMappingDecoder var css = csjs` .contextview { - background-color : ${styles.colors.backgroundBlue}; opacity : 0.8; - width : 20em; - height : 6em; - border-color : transparent; - border-radius : 3px; - border : .3px solid hsla(0, 0%, 40%, .2); } .container { - padding : 1em; + padding : 1px 15px; + } + .line { + display : flex; + justify-content : flex-end; + align-items : center; + text-overflow : ellipsis; + overflow : hidden; + white-space : nowrap; + color : ${styles.editor.text_Primary}; + font-size : 11px; } .type { font-style : italic; - text-overflow : ellipsis; - width : 18em; - overflow : hidden; - white-space : nowrap; + margin-right : 5px; } .name { font-weight : bold; - text-overflow : ellipsis; - width : 18em; - overflow : hidden; - white-space : nowrap; + margin-right : 15px; } .jumpto { cursor : pointer; + margin-right : 5px; + color : ${styles.editor.icon_Color_Editor}; + } + jumpto:hover { + color : ${styles.editor.icon_HoverColor_Editor}; } .referencesnb { float : right; @@ -126,7 +129,7 @@ class ContextView { } } - return yo`
+ return yo`
${type}
${node.attributes.name}
diff --git a/src/app/editor/editor.js b/src/app/editor/editor.js index a06d92059f..cd352da540 100644 --- a/src/app/editor/editor.js +++ b/src/app/editor/editor.js @@ -8,9 +8,13 @@ var Range = ace.acequire('ace/range').Range require('brace/ext/language_tools') var langTools = ace.acequire('ace/ext/language_tools') require('./mode-solidity.js') +var remix = require('ethereum-remix') +var styleGuide = remix.ui.styleGuide +var styles = styleGuide() var css = csjs` .ace-editor { + background-color : ${styles.editor.backgroundColor_Editor}; width : 100%; } ` @@ -19,8 +23,30 @@ document.head.appendChild(yo` .ace-tm .ace_gutter, .ace-tm .ace_gutter-active-line, .ace-tm .ace_marker-layer .ace_active-line { - background-color: rgba(225, 229, 251, 0.5); + background-color: ${styles.editor.backgroundColor_Tabs_Highlights}; } + .ace_gutter-cell.ace_breakpoint{ + background-color: ${styles.editor.backgroundColor_DebuggerMode}; + } + .highlightreference { + position:absolute; + z-index:20; + background-color: ${styles.editor.backgroundColor_Editor_Context_Highlights}; + opacity: 0.7 + } + + .highlightreferenceline { + position:absolute; + z-index:20; + background-color: ${styles.editor.backgroundColor_Editor_Context_Highlights}; + opacity: 0.7 + } + + .highlightcode { + position:absolute; + z-index:20; + background-color: ${styles.editor.backgroundColor_Editor_Context_Error_Highlights}; + } `) diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index c7b170e56f..828bfea654 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -17,18 +17,19 @@ var typeConversion = require('../../lib/typeConversion') var css = csjs` .log { display: flex; - align-items: baseline; + align-items: end; justify-content: space-between; } .tx { - color: ${styles.colors.violet}; + color: ${styles.terminal.text_Title_TransactionLog}; + font-weight: bold; width: 45%; } .txTable, .tr, .td { border-collapse: collapse; font-size: 10px; - color: ${styles.colors.grey}; - border: 1px dashed ${styles.colors.black}; + color: ${styles.terminal.text_Primary}; + border: 1px solid ${styles.terminal.text_Primary}; } #txTable { margin-top: 1%; @@ -44,8 +45,13 @@ var css = csjs` .buttons { display: flex; } + .debug { + ${styles.terminal.button_Log_Debug} + } + .details { + ${styles.terminal.button_Log_Details} + } .debug, .details { - ${styles.button} min-height: 18px; max-height: 18px; width: 45px; @@ -53,16 +59,15 @@ var css = csjs` font-size: 10px; margin-left: 5px; } - .debug { - background-color: ${styles.colors.lightOrange}; - } - .details { - background-color: ${styles.colors.lightGrey}; - } .clipboardCopy { margin-right: 0.5em; cursor: pointer; - }` + color: ${styles.terminal.icon_Color_CopyToClipboard}; + } + .clipboardCopy:hover { + color: ${styles.terminal.icon_HoverColor_CopyToClipboard}; + } + ` /** * This just export a function that register to `newTransaction` and forward them to the logger. * Emit debugRequested diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 28da9ceca8..146886f192 100755 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -15,15 +15,19 @@ var css = csjs` .fileexplorer { box-sizing : border-box; } + input[type="file"] { + display: none; + } .folder, .file { font-size : 14px; + cursor : pointer; } .hasFocus { - background-color : ${styles.colors.backgroundBlue}; + background-color : ${styles.leftPanel.backgroundColor_FileExplorer}; } .rename { - background-color : ${styles.colors.white}; + background-color : ${styles.leftPanel.backgroundColor_Panel}; } .remove { margin-left : auto; @@ -182,7 +186,7 @@ function fileExplorer (appAPI, files) { this.style.paddingRight = '19px' return this.removeChild(deleteButton) } - this.style.backgroundColor = styles.colors.backgroundBlue + this.style.backgroundColor = styles.leftPanel.backgroundColor_FileExplorer this.style.paddingRight = '0px' this.appendChild(deleteButton) } @@ -249,7 +253,7 @@ function fileExplorer (appAPI, files) { var isFolder = label.className.indexOf('folder') !== -1 var save = textUnderEdit !== label.innerText if (save) { - modalDialogCustom.confirm(null, `Do you want to rename?`, () => { rename() }, () => { cancelRename() }) + modalDialogCustom.confirm(null, 'Do you want to rename?', () => { rename() }, () => { cancelRename() }) } label.removeAttribute('contenteditable') label.classList.remove(css.rename) diff --git a/src/app/panels/editor-panel.js b/src/app/panels/editor-panel.js index fc66620965..51240689b8 100644 --- a/src/app/panels/editor-panel.js +++ b/src/app/panels/editor-panel.js @@ -7,6 +7,49 @@ var styles = styleGuide() var Terminal = require('./terminal') +var cssTabs = yo` + +` + var css = csjs` .editorpanel { display : flex; @@ -14,10 +57,10 @@ var css = csjs` height : 100%; } .tabsbar { + background-color : ${styles.editor.backgroundColor_Panel}; display : flex; overflow : hidden; - height : 2em; - margin-top : 0.5em; + height : 30px; } .tabs { position : relative; @@ -29,6 +72,7 @@ var css = csjs` overflow : hidden; } .files { + display : flex; position : relative; list-style : none; margin : 0; @@ -47,13 +91,13 @@ var css = csjs` .changeeditorfontsize i { cursor : pointer; display : block; - color : ${styles.colors.black}; + color : ${styles.editor.icon_Color_Editor}; } .changeeditorfontsize i { cursor : pointer; } .changeeditorfontsize i:hover { - color : ${styles.colors.orange}; + color : ${styles.editor.icon_HoverColor_Editor}; } .buttons { display : flex; @@ -67,13 +111,15 @@ var css = csjs` padding : 10px; width : 100%; font-weight : bold; - color : ${styles.colors.black}; + color : ${styles.leftPanel.icon_Color_TogglePanel}; } .toggleLHP i { cursor : pointer; + font-size : 14px; + font-weight : bold; } .toggleLHP i:hover { - color : ${styles.colors.orange}; + color : ${styles.leftPanel.icon_HoverColor_TogglePanel}; } .scroller { position : absolute; @@ -81,7 +127,7 @@ var css = csjs` text-align : center; cursor : pointer; vertical-align : middle; - background-color : ${styles.colors.white}; + background-color : ${styles.colors.general_BackgroundColor}; height : 100%; font-size : 1.3em; color : orange; @@ -94,16 +140,18 @@ var css = csjs` left : 0; } .toggleRHP { - margin-top : 0.5em; + margin : 0.5em; font-weight : bold; - color : ${styles.colors.black}; + color : ${styles.rightPanel.icon_Color_TogglePanel}; right : 0; } .toggleRHP i { cursor : pointer; + font-size : 14px; + font-weight : bold; } .toggleRHP i:hover { - color : ${styles.colors.orange}; + color : ${styles.rightPanel.icon_HoverColor_TogglePanel}; } .show { opacity : 1; @@ -114,7 +162,6 @@ var css = csjs` pointer-events : none; transition : .3s opacity ease-in; } - .content { position : relative; display : flex; @@ -122,17 +169,10 @@ var css = csjs` height : 100%; width : 100%; } - - .banner { - width : 25em; - } - .contextviewcontainer{ - position : absolute; - z-index : 100; - right : 20px; - top : 10px; - width : 20em; + width : 100%; + height : 20px; + background-color : ${styles.editor.backgroundColor_Tabs_Highlights}; } ` @@ -169,10 +209,7 @@ class EditorPanel { context () { return self._api.context() } - }, - banner: yo`
- Remix -
` + } }) } self._components.terminal.event.register('filterChanged', (type, value) => { @@ -184,10 +221,13 @@ class EditorPanel { self._api.txListener.setListenOnNetwork(listenOnNetWork) }) } + if (document && document.head) { + document.head.appendChild(cssTabs) + } } _adjustLayout (direction, delta) { var limitUp = 0 - var limitDown = 20 + var limitDown = 32 var containerHeight = window.innerHeight - limitUp // - menu bar containerHeight var self = this var layout = self.data._layout[direction] @@ -231,7 +271,7 @@ class EditorPanel {
${self._api.contextview.render()} -
+
${self._view.editor} ${self._view.terminal}
diff --git a/src/app/panels/file-panel.js b/src/app/panels/file-panel.js index 94356b1058..83f2061b0c 100644 --- a/src/app/panels/file-panel.js +++ b/src/app/panels/file-panel.js @@ -82,7 +82,7 @@ var css = csjs` cursor : pointer; } .treeview { - background-color : ${styles.colors.white}; + background-color : ${styles.colors.general_BackgroundColor}; } .treeviews { overflow-y : auto; @@ -340,7 +340,7 @@ function filepanel (appAPI, filesProvider) { } }) } - modalDialogCustom.confirm(null, `Are you very sure you want to publish all your files anonymously as a public gist on github.com?`, () => { + modalDialogCustom.confirm(null, 'Are you very sure you want to publish all your files anonymously as a public gist on github.com?', () => { toGist() }) } diff --git a/src/app/panels/righthand-panel.js b/src/app/panels/righthand-panel.js index b3d37e7f4c..f540456851 100644 --- a/src/app/panels/righthand-panel.js +++ b/src/app/panels/righthand-panel.js @@ -15,15 +15,58 @@ var styleGuide = remix.ui.styleGuide var styles = styleGuide() var css = csjs` + #righthand-panel { + display: flex; + flex-direction: column; + top: 0; + right: 0; + bottom: 0; + box-sizing: border-box; + overflow: hidden; + } + #optionViews { + background-color: ${styles.rightPanel.backgroundColor_Tab}; + overflow: scroll; + height: 100%; + } + #optionViews > div { + display: none; + } + #optionViews .pre { + word-wrap: break-word; + background-color: ${styles.rightPanel.BackgroundColor_Pre}; + border-radius: 3px; + display: inline-block; + padding: 0 0.6em; + } + #optionViews .hide { + display: none; + } + .menu { + display: flex; + } .options { - float: left; - padding-top: 0.7em; - min-width: 60px; - font-size: 0.9em; - cursor: pointer; - background-color: ${styles.colors.transparent}; - font-size: 1em; - text-align: center; + float: left; + padding-top: 0.7em; + min-width: 60px; + font-size: 0.9em; + cursor: pointer; + font-size: 1em; + text-align: center; + } + .opts { + display: flex; + list-style: none; + margin: 0; + padding: 0; + } + .opts_li { + display: block; + font-weight: bold; + color: ${styles.rightPanel.text_Primary}; + } + .opts_li:hover { + color: ${styles.rightPanel.text_Secondary}; } .dragbar { position : absolute; @@ -32,11 +75,11 @@ var css = csjs` bottom : 0; cursor : col-resize; z-index : 999; - border-left : 2px solid hsla(215, 81%, 79%, .3); + border-left : 2px solid ${styles.rightPanel.bar_Dragging}; } .ghostbar { width : 3px; - background-color : ${styles.colors.lightBlue}; + background-color : ${styles.rightPanel.bar_Ghost}; opacity : 0.5; position : absolute; cursor : col-resize; @@ -50,6 +93,15 @@ var css = csjs` .header { height : 100%; } + .solIcon { + margin-left: 10px; + margin-right: 30px; + display: flex; + align-self: center; + height: 29px; + width: 20px; + background-color: ${styles.colors.transparent}; + } ` // ------------------------------------------------------------------ @@ -62,15 +114,15 @@ function RighthandPanel (appAPI, events, opts) { self.event = new EventManager() self._view = {} - var optionViews = yo`
` + var optionViews = yo`
${cssTabs}
` var options = yo` -