layout refinments

This commit is contained in:
Cássio Zen 2016-07-08 05:58:06 -03:00
parent ad0a98b082
commit b0f26e7cd7
2 changed files with 23 additions and 9 deletions

View File

@ -1,26 +1,35 @@
:root { :root {
--foregroundColor: #222; --foregroundColor: #222;
--backgroundColor: #eaeaea; --backgroundColor: rgba(245, 245, 245, 0.98);
--textFieldBorderColor: #e7e7e7;
--highlightFGColor: #000; --highlightFGColor: #000;
--highlightBGColor: #d2dee4; --highlightBGColor: #d2dee4;
} }
.root {
position: relative;
background-color: var(--backgroundColor);
padding: 1px 0;
}
.inputArea { .inputArea {
display: table; display: table;
width: 100%; width: calc(100% - 10px);
margin: 5px;
color: var(--foregroundColor); color: var(--foregroundColor);
border: 1px solid var(--backgroundColor); background-color: #fff;
border: 1px solid var(--textFieldBorderColor);
} }
.inputScope { .inputScope {
display: table-cell; display: table-cell;
width: 1%; width: 1%;
padding: 6px 6px 6px 8px; padding: 0 6px 0 8px;
color: #767676; color: #767676;
font-size: 16px; font-size: 16px;
white-space: nowrap; white-space: nowrap;
vertical-align: middle; vertical-align: middle;
border-right: 1px solid var(--backgroundColor); border-right: 1px solid var(--textFieldBorderColor);
} }
.inputField { .inputField {
@ -36,11 +45,16 @@
} }
.menu { .menu {
position: absolute;
top: 44px;
left: 0;
z-index: 9999;
display: table; display: table;
width: 100%; width: 100%;
background: var(--backgroundColor); background: var(--backgroundColor);
font-size: 13px; font-size: 13px;
padding: 10px; font-weight: 400;
padding: 5px;
height: 100%; height: 100%;
} }
@ -62,7 +76,7 @@
} }
.command .faded { .command .faded {
font-weight: lighter; font-weight: 300;
color: #555; color: #555;
} }
@ -74,6 +88,6 @@
} }
.highlightedCommand .faded { .highlightedCommand .faded {
font-weight: lighter; font-weight: 300;
color: #282c34; color: #282c34;
} }

View File

@ -318,7 +318,7 @@ class FindBar extends Component {
const menu = this.state.isOpen && this.renderMenu(); const menu = this.state.isOpen && this.renderMenu();
const scope = this.state.activeScope && this.renderActiveScope(); const scope = this.state.activeScope && this.renderActiveScope();
return ( return (
<div> <div className={styles.root}>
<label className={styles.inputArea}> <label className={styles.inputArea}>
{scope} {scope}
<input <input