1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Formatted dev mode better

This commit is contained in:
Dan Finlay 2016-06-30 23:50:20 -07:00
parent 7f9200b1bf
commit 6ec387b675
6 changed files with 23 additions and 7 deletions

View File

@ -11,4 +11,16 @@
<script src="./bundle.js" type="text/javascript" charset="utf-8"></script> <script src="./bundle.js" type="text/javascript" charset="utf-8"></script>
</body> </body>
<style>
html, body, #app-content, .super-dev-container {
height: 100%;
width: 100%;
position: relative;
background: #cccccc;
}
.mock-app-root {
background: #F7F7F7;
}
</style>
</html> </html>

View File

@ -54,6 +54,8 @@ render(
style: { style: {
height: '500px', height: '500px',
width: '360px', width: '360px',
boxShadow: '2px 2px 5px grey',
margin: '20px',
}, },
}, [ }, [
h(Root, { h(Root, {

View File

@ -17,6 +17,9 @@ NewComponent.prototype.render = function () {
const selected = state.selected || selectedKey const selected = state.selected || selectedKey
return h('select', { return h('select', {
style: {
margin: '20px 20px 0px',
},
value: selected, value: selected,
onChange:(event) => { onChange:(event) => {
const selectedKey = event.target.value const selectedKey = event.target.value

View File

@ -61,6 +61,7 @@ App.prototype.render = function () {
style: { style: {
// Windows was showing a vertical scroll bar: // Windows was showing a vertical scroll bar:
overflow: 'hidden', overflow: 'hidden',
position: 'relative',
}, },
}, [ }, [
@ -197,7 +198,7 @@ App.prototype.renderNetworkDropdown = function () {
this.setState({ isNetworkMenuOpen: !isOpen }) this.setState({ isNetworkMenuOpen: !isOpen })
}, },
style: { style: {
position: 'fixed', position: 'absolute',
left: 0, left: 0,
zIndex: 0, zIndex: 0,
}, },
@ -246,7 +247,7 @@ App.prototype.renderDropdown = function () {
this.props.dispatch(actions.closeMenu()) this.props.dispatch(actions.closeMenu())
}, },
style: { style: {
position: 'fixed', position: 'absolute',
right: 0, right: 0,
zIndex: 0, zIndex: 0,
}, },

View File

@ -22,13 +22,14 @@ DisclaimerScreen.prototype.render = function () {
return ( return (
h('.flex-column.flex-center.flex-grow', [ h('.flex-column.flex-center.flex-grow', [
h('h3.flex-center.text-transform-uppercase', { h('h3.flex-center.text-transform-uppercase.terms-header', {
style: { style: {
background: '#EBEBEB', background: '#EBEBEB',
color: '#AEAEAE', color: '#AEAEAE',
marginBottom: 24, marginBottom: 24,
width: '100%', width: '100%',
fontSize: '20px', fontSize: '20px',
textAlign: 'center',
padding: 6, padding: 6,
}, },
}, [ }, [
@ -40,7 +41,7 @@ DisclaimerScreen.prototype.render = function () {
.markdown { .markdown {
font-family: Times New Roman; font-family: Times New Roman;
} }
.markdown h1,h2,h3,h4 { .markdown h1, .markdown h2, .markdown h3 {
margin: 10px 0; margin: 10px 0;
font-family: arial sans-serif; font-family: arial sans-serif;
font-weight: bold; font-weight: bold;

View File

@ -1,3 +0,0 @@
Full disclaimer coming soon. In the meanwhile, be aware this is experimental software. We are not responsible for how you use MetaMask, or any funds that you spend or lose with it. The only way to be absolutely sure you will lose no funds on the internet is to put no funds onto the internet. Enjoy!