chore(ui): add tailwind 4.3 and update classes (#1379)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<ng-container *transloco="let t; prefix: 'readerEbook.footer'">
|
||||
<div class="reader-navbar" [class.visible]="navbarVisible">
|
||||
<div class="reader-navbar" [class.is-visible]="navbarVisible">
|
||||
<button class="icon-btn" [title]="t('previousSection')" [disabled]="!canGoPrevious" (click)="onPreviousSection()">
|
||||
<app-reader-icon name="chevron-left"></app-reader-icon>
|
||||
</button>
|
||||
|
||||
@@ -31,7 +31,7 @@ $transition-normal: 200ms ease;
|
||||
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
|
||||
transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
&.visible {
|
||||
&.is-visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<ng-container *transloco="let t; prefix: 'readerEbook.header'">
|
||||
<div class="reader-header" [class.visible]="forceVisible()" [style.background]="theme().bg" [style.color]="theme().fg">
|
||||
<div class="reader-header" [class.is-visible]="forceVisible()" [style.background]="theme().bg" [style.color]="theme().fg">
|
||||
<div class="header-left">
|
||||
<button class="icon-btn" (click)="onShowChapters()" [title]="t('chapters')">
|
||||
<app-reader-icon name="menu" [size]="20"></app-reader-icon>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
transform: translateY(-100%);
|
||||
transition: opacity 0.25s ease-out, transform 0.25s ease-out;
|
||||
|
||||
&.visible {
|
||||
&.is-visible {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
</div>
|
||||
<ul class="item-list search-results">
|
||||
@for (result of searchState().results; track result.cfi) {
|
||||
<li class="list-item search-result-item" role="button" tabindex="0" (click)="onSearchResultClick(result.cfi)" (keydown.enter)="onSearchResultClick(result.cfi)">
|
||||
<li class="reader-list-item search-result-item" role="button" tabindex="0" (click)="onSearchResultClick(result.cfi)" (keydown.enter)="onSearchResultClick(result.cfi)">
|
||||
<div class="item-content">
|
||||
<span class="search-excerpt">
|
||||
<span class="excerpt-context">{{ result.excerpt.pre }}</span>
|
||||
@@ -132,7 +132,7 @@
|
||||
@if (filteredNotes().length > 0) {
|
||||
<ul class="item-list">
|
||||
@for (note of filteredNotes(); track note.id) {
|
||||
<li class="list-item note-item" role="button" tabindex="0" (click)="onNoteClick(note.cfi)" (keydown.enter)="onNoteClick(note.cfi)">
|
||||
<li class="reader-list-item note-item" role="button" tabindex="0" (click)="onNoteClick(note.cfi)" (keydown.enter)="onNoteClick(note.cfi)">
|
||||
<div class="note-bar" [style.background-color]="note.color"></div>
|
||||
<div class="item-content">
|
||||
<span class="note-text">{{ note.noteContent }}</span>
|
||||
|
||||
@@ -141,7 +141,7 @@ $transition-normal: 200ms ease;
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.list-item {
|
||||
.reader-list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
|
||||
+2
-2
@@ -109,7 +109,7 @@
|
||||
@if (bookmarks().length > 0) {
|
||||
<ul class="item-list">
|
||||
@for (bookmark of bookmarks(); track bookmark.id) {
|
||||
<li class="list-item" role="button" tabindex="0" (click)="onBookmarkClick(bookmark.cfi!)" (keydown.enter)="onBookmarkClick(bookmark.cfi!)">
|
||||
<li class="reader-list-item" role="button" tabindex="0" (click)="onBookmarkClick(bookmark.cfi!)" (keydown.enter)="onBookmarkClick(bookmark.cfi!)">
|
||||
<div class="item-content">
|
||||
<span class="item-title">{{ bookmark.title }}</span>
|
||||
<span class="item-meta">{{ bookmark.createdAt | date: 'MMM d, y' }}</span>
|
||||
@@ -133,7 +133,7 @@
|
||||
@if (annotations().length > 0) {
|
||||
<ul class="item-list">
|
||||
@for (annotation of annotations(); track annotation.id) {
|
||||
<li class="list-item highlight-item" role="button" tabindex="0" (click)="onAnnotationClick(annotation.cfi)" (keydown.enter)="onAnnotationClick(annotation.cfi)">
|
||||
<li class="reader-list-item highlight-item" role="button" tabindex="0" (click)="onAnnotationClick(annotation.cfi)" (keydown.enter)="onAnnotationClick(annotation.cfi)">
|
||||
<div class="highlight-bar" [style.background-color]="annotation.color"></div>
|
||||
<div class="item-content">
|
||||
<span class="highlight-text">"{{ annotation.text }}"</span>
|
||||
|
||||
+2
-2
@@ -245,7 +245,7 @@ $transition-normal: 200ms ease;
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.list-item {
|
||||
.reader-list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
@@ -323,7 +323,7 @@ $transition-normal: 200ms ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.list-item:hover .action-buttons {
|
||||
.reader-list-item:hover .action-buttons {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user