From 77692748e984e0eec86682f3870c97de221f491d Mon Sep 17 00:00:00 2001 From: Rudraksha Singh Date: Sun, 27 Sep 2026 15:52:42 +0530 Subject: [PATCH] fix(truth-table): make generator input follow the active colour scheme The truth table generator hardcoded 'color: black' on .truth_table_input. That rule has higher specificity than the theme's 'input { color: $inputcolor }', so the field ignored the active scheme while its background kept following it, which is how the typed expression ends up unreadable. Move the colours to _sass/custom/custom.scss, where the scheme variables are available, and set the background, border and text colour together so they can never diverge: white field with black text in the light scheme, dark field with white text in circuitversedark. Fixes #631 --- _includes/truth_table.html | 2 +- _sass/custom/custom.scss | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/_includes/truth_table.html b/_includes/truth_table.html index 328da58e..16cba5ab 100644 --- a/_includes/truth_table.html +++ b/_includes/truth_table.html @@ -46,7 +46,7 @@

Truth Table Generator

padding: 8px; font-family: 'Source Code Pro', monospace; max-width: 100%; - color: black; + /* Colours live in _sass/custom/custom.scss so they follow the active theme. */ } .truth-table p { diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss index 77646312..ae093ee6 100644 --- a/_sass/custom/custom.scss +++ b/_sass/custom/custom.scss @@ -330,3 +330,15 @@ button, text-decoration: underline; } } + +// Fix: truth table generator input follows the active colour scheme (Issue #631) +.truth_table_input { + background-color: $body-background-color; + border: 1px solid $border-color; + color: $inputcolor; + + &::placeholder { + color: $inputcolor; + opacity: 0.6; + } +}