DPDK website maintenance
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: web@dpdk.org
Subject: [dpdk-web] [PATCH] fix navigation bar with fallback font
Date: Tue, 24 May 2016 21:49:04 +0200	[thread overview]
Message-ID: <1464119344-10008-1-git-send-email-thomas.monjalon@6wind.com> (raw)

When the font exo2 is not available (because of disabled download),
the fallback font can be too big and make the menu oversized on
two lines.
The fallback font size is adjusted thanks to font-size-adjust
property. It is supported only on Firefox.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 layout.css | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/layout.css b/layout.css
index df9e220..9b06455 100644
--- a/layout.css
+++ b/layout.css
@@ -14,7 +14,7 @@ header h1 {
 	margin: 0 auto 0.75em;
 	padding-top: 0.25em;
 	text-align: center;
-	font: italic bold 2em 'exo2',sans-serif;
+	font: italic bold 2em 'exo2', sans-serif;
 }
 header h1 a {
 	color: #333;
@@ -38,7 +38,8 @@ header nav li {
 header nav li a {
 	display: inline-block;
 	padding: 0.8em 1.5em;
-	font: normal 1em/1 'exo2',sans-serif;
+	font: normal 1em/1 'exo2', sans-serif;
+	font-size-adjust: 0.51;
 	color: #ccc;
 	-webkit-transition: background-color .1s linear;
 	-moz-transition: background-color .1s linear;
-- 
2.7.0

             reply	other threads:[~2016-05-24 19:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24 19:49 Thomas Monjalon [this message]
2016-05-26  9:52 ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464119344-10008-1-git-send-email-thomas.monjalon@6wind.com \
    --to=thomas.monjalon@6wind.com \
    --cc=web@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).