You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by vi...@apache.org on 2024/03/03 18:30:45 UTC

(pulsar-site) 01/01: Use Inter font for docs

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

visortelle pushed a commit to branch font-family
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 6619bb5c021b178943de961910048c8c589dda7a
Author: visortelle <vi...@gmail.com>
AuthorDate: Sun Mar 3 22:30:28 2024 +0400

    Use Inter font for docs
---
 src/css/typography.css         |  28 ++++++++++++++++++++++++++++
 static/fonts/inter/inter.woff2 | Bin 0 -> 46552 bytes
 2 files changed, 28 insertions(+)

diff --git a/src/css/typography.css b/src/css/typography.css
index 94ef708a1b04..5020202ce2ee 100644
--- a/src/css/typography.css
+++ b/src/css/typography.css
@@ -16,6 +16,26 @@
   font-weight: 600;
   font-style: normal;
 }
+
+@font-face {
+  font-family: 'Inter';
+  src: url('/fonts/inter/inter.woff2') format('woff2');
+  font-weight: 400;
+  font-style: normal;
+}
+@font-face {
+  font-family: 'Work Sans';
+  src: url('/fonts/inter/inter.woff2') format('woff2');
+  font-weight: 500;
+  font-style: normal;
+}
+@font-face {
+  font-family: 'Work Sans';
+  src: url('/fonts/inter/inter.woff2') format('woff2');
+  font-weight: 600;
+  font-style: normal;
+}
+
 :root {
   font-family: "Work Sans", -apple-system, Frutiger, "Frutiger Linotype",
     Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad,
@@ -31,6 +51,14 @@
   font-size: 18px;
 }
 
+[class^="docPage"] {
+  /* The "Inter" font is more readable for docs that the "Work Sans" */
+  font-family: Inter, "Work Sans", -apple-system, Frutiger, "Frutiger Linotype",
+    Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad,
+    "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva,
+    "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+
 h1 {
   font-size: 2.5rem;
   line-height: 3.25rem;
diff --git a/static/fonts/inter/inter.woff2 b/static/fonts/inter/inter.woff2
new file mode 100644
index 000000000000..3edd2e53dbea
Binary files /dev/null and b/static/fonts/inter/inter.woff2 differ