From 283f2f6e5facbc4256d69c8bde894ca8ab8c1c1a Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Fri, 21 Jul 2017 09:12:00 -0500 Subject: Use custom font SVG for logo --- app/assets/stylesheets/new_nav.scss | 16 ++++++++++++++-- app/views/layouts/header/_new.html.haml | 4 ++-- app/views/shared/_logo_type.svg | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 app/views/shared/_logo_type.svg diff --git a/app/assets/stylesheets/new_nav.scss b/app/assets/stylesheets/new_nav.scss index e1873506bec..338c72e3bd9 100644 --- a/app/assets/stylesheets/new_nav.scss +++ b/app/assets/stylesheets/new_nav.scss @@ -41,10 +41,22 @@ header.navbar-gitlab-new { } } + .logo-text { + line-height: initial; + + svg { + width: 55px; + height: 15px; + margin: 0; + fill: $white-light; + } + } + &:hover, &:focus { - color: $tanuki-yellow; - text-decoration: none; + .logo-text svg { + fill: $tanuki-yellow; + } } } } diff --git a/app/views/layouts/header/_new.html.haml b/app/views/layouts/header/_new.html.haml index 4697d91724b..76367bd9734 100644 --- a/app/views/layouts/header/_new.html.haml +++ b/app/views/layouts/header/_new.html.haml @@ -6,8 +6,8 @@ %h1.title = link_to root_path, title: 'Dashboard' do = brand_header_logo - %span.hidden-xs - GitLab + %span.logo-text.hidden-xs + = render 'shared/logo_type.svg' - if current_user = render "layouts/nav/new_dashboard" diff --git a/app/views/shared/_logo_type.svg b/app/views/shared/_logo_type.svg new file mode 100644 index 00000000000..7e9276a0a83 --- /dev/null +++ b/app/views/shared/_logo_type.svg @@ -0,0 +1 @@ + -- cgit v1.2.1