Theme post code blocks + a11y fixes (impeccable audit) (#25)
Code blocks in posts rendered with the markdown plugin's default light highlight.js theme — white blocks on the dark ledger. This adds dark velvet pre/code styling and a Westgate-toned syntax palette (gold keywords, ledger-ink titles, muted green strings) for post content and the composer preview. Also picks up the quick wins from an impeccable audit: - Visible focus ring on the mobile drawer search (input had `outline: 0` with no replacement) - Input placeholder contrast raised to pass WCAG 4.5:1; tagsinput placeholder reuses the token instead of `$gray-500` - `prefers-reduced-motion` block zeroing transitions/animations (there were none before) - Fixed a stray `</li>` closing a `<div>` in `quick-search-results.tpl` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: #25 Co-authored-by: vickydotbat <vickydotbat@tutamail.com> Co-committed-by: vickydotbat <vickydotbat@tutamail.com>
This commit was merged in pull request #25.
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
</span>
|
||||
{{{ if !isNumber(cid) }}}
|
||||
<a href="{./url}" class="badge text-body border border-gray-300 text-xs" data-ajaxify="false">
|
||||
<span class="fw-normal">View Original</span>
|
||||
<i class="fa fa-external-link"></i>
|
||||
<span class="fw-normal">[[westgate:view-original]]</span>
|
||||
<i class="fa fa-external-link" aria-hidden="true"></i>
|
||||
</a>
|
||||
{{{ end }}}
|
||||
{{{ if (!feeds:disableRSS && rssFeedUrl) }}}
|
||||
@@ -39,7 +39,7 @@
|
||||
{{{ if ./handleFull }}}
|
||||
<p class="text-secondary text-sm fst-italic mb-0 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
||||
[[category:handle.description, {handleFull}]]
|
||||
<a href="#" class="link-secondary" data-action="copy" data-clipboard-text="{handleFull}"><i class="fa fa-fw fa-copy" aria-hidden="true"></i></a>
|
||||
<a href="#" class="link-secondary" data-action="copy" data-clipboard-text="{handleFull}" aria-label="[[westgate:copy-handle]]"><i class="fa fa-fw fa-copy" aria-hidden="true"></i></a>
|
||||
</p>
|
||||
{{{ end }}}
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<div class="alert alert-warning mb-4" id="category-no-followers" data-bs-toggle="dropdown" data-bs-target='[component="topic/watch"] button' aria-hidden="true">
|
||||
<i class="fa fa-triangle-exclamation pe-2"></i>
|
||||
[[category:no-followers]]
|
||||
<a href="#" class="stretched-link"></a>
|
||||
<a href="#" class="stretched-link" tabindex="-1"></a>
|
||||
</div>
|
||||
{{{ end }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user