From 42bffc0c07502b67b46e737764e12015b1d7d36a Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 9 Mar 2026 11:40:50 +0000 Subject: [PATCH] Enhance case description and presentation styles with dark mode support --- atlas/templates/atlas/case_display_block.html | 172 ++++++++++-------- 1 file changed, 100 insertions(+), 72 deletions(-) diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 6756a722..0a611504 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -147,6 +147,32 @@ .case-meta-value { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; } .case-meta-item .badge { display: inline-block; margin-left: .25rem; margin-right: 0; } .case-meta-item > .case-meta-value > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } + } + /* Description & Presentation visual improvements */ + .case-description { background: #eef3f73d; border: 1px solid rgba(0,0,0,0.08); padding: .75rem; border-radius: .375rem; } + .case-description strong { font-size: 1.05rem; margin-right: .5rem; } + .case-description .case-inline-field { margin-top: .5rem; } + + .case-presentation ul { list-style: none; padding-left: 0; margin: .25rem 0 0 0; display: flex; flex-wrap: wrap; gap: .5rem; } + .case-presentation li { background: rgba(13,110,253,0.12); color: #0b5ed7; padding: .25rem .5rem; border-radius: .25rem; font-size: .9rem; } + .case-presentation b { margin-right: .5rem; } + + /* Dark mode adjustments */ + @media (prefers-color-scheme: dark) { + .case-description { + background: #0f1720; + border: 1px solid rgba(255,255,255,0.06); + color: #e6eef8; + } + .case-description strong { color: #ffffff; } + .case-description .case-inline-field { color: #e6eef8; } + .case-presentation li { background: rgba(255,255,255,0.03); color: #9ec5ff; } + .quick-edit-wrap .quick-edit-button, + .case-meta-item .quick-edit-button { + background: rgba(255,255,255,0.04) !important; + color: #9ec5ff !important; + border: 1px solid rgba(255,255,255,0.06); + } } @@ -286,11 +312,83 @@ data-named-stacks='{{case.get_case_named_stacks}}' > +
Series: +
+
+ {% partial case-series %} +
+
+ +
+
+ + + + Create and add new series
+ + + + + +
+ +
+ +
+
+ +
-
+
@@ -309,7 +407,7 @@
-
+

Presentation: @@ -461,76 +559,6 @@

-
Series: -
-
- {% partial case-series %} -
-
- -
-
- - - - Create and add new series
- - - - - -
- -
- -
-
{% comment %}

Scrapped: {{ case.scrapped }} (toggle) {% endcomment %}