Adding a syndicate pairing page with some notes
This commit is contained in:
@@ -38,11 +38,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (Card.Faction != null)
|
||||
@if (Card.Syndicate != null)
|
||||
{
|
||||
<div class="detail-field">
|
||||
<span class="field-label"><i class="bi bi-flag-fill"></i> Syndicate</span>
|
||||
<span class="field-value">@Card.Faction</span>
|
||||
<span class="field-label"><i class="bi bi-diagram-3-fill"></i> Syndicate</span>
|
||||
<span class="field-value">@Card.Syndicate</span>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@@ -176,10 +176,7 @@
|
||||
}
|
||||
|
||||
.detail-field.description {
|
||||
background: var(--bg-elevated);
|
||||
padding: 0.6rem 0.75rem;
|
||||
border-radius: var(--radius-sm);
|
||||
border-left: 3px solid var(--accent);
|
||||
padding: 0;
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
@@ -205,7 +202,6 @@
|
||||
|
||||
.detail-field.description .field-value {
|
||||
color: var(--text-primary);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.card-detail::-webkit-scrollbar {
|
||||
|
||||
@@ -31,6 +31,11 @@
|
||||
<i class="bi bi-journal-text nav-icon"></i> Decks
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="syndicates">
|
||||
<i class="bi bi-diagram-2-fill nav-icon"></i> Syndicates
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="nav-item px-3">
|
||||
<NavLink class="nav-link" href="docs">
|
||||
<i class="bi bi-book-fill nav-icon"></i> Docs
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
@using System.Text.RegularExpressions
|
||||
@namespace Chrono.Components
|
||||
|
||||
@if (Doc != null)
|
||||
{
|
||||
<div class="modal-backdrop" @onclick="HandleBackdropClick"></div>
|
||||
<div class="card-detail card-detail-noimg">
|
||||
<button class="detail-close" @onclick="HandleClose"><i class="bi bi-x-lg"></i></button>
|
||||
<div class="detail-layout layout-noimg">
|
||||
<div class="detail-info">
|
||||
<div class="detail-header">
|
||||
<div class="syndicate-badges">
|
||||
@if (Doc.Syndicates != null)
|
||||
{
|
||||
foreach (var syn in Doc.Syndicates)
|
||||
{
|
||||
<span class="syn-icon @syn.ToLowerInvariant()" title="@syn"></span>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
<h2>@Doc.Title</h2>
|
||||
</div>
|
||||
|
||||
@if (!string.IsNullOrWhiteSpace(Doc.Content))
|
||||
{
|
||||
<div class="detail-field description">
|
||||
<span class="field-value">@RenderDescription(Doc.Content)</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@code {
|
||||
[Parameter] public DocData? Doc { get; set; }
|
||||
[Parameter] public EventCallback OnClose { get; set; }
|
||||
[Parameter] public EventCallback<CardData> OnNavigate { get; set; }
|
||||
|
||||
private void HandleClose()
|
||||
{
|
||||
_ = OnClose.InvokeAsync();
|
||||
}
|
||||
|
||||
private void HandleBackdropClick()
|
||||
{
|
||||
_ = OnClose.InvokeAsync();
|
||||
}
|
||||
|
||||
private void Navigate(CardData card)
|
||||
{
|
||||
_ = OnNavigate.InvokeAsync(card);
|
||||
}
|
||||
|
||||
private static CardData? LookupCard(string cardName)
|
||||
{
|
||||
return CardDatabase.Cards.FirstOrDefault(c =>
|
||||
string.Equals(c.Name, cardName, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
private RenderFragment RenderDescription(string description)
|
||||
{
|
||||
return builder =>
|
||||
{
|
||||
var cardNames = CardDatabase.Cards
|
||||
.Select(c => c.Name)
|
||||
.Where(n => !string.IsNullOrWhiteSpace(n))
|
||||
.OrderByDescending(n => n.Length)
|
||||
.ToList();
|
||||
|
||||
var seq = 0;
|
||||
var remaining = description;
|
||||
|
||||
while (!string.IsNullOrEmpty(remaining))
|
||||
{
|
||||
var bestIdx = -1;
|
||||
string? bestName = null;
|
||||
|
||||
foreach (var name in cardNames)
|
||||
{
|
||||
var pattern = $@"\b{Regex.Escape(name)}\b";
|
||||
var match = Regex.Match(remaining, pattern, RegexOptions.IgnoreCase);
|
||||
|
||||
if (match.Success)
|
||||
{
|
||||
if (bestIdx == -1 || match.Index < bestIdx)
|
||||
{
|
||||
bestIdx = match.Index;
|
||||
bestName = match.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Also check for [[Card Name]] format which is common in docs
|
||||
var bracketMatch = Regex.Match(remaining, @"\[\[(.*?)\]\]");
|
||||
if (bracketMatch.Success)
|
||||
{
|
||||
if (bestIdx == -1 || bracketMatch.Index < bestIdx)
|
||||
{
|
||||
bestIdx = bracketMatch.Index;
|
||||
bestName = bracketMatch.Value;
|
||||
}
|
||||
}
|
||||
|
||||
if (bestIdx != -1 && bestName != null)
|
||||
{
|
||||
if (bestIdx > 0)
|
||||
builder.AddContent(seq++, remaining[..bestIdx]);
|
||||
|
||||
var cleanName = bestName.StartsWith("[[") && bestName.EndsWith("]]")
|
||||
? bestName.Substring(2, bestName.Length - 4)
|
||||
: bestName;
|
||||
|
||||
var card = LookupCard(cleanName);
|
||||
if (card != null)
|
||||
{
|
||||
builder.OpenElement(seq++, "button");
|
||||
builder.AddAttribute(seq++, "class", "inline-card-btn");
|
||||
builder.AddAttribute(seq++, "onclick",
|
||||
EventCallback.Factory.Create(this, () => Navigate(card)));
|
||||
builder.AddContent(seq++, cleanName);
|
||||
builder.CloseElement();
|
||||
}
|
||||
else
|
||||
{
|
||||
builder.AddContent(seq++, cleanName);
|
||||
}
|
||||
|
||||
remaining = remaining[(bestIdx + bestName.Length)..];
|
||||
}
|
||||
else
|
||||
{
|
||||
builder.AddContent(seq++, remaining);
|
||||
remaining = "";
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1040;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(4px);
|
||||
animation: fade-in 0.2s ease-out;
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
.card-detail {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 1050;
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
padding: 0;
|
||||
max-width: 1100px;
|
||||
width: 95vw;
|
||||
height: 90vh;
|
||||
max-height: 95vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
|
||||
color: var(--text-primary);
|
||||
animation: detail-enter 0.25s ease-out;
|
||||
}
|
||||
|
||||
@keyframes detail-enter {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translate(-50%, -50%) scale(0.95);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
.detail-close {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
z-index: 1;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-primary);
|
||||
width: 2.2rem;
|
||||
height: 2.2rem;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
|
||||
.detail-close:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.detail-layout {
|
||||
display: flex;
|
||||
padding: 2.5rem 2rem 2rem;
|
||||
}
|
||||
|
||||
.detail-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.detail-header {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.syndicate-badges {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.syn-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
box-shadow: 0 0 15px currentColor;
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.detail-header h2 {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 1.8rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
background: linear-gradient(135deg, #fff 0%, #aaa 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.detail-meta {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.meta-badge {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 0.3rem 0.8rem;
|
||||
border-radius: 4px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-muted);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.detail-field {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.detail-field .field-label {
|
||||
display: block;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.detail-field .field-value {
|
||||
color: var(--text-secondary);
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.detail-field.description {
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.detail-field.description .field-label {
|
||||
margin-bottom: 0.75rem;
|
||||
color: var(--accent);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.detail-field.description .field-value {
|
||||
color: var(--text-primary);
|
||||
display: block;
|
||||
font-size: 1.1rem;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* Syndicate Colors */
|
||||
.lifeblood { color: #ef5350; }
|
||||
.phasetide { color: #2196f3; }
|
||||
.silence { color: #9e9e9e; }
|
||||
.singularity { color: #ffffff; }
|
||||
.splintergleam { color: #4caf50; }
|
||||
.sungrace { color: #ffeb3b; }
|
||||
|
||||
.inline-card-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
text-decoration-color: rgba(108, 99, 255, 0.3);
|
||||
transition: all var(--transition);
|
||||
}
|
||||
|
||||
.inline-card-btn:hover {
|
||||
color: #7b73ff;
|
||||
text-decoration-color: #7b73ff;
|
||||
}
|
||||
|
||||
.card-detail::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.card-detail::-webkit-scrollbar-thumb {
|
||||
background: var(--border);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.card-detail {
|
||||
width: 95vw;
|
||||
max-height: 90vh;
|
||||
}
|
||||
.detail-layout {
|
||||
padding: 2rem 1.25rem;
|
||||
}
|
||||
}
|
||||
@@ -104,7 +104,7 @@
|
||||
@foreach (var s in syndicateFilter)
|
||||
{
|
||||
<span class="filter-chip">
|
||||
<i class="bi bi-flag-fill"></i> @s
|
||||
<i class="bi bi-diagram-3-fill"></i> @s
|
||||
<button @onclick="() => SetSyndicate(s)"><i class="bi bi-x"></i></button>
|
||||
</span>
|
||||
}
|
||||
@@ -147,7 +147,7 @@
|
||||
<div class="card-cost-badge" title="Cost">@card.Cost</div>
|
||||
}
|
||||
|
||||
@if (card.IsImmortalized || card.HasImmortalize)
|
||||
@if (card.IsImmortalized)
|
||||
{
|
||||
<div class="card-immortalize-badge" title="@(card.IsImmortalized ? "Immortalized" : "Immortalizes")">
|
||||
<i class="bi bi-star-fill"></i>
|
||||
@@ -253,7 +253,7 @@
|
||||
{
|
||||
allCards = CardDatabase.Cards;
|
||||
syndicates = allCards
|
||||
.Select(c => c.Faction)
|
||||
.Select(c => c.Syndicate)
|
||||
.Where(f => f != null)
|
||||
.Distinct()
|
||||
.OrderBy(f => f)
|
||||
@@ -265,7 +265,7 @@
|
||||
var primarySet = allCards.Where(c =>
|
||||
c.MatchesSearch(search) &&
|
||||
(categoryFilter == "" || c.Category == categoryFilter) &&
|
||||
(syndicateFilter.Count == 0 || (c.Faction != null && syndicateFilter.Contains(c.Faction))) &&
|
||||
(syndicateFilter.Count == 0 || (c.Syndicate != null && syndicateFilter.Contains(c.Syndicate))) &&
|
||||
(costFilter == "" || c.Cost?.ToString() == costFilter)
|
||||
);
|
||||
|
||||
|
||||
@@ -231,7 +231,6 @@
|
||||
.syndicate-btn.active.lifeblood { border-color: #4caf50; color: #4caf50; }
|
||||
.syndicate-btn.active.sungrace { border-color: #ff9800; color: #ff9800; }
|
||||
.syndicate-btn.active.splintergleam { border-color: #f44336; color: #f44336; }
|
||||
.syndicate-btn.active.eclipse { border-color: #ffea00; color: #ffea00; }
|
||||
|
||||
.syn-icon {
|
||||
width: 12px;
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
@page "/syndicates"
|
||||
@using Model
|
||||
@using Chrono.Components
|
||||
@inject NavigationManager Navigation
|
||||
|
||||
<HeadContent>
|
||||
<meta name="description" content="Explore all syndicate pairings in Chrono CCG."/>
|
||||
</HeadContent>
|
||||
|
||||
<div class="syndicates-container">
|
||||
<div class="syndicates-header">
|
||||
<h1>Syndicate Pairings</h1>
|
||||
<p class="text-secondary">Explore all @pairings.Count combinations of syndicates</p>
|
||||
</div>
|
||||
|
||||
<div class="pairings-grid">
|
||||
@foreach (var doc in pairings)
|
||||
{
|
||||
var s1 = doc.Syndicates?[0] ?? "";
|
||||
var s2 = doc.Syndicates?[1] ?? "";
|
||||
<div class="pairing-card" @onclick="() => OpenPairing(doc)">
|
||||
<div class="pairing-display">
|
||||
<div class="syndicate-item @s1.ToLowerInvariant()">
|
||||
<span class="syn-icon"></span>
|
||||
<span class="syn-name">@s1</span>
|
||||
</div>
|
||||
<div class="pairing-separator">
|
||||
<i class="bi bi-x-lg"></i>
|
||||
</div>
|
||||
<div class="syndicate-item @s2.ToLowerInvariant()">
|
||||
<span class="syn-icon"></span>
|
||||
<span class="syn-name">@s2</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pairing-info">
|
||||
<span class="pairing-label">Dual-Syndicate</span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<SyndicatePairDialog Doc="selectedDoc" OnClose="ClosePairing" />
|
||||
|
||||
@code {
|
||||
private List<DocData> pairings = [];
|
||||
private DocData? selectedDoc;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
pairings = DocDatabase.Docs
|
||||
.Where(d => d.Category == "Syndicate Pairings")
|
||||
.OrderBy(d => d.Title)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
private void OpenPairing(DocData doc)
|
||||
{
|
||||
selectedDoc = doc;
|
||||
}
|
||||
|
||||
private void ClosePairing()
|
||||
{
|
||||
selectedDoc = null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
.syndicates-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.syndicates-header {
|
||||
margin-bottom: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pairings-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.pairing-card {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
transition: transform var(--transition), box-shadow var(--transition);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pairing-card:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: var(--shadow);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.pairing-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.syndicate-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.syn-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
box-shadow: 0 0 10px currentColor;
|
||||
}
|
||||
|
||||
.syn-name {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.pairing-separator {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.pairing-info {
|
||||
border-top: 1px solid var(--border);
|
||||
padding-top: 0.75rem;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pairing-label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.syn-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
box-shadow: 0 0 10px currentColor;
|
||||
display: inline-block; /* Ensure visibility */
|
||||
}
|
||||
|
||||
/* Syndicate Colors */
|
||||
.singularity { color: #ffffff; }
|
||||
.phasetide { color: #2196f3; }
|
||||
.silence { color: #9c27b0; }
|
||||
.lifeblood { color: #4caf50; }
|
||||
.sungrace { color: #ff9800; }
|
||||
.splintergleam { color: #f44336; }
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.pairings-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.syndicates-container {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Dialog ── */
|
||||
.pairing-dialog {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 92vw;
|
||||
max-width: 600px;
|
||||
max-height: 85vh;
|
||||
background: #1a1a1a; /* Explicit dark background */
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
||||
z-index: 1050;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
animation: dialog-enter 0.25s ease-out;
|
||||
}
|
||||
|
||||
@keyframes dialog-enter {
|
||||
from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
|
||||
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
||||
}
|
||||
|
||||
.dialog-close {
|
||||
position: absolute;
|
||||
top: 0.75rem;
|
||||
right: 0.75rem;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-primary);
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
z-index: 2;
|
||||
transition: all var(--transition);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.dialog-close:hover {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
.dialog-header {
|
||||
padding: 2.5rem 1.5rem 1.5rem;
|
||||
background: #252525; /* Explicit slightly lighter dark */
|
||||
border-bottom: 1px solid var(--border);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dialog-header h2 {
|
||||
margin: 1.25rem 0 0;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 700;
|
||||
color: #ffffff; /* Explicit white */
|
||||
}
|
||||
|
||||
.dialog-body {
|
||||
padding: 1.5rem;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
background: #1a1a1a; /* Explicit dark */
|
||||
}
|
||||
|
||||
.doc-content {
|
||||
line-height: 1.7;
|
||||
color: #e0e0e0; /* Explicit light gray */
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.inline-card-ref {
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.doc-content p {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.45);
|
||||
backdrop-filter: blur(2px);
|
||||
z-index: 1040;
|
||||
animation: fade-in 0.2s ease-out;
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
Reference in New Issue
Block a user