forked from ethereum/remix-ide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied basic unified styling on each tab component, using style-sheet
- Loading branch information
1 parent
a9a2b7d
commit 695dcf3
Showing
12 changed files
with
216 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
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%; | ||
} | ||
` | ||
|
||
module.exports = debuggerTab | ||
|
||
function debuggerTab () { | ||
return yo` <div id="debugView"><div id="debugger"></div></div>` | ||
return yo` <div class="${css.debuggerTabView} "id="debugView"><div id="debugger"></div></div>` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,45 @@ | ||
var yo = require('yo-yo') | ||
|
||
// -------------- styling ---------------------- | ||
var csjs = require('csjs-inject') | ||
var styleGuide = require('./style-guide') | ||
var styles = styleGuide() | ||
|
||
var css = csjs` | ||
.filesTabView { | ||
padding: 2%; | ||
} | ||
.crow { | ||
margin-top: 1em; | ||
display: flex; | ||
} | ||
.infoBox extends ${styles.infoTextBox} { | ||
margin-top: 2em; | ||
} | ||
` | ||
|
||
module.exports = filesTab | ||
|
||
function filesTab () { | ||
return yo` | ||
<div id="publishView"> | ||
<p> | ||
<div class="${css.filesTabView}" id="publishView"> | ||
<div class="${css.crow}"> | ||
<button id="gist" title="Publish all files as public gist on github.com"> | ||
<i class="fa fa-github"></i> | ||
Publish Gist | ||
</button> | ||
Publish all open files to an anonymous github gist.<br> | ||
</div> | ||
<div class="${css.crow}"> | ||
<button id="copyOver" title="Copy all files to another instance of browser-solidity."> | ||
Copy files | ||
</button> | ||
Copy all files to another instance of Browser-solidity. | ||
</p> | ||
<p>You can also load a gist by adding the following | ||
</div> | ||
<div class="${css.infoBox}">You can also load a gist by adding the following | ||
<span class="pre">#gist=GIST_ID</span> | ||
to your url, where GIST_ID is the id of the gist to load. | ||
</p> | ||
</div> | ||
</div> | ||
` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.