You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2019/08/01 14:01:33 UTC

[camel-website] branch master updated: fix: adopt to user setting the font size

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 4503866  fix: adopt to user setting the font size
4503866 is described below

commit 45038667a01a3a18d281fcc378440a2ae4770021
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Thu Aug 1 16:01:28 2019 +0200

    fix: adopt to user setting the font size
    
    Ref CAMEL-13815
---
 antora-ui-camel/src/css/responsive.css          | 9 +++++----
 antora-ui-camel/src/partials/header-content.hbs | 2 +-
 layouts/partials/header.html                    | 2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/antora-ui-camel/src/css/responsive.css b/antora-ui-camel/src/css/responsive.css
index d6c91bf..724d317 100644
--- a/antora-ui-camel/src/css/responsive.css
+++ b/antora-ui-camel/src/css/responsive.css
@@ -1,10 +1,11 @@
 .nav-logo {
   background-image: url('../img/logo-camel-medium.png');
   background-repeat: no-repeat;
-  background-size: 160px;
-  background-position-x: 10px;
-  background-position-y: 10px;
-  width: 180px;
+  background-size: contain;
+  width: 10rem;
+  margin: 10px 1rem 0.9rem 10px;
+  padding: 0;
+  align-items: flex-start;
 }
 
 .nav-logo span {
diff --git a/antora-ui-camel/src/partials/header-content.hbs b/antora-ui-camel/src/partials/header-content.hbs
index 5802288..dac81e8 100644
--- a/antora-ui-camel/src/partials/header-content.hbs
+++ b/antora-ui-camel/src/partials/header-content.hbs
@@ -1,7 +1,7 @@
 <header class="header">
   <nav class="navbar">
     <div class="navbar-brand">
-      <a class="navbar-item nav-logo" href="{{siteRootPath}}"><span>{{site.title}}</span></a>
+      <a class="nav-logo" href="{{siteRootPath}}"><span>{{site.title}}</span></a>
       <div id="topbar-nav" class="navbar-menu">
         <div class="navbar-end">
           {{#withMenuData}}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 75b0e1a..f598cd3 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -32,7 +32,7 @@
 <body class="article">
     <nav class="navbar">
         <div class="navbar-brand">
-            <a class="navbar-item nav-logo" href="{{ .Site.BaseURL | relURL }}" title="{{ .Site.Title }}"><span>{{ .Site.Title }}</span></a>
+            <a class="nav-logo" href="{{ .Site.BaseURL | relURL }}" title="{{ .Site.Title }}"><span>{{ .Site.Title }}</span></a>
             <div id="topbar-nav" class="navbar-menu">
                 <div class="navbar-end">
                     {{ range .Site.Menus.main }}