style(frontend): enforce selector-class-pattern in scss
- Stylelint: - re-enable selector-class-pattern in the frontend Stylelint config - keep the selector rename isolated because this rule is the only remaining bucket that crosses stylesheet and template changes - Series page: - rename the metadata card modifier classes to kebab-case in both the stylesheet and template - Bookdrop and stats: - rename the fixed field label and series-name helper classes to kebab-case in the picker stylesheet and template - correct the responsive dialog footer selector to PrimeNG's kebab-case class name - Validation: - run just ui stylelint
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
<div class="metadata-cards">
|
||||
@if (allPublishers(); as publishers) {
|
||||
@if (publishers.length) {
|
||||
<span class="meta-card meta-card--publisher" (click)="goToPublisher(publishers[0])">
|
||||
<span class="meta-card meta-card-publisher" (click)="goToPublisher(publishers[0])">
|
||||
<i class="pi pi-building"></i>
|
||||
@for (pub of publishers; track pub; let isLast = $last) {
|
||||
{{ pub }}{{ isLast ? '' : ', ' }}
|
||||
@@ -78,25 +78,25 @@
|
||||
</span>
|
||||
}
|
||||
}
|
||||
<span class="meta-card meta-card--books">
|
||||
<span class="meta-card meta-card-books">
|
||||
<i class="pi pi-book"></i>
|
||||
{{ books.length }} {{ books.length === 1 ? t('book') : t('books') }}
|
||||
</span>
|
||||
@if (yearsRange(); as years) {
|
||||
<span class="meta-card meta-card--years">
|
||||
<span class="meta-card meta-card-years">
|
||||
<i class="pi pi-calendar"></i>
|
||||
{{ years }}
|
||||
</span>
|
||||
}
|
||||
@if (seriesStats(); as stats) {
|
||||
@if (stats.totalPages > 0) {
|
||||
<span class="meta-card meta-card--pages">
|
||||
<span class="meta-card meta-card-pages">
|
||||
<i class="pi pi-file"></i>
|
||||
{{ stats.totalPages | number }} {{ t('stats.totalPages') }}
|
||||
</span>
|
||||
}
|
||||
@if (stats.formatCounts.size > 0) {
|
||||
<span class="meta-card meta-card--format">
|
||||
<span class="meta-card meta-card-format">
|
||||
<i class="pi pi-tag"></i>
|
||||
@for (entry of stats.formatCounts | keyvalue; track entry.key) {
|
||||
{{ entry.key }}{{ $last ? '' : ', ' }}
|
||||
@@ -104,7 +104,7 @@
|
||||
</span>
|
||||
}
|
||||
@if (stats.totalAudioDurationSeconds > 0) {
|
||||
<span class="meta-card meta-card--audio">
|
||||
<span class="meta-card meta-card-audio">
|
||||
<i class="pi pi-headphones"></i>
|
||||
{{ formatDuration(stats.totalAudioDurationSeconds) }}
|
||||
</span>
|
||||
@@ -112,14 +112,14 @@
|
||||
}
|
||||
@if (allLanguages(); as languages) {
|
||||
@if (languages.length) {
|
||||
<span class="meta-card meta-card--language">
|
||||
<span class="meta-card meta-card-language">
|
||||
<i class="pi pi-globe"></i>
|
||||
{{ languages.join(', ') }}
|
||||
</span>
|
||||
}
|
||||
}
|
||||
@if (seriesCompletion(); as completion) {
|
||||
<span class="meta-card meta-card--owned">
|
||||
<span class="meta-card meta-card-owned">
|
||||
<i class="pi pi-check-circle"></i>
|
||||
{{ completion.owned }}/{{ completion.total }} {{ t('stats.owned') }}
|
||||
</span>
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.meta-card--publisher {
|
||||
.meta-card-publisher {
|
||||
background: color-mix(in srgb, #3b82f6, transparent 85%);
|
||||
border-color: color-mix(in srgb, #3b82f6, transparent 60%);
|
||||
color: #93c5fd;
|
||||
@@ -140,7 +140,7 @@
|
||||
i { color: #60a5fa; }
|
||||
}
|
||||
|
||||
.meta-card--books {
|
||||
.meta-card-books {
|
||||
background: color-mix(in srgb, #8b5cf6, transparent 85%);
|
||||
border-color: color-mix(in srgb, #8b5cf6, transparent 60%);
|
||||
color: #c4b5fd;
|
||||
@@ -148,7 +148,7 @@
|
||||
i { color: #a78bfa; }
|
||||
}
|
||||
|
||||
.meta-card--years {
|
||||
.meta-card-years {
|
||||
background: color-mix(in srgb, #f59e0b, transparent 85%);
|
||||
border-color: color-mix(in srgb, #f59e0b, transparent 60%);
|
||||
color: #fcd34d;
|
||||
@@ -156,7 +156,7 @@
|
||||
i { color: #fbbf24; }
|
||||
}
|
||||
|
||||
.meta-card--pages {
|
||||
.meta-card-pages {
|
||||
background: color-mix(in srgb, #10b981, transparent 85%);
|
||||
border-color: color-mix(in srgb, #10b981, transparent 60%);
|
||||
color: #6ee7b7;
|
||||
@@ -164,7 +164,7 @@
|
||||
i { color: #34d399; }
|
||||
}
|
||||
|
||||
.meta-card--format {
|
||||
.meta-card-format {
|
||||
background: color-mix(in srgb, #f43f5e, transparent 85%);
|
||||
border-color: color-mix(in srgb, #f43f5e, transparent 60%);
|
||||
color: #fda4af;
|
||||
@@ -172,7 +172,7 @@
|
||||
i { color: #fb7185; }
|
||||
}
|
||||
|
||||
.meta-card--audio {
|
||||
.meta-card-audio {
|
||||
background: color-mix(in srgb, #06b6d4, transparent 85%);
|
||||
border-color: color-mix(in srgb, #06b6d4, transparent 60%);
|
||||
color: #67e8f9;
|
||||
@@ -180,7 +180,7 @@
|
||||
i { color: #22d3ee; }
|
||||
}
|
||||
|
||||
.meta-card--language {
|
||||
.meta-card-language {
|
||||
background: color-mix(in srgb, #ec4899, transparent 85%);
|
||||
border-color: color-mix(in srgb, #ec4899, transparent 60%);
|
||||
color: #f9a8d4;
|
||||
@@ -188,7 +188,7 @@
|
||||
i { color: #f472b6; }
|
||||
}
|
||||
|
||||
.meta-card--owned {
|
||||
.meta-card-owned {
|
||||
background: color-mix(in srgb, #14b8a6, transparent 85%);
|
||||
border-color: color-mix(in srgb, #14b8a6, transparent 60%);
|
||||
color: #5eead4;
|
||||
|
||||
Reference in New Issue
Block a user