From ec8169aeebabc8d8c8a7bd5066ff3cf7c2bfd17f Mon Sep 17 00:00:00 2001 From: Node0 <2231752+Node0@users.noreply.github.com> Date: Wed, 2 Apr 2025 22:17:35 -0700 Subject: [PATCH] hoisted custom font defs --- single-page-apps/text_stats_analyzer.html | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/single-page-apps/text_stats_analyzer.html b/single-page-apps/text_stats_analyzer.html index 46a80ee..63d9f37 100644 --- a/single-page-apps/text_stats_analyzer.html +++ b/single-page-apps/text_stats_analyzer.html @@ -32,6 +32,38 @@ list-style-type: none; /* Remove bullet points */ padding-left: 0; } + /* Custom Font definitions for output styles */ + @font-face { + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 500; + src: url(data:font/woff2;base64,BASE64_STRING_FOR_MEDIUM_WEIGHT) format('woff2'); + } + + @font-face { + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 600; + src: url(data:font/woff2;base64,BASE64_STRING_FOR_SEMIBOLD_WEIGHT) format('woff2'); + } + + .stats-table { + font-family: 'Source Code Pro', monospace; + border-collapse: collapse; + border: none; + } + .stats-table td { + text-align: left; + border: none; + padding: 2px; + } + .stats-table .label { + font-weight: 600; /* Using SemiBold for labels */ + padding-right: 10px; + } + .stats-table .value { + font-weight: 500; /* Using Medium for values */ + }