From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 7697E4A65 for ; Tue, 24 May 2016 21:49:13 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id a136so91444010wme.0 for ; Tue, 24 May 2016 12:49:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=oDQxJY6s2VW0nX//OMDaZGoCr3/mXEtxKipSxE03pXg=; b=JXTKR/sVRVxqQhOwcUT3qltb6oZqCwpzDVFjDFq/0LKWX0FKZ0rgfiWtblGo+t142u HZN2YMZvfgrwmoBOHyTsm5XCu3NI6tcw3VUM7lx/XFlN6JWh25UJNFcWBVy5JUwCQ38s xgTDolxVUB1AsEnEmRkMy11rnWkoQljQyd2eTrz96LJBa/eXqYEqGHjNmpPdia2XJvGO 1T4aeJKwjL5P9b0b0MVPXISsMIhwTTa+J0J7PNN2XR7jrAF+PEKL9GsOuGMx9rt5/qDh 14GiUvuG+7Hia/TfM45t+2n0fNnbw0f3Y+Gos2xzRAU0AX+6LnV5Tf7LelNfAcSVqKJP Q1Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=oDQxJY6s2VW0nX//OMDaZGoCr3/mXEtxKipSxE03pXg=; b=l4sHnybEhbSztMGCr9x1MwPLBe/dJDNyEagTvzCHuCNcleU4TLaPTcIgOYXEea7FKB KPcGoq3mpG3B9Y9N7qQLO3VMq4BFdZMHR+S1FrmwoxSmJ7YijhmHZTcjl8a58x3PdXzH gJjN1cP77DRpe8301Bry4EGSl9eDGG2bKRcx3fsRrlMqaXqrpnPtUAhAGDxSeNqqoEm6 oUrBVYu5UcwjJWhAtr6/+C0fOjJvE4qBrq5OiuGqYJnE74be0suLD1QjEqeYlynCzhRj OC1jxHyTSrO3jL+62oIIX21MW0TWCReBO7emVpuQh6ts8LKyu0S4Aby5FW8/fNUixndO NQ1Q== X-Gm-Message-State: ALyK8tK36gryatNIZuuPj8bsqgRH8dvwreBD49jnlmVoMu8rXfCAu/0+DUsteC1fHcpB+ToG X-Received: by 10.194.172.228 with SMTP id bf4mr5915821wjc.123.1464119353124; Tue, 24 May 2016 12:49:13 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id gk6sm4843704wjc.31.2016.05.24.12.49.11 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2016 12:49:12 -0700 (PDT) From: Thomas Monjalon To: web@dpdk.org Date: Tue, 24 May 2016 21:49:04 +0200 Message-Id: <1464119344-10008-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-web] [PATCH] fix navigation bar with fallback font X-BeenThere: web@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: website maintenance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2016 19:49:13 -0000 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 --- 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