]> git.plutz.net Git - shellwiki/commitdiff
minor style fix
authorPaul Hänsch <paul@plutz.net>
Tue, 11 Nov 2025 04:55:53 +0000 (05:55 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 11 Nov 2025 04:55:53 +0000 (05:55 +0100)
themes/default.sh

index 5ebbd0ef6964180a146ea96b10ddf5a2ee5658ec..8324bb2db1b157c26a2c068634612eddbd1d36f7 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright 2022 - 2024 Paul Hänsch
+# Copyright 2022 - 2025 Paul Hänsch
 # 
 # Permission to use, copy, modify, and/or distribute this software for any
 # purpose with or without fee is hereby granted, provided that the above
 
 theme_head(){
   local IFS="$BR"
+  # <style> workaround to prevent lighthouse warning due to css loading race condition
   printf '
   <meta charset="utf-8">
+  <style>
+    h1, h2, h3, h4, h5, h6 {font-size: 1rem;}
+  </style>
   <meta name="viewport" content="width=device-width">
   '
   for css in "$_BASE/%5B.%5D/cgilite/common.css" "$_BASE/%5B.%5D/themes/default.css" $PAGE_CSS; do