chore(ui): normalise text size and spacing (#1656)

This commit is contained in:
Alex
2026-06-07 08:46:25 +01:00
committed by GitHub
parent 2675c4a04a
commit 349f046062
180 changed files with 4555 additions and 4466 deletions
@@ -42,11 +42,11 @@ $border-color: rgb(255 255 255 / 10%);
@include gradient-bg;
gap: 1rem;
gap: 0.875rem;
.loading-text {
color: $text-secondary;
font-size: 0.9rem;
font-size: 0.7875rem;
}
::ng-deep .p-progress-spinner-circle {
@@ -83,7 +83,7 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
padding: 0.875rem 1.3125rem;
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(20px);
border-bottom: 1px solid $border-color;
@@ -93,11 +93,11 @@ $border-color: rgb(255 255 255 / 10%);
.header-info {
flex: 1;
text-align: center;
padding: 0 1rem;
padding: 0 0.875rem;
overflow: hidden;
.book-title {
font-size: 1.1rem;
font-size: 0.9625rem;
font-weight: 600;
margin: 0;
white-space: nowrap;
@@ -109,14 +109,14 @@ $border-color: rgb(255 255 255 / 10%);
}
.book-author {
font-size: 0.85rem;
font-size: 0.7438rem;
color: $text-secondary;
}
}
.header-actions {
display: flex;
gap: 0.25rem;
gap: 0.2188rem;
}
::ng-deep .p-button {
@@ -137,9 +137,9 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 1.5rem;
padding: 1.75rem 1.3125rem;
overflow-y: auto;
gap: 1.5rem;
gap: 1.3125rem;
position: relative;
z-index: 1;
}
@@ -201,7 +201,7 @@ $border-color: rgb(255 255 255 / 10%);
opacity: 0.8;
i {
font-size: 5rem;
font-size: 4.375rem;
color: rgb(255 255 255 / 90%);
text-shadow: 0 0 30px rgb(255 255 255 / 50%);
}
@@ -212,18 +212,18 @@ $border-color: rgb(255 255 255 / 10%);
// Track info
.track-info {
text-align: center;
min-height: 3rem;
min-height: 2.625rem;
.track-title {
display: block;
font-size: 1.1rem;
font-size: 0.9625rem;
font-weight: 600;
color: $text-primary;
margin-bottom: 0.25rem;
margin-bottom: 0.2188rem;
}
.track-number {
font-size: 0.85rem;
font-size: 0.7438rem;
color: var(--accent-color);
font-weight: 500;
}
@@ -237,8 +237,8 @@ $border-color: rgb(255 255 255 / 10%);
.time-display {
display: flex;
justify-content: space-between;
margin-bottom: 0.75rem;
font-size: 0.85rem;
margin-bottom: 0.6563rem;
font-size: 0.7438rem;
color: $text-secondary;
font-variant-numeric: tabular-nums;
font-weight: 500;
@@ -304,13 +304,13 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
gap: 0.875rem;
::ng-deep .play-button {
.p-button {
width: 72px;
height: 72px;
font-size: 1.75rem;
font-size: 1.5313rem;
@include accent-gradient;
@@ -330,7 +330,7 @@ $border-color: rgb(255 255 255 / 10%);
}
.p-button-icon {
font-size: 1.75rem;
font-size: 1.5313rem;
}
}
}
@@ -365,16 +365,16 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
gap: 1.75rem;
width: 100%;
max-width: 500px;
padding: 1rem 0;
padding: 0.875rem 0;
}
.volume-control {
display: flex;
align-items: center;
gap: 0.75rem;
gap: 0.6563rem;
::ng-deep .p-button.p-button-text {
color: $text-secondary;
@@ -412,8 +412,8 @@ $border-color: rgb(255 255 255 / 10%);
.speed-control {
::ng-deep .p-selectbutton {
.p-button {
padding: 0.5rem 0.75rem;
font-size: 0.8rem;
padding: 0.4375rem 0.6563rem;
font-size: 0.7rem;
font-weight: 600;
background: rgb(255 255 255 / 8%);
border: 1px solid rgb(255 255 255 / 10%);
@@ -443,25 +443,25 @@ $border-color: rgb(255 255 255 / 10%);
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 1.25rem;
padding: 1rem;
gap: 1.0938rem;
padding: 0.875rem;
color: $text-tertiary;
font-size: 0.8rem;
font-size: 0.7rem;
background: rgb(255 255 255 / 3%);
border-radius: 12px;
margin-top: 0.5rem;
margin-top: 0.4375rem;
.detail-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
gap: 0.4375rem;
padding: 0.4375rem 0.6563rem;
background: rgb(255 255 255 / 5%);
border-radius: 8px;
white-space: nowrap;
i {
font-size: 0.9rem;
font-size: 0.7875rem;
color: $accent-tertiary;
}
}
@@ -472,13 +472,13 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
padding-top: 0.5rem;
gap: 0.875rem;
padding-top: 0.4375rem;
::ng-deep .p-button {
&.p-button-text {
color: $text-secondary;
font-size: 0.85rem;
font-size: 0.7438rem;
&:hover {
color: $text-primary;
@@ -486,7 +486,7 @@ $border-color: rgb(255 255 255 / 10%);
}
.p-button-icon {
font-size: 1rem;
font-size: var(--app-text-base);
}
}
@@ -506,25 +506,25 @@ $border-color: rgb(255 255 255 / 10%);
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1.5rem;
padding: 2.625rem 1.3125rem;
text-align: center;
color: $text-tertiary;
i {
font-size: 3rem;
margin-bottom: 1rem;
font-size: 2.625rem;
margin-bottom: 0.875rem;
opacity: 0.5;
}
p {
margin: 0 0 0.5rem;
font-size: 1rem;
margin: 0 0 0.4375rem;
font-size: var(--app-text-base);
font-weight: 500;
color: $text-secondary;
}
span {
font-size: 0.85rem;
font-size: 0.7438rem;
}
}
@@ -532,7 +532,7 @@ $border-color: rgb(255 255 255 / 10%);
.bookmark-item {
.bookmark-icon {
color: var(--accent-color);
font-size: 1.1rem;
font-size: 0.9625rem;
flex-shrink: 0;
}
@@ -580,13 +580,13 @@ $border-color: rgb(255 255 255 / 10%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.25rem 1.5rem;
padding: 1.0938rem 1.3125rem;
border-bottom: 1px solid $border-color;
background: rgb(0 0 0 / 20%);
h2 {
margin: 0;
font-size: 1.2rem;
font-size: 1.05rem;
font-weight: 600;
background: linear-gradient(90deg, $text-primary, var(--accent-color));
background-clip: text;
@@ -606,7 +606,7 @@ $border-color: rgb(255 255 255 / 10%);
.sidebar-content {
flex: 1;
overflow-y: auto;
padding: 0.5rem 0;
padding: 0.4375rem 0;
}
}
@@ -618,10 +618,10 @@ $border-color: rgb(255 255 255 / 10%);
.track-item {
display: flex;
align-items: center;
padding: 1rem 1.5rem;
padding: 0.875rem 1.3125rem;
cursor: pointer;
transition: all 0.2s ease;
gap: 1rem;
gap: 0.875rem;
border-left: 3px solid transparent;
&:hover {
@@ -644,9 +644,9 @@ $border-color: rgb(255 255 255 / 10%);
}
.track-index {
width: 2rem;
width: 1.75rem;
text-align: center;
font-size: 0.9rem;
font-size: 0.7875rem;
color: $text-tertiary;
flex-shrink: 0;
font-weight: 600;
@@ -658,7 +658,7 @@ $border-color: rgb(255 255 255 / 10%);
.track-name {
display: block;
font-size: 0.95rem;
font-size: 0.8313rem;
color: $text-primary;
white-space: nowrap;
overflow: hidden;
@@ -667,16 +667,16 @@ $border-color: rgb(255 255 255 / 10%);
}
.track-duration {
font-size: 0.8rem;
font-size: 0.7rem;
color: $text-tertiary;
margin-top: 0.2rem;
margin-top: 0.175rem;
}
}
.playing-indicator {
color: var(--accent-color);
animation: pulse 1.5s ease-in-out infinite;
font-size: 1.1rem;
font-size: 0.9625rem;
}
@keyframes pulse {
@@ -696,8 +696,8 @@ $border-color: rgb(255 255 255 / 10%);
// Responsive adjustments
@media (width <= 768px) {
.reader-main {
padding: 1rem;
gap: 1rem;
padding: 0.875rem;
gap: 0.875rem;
}
.cover-container {
@@ -706,7 +706,7 @@ $border-color: rgb(255 255 255 / 10%);
.secondary-controls {
flex-direction: column;
gap: 1rem;
gap: 0.875rem;
}
.volume-control {
@@ -720,15 +720,15 @@ $border-color: rgb(255 255 255 / 10%);
}
.audio-details {
gap: 0.75rem;
padding: 0.75rem;
gap: 0.6563rem;
padding: 0.6563rem;
.detail-item {
padding: 0.4rem 0.6rem;
font-size: 0.75rem;
padding: 0.35rem 0.525rem;
font-size: var(--app-text-xs);
i {
font-size: 0.8rem;
font-size: 0.7rem;
}
}
}
@@ -740,7 +740,7 @@ $border-color: rgb(255 255 255 / 10%);
}
.playback-controls {
gap: 0.5rem;
gap: 0.4375rem;
::ng-deep .play-button {
.p-button {
@@ -758,7 +758,7 @@ $border-color: rgb(255 255 255 / 10%);
.audio-details {
flex-flow: row wrap;
justify-content: center;
gap: 0.5rem;
gap: 0.4375rem;
.detail-item {
flex: 0 1 auto;
@@ -771,7 +771,7 @@ $border-color: rgb(255 255 255 / 10%);
.reader-main {
flex-flow: row wrap;
justify-content: center;
gap: 1rem;
gap: 0.875rem;
}
.cover-container {
@@ -10,7 +10,7 @@
flex: 0 0 auto;
width: 100%;
text-align: center;
font-size: 0.88rem;
font-size: 0.77rem;
color: rgb(255 255 255 / 45%);
opacity: 0;
transform: translateY(6px);
@@ -55,9 +55,9 @@
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.75rem 1rem;
padding: 0.65rem 1rem;
margin: 0 0.5rem;
gap: 0.6563rem 0.875rem;
padding: 0.5687rem 0.875rem;
margin: 0 0.4375rem;
background: rgb(30 40 55 / 95%);
border: 1px solid rgb(255 255 255 / 12%);
border-radius: 8px;
@@ -68,7 +68,7 @@
.webtoon-suggestion-text {
margin: 0;
flex: 1 1 200px;
font-size: 0.9rem;
font-size: 0.7875rem;
line-height: 1.35;
color: rgb(255 255 255 / 88%);
}
@@ -76,17 +76,17 @@
.webtoon-suggestion-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
gap: 0.4375rem;
align-items: center;
}
.webtoon-btn {
padding: 0.4rem 0.75rem;
padding: 0.35rem 0.6563rem;
border-radius: 6px;
border: 1px solid rgb(255 255 255 / 20%);
background: rgb(255 255 255 / 8%);
color: #fff;
font-size: 0.85rem;
font-size: 0.7438rem;
cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease;
@@ -107,7 +107,7 @@
border-color: transparent;
background: transparent;
color: rgb(255 255 255 / 55%);
font-size: 0.8rem;
font-size: 0.7rem;
&:hover {
color: rgb(255 255 255 / 85%);
@@ -186,7 +186,7 @@
justify-content: center;
align-items: center;
overflow: hidden;
padding: 0.5rem;
padding: 0.4375rem;
background: #0f0f0f;
min-height: 0;
@@ -204,7 +204,7 @@
.end-of-comic-action {
flex: 0 0 auto;
margin-top: 1rem;
margin-top: 0.875rem;
}
}
@@ -227,7 +227,7 @@
&:not(.infinite-scroll) {
.pages-wrapper {
display: flex;
gap: 1rem;
gap: 0.875rem;
align-items: center;
justify-content: center;
width: 100%;
@@ -238,7 +238,7 @@
.previous-page-layer,
.current-page-layer {
display: flex;
gap: 1rem;
gap: 0.875rem;
align-items: center;
justify-content: center;
width: 100%;
@@ -306,7 +306,7 @@
.current-page-layer {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
gap: 0.875rem;
width: 100%;
}
@@ -341,7 +341,7 @@
.page-image {
width: auto;
height: calc(100dvh - 1rem);
height: calc(100dvh - 0.875rem);
max-width: none;
}
@@ -361,7 +361,7 @@
.page-image {
width: auto;
height: calc(100dvh - 1rem);
height: calc(100dvh - 0.875rem);
max-width: none;
}
@@ -432,7 +432,7 @@
&.two-page-view {
.page-image {
max-width: calc(50% - 0.5rem);
max-width: calc(50% - 0.4375rem);
max-height: 100%;
width: auto;
height: auto;
@@ -456,7 +456,7 @@
&.two-page-view {
.page-image {
max-width: calc(50% - 0.5rem);
max-width: calc(50% - 0.4375rem);
max-height: 100%;
width: auto;
height: auto;
@@ -481,10 +481,10 @@
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
gap: 0.875rem;
width: 100%;
min-width: 0;
padding: 1rem 0;
padding: 0.875rem 0;
overflow-anchor: none;
}
@@ -498,13 +498,13 @@
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
gap: 0.875rem;
}
@include cbx-reader-continuation-affordance;
.cbx-continuation-hint {
padding: 0.5rem 1rem 1rem;
padding: 0.4375rem 0.875rem 0.875rem;
}
.page-image {
@@ -529,7 +529,7 @@
.page-image {
width: auto;
height: calc(100vh - 2rem);
height: calc(100vh - 1.75rem);
max-width: 100%;
}
}
@@ -558,7 +558,7 @@
.page-image {
max-width: 100%;
max-height: calc(100vh - 2rem);
max-height: calc(100vh - 1.75rem);
width: auto;
height: auto;
}
@@ -571,14 +571,14 @@
.page-image {
max-width: 100%;
max-height: calc(100vh - 2rem);
max-height: calc(100vh - 1.75rem);
width: auto;
height: auto;
}
}
.loading-more {
padding: 2rem;
padding: 1.75rem;
display: flex;
justify-content: center;
}
@@ -616,7 +616,7 @@
@include cbx-reader-continuation-affordance;
.cbx-continuation-hint {
padding: 0.75rem 1rem 1.25rem;
padding: 0.6563rem 0.875rem 1.0938rem;
}
.long-strip-image {
@@ -643,7 +643,7 @@
.long-strip-image {
width: auto;
height: calc(100vh - 2rem);
height: calc(100vh - 1.75rem);
max-width: 100%;
}
}
@@ -671,7 +671,7 @@
.long-strip-image {
max-width: 100%;
max-height: calc(100vh - 2rem);
max-height: calc(100vh - 1.75rem);
width: auto;
height: auto;
}
@@ -684,7 +684,7 @@
.long-strip-image {
max-width: 100%;
max-height: calc(100vh - 2rem);
max-height: calc(100vh - 1.75rem);
width: auto;
height: auto;
}
@@ -702,7 +702,7 @@
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1.5rem;
gap: 1.3125rem;
text-align: center;
.loading-text {
@@ -724,14 +724,14 @@
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 1rem;
padding: 1.75rem 0.875rem;
.next-book-action-button {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
padding: 2rem 3rem;
gap: 0.6563rem;
padding: 1.75rem 2.625rem;
background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
border: none;
border-radius: 12px;
@@ -753,15 +753,15 @@
}
.action-icon {
font-size: 2.5rem;
font-size: 2.1875rem;
}
.action-text {
font-size: 1.1rem;
font-size: 0.9625rem;
}
.book-title {
font-size: 0.95rem;
font-size: 0.8313rem;
font-weight: 400;
opacity: 0.9;
max-width: 350px;
@@ -785,22 +785,22 @@
}
.end-of-comic-action {
padding: 1.5rem 1rem;
padding: 1.3125rem 0.875rem;
.next-book-action-button {
min-width: 240px;
padding: 1.5rem 2rem;
padding: 1.3125rem 1.75rem;
.action-icon {
font-size: 2rem;
font-size: 1.75rem;
}
.action-text {
font-size: 1rem;
font-size: var(--app-text-base);
}
.book-title {
font-size: 0.85rem;
font-size: 0.7438rem;
max-width: 250px;
}
}
@@ -822,7 +822,7 @@
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
gap: 1.3125rem;
}
.spinner {
@@ -836,7 +836,7 @@
.loader-text {
color: #fff;
font-size: 1.1rem;
font-size: 0.9625rem;
margin: 0;
font-weight: 500;
}
@@ -884,7 +884,7 @@
}
.zone-arrow {
font-size: 2rem;
font-size: 1.75rem;
color: rgb(255 255 255 / 30%);
opacity: 0;
transition: opacity 0.3s ease;
@@ -98,7 +98,7 @@
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
gap: 1.3125rem;
}
.spinner {
@@ -112,7 +112,7 @@
.loader-text {
color: #fff;
font-size: 1.1rem;
font-size: 0.9625rem;
margin: 0;
font-weight: 500;
}
@@ -128,7 +128,7 @@ foliate-view::part(head) {
justify-content: space-between;
align-items: center;
padding: 8px 16px;
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--reader-text-secondary, #666);
border-bottom: 1px solid var(--reader-border-color, #e0e0e0);
font-family: inherit;
@@ -141,7 +141,7 @@ foliate-view::part(foot) {
justify-content: space-between;
align-items: center;
padding: 8px 16px;
font-size: 0.875rem;
font-size: var(--app-text-sm);
color: var(--reader-text-secondary, #666);
border-top: 1px solid var(--reader-border-color, #e0e0e0);
font-family: inherit;
@@ -520,7 +520,7 @@ $transition-fast: 150ms ease;
background: $chrome-control-bg;
color: $text-secondary;
cursor: pointer;
font-size: 0.85rem;
font-size: 0.7438rem;
font-weight: 500;
transition: background 0.2s, border-color 0.2s, color 0.2s;
height: 30px;
@@ -564,12 +564,12 @@ $transition-fast: 150ms ease;
align-items: center;
gap: 8px;
font-weight: 500;
font-size: 0.85rem;
font-size: 0.7438rem;
box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
pointer-events: none;
i {
font-size: 1rem;
font-size: var(--app-text-base);
color: $active-color;
}
}