From 8610ba527777f0fd76265b39b78e9dfbe6d80620 Mon Sep 17 00:00:00 2001 From: njlyon0 Date: Tue, 13 Aug 2024 12:58:57 -0400 Subject: [PATCH] feat: updated extension for better code output contrast (esp. in dark mode) --- _extensions/lter/lter_scss-theme/_extension.yml | 2 +- _extensions/lter/lter_scss-theme/theme_lter-edu-dark.scss | 3 +++ _extensions/lter/lter_scss-theme/theme_lter-edu-light.scss | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_extensions/lter/lter_scss-theme/_extension.yml b/_extensions/lter/lter_scss-theme/_extension.yml index 730bd96..1ac8ae0 100644 --- a/_extensions/lter/lter_scss-theme/_extension.yml +++ b/_extensions/lter/lter_scss-theme/_extension.yml @@ -1,6 +1,6 @@ title: LTER Quarto Stylesheets author: Nick J Lyon -version: 1.0.0 +version: 1.1.0 quarto-required: ">=1.2.0" contributes: formats: diff --git a/_extensions/lter/lter_scss-theme/theme_lter-edu-dark.scss b/_extensions/lter/lter_scss-theme/theme_lter-edu-dark.scss index 322fd9c..46a8adb 100644 --- a/_extensions/lter/lter_scss-theme/theme_lter-edu-dark.scss +++ b/_extensions/lter/lter_scss-theme/theme_lter-edu-dark.scss @@ -42,6 +42,9 @@ $code-color: $lter-green-1; // inline code text color /*-- scss:rules --*/ +// Code chunk ouput +pre code:not(.sourceCode) { background-color: $gray-0; } + // Active tabset panel (tab then tab content) .nav-tabs .nav-link.active { background-color: $gray-3; diff --git a/_extensions/lter/lter_scss-theme/theme_lter-edu-light.scss b/_extensions/lter/lter_scss-theme/theme_lter-edu-light.scss index 818f888..10c7977 100644 --- a/_extensions/lter/lter_scss-theme/theme_lter-edu-light.scss +++ b/_extensions/lter/lter_scss-theme/theme_lter-edu-light.scss @@ -43,6 +43,9 @@ $code-color: $lter-green-2; // inline code text color /*-- scss:rules --*/ +// Code chunk ouput +pre code:not(.sourceCode) { background-color: $gray-0; } + // Active tabset panel (tab then tab content) .nav-tabs .nav-link.active { background-color: #FFF;