diff --git a/src/components/Header.react.js b/src/components/Header.react.js
index b0d087e173..b02de3cb56 100644
--- a/src/components/Header.react.js
+++ b/src/components/Header.react.js
@@ -126,15 +126,23 @@ var Header = React.createClass({
username = null;
} else if (this.state.username) {
username = (
-
- {this.state.username} {this.state.verified ? null : '(Unverified)'}
-
+
+
+
+ {this.state.username} {this.state.verified ? null : '(Unverified)'}
+
+
+
);
} else {
username = (
-
- Log In
-
+
);
}
let updateWidget = this.state.updateAvailable && !this.props.hideLogin ? UPDATE NOW : null;
@@ -142,16 +150,15 @@ var Header = React.createClass({
{this.renderWindowButtons()}
-
+ {username}
);
diff --git a/styles/header.less b/styles/header.less
index 632ebc43ff..2716a0201c 100644
--- a/styles/header.less
+++ b/styles/header.less
@@ -24,14 +24,14 @@
align-items: center;
justify-content: flex-end;
margin-right: 20px;
-
- img {
- margin: 0 14px;
- height: 16px;
- width: 20px;
- }
}
+ .logo {
+ position: absolute;
+ right: 1rem;
+ top: 0.8rem;
+ }
+
.login-wrapper {
flex: 1 auto;
display: flex;
@@ -41,15 +41,15 @@
.login {
flex: 0 auto;
display: flex;
- color: @gray-light;
align-items: center;
border-left: 1px solid @color-divider;
border-right: 1px solid @color-divider;
padding: 0 1rem 0 0.6rem;
+ .box-button();
&:active {
img, span {
- -webkit-filter: brightness(0.8);
+ -webkit-filter: brightness(0.9);
}
}
diff --git a/styles/left-panel.less b/styles/left-panel.less
index e5cb9549ef..0e9881b2fe 100644
--- a/styles/left-panel.less
+++ b/styles/left-panel.less
@@ -12,12 +12,12 @@
.sidebar-header {
flex: 0 auto;
min-width: @sidebar-width;
- min-height: 40px;
+ min-height: 42px;
display: flex;
border-bottom: 1px solid transparent;
transition: border-bottom 0.25s;
&.sep {
- border-bottom: 1px solid #EEE;
+ border-bottom: 1px solid @color-divider;
box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.03);
}
h4 {
@@ -31,8 +31,6 @@
flex: 1 auto;
justify-content: flex-end;
margin: 0.6rem 1rem 0 0;
- //margin-right: 20px;
- //margin-top: 3px;
a {
display: block;
text-decoration: none;
@@ -264,10 +262,7 @@
height: 18px;
}
.btn-sidebar {
- font-size: 13px;
- font-weight: 500;
- color: @brand-primary;
-
+ .box-button();
flex: 0 auto;
display: flex;
align-items: center;
@@ -276,7 +271,7 @@
&:active {
img, .text {
- -webkit-filter: brightness(0.7);
+ -webkit-filter: brightness(0.9);
}
}
}
diff --git a/styles/mixins.less b/styles/mixins.less
index 2bc0374bb0..c08a714211 100644
--- a/styles/mixins.less
+++ b/styles/mixins.less
@@ -35,3 +35,16 @@
-webkit-animation-fill-mode: forwards;
-webkit-animation-duration: 0.2s;
}
+
+.box-button {
+ transition: all 140ms;
+ color: @gray-light;
+ font-size: 10px;
+ font-weight: 500;
+ &:hover {
+ background-color: @color-box-button;
+ }
+ &:active {
+ background-color: darken(@color-box-button, 2%);
+ }
+}
\ No newline at end of file
diff --git a/styles/variables.less b/styles/variables.less
index bbe009173d..12ea08f102 100644
--- a/styles/variables.less
+++ b/styles/variables.less
@@ -20,6 +20,7 @@
@gray-lightest: #e6edf4;
@color-divider: #EDF0F4;
+@color-box-button: lighten(@gray-lightest, 5.5%);
@color-background: #FCFCFC;
@font-regular: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;