From 2f33c288a673b1d06bd98f6b1d2c809be47d643c Mon Sep 17 00:00:00 2001 From: Vikhyat Korrapati Date: Wed, 7 May 2014 18:42:51 +0530 Subject: [PATCH] Remove extra anon glyphs, move sign in button. See: https://meta.discourse.org/t/add-sign-in-to-anonymous-header/15335 --- .../discourse/templates/header.js.handlebars | 28 +++++++++---------- app/assets/stylesheets/desktop/header.scss | 9 ++++-- app/assets/stylesheets/mobile/header.scss | 11 +++++--- 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/header.js.handlebars b/app/assets/javascripts/discourse/templates/header.js.handlebars index 0e283fe4f1..d1306aa824 100644 --- a/app/assets/javascripts/discourse/templates/header.js.handlebars +++ b/app/assets/javascripts/discourse/templates/header.js.handlebars @@ -37,14 +37,18 @@
{{#if currentUser}} {{currentUser.displayName}} - {{else}} - {{/if}}
{{/unless}} + {{#unless currentUser}} + + {{/unless}} {{render "search"}} diff --git a/app/assets/stylesheets/desktop/header.scss b/app/assets/stylesheets/desktop/header.scss index e842726cd0..9947dab4f2 100644 --- a/app/assets/stylesheets/desktop/header.scss +++ b/app/assets/stylesheets/desktop/header.scss @@ -47,9 +47,12 @@ display:block; margin-top: 10px; } - button { - margin-top: 9px; - } + } + button.login-button { + float: left; + margin-top: 7px; + padding: 6px 10px; + .fa { margin-right: 3px; } } .icons { float: left; diff --git a/app/assets/stylesheets/mobile/header.scss b/app/assets/stylesheets/mobile/header.scss index f111dfadbc..c102af15e5 100644 --- a/app/assets/stylesheets/mobile/header.scss +++ b/app/assets/stylesheets/mobile/header.scss @@ -51,14 +51,17 @@ font-size: 14px; line-height: 40px; } - button { - margin-top: 8px; - } + } + button.login-button { + float: left; + margin-top: 7px; + padding: 6px 10px; + .fa { margin-right: 3px; } } .icons { float: left; text-align: center; - margin: 0 0 0 15px; + margin: 0 0 0 5px; list-style: none; > li { float: left;