浏览代码

Varia: migrate print.scss

Andrés 5 年之前
父节点
当前提交
ea0aa0d0ab
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      varia/print.css
  2. 2 1
      varia/print.scss

+ 1 - 0
varia/print.css

@@ -27,6 +27,7 @@ Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272
 	/* Fonts */
 	body {
 		font: 13pt Georgia, "Times New Roman", Times, serif;
+		font: 13pt var(--font-base, 'Georgia, "Times New Roman", Times, serif');
 		line-height: 1.3;
 		background: #fff !important;
 		color: #000;

+ 2 - 1
varia/print.scss

@@ -34,7 +34,8 @@ Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272
   /* Fonts */
 
   body {
-    font: 13pt Georgia, "Times New Roman", Times, serif;
+    font: 13pt Georgia, "Times New Roman", Times, serif; // Fallback for browsers without CSS variables support.
+    font: 13pt var( --font-base, 'Georgia, "Times New Roman", Times, serif' );
     line-height: 1.3;
     background: #fff !important;
     color: #000;