feat(ui): light mode and new theming system (#1468)

This commit is contained in:
Alex
2026-05-26 01:07:33 -04:00
committed by GitHub
parent 3211d7818a
commit 22ff6d8e90
131 changed files with 2816 additions and 3391 deletions
@@ -11,10 +11,10 @@
</p>
</div>
<div class="warning-notice">
<i class="pi pi-exclamation-triangle"></i>
<div class="warning-notice border-l-red-700 dark:border-l-red-300">
<i class="pi pi-exclamation-triangle text-red-700 dark:text-red-300"></i>
<div>
<strong>{{ t('warning.title') }}</strong> {{ t('warning.text') }}
<strong class="text-red-700 dark:text-red-300">{{ t('warning.title') }}</strong> {{ t('warning.text') }}
</div>
</div>
@@ -55,7 +55,7 @@
<i class="pi pi-eye"></i>
{{ t('defaultPattern.preview') }}
</span>
<code class="preview-value">{{ generateDefaultPreview() }}</code>
<code class="preview-value text-emerald-700 dark:text-emerald-300">{{ generateDefaultPreview() }}</code>
</div>
</div>
</div>
@@ -120,7 +120,7 @@
<i class="pi pi-eye"></i>
{{ t('libraryOverrides.preview') }}
</span>
<code class="preview-value">{{ generateLibraryPreview(library) }}</code>
<code class="preview-value text-emerald-700 dark:text-emerald-300">{{ generateLibraryPreview(library) }}</code>
</div>
</div>
</div>
@@ -160,16 +160,16 @@
{{ t('placeholders.available') }}
</h4>
<div class="placeholder-list">
<div class="placeholder-item"><code>{{ '{title}' }}</code><span>{{ t('placeholders.title') }}</span></div>
<div class="placeholder-item"><code>{{ '{subtitle}' }}</code><span>{{ t('placeholders.subtitle') }}</span></div>
<div class="placeholder-item"><code>{{ '{authors}' }}</code><span>{{ t('placeholders.authors') }}</span></div>
<div class="placeholder-item"><code>{{ '{year}' }}</code><span>{{ t('placeholders.year') }}</span></div>
<div class="placeholder-item"><code>{{ '{series}' }}</code><span>{{ t('placeholders.series') }}</span></div>
<div class="placeholder-item"><code>{{ '{seriesIndex}' }}</code><span>{{ t('placeholders.seriesIndex') }}</span></div>
<div class="placeholder-item"><code>{{ '{language}' }}</code><span>{{ t('placeholders.language') }}</span></div>
<div class="placeholder-item"><code>{{ '{publisher}' }}</code><span>{{ t('placeholders.publisher') }}</span></div>
<div class="placeholder-item"><code>{{ '{isbn}' }}</code><span>{{ t('placeholders.isbn') }}</span></div>
<div class="placeholder-item"><code>{{ '{currentFilename}' }}</code><span>{{ t('placeholders.currentFilename') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title}' }}</code><span>{{ t('placeholders.title') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{subtitle}' }}</code><span>{{ t('placeholders.subtitle') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors}' }}</code><span>{{ t('placeholders.authors') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{year}' }}</code><span>{{ t('placeholders.year') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{series}' }}</code><span>{{ t('placeholders.series') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{seriesIndex}' }}</code><span>{{ t('placeholders.seriesIndex') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{language}' }}</code><span>{{ t('placeholders.language') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{publisher}' }}</code><span>{{ t('placeholders.publisher') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{isbn}' }}</code><span>{{ t('placeholders.isbn') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{currentFilename}' }}</code><span>{{ t('placeholders.currentFilename') }}</span></div>
</div>
</div>
@@ -183,14 +183,14 @@
<div class="example-block">
<div class="example-pattern">
<span class="pattern-prefix">{{ t('placeholders.pattern') }}</span>
<code>{{ '{<{seriesIndex} - >{title}' }}</code>
<code class="text-orange-700 dark:text-orange-300">{{ '{<{seriesIndex} - >{title}' }}</code>
</div>
<div class="example-results">
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withIndex') }}</span>
<code>01 - Dune</code>
</div>
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.without') }}</span>
<code>Dune</code>
</div>
@@ -208,14 +208,14 @@
<div class="example-block">
<div class="example-pattern">
<span class="pattern-prefix">{{ t('placeholders.pattern') }}</span>
<code>{{ '{<{series}|Standalone>/{title}' }}</code>
<code class="text-orange-700 dark:text-orange-300">{{ '{<{series}|Standalone>/{title}' }}</code>
</div>
<div class="example-results">
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withSeries') }}</span>
<code>The Kingkiller Chronicle/The Name of the Wind</code>
</div>
<div class="result-item">
<div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withoutSeries') }}</span>
<code>Standalone/The Name of the Wind</code>
</div>
@@ -231,11 +231,11 @@
<p class="group-description" [innerHTML]="t('placeholders.modifiersDesc')">
</p>
<div class="placeholder-list">
<div class="placeholder-item"><code>{{ '{authors:first}' }}</code><span>{{ t('placeholders.modFirst') }}</span></div>
<div class="placeholder-item"><code>{{ '{authors:sort}' }}</code><span>{{ t('placeholders.modSort') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:initial}' }}</code><span>{{ t('placeholders.modInitial') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:upper}' }}</code><span>{{ t('placeholders.modUpper') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:lower}' }}</code><span>{{ t('placeholders.modLower') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors:first}' }}</code><span>{{ t('placeholders.modFirst') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors:sort}' }}</code><span>{{ t('placeholders.modSort') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:initial}' }}</code><span>{{ t('placeholders.modInitial') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:upper}' }}</code><span>{{ t('placeholders.modUpper') }}</span></div>
<div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:lower}' }}</code><span>{{ t('placeholders.modLower') }}</span></div>
</div>
</div>
</div>
@@ -256,9 +256,9 @@
<div class="section-body">
<div class="examples-container">
<div class="metadata-reference">
<div class="metadata-panel metadata-panel-full">
<div class="metadata-panel metadata-panel-full border-l-emerald-500 dark:border-l-emerald-300">
<div class="metadata-panel-header">
<i class="pi pi-check-circle metadata-icon-full"></i>
<i class="pi pi-check-circle metadata-icon-full text-emerald-700 dark:text-emerald-300"></i>
<span>{{ t('examples.fullMetadata') }}</span>
</div>
<div class="metadata-grid">
@@ -270,9 +270,9 @@
<span class="metadata-key">year</span><code class="metadata-val">2007</code>
</div>
</div>
<div class="metadata-panel metadata-panel-partial">
<div class="metadata-panel metadata-panel-partial border-l-orange-700 dark:border-l-orange-300">
<div class="metadata-panel-header">
<i class="pi pi-question-circle metadata-icon-partial"></i>
<i class="pi pi-question-circle metadata-icon-partial text-orange-700 dark:text-orange-300"></i>
<span>{{ t('examples.partialMetadata') }}</span>
</div>
<div class="metadata-grid">
@@ -294,33 +294,33 @@
<div class="example-grid">
<div class="example-row">
<span class="pattern-label">{{ t('examples.basicPattern') }}</span>
<span class="pattern-col"><code>{{ '{authors} - {title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss - The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors} - {title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss - The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.seriesInFolder') }}</span>
<span class="pattern-col"><code>{{ '{authors}/{series}/{seriesIndex} - {title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss/The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors}/{series}/{seriesIndex} - {title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss/The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.titleSubtitle') }}</span>
<span class="pattern-col"><code>{{ '{title}: {subtitle}' }}</code></span>
<span class="result-col"><code>The Name of the Wind: Special Edition.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}: {subtitle}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>The Name of the Wind: Special Edition.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.absolutePath') }}</span>
<span class="pattern-col"><code>{{ '/{authors}/{title}' }}</code></span>
<span class="result-col"><code>/Patrick Rothfuss/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '/{authors}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>/Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.folderOnly') }}</span>
<span class="pattern-col"><code>{{ '{title}/' }}</code></span>
<span class="result-col"><code>The Name of the Wind/name_of_the_wind_original.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}/' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>The Name of the Wind/name_of_the_wind_original.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.yearPrefix') }}</span>
<span class="pattern-col"><code>{{ '({year}) {title}' }}</code></span>
<span class="result-col"><code>(2007) The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '({year}) {title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>(2007) The Name of the Wind.epub</code></span>
</div>
</div>
</div>
@@ -335,50 +335,50 @@
<div class="example-grid">
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.optionalBlock') }}</span>
<span class="pattern-col"><code>{{ '<{seriesIndex}. >{title}' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{seriesIndex}. >{title}' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>01. The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>01. The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.subtitleConditional') }}</span>
<span class="pattern-col"><code>{{ '{title}<: {subtitle}>' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}<: {subtitle}>' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Name of the Wind: Special Edition.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Name of the Wind: Special Edition.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.multipleOptional') }}</span>
<span class="pattern-col"><code>{{ '{authors}/<{series}/><{seriesIndex}. >{title}< ({year})>' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors}/<{series}/><{seriesIndex}. >{title}< ({year})>' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>Patrick Rothfuss/The Kingkiller Chronicle/01. The Name of the Wind (2007).epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Andy Weir/Project Hail Mary (2021).epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>Patrick Rothfuss/The Kingkiller Chronicle/01. The Name of the Wind (2007).epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Andy Weir/Project Hail Mary (2021).epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseClause') }}</span>
<span class="pattern-col"><code>{{ '<{series}|Standalone>/{title}' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}|Standalone>/{title}' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Standalone/Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Standalone/Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseClauseFallback') }}</span>
<span class="pattern-col"><code>{{ '<{series}/{seriesIndex} - {title}|{title}>' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}/{seriesIndex} - {title}|{title}>' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div>
</div>
<div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseWithModifier') }}</span>
<span class="pattern-col"><code>{{ '<{series}|{authors:sort}>/{title}' }}</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}|{authors:sort}>/{title}' }}</code></span>
<div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Weir, Andy/Project Hail Mary.epub</code></span>
<span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Weir, Andy/Project Hail Mary.epub</code></span>
</div>
</div>
</div>
@@ -394,38 +394,38 @@
<div class="example-grid">
<div class="example-row">
<span class="pattern-label">{{ t('examples.modifierSort') }}</span>
<span class="pattern-col"><code>{{ '{authors:sort}/{title}' }}</code></span>
<span class="result-col"><code>Rothfuss, Patrick/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:sort}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Rothfuss, Patrick/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modifierInitial') }}</span>
<span class="pattern-col"><code>{{ '{authors:initial}/{authors:sort}/{title}' }}</code></span>
<span class="result-col"><code>R/Rothfuss, Patrick/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:initial}/{authors:sort}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>R/Rothfuss, Patrick/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modFirst') }}</span>
<span class="pattern-col"><code>{{ '{authors:first}/{title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:first}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modUpper') }}</span>
<span class="pattern-col"><code>{{ '{title:upper}' }}</code></span>
<span class="result-col"><code>THE NAME OF THE WIND.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:upper}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>THE NAME OF THE WIND.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.modLower') }}</span>
<span class="pattern-col"><code>{{ '{title:lower}' }}</code></span>
<span class="result-col"><code>the name of the wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:lower}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>the name of the wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.letterFolder') }}</span>
<span class="pattern-col"><code>{{ '{title:initial}/{authors}/{title}' }}</code></span>
<span class="result-col"><code>T/Patrick Rothfuss/The Name of the Wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:initial}/{authors}/{title}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>T/Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div>
<div class="example-row">
<span class="pattern-label">{{ t('examples.combinedMods') }}</span>
<span class="pattern-col"><code>{{ '{authors:sort} - {title:lower}' }}</code></span>
<span class="result-col"><code>Rothfuss, Patrick - the name of the wind.epub</code></span>
<span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:sort} - {title:lower}' }}</code></span>
<span class="result-col text-emerald-700 dark:text-emerald-300"><code>Rothfuss, Patrick - the name of the wind.epub</code></span>
</div>
</div>
</div>
@@ -53,7 +53,7 @@
padding: 3rem 2rem;
text-align: center;
color: var(--p-text-muted-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
background: var(--color-card);
border-radius: 6px;
.pi {
@@ -77,7 +77,7 @@
// Default pattern card
.default-pattern-card {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-primary-color);
border-radius: 6px;
@@ -141,7 +141,6 @@
}
.preview-value {
color: var(--p-green-400);
font-size: settings.$settings-section-description-size;
background: transparent;
padding: 0;
@@ -156,14 +155,14 @@
}
.library-item {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
background: var(--color-card);
border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color);
border-radius: 6px;
transition: border-color 0.2s ease, background 0.2s ease;
&:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%);
background: var(--color-card);
}
&.has-pattern {
@@ -230,8 +229,8 @@
display: inline-flex;
align-items: center;
padding: 0.125rem 0.5rem;
background: color-mix(in srgb, #6b7280 15%, transparent);
color: #6b7280;
background: color-mix(in srgb, var(--color-text-secondary) 15%, transparent);
color: var(--color-text-secondary);
border-radius: 12px;
font-size: 0.625rem;
font-weight: 700;
@@ -260,7 +259,7 @@
}
.placeholder-group {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
background: var(--color-card);
border-radius: 6px;
padding: 1rem;
border-left: 3px solid var(--p-primary-color);
@@ -292,7 +291,7 @@
margin: 0 0 0.75rem;
code {
color: var(--p-orange-400);
color: var(--color-primary);
font-size: settings.$settings-description-size;
}
}
@@ -310,7 +309,6 @@
font-size: settings.$settings-section-description-size;
code {
color: var(--p-orange-400);
font-size: settings.$settings-description-size;
min-width: 130px;
}
@@ -321,7 +319,7 @@
}
.example-block {
background: color-mix(in srgb, var(--p-surface-800) 30%, transparent);
background: color-mix(in srgb, var(--color-card) 30%, transparent);
border-radius: 4px;
padding: 0.75rem;
}
@@ -338,7 +336,6 @@
}
code {
color: var(--p-orange-400);
font-size: settings.$settings-section-description-size;
}
}
@@ -362,7 +359,6 @@
}
code {
color: var(--p-green-400);
font-size: settings.$settings-description-size;
}
}
@@ -386,18 +382,11 @@
}
.metadata-panel {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
background: var(--color-card);
padding: 1rem 1.25rem;
border-radius: 6px;
border-left: 3px solid var(--p-content-border-color);
&.metadata-panel-full {
border-left-color: var(--p-green-400);
}
&.metadata-panel-partial {
border-left-color: var(--p-orange-400);
}
}
.metadata-panel-header {
@@ -416,14 +405,6 @@
}
}
.metadata-icon-full {
color: var(--p-green-400);
}
.metadata-icon-partial {
color: var(--p-orange-400);
}
.metadata-grid {
display: grid;
grid-template-columns: auto 1fr;
@@ -485,7 +466,7 @@
grid-template-columns: 130px 1fr 1fr;
gap: 0.75rem;
padding: 0.625rem 0.75rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
background: var(--color-card);
border-radius: 4px;
font-size: settings.$settings-section-description-size;
align-items: center;
@@ -501,7 +482,7 @@
grid-template-columns: 130px 1fr 1fr;
gap: 0.75rem;
padding: 0.625rem 0.75rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
background: var(--color-card);
border-radius: 4px;
font-size: settings.$settings-section-description-size;
align-items: start;
@@ -525,7 +506,6 @@
.pattern-col {
code {
color: var(--p-orange-400);
font-size: settings.$settings-description-size;
word-break: break-all;
}
@@ -537,14 +517,13 @@
.result-col {
code {
color: var(--p-green-400);
font-size: settings.$settings-description-size;
word-break: break-all;
}
@media (width <= 1024px) {
padding-left: 0.5rem;
border-left: 2px solid var(--p-green-400);
border-left: 2px solid currentcolor;
}
}
@@ -563,27 +542,3 @@
margin-right: 0.25rem;
}
}
.result-with {
color: var(--p-green-400);
.pi {
color: var(--p-green-400);
}
code {
color: var(--p-green-400);
}
}
.result-without {
color: var(--p-orange-400);
.pi {
color: var(--p-orange-400);
}
code {
color: var(--p-orange-400);
}
}