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 2020/08/18 20:30:14 UTC

[camel-website] branch master updated: Emulate the parts of FontAwesome that we use

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 d34ce6c  Emulate the parts of FontAwesome that we use
d34ce6c is described below

commit d34ce6c059881ed7342c56cd08f2b130cd7ccff0
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Mon Aug 17 12:55:50 2020 +0200

    Emulate the parts of FontAwesome that we use
---
 antora-ui-camel/src/css/fa-emulated.css | 9 +++++++++
 antora-ui-camel/src/css/site.css        | 1 +
 2 files changed, 10 insertions(+)

diff --git a/antora-ui-camel/src/css/fa-emulated.css b/antora-ui-camel/src/css/fa-emulated.css
new file mode 100644
index 0000000..a5b3007
--- /dev/null
+++ b/antora-ui-camel/src/css/fa-emulated.css
@@ -0,0 +1,9 @@
+/* For perf reasons, we emulate only those few parts of Font Awesome css that we use without actually pulling the FA font */
+
+.fa {
+  display: inline-block;
+}
+
+.fa-lock::before {
+  content: "🔒";
+}
diff --git a/antora-ui-camel/src/css/site.css b/antora-ui-camel/src/css/site.css
index 04a1122..e00ed3e 100644
--- a/antora-ui-camel/src/css/site.css
+++ b/antora-ui-camel/src/css/site.css
@@ -1,5 +1,6 @@
 @import 'typeface-open-sans.css';
 @import 'typeface-droid-sans-mono.css';
+@import 'fa-emulated.css';
 @import 'vars.css';
 @import 'base.css';
 @import 'body.css';