Update scss to use @use instead of @import

This commit is contained in:
aditya.chandel
2024-12-30 16:34:10 -07:00
parent c3f7f71159
commit 74df7d9413
10 changed files with 41 additions and 35 deletions
@@ -1,7 +1,6 @@
<div class="book-browser-header">
<div class="left-items">
<ng-container *ngIf="entityType$ | async as entityType">
<!-- Display entity name for specific entity types -->
<p *ngIf="entityType !== EntityType.ALL_BOOKS" class="entity-name text-2xl">
{{ entityType }}: {{ (entity$ | async)?.name }}
</p>
@@ -10,7 +9,6 @@
</p>
<div *ngIf="entityType !== EntityType.ALL_BOOKS">
<!-- Entity menu for non-'All Books' entity types -->
<p-button
icon="pi pi-ellipsis-v"
[rounded]="true"
@@ -24,10 +22,8 @@
</div>
<div class="header-right-items">
<!-- Book title search input -->
<input type="text" pInputText placeholder="Search by title..." [(ngModel)]="bookTitle" (ngModelChange)="onBookTitleChange($event)"/>
<!-- Sorting dropdown -->
<p-dropdown
[options]="sortOptions"
optionLabel="label"
@@ -36,7 +32,6 @@
(onChange)="updateSortOption($event.value)">
</p-dropdown>
<!-- Zoom control buttons -->
<div class="zoom-controls">
<p-button icon="pi pi-minus" [rounded]="true" [outlined]="true" severity="info"></p-button>
<p-button icon="pi pi-plus" [rounded]="true" [outlined]="true" severity="info"></p-button>
@@ -44,12 +39,10 @@
</div>
</div>
<!-- Loading spinner -->
<div *ngIf="!(bookState$ | async)?.loaded && !(bookState$ | async)?.error">
<p-progressSpinner></p-progressSpinner>
</div>
<!-- Error or empty state handling -->
<div class="virtual-scroller-container">
<div class="no-books-container" *ngIf="(bookState$ | async)?.error">
<p class="no-books-text">
@@ -62,7 +55,6 @@
</p>
</div>
<!-- Book card container -->
<div class="book-card-container" *ngIf="(bookState$ | async)?.books as books">
<virtual-scroller *ngIf="books.length > 0" class="virtual-scroller" #scroll [items]="books">
<div class="grid grid-cols-12 gap-4" #container>
@@ -78,7 +70,6 @@
</virtual-scroller>
</div>
<!-- Footer with actions based on selected books -->
<div class="book-browser-footer" *ngIf="selectedBooks.size > 0">
<div class="footer-items-container">
<ng-container *ngIf="entityType$ | async as entityType">