فهرست منبع

Adding --jp-code-font-family-default

Brian E. Granger 6 سال پیش
والد
کامیت
5aa020fa6f
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 1
      packages/theme-dark-extension/style/variables.css
  2. 2 1
      packages/theme-light-extension/style/variables.css

+ 2 - 1
packages/theme-dark-extension/style/variables.css

@@ -182,7 +182,8 @@ all of MD as it is not optimized for dense, information rich UIs.
   --jp-code-font-size: 13px;
   --jp-code-line-height: 1.3077; /* 17px for 13px base */
   --jp-code-padding: 0.385em; /* 5px for 13px base */
-  --jp-code-font-family: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
+  --jp-code-font-family-default: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
+  --jp-code-font-family: var(--jp-code-font-family-default);
 
   /* This gives a magnification of about 125% in presentation mode over normal. */
   --jp-code-presentation-font-size: 16px;

+ 2 - 1
packages/theme-light-extension/style/variables.css

@@ -180,7 +180,8 @@ all of MD as it is not optimized for dense, information rich UIs.
   --jp-code-font-size: 13px;
   --jp-code-line-height: 1.3077; /* 17px for 13px base */
   --jp-code-padding: 0.385em; /* 5px for 13px base */
-  --jp-code-font-family: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
+  --jp-code-font-family-default: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
+  --jp-code-font-family: var(--jp-code-font-family-default);
 
   /* This gives a magnification of about 125% in presentation mode over normal. */
   --jp-code-presentation-font-size: 16px;