Skip to content

Scope dark pre styling to .code-block opt-in class#4

Merged
pournasserian merged 2 commits into
ui-enhancementfrom
copilot/sub-pr-1-another-one
Mar 11, 2026
Merged

Scope dark pre styling to .code-block opt-in class#4
pournasserian merged 2 commits into
ui-enhancementfrom
copilot/sub-pr-1-another-one

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 11, 2026

The global pre { ... } rule in app.css forced dark background/light text onto every <pre> element, overriding Bootstrap utilities like bg-light (Agent15 YAML block) and creating near-invisible text when combined with .response-text's dark color.

Changes

  • app.css: Renamed pre { ... }.code-block { ... } and pre code { ... }.code-block code { ... }, making dark code block styling opt-in rather than global

Dark blocks now require an explicit class:

<!-- opt in to dark styling -->
<pre class="code-block"><code>...</code></pre>

<!-- light blocks (e.g. Agent15 YAML) now render correctly without override -->
<pre class="bg-light border rounded p-2 small"><code>...</code></pre>

Existing usages (.thread-log, .response-text, Bootstrap classes) all carry their own styling and are unaffected.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@pournasserian pournasserian added the enhancement New feature or request label Mar 11, 2026
Co-authored-by: pournasserian <24959477+pournasserian@users.noreply.github.com>
Copilot AI changed the title [WIP] [WIP] Address feedback on CSS variables and agent page redesign Scope dark pre styling to .code-block opt-in class Mar 11, 2026
@pournasserian pournasserian marked this pull request as ready for review March 11, 2026 23:50
@pournasserian pournasserian merged commit 26a04de into ui-enhancement Mar 11, 2026
@pournasserian pournasserian deleted the copilot/sub-pr-1-another-one branch March 11, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants