Commit c48f803b authored by ninabreznik's avatar ninabreznik Committed by yann300

Unify dropdown menues = apply strickly from style-guide

parent 66260aac
...@@ -200,16 +200,6 @@ ...@@ -200,16 +200,6 @@
font-weight: bold; font-weight: bold;
} }
#righthand-panel #versionSelector {
text-decoration: none;
background-color: #C6CFF7;
cursor: pointer;
font-size: 12px;
color: black;
border-radius: 3px;
border: 0 none;
}
.contract.hidesub { .contract.hidesub {
padding-bottom: 0; padding-bottom: 0;
margin: 0; margin: 0;
......
var yo = require('yo-yo')
var csjs = require('csjs-inject')
// -------------- styling ----------------------
var csjs = require('csjs-inject')
var styleGuide = require('./style-guide')
var styles = styleGuide()
module.exports = dropdown
// options = []
function dropdown (options = []) {
var el = yo`
<select>
${options.map(opt => yo`<option>${opt}</option>`)}
</select>
`
}
...@@ -73,11 +73,7 @@ var css = csjs` ...@@ -73,11 +73,7 @@ var css = csjs`
align-items: center; align-items: center;
} }
.contractNames extends ${styles.dropdown} { .contractNames extends ${styles.dropdown} {
width: 250px;
margin-right: 5%; margin-right: 5%;
height: 32px;
font-size: 12px;
font-weight: bold;
} }
.contractButtons { .contractButtons {
display: flex; display: flex;
......
...@@ -44,8 +44,6 @@ var css = csjs` ...@@ -44,8 +44,6 @@ var css = csjs`
float: left; float: left;
} }
.select extends ${styles.dropdown} { .select extends ${styles.dropdown} {
width: 75%;
float: left;
text-align: center; text-align: center;
} }
.copyaddress { .copyaddress {
...@@ -58,11 +56,6 @@ var css = csjs` ...@@ -58,11 +56,6 @@ var css = csjs`
.copyaddress:hover { .copyaddress:hover {
opacity: 1; opacity: 1;
} }
.selectAddress extends ${styles.dropdown} {
width: 70%;
float: left;
text-align: center;
}
.instanceContainer extends ${styles.displayBox} { .instanceContainer extends ${styles.displayBox} {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -73,11 +66,6 @@ var css = csjs` ...@@ -73,11 +66,6 @@ var css = csjs`
margin-top: 2%; margin-top: 2%;
} }
.contractNames extends ${styles.dropdown} { .contractNames extends ${styles.dropdown} {
height: 32px;
font-size: 12px;
width: 100%;
font-weight: bold;
background-color: ${styles.colors.lightGrey}
} }
.buttons { .buttons {
display: flex; display: flex;
...@@ -371,7 +359,7 @@ function settings (appAPI, appEvents) { ...@@ -371,7 +359,7 @@ function settings (appAPI, appEvents) {
</div> </div>
<div class="${css.crow}"> <div class="${css.crow}">
<div class="${css.col1_1}">Account</div> <div class="${css.col1_1}">Account</div>
<select name="txorigin" class="${css.selectAddress}" id="txorigin"></select> <select name="txorigin" class="${css.select}" id="txorigin"></select>
<i title="Copy Address" class="copytxorigin fa fa-clipboard ${css.copyaddress}" onclick=${copyAddress} aria-hidden="true"></i> <i title="Copy Address" class="copytxorigin fa fa-clipboard ${css.copyaddress}" onclick=${copyAddress} aria-hidden="true"></i>
</div> </div>
<div class="${css.crow}"> <div class="${css.crow}">
......
...@@ -19,8 +19,6 @@ var css = csjs` ...@@ -19,8 +19,6 @@ var css = csjs`
display: flex; display: flex;
} }
.select extends ${styles.dropdown} { .select extends ${styles.dropdown} {
float: left;
max-width: 90%;
} }
} }
` `
......
...@@ -151,7 +151,8 @@ function styleGuide () { ...@@ -151,7 +151,8 @@ function styleGuide () {
} }
.dropdown { .dropdown {
font-size : 10px; font-size : 12px;
font-weight : bold;
padding : 0 8px; padding : 0 8px;
text-decoration : none; text-decoration : none;
background-color : ${colors.white}; background-color : ${colors.white};
...@@ -159,9 +160,10 @@ function styleGuide () { ...@@ -159,9 +160,10 @@ function styleGuide () {
border : 1px solid ${colors.lightGrey}; border : 1px solid ${colors.lightGrey};
border-radius : 3px; border-radius : 3px;
height : 30px; height : 30px;
width : 250px;
text-align : center; text-align : center;
overflow : hidden; overflow : hidden;
word-break : normal; word-break : normal;
} }
` `
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment