From 837f41d664c5e092bf946a1d1d81bdf7f136f2ef Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 26 Oct 2014 14:33:41 +0100 Subject: add logo to navbar --- source/_navigation.html.haml | 2 +- source/images/sublab-logo-trans-small.png | Bin 0 -> 4315 bytes source/index.html.haml | 2 +- source/layouts/layout.haml | 8 ++++---- source/stylesheets/custom.scss | 12 ++++++++++++ 5 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 source/images/sublab-logo-trans-small.png diff --git a/source/_navigation.html.haml b/source/_navigation.html.haml index d46e7ec..c64f629 100644 --- a/source/_navigation.html.haml +++ b/source/_navigation.html.haml @@ -2,7 +2,7 @@ %nav.top-bar{"role" => "navigation", "data-topbar" => true, "data-options" => "is_hover: false"} %ul.title-area %li.name - = link_to("sublab-logo", "/") + = link_to("", "/") %li.toggle-topbar.menu-icon %a{href: '#'} %span diff --git a/source/images/sublab-logo-trans-small.png b/source/images/sublab-logo-trans-small.png new file mode 100644 index 0000000..02c40e4 Binary files /dev/null and b/source/images/sublab-logo-trans-small.png differ diff --git a/source/index.html.haml b/source/index.html.haml index 947653e..f05a832 100644 --- a/source/index.html.haml +++ b/source/index.html.haml @@ -3,7 +3,7 @@ title: sublab - Ein Hackerspace in Leipzig --- .row .columns - %h2 Ein Hackerspace in Leipzig + %h2 sublab - Ein Hackerspace in Leipzig %p.lead Das sublab ist ein = succeed "." do diff --git a/source/layouts/layout.haml b/source/layouts/layout.haml index cd62804..610d537 100644 --- a/source/layouts/layout.haml +++ b/source/layouts/layout.haml @@ -12,10 +12,10 @@ = javascript_include_tag "modernizr", "all" %body{:class => page_classes} / header - %header - #logo - - link_to '/index.html' do - = image_tag 'sublab-logo.png', class: "img-responsive" + -#%header + -# #logo + -# - link_to '/index.html' do + -# = image_tag 'sublab-logo.png', class: "img-responsive" / main navigation = partial "navigation" / content diff --git a/source/stylesheets/custom.scss b/source/stylesheets/custom.scss index a9f195f..df1504a 100644 --- a/source/stylesheets/custom.scss +++ b/source/stylesheets/custom.scss @@ -6,3 +6,15 @@ @include grid-column($columns: 1.7); } } + +// sublab logo +.top-bar .name a:before { + background-image: url('../images/sublab-logo-trans-small.png'); + background-repeat: no-repeat; + content: ""; + display: inline-block; + height: 48px; + margin-right: 10px; + position: relative; + width: 60px; +} -- cgit v1.2.1