Update scss to use @use instead of @import
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<div class="book-browser-header">
|
<div class="book-browser-header">
|
||||||
<div class="left-items">
|
<div class="left-items">
|
||||||
<ng-container *ngIf="entityType$ | async as entityType">
|
<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">
|
<p *ngIf="entityType !== EntityType.ALL_BOOKS" class="entity-name text-2xl">
|
||||||
{{ entityType }}: {{ (entity$ | async)?.name }}
|
{{ entityType }}: {{ (entity$ | async)?.name }}
|
||||||
</p>
|
</p>
|
||||||
@@ -10,7 +9,6 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div *ngIf="entityType !== EntityType.ALL_BOOKS">
|
<div *ngIf="entityType !== EntityType.ALL_BOOKS">
|
||||||
<!-- Entity menu for non-'All Books' entity types -->
|
|
||||||
<p-button
|
<p-button
|
||||||
icon="pi pi-ellipsis-v"
|
icon="pi pi-ellipsis-v"
|
||||||
[rounded]="true"
|
[rounded]="true"
|
||||||
@@ -24,10 +22,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="header-right-items">
|
<div class="header-right-items">
|
||||||
<!-- Book title search input -->
|
|
||||||
<input type="text" pInputText placeholder="Search by title..." [(ngModel)]="bookTitle" (ngModelChange)="onBookTitleChange($event)"/>
|
<input type="text" pInputText placeholder="Search by title..." [(ngModel)]="bookTitle" (ngModelChange)="onBookTitleChange($event)"/>
|
||||||
|
|
||||||
<!-- Sorting dropdown -->
|
|
||||||
<p-dropdown
|
<p-dropdown
|
||||||
[options]="sortOptions"
|
[options]="sortOptions"
|
||||||
optionLabel="label"
|
optionLabel="label"
|
||||||
@@ -36,7 +32,6 @@
|
|||||||
(onChange)="updateSortOption($event.value)">
|
(onChange)="updateSortOption($event.value)">
|
||||||
</p-dropdown>
|
</p-dropdown>
|
||||||
|
|
||||||
<!-- Zoom control buttons -->
|
|
||||||
<div class="zoom-controls">
|
<div class="zoom-controls">
|
||||||
<p-button icon="pi pi-minus" [rounded]="true" [outlined]="true" severity="info"></p-button>
|
<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>
|
<p-button icon="pi pi-plus" [rounded]="true" [outlined]="true" severity="info"></p-button>
|
||||||
@@ -44,12 +39,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Loading spinner -->
|
|
||||||
<div *ngIf="!(bookState$ | async)?.loaded && !(bookState$ | async)?.error">
|
<div *ngIf="!(bookState$ | async)?.loaded && !(bookState$ | async)?.error">
|
||||||
<p-progressSpinner></p-progressSpinner>
|
<p-progressSpinner></p-progressSpinner>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Error or empty state handling -->
|
|
||||||
<div class="virtual-scroller-container">
|
<div class="virtual-scroller-container">
|
||||||
<div class="no-books-container" *ngIf="(bookState$ | async)?.error">
|
<div class="no-books-container" *ngIf="(bookState$ | async)?.error">
|
||||||
<p class="no-books-text">
|
<p class="no-books-text">
|
||||||
@@ -62,7 +55,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Book card container -->
|
|
||||||
<div class="book-card-container" *ngIf="(bookState$ | async)?.books as books">
|
<div class="book-card-container" *ngIf="(bookState$ | async)?.books as books">
|
||||||
<virtual-scroller *ngIf="books.length > 0" class="virtual-scroller" #scroll [items]="books">
|
<virtual-scroller *ngIf="books.length > 0" class="virtual-scroller" #scroll [items]="books">
|
||||||
<div class="grid grid-cols-12 gap-4" #container>
|
<div class="grid grid-cols-12 gap-4" #container>
|
||||||
@@ -78,7 +70,6 @@
|
|||||||
</virtual-scroller>
|
</virtual-scroller>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Footer with actions based on selected books -->
|
|
||||||
<div class="book-browser-footer" *ngIf="selectedBooks.size > 0">
|
<div class="book-browser-footer" *ngIf="selectedBooks.size > 0">
|
||||||
<div class="footer-items-container">
|
<div class="footer-items-container">
|
||||||
<ng-container *ngIf="entityType$ | async as entityType">
|
<ng-container *ngIf="entityType$ | async as entityType">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@import './layout/layout.scss';
|
@use 'layout/layout.scss';
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
|
@use "variables";
|
||||||
|
|
||||||
.layout-main-container {
|
.layout-main-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 5.2rem 1.2rem 2rem 3.6rem;
|
padding: 5.2rem 1.2rem 2rem 3.6rem;
|
||||||
transition: margin-left $transitionDuration;
|
transition: margin-left variables.$transitionDuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-main {
|
.layout-main {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
|
@use "variables";
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-size: $scale;
|
font-size: variables.$scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
@use "mixins";
|
||||||
|
@use "variables";
|
||||||
|
|
||||||
.layout-sidebar {
|
.layout-sidebar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 225px;
|
width: 225px;
|
||||||
@@ -7,9 +10,9 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
top: 5.2rem;
|
top: 5.2rem;
|
||||||
left: 1.2rem;
|
left: 1.2rem;
|
||||||
transition: transform $transitionDuration, left $transitionDuration;
|
transition: transform variables.$transitionDuration, left variables.$transitionDuration;
|
||||||
background-color: var(--card-background);
|
background-color: var(--card-background);
|
||||||
border-radius: $borderRadius;
|
border-radius: variables.$borderRadius;
|
||||||
padding: 0.5rem 1.35rem;
|
padding: 0.5rem 1.35rem;
|
||||||
box-shadow: 0px 3px 5px rgba(0, 0, 0, .02), 0px 0px 2px rgba(0, 0, 0, .05), 0px 1px 4px rgba(0, 0, 0, .08);
|
box-shadow: 0px 3px 5px rgba(0, 0, 0, .02), 0px 0px 2px rgba(0, 0, 0, .05), 0px 1px 4px rgba(0, 0, 0, .08);
|
||||||
}
|
}
|
||||||
@@ -71,8 +74,8 @@
|
|||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.75rem 0.5rem 0.75rem 1rem;
|
padding: 0.75rem 0.5rem 0.75rem 1rem;
|
||||||
border-radius: $borderRadius;
|
border-radius: variables.$borderRadius;
|
||||||
transition: background-color $transitionDuration, box-shadow $transitionDuration;
|
transition: background-color variables.$transitionDuration, box-shadow variables.$transitionDuration;
|
||||||
|
|
||||||
.layout-menuitem-icon {
|
.layout-menuitem-icon {
|
||||||
margin-right: .5rem;
|
margin-right: .5rem;
|
||||||
@@ -81,7 +84,7 @@
|
|||||||
.layout-submenu-toggler {
|
.layout-submenu-toggler {
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
transition: transform $transitionDuration;
|
transition: transform variables.$transitionDuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active-route {
|
&.active-route {
|
||||||
@@ -94,13 +97,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@include focused-inset();
|
@include mixins.focused-inset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: $borderRadius;
|
border-radius: variables.$borderRadius;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@use "variables";
|
||||||
|
|
||||||
@media screen and (min-width: 1960px) {
|
@media screen and (min-width: 1960px) {
|
||||||
.layout-main, .landing-wrapper {
|
.layout-main, .landing-wrapper {
|
||||||
width: 1504px;
|
width: 1504px;
|
||||||
@@ -93,7 +95,7 @@
|
|||||||
|
|
||||||
.layout-mask {
|
.layout-mask {
|
||||||
display: block;
|
display: block;
|
||||||
animation: fadein $transitionDuration;
|
animation: fadein variables.$transitionDuration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
@use "mixins";
|
||||||
|
@use "variables";
|
||||||
|
|
||||||
.top-bar-app-theme-switcher {
|
.top-bar-app-theme-switcher {
|
||||||
margin-left: 1.25rem;
|
margin-left: 1.25rem;
|
||||||
}
|
}
|
||||||
@@ -11,7 +14,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 1.75rem;
|
padding: 0 1.75rem;
|
||||||
background-color: var(--card-background);
|
background-color: var(--card-background);
|
||||||
transition: left $transitionDuration;
|
transition: left variables.$transitionDuration;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08);
|
box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08);
|
||||||
@@ -31,7 +34,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@include focused();
|
@include mixins.focused();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +48,7 @@
|
|||||||
width: 3rem;
|
width: 3rem;
|
||||||
height: 3rem;
|
height: 3rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color $transitionDuration;
|
transition: background-color variables.$transitionDuration;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
@@ -53,7 +56,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
@include focused();
|
@include mixins.focused();
|
||||||
}
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@use "variables";
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
margin: 1.5rem 0 1rem 0;
|
margin: 1.5rem 0 1rem 0;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
@@ -37,7 +39,7 @@ h6 {
|
|||||||
mark {
|
mark {
|
||||||
background: #FFF8E1;
|
background: #FFF8E1;
|
||||||
padding: .25rem .4rem;
|
padding: .25rem .4rem;
|
||||||
border-radius: $borderRadius;
|
border-radius: variables.$borderRadius;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
@import './_variables';
|
@use '_variables';
|
||||||
@import "./_mixins";
|
@use "_mixins";
|
||||||
@import "./_main";
|
@use "_main";
|
||||||
@import "./_topbar";
|
@use "_topbar";
|
||||||
@import "./_menu";
|
@use "_menu";
|
||||||
@import "./_content";
|
@use "_content";
|
||||||
@import "./_responsive";
|
@use "_responsive";
|
||||||
@import "./_typography";
|
@use "_typography";
|
||||||
@import "./variables/main/dark";
|
@use "variables/main/dark";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
@use "sass:meta";
|
||||||
@import "../node_modules/primeicons/primeicons.css";
|
@import "../node_modules/primeicons/primeicons.css";
|
||||||
@import "assets/layout/styles/global.scss";
|
@include meta.load-css("assets/layout/styles/global.scss");
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|||||||
Reference in New Issue
Block a user