From cc8e7e159bba6786cc6d3217f1abca05a0efe788 Mon Sep 17 00:00:00 2001 From: Christopher <39032787+MrRobotjs@users.noreply.github.com> Date: Thu, 1 May 2025 21:31:30 -0600 Subject: [PATCH] Converted majority PX values to REM Everything but dark.scss and values inside calc() have been converted from px to rem --- UI/Web/src/_card-item-common.scss | 76 +++++++++---------- UI/Web/src/_manga-reader-common.scss | 24 +++--- UI/Web/src/_series-detail-common.scss | 48 ++++++------ .../card-actionables.component.scss | 2 +- .../cover-image/cover-image.component.scss | 44 +++++------ .../edit-chapter-modal.component.html | 2 +- .../edit-volume-modal.component.html | 2 +- .../match-series-result-item.component.scss | 6 +- .../publisher-flipper.component.scss | 20 ++--- .../review-card-modal.component.scss | 4 +- .../review-card/review-card.component.scss | 30 ++++---- .../series-preview-drawer.component.html | 10 +-- .../series-preview-drawer.component.scss | 4 +- .../smart-collection-drawer.component.html | 2 +- .../user-scrobble-history.component.scss | 4 +- .../directory-picker.component.html | 2 +- .../directory-picker.component.scss | 4 +- .../invite-user/invite-user.component.scss | 2 +- .../app/admin/license/license.component.scss | 8 +- .../manage-email-settings.component.scss | 4 +- .../manage-library.component.scss | 14 ++-- .../manage-matched-metadata.component.scss | 4 +- .../manage-media-issues.component.scss | 2 +- .../manage-settings.component.scss | 4 +- .../manage-users/manage-users.component.scss | 14 ++-- .../all-filters/all-filters.component.scss | 4 +- .../all-series/all-series.component.scss | 4 +- .../announcements.component.scss | 4 +- UI/Web/src/app/app.component.scss | 8 +- .../book-line-overlay.component.scss | 4 +- .../book-reader/book-reader.component.html | 2 +- .../book-reader/book-reader.component.scss | 62 +++++++-------- .../reader-settings.component.html | 4 +- .../reader-settings.component.scss | 6 +- .../bookmarks/bookmarks.component.scss | 4 +- .../browse-authors.component.html | 4 +- .../browse-authors.component.scss | 4 +- .../bulk-add-to-collection.component.scss | 4 +- .../edit-collection-tags.component.html | 2 +- .../edit-series-modal.component.html | 4 +- .../bulk-operations.component.scss | 2 +- .../card-detail-layout.component.html | 2 +- .../card-detail-layout.component.scss | 32 ++++---- .../chapter-card/chapter-card.component.html | 4 +- .../cover-image-chooser.component.html | 4 +- .../cover-image-chooser.component.scss | 16 ++-- .../download-indicator.component.scss | 4 +- .../external-series-card.component.scss | 2 +- .../next-expected-card.component.scss | 2 +- .../person-card/person-card.component.scss | 6 +- .../series-card/series-card.component.html | 2 +- .../volume-card/volume-card.component.html | 4 +- .../carousel-reel.component.scss | 4 +- .../chapter-detail.component.html | 2 +- .../all-collections.component.scss | 2 +- .../collection-detail.component.scss | 16 ++-- .../_components/dashboard.component.scss | 4 +- .../library-detail.component.scss | 4 +- .../infinite-scroller.component.scss | 8 +- .../manga-reader/manga-reader.component.html | 2 +- .../manga-reader/manga-reader.component.scss | 74 +++++++++--------- .../metadata-filter-row.component.scss | 4 +- .../metadata-filter.component.html | 4 +- .../events-widget.component.html | 6 +- .../events-widget.component.scss | 24 +++--- .../grouped-typeahead.component.html | 2 +- .../grouped-typeahead.component.scss | 42 +++++----- .../nav-header/nav-header.component.html | 28 +++---- .../nav-header/nav-header.component.scss | 6 +- .../pdf-reader/pdf-reader.component.html | 20 ++--- .../pdf-reader/pdf-reader.component.scss | 22 +++--- .../edit-person-modal.component.html | 2 +- .../person-detail.component.scss | 14 ++-- .../draggable-ordered-list.component.scss | 36 ++++----- .../import-cbl/import-cbl.component.html | 6 +- .../import-cbl/import-cbl.component.scss | 4 +- .../reading-list-detail.component.html | 4 +- .../reading-list-detail.component.scss | 16 ++-- .../reading-list-item.component.html | 2 +- .../reading-list-item.component.scss | 26 +++---- .../reading-lists.component.scss | 4 +- .../step-tracker/step-tracker.component.scss | 24 +++--- .../add-to-list-modal.component.scss | 2 +- .../edit-reading-list-modal.component.html | 2 +- .../confirm-email-change.component.scss | 2 +- .../splash-container.component.scss | 10 +-- .../external-rating.component.html | 4 +- .../external-rating.component.scss | 16 ++-- .../metadata-detail-row.component.html | 2 +- .../metadata-detail-row.component.scss | 8 +- .../series-detail.component.html | 2 +- .../series-detail.component.scss | 14 ++-- .../setting-item/setting-item.component.scss | 2 +- .../setting-switch.component.scss | 2 +- .../settings/settings.component.scss | 6 +- .../badge-expander.component.scss | 2 +- .../circular-loader.component.scss | 4 +- .../icon-and-title.component.scss | 10 +-- .../person-badge/person-badge.component.scss | 18 ++--- .../shared/read-more/read-more.component.scss | 2 +- .../series-format.component.scss | 2 +- .../shared/tag-badge/tag-badge.component.scss | 12 +-- ...customize-dashboard-streams.component.scss | 6 +- .../customize-sidenav-streams.component.html | 2 +- .../customize-sidenav-streams.component.scss | 4 +- .../dashboard-stream-list-item.component.scss | 4 +- .../manage-customization.component.html | 2 +- .../manage-external-sources.component.html | 2 +- .../manage-external-sources.component.scss | 4 +- .../manage-smart-filters.component.scss | 4 +- .../side-nav-companion-bar.component.scss | 12 +-- .../side-nav-item.component.scss | 8 +- .../sidenav-stream-list-item.component.scss | 4 +- .../library-settings-modal.component.html | 2 +- .../preference-nav.component.scss | 4 +- .../day-breakdown.component.scss | 4 +- .../file-breakdown-stats.component.html | 2 +- .../file-breakdown-stats.component.scss | 2 +- .../publication-status-stats.component.html | 2 +- .../publication-status-stats.component.scss | 2 +- .../reading-activity.component.scss | 2 +- .../server-stats/server-stats.component.scss | 2 +- .../top-readers/top-readers.component.scss | 2 +- .../_components/typeahead.component.scss | 48 ++++++------ .../change-email/change-email.component.scss | 2 +- .../manage-devices.component.scss | 6 +- .../manage-user-preferences.component.scss | 12 +-- .../theme-manager.component.html | 6 +- .../theme-manager.component.scss | 18 ++--- .../volume-detail.component.html | 2 +- .../volume-detail.component.scss | 6 +- .../want-to-read/want-to-read.component.scss | 4 +- UI/Web/src/styles.scss | 10 +-- UI/Web/src/theme/_toastr.scss | 52 ++++++------- UI/Web/src/theme/_variables.scss | 8 +- UI/Web/src/theme/components/_breadcrumb.scss | 4 +- UI/Web/src/theme/components/_buttons.scss | 4 +- UI/Web/src/theme/components/_card.scss | 30 ++++---- UI/Web/src/theme/components/_modal.scss | 2 +- UI/Web/src/theme/components/_nav.scss | 4 +- UI/Web/src/theme/components/_navbar.scss | 2 +- UI/Web/src/theme/components/_slider.scss | 20 ++--- UI/Web/src/theme/components/_table.scss | 12 +-- UI/Web/src/theme/components/_typeahead.scss | 8 +- UI/Web/src/theme/utilities/_animations.scss | 6 +- UI/Web/src/theme/utilities/_global.scss | 8 +- UI/Web/src/theme/utilities/_utilities.scss | 4 +- 147 files changed, 712 insertions(+), 712 deletions(-) diff --git a/UI/Web/src/_card-item-common.scss b/UI/Web/src/_card-item-common.scss index 1c6f916f3..885f8b7ac 100644 --- a/UI/Web/src/_card-item-common.scss +++ b/UI/Web/src/_card-item-common.scss @@ -1,27 +1,27 @@ -$image-height: 232.91px; -$image-width: 160px; +$image-height: 14.556875rem; +$image-width: 10.0rem; .error-banner { width: $image-width; - height: 18px; + height: 1.125rem; background-color: var(--toast-error-bg-color); - font-size: 12px; + font-size: 0.75rem; color: white; text-transform: uppercase; text-align: center; position: absolute; - top: 0px; - right: 0px; + top: 0.0rem; + right: 0.0rem; } .selected-highlight { - outline: 2px solid var(--primary-color); + outline: 0.125rem solid var(--primary-color); } .progress-banner { width: $image-width; - height: 5px; + height: 0.3125rem; .progress { color: var(--card-progress-bar-color); @@ -30,15 +30,15 @@ $image-width: 160px; } .download { - width: 80px; - height: 80px; + width: 5.0rem; + height: 5.0rem; position: absolute; top: 25%; right: 30%; } .badge-container { - border-radius: 4px; + border-radius: 0.25rem; display: block; height: $image-height; left: 0; @@ -46,13 +46,13 @@ $image-width: 160px; pointer-events: none; position: absolute; top: 0; - width: 160px; + width: 10.0rem; } .not-read-badge { position: absolute; top: calc(-1 * (var(--card-progress-triangle-size) / 2)); - right: -14px; + right: -0.875rem; z-index: 1000; height: var(--card-progress-triangle-size); width: var(--card-progress-triangle-size); @@ -62,8 +62,8 @@ $image-width: 160px; .bulk-mode { position: absolute; - top: 5px; - left: 5px; + top: 0.3125rem; + left: 0.3125rem; visibility: hidden; &.always-show { @@ -73,8 +73,8 @@ $image-width: 160px; } input[type="checkbox"] { - width: 20px; - height: 20px; + width: 1.25rem; + height: 1.25rem; color: var(--checkbox-bg-color); } } @@ -113,10 +113,10 @@ $image-width: 160px; top: 0; left: 0; width: 100%; - height: 232.91px; + height: 14.556875rem; transition: all 0.2s; - border-top-left-radius: 4px; - border-top-right-radius: 4px; + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; &:hover { background-color: var(--card-overlay-hover-bg-color); @@ -126,7 +126,7 @@ $image-width: 160px; .overlay-information--centered { position: absolute; background-color: rgba(0, 0, 0, 0.7); - border-radius: 50px; + border-radius: 3.125rem; top: 50%; left: 50%; transform: translate(-50%, -50%); @@ -141,8 +141,8 @@ $image-width: 160px; } .count { - top: 5px; - right: 10px; + top: 0.3125rem; + right: 0.625rem; position: absolute; } } @@ -152,26 +152,26 @@ $image-width: 160px; } .library { - font-size: 13px; + font-size: 0.8125rem; text-decoration: none; - margin-top: 0px; + margin-top: 0.0rem; } .card-title-container { display: flex; justify-content: space-between; align-items: center; - padding: 0 5px; + padding: 0 0.3125rem; :first-child { - min-width: 22px; + min-width: 1.375rem; } .card-title { font-size: 0.8rem; margin: 0; text-align: center; - max-width: 90px; + max-width: 5.625rem; a { overflow: hidden; @@ -181,15 +181,15 @@ $image-width: 160px; } .card-actions { - min-width: 15.82px; + min-width: 0.98875rem; } .card-format { - min-width: 22px; + min-width: 1.375rem; } ::ng-deep app-card-actionables .dropdown .dropdown-toggle { - padding: 0 5px; + padding: 0 0.3125rem; } .meta-title { @@ -201,9 +201,9 @@ $image-width: 160px; .card-title { font-size: 0.8rem; margin: 0; - padding: 10px 0; + padding: 0.625rem 0; text-align: center; - max-width: 120px; + max-width: 7.5rem; a { overflow: hidden; @@ -212,7 +212,7 @@ $image-width: 160px; } .card-body > div:nth-child(2) { - height: 40px; + height: 2.5rem; overflow: hidden; -webkit-line-clamp: 2; display: -webkit-box; @@ -225,7 +225,7 @@ $image-width: 160px; visibility: hidden; display: none; .card-title { - padding: 10px; + padding: 0.625rem; } } @@ -235,11 +235,11 @@ $image-width: 160px; .expected { .overlay-information--centered { div { - height: 32px; - width: 32px; + height: 2.0rem; + width: 2.0rem; i { font-size: 1.4rem; - line-height: 32px; + line-height: 2.0rem; } } } diff --git a/UI/Web/src/_manga-reader-common.scss b/UI/Web/src/_manga-reader-common.scss index 9b54a5fad..e92831c4d 100644 --- a/UI/Web/src/_manga-reader-common.scss +++ b/UI/Web/src/_manga-reader-common.scss @@ -1,4 +1,4 @@ -$scrollbarHeight: 35px; +$scrollbarHeight: 2.1875rem; img { user-select: none; @@ -67,12 +67,12 @@ img { .highlight { background-color: var(--manga-reader-next-highlight-bg-color) !important; animation: fadein .5s both; - backdrop-filter: blur(10px); + backdrop-filter: blur(0.625rem); } .highlight-2 { background-color: var(--manga-reader-prev-highlight-bg-color) !important; animation: fadein .5s both; - backdrop-filter: blur(10px); + backdrop-filter: blur(0.625rem); } @@ -83,19 +83,19 @@ img { left: 50%; height: 100%; box-shadow: - 0px 0px calc(17px*3.14) 25px rgb(0 0 0 / 43%), - 0px 0px calc(2px*3.14) 2px rgb(0 0 0 / 43%), - 0px 0px calc(5px*3.14) 4px rgb(0 0 0 / 43%), - 0px 0px calc(0.5px*3.14) 0.3px rgb(0 0 0 / 43%); + 0.0rem 0.0rem calc(17px*3.14) 1.5625rem rgb(0 0 0 / 43%), + 0.0rem 0.0rem calc(2px*3.14) 0.125rem rgb(0 0 0 / 43%), + 0.0rem 0.0rem calc(5px*3.14) 0.25rem rgb(0 0 0 / 43%), + 0.0rem 0.0rem calc(0.5px*3.14) 0.01875rem rgb(0 0 0 / 43%); } @supports (-moz-appearance:none) { ::ng-deep .image-container.book-shadow[class*="double-offset"]:before, ::ng-deep .image-container.book-shadow.wide:before { box-shadow: - 0px 0px calc(17px*3.14) 25px rgb(0 0 0 / 43%), - 0px 0px calc(2px*3.14) 2px rgb(0 0 0 / 43%), - 0px 0px calc(5px*3.14) 4px rgb(0 0 0 / 43%), - 0px 0px calc(0.5px*3.14) 0.3px rgb(0 0 0 / 43%), - 0px 0px 1px 0.5px rgb(0 0 0 / 43%); + 0.0rem 0.0rem calc(17px*3.14) 1.5625rem rgb(0 0 0 / 43%), + 0.0rem 0.0rem calc(2px*3.14) 0.125rem rgb(0 0 0 / 43%), + 0.0rem 0.0rem calc(5px*3.14) 0.25rem rgb(0 0 0 / 43%), + 0.0rem 0.0rem calc(0.5px*3.14) 0.01875rem rgb(0 0 0 / 43%), + 0.0rem 0.0rem 0.0625rem 0.03125rem rgb(0 0 0 / 43%); } } diff --git a/UI/Web/src/_series-detail-common.scss b/UI/Web/src/_series-detail-common.scss index f043dec17..0fb35b13d 100644 --- a/UI/Web/src/_series-detail-common.scss +++ b/UI/Web/src/_series-detail-common.scss @@ -8,8 +8,8 @@ .image-container { align-self: flex-start; - max-height: 400px; - max-width: 280px; + max-height: 25.0rem; + max-width: 17.5rem; } .subtitle { @@ -20,7 +20,7 @@ .main-container { overflow: unset !important; - margin-top: 15px; + margin-top: 0.9375rem; } ::ng-deep .badge-expander .content a { @@ -30,15 +30,15 @@ .btn-group > .btn.dropdown-toggle-split:not(first-child){ border-top-right-radius: var(--bs-border-radius) !important; border-bottom-right-radius: var(--bs-border-radius) !important; - border-width: 1px 1px 1px 0 !important; + border-width: 0.0625rem 0.0625rem 0.0625rem 0 !important; } .btn-group > .btn:not(:last-child):not(.dropdown-toggle) { - border-width: 1px 0 1px 1px !important; + border-width: 0.0625rem 0 0.0625rem 0.0625rem !important; } .card-body > div:nth-child(2) { - height: 50px; + height: 3.125rem; overflow: hidden; -webkit-line-clamp: 2; display: -webkit-box; @@ -47,17 +47,17 @@ } .under-image ~ .overlay-information { - top: -404px; - height: 364px; + top: -25.25rem; + height: 22.75rem; } .overlay-information { position: relative; - top: -364px; - height: 364px; + top: -22.75rem; + height: 22.75rem; transition: all 0.2s; - border-top-left-radius: 4px; - border-top-right-radius: 4px; + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; &:hover { cursor: pointer; @@ -70,9 +70,9 @@ .overlay-information--centered { position: absolute; - border-radius: 15px; + border-radius: 0.9375rem; background-color: rgba(0, 0, 0, .7); - border-radius: 50px; + border-radius: 3.125rem; top: 50%; left: 50%; transform: translate(-50%, -50%); @@ -85,11 +85,11 @@ } div { - width: 60px; - height: 60px; + width: 3.75rem; + height: 3.75rem; i { font-size: 1.6rem; - line-height: 60px; + line-height: 3.75rem; width: 100%; } } @@ -118,7 +118,7 @@ -webkit-overflow-scrolling: touch; -ms-overflow-style: -ms-autohiding-scrollbar; scrollbar-width: none; - box-shadow: inset -1px -2px 0px -1px var(--elevation-layer9); + box-shadow: inset -0.0625rem -0.125rem 0.0rem -0.0625rem var(--elevation-layer9); } .carousel-tabs-container::-webkit-scrollbar { display: none; @@ -132,11 +132,11 @@ } ::ng-deep .carousel-container .header i.fa-plus, ::ng-deep .carousel-container .header i.fa-pen{ - border-width: 1px; + border-width: 0.0625rem; border-style: solid; - border-radius: 5px; + border-radius: 0.3125rem; border-color: var(--primary-color); - padding: 5px; + padding: 0.3125rem; vertical-align: middle; &:hover { @@ -145,7 +145,7 @@ } ::ng-deep .image-container.mobile-bg app-image img { - max-height: 400px; + max-height: 25.0rem; object-fit: contain; } @@ -165,7 +165,7 @@ @media (max-width: theme.$grid-breakpoints-lg) { .image-container.mobile-bg{ width: 100vw; - top: calc(var(--nav-offset) - 20px); + top: calc(var(--nav-offset) - 1.25rem); left: 0; pointer-events: none; position: fixed !important; @@ -178,7 +178,7 @@ ::ng-deep .image-container.mobile-bg app-image img { max-height: unset !important; opacity: 0.05 !important; - filter: blur(5px) !important; + filter: blur(0.3125rem) !important; max-width: 100dvw; height: 100dvh !important; overflow: hidden; diff --git a/UI/Web/src/app/_single-module/card-actionables/card-actionables.component.scss b/UI/Web/src/app/_single-module/card-actionables/card-actionables.component.scss index 6f1d105e0..d987d0468 100644 --- a/UI/Web/src/app/_single-module/card-actionables/card-actionables.component.scss +++ b/UI/Web/src/app/_single-module/card-actionables/card-actionables.component.scss @@ -28,7 +28,7 @@ } .btn { - padding: 5px; + padding: 0.3125rem; } // Robbie added this but it broke most of the uses diff --git a/UI/Web/src/app/_single-module/cover-image/cover-image.component.scss b/UI/Web/src/app/_single-module/cover-image/cover-image.component.scss index 0c9c9d032..f161bdd2c 100644 --- a/UI/Web/src/app/_single-module/cover-image/cover-image.component.scss +++ b/UI/Web/src/app/_single-module/cover-image/cover-image.component.scss @@ -1,10 +1,10 @@ .overlay-information { position: relative; - top: -364px; - height: 364px; + top: -22.75rem; + height: 22.75rem; transition: all 0.2s; - border-top-left-radius: 4px; - border-top-right-radius: 4px; + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; &:hover { cursor: pointer; @@ -17,9 +17,9 @@ .overlay-information--centered { position: absolute; - border-radius: 15px; + border-radius: 0.9375rem; background-color: rgba(0, 0, 0, 0.7); - border-radius: 50px; + border-radius: 3.125rem; top: 50%; left: 50%; transform: translate(-50%, -50%); @@ -32,11 +32,11 @@ } div { - width: 60px; - height: 60px; + width: 3.75rem; + height: 3.75rem; i { font-size: 1.6rem; - line-height: 60px; + line-height: 3.75rem; width: 100%; } } @@ -46,12 +46,12 @@ .overlay-information { position: absolute; top: 0; - left: 12px; + left: 0.75rem; width: calc(100% - 24px); height: 100%; transition: all 0.2s; - border-top-left-radius: 4px; - border-top-right-radius: 4px; + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; &:hover { background-color: var(--card-overlay-hover-bg-color); @@ -60,9 +60,9 @@ .overlay-information--centered { position: absolute; - border-radius: 15px; + border-radius: 0.9375rem; background-color: rgba(0, 0, 0, 0.7); - border-radius: 50px; + border-radius: 3.125rem; top: 50%; left: 50%; transform: translate(-50%, -50%); @@ -78,18 +78,18 @@ .series { .overlay-information--centered { div { - height: 32px; - width: 32px; + height: 2.0rem; + width: 2.0rem; i { font-size: 1.4rem; - line-height: 32px; + line-height: 2.0rem; } } } } ::ng-deep .image-container app-image img { - border-radius: 4px 4px 0 0; + border-radius: 0.25rem 0.25rem 0 0; } .progress { @@ -114,8 +114,8 @@ .continue-from { background-color: var(--breadcrumb-bg-color); color: white; - border-bottom-left-radius: 5px; - border-bottom-right-radius: 5px; + border-bottom-left-radius: 0.3125rem; + border-bottom-right-radius: 0.3125rem; text-align: center; position: absolute; width: 100%; @@ -125,11 +125,11 @@ overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; - padding: 0 10px 0 0; + padding: 0 0.625rem 0 0; } } -@media screen and (max-width: 991px) { +@media screen and (max-width: 61.9375rem) { .overlay-information { visibility: hidden; .overlay-information--centered { diff --git a/UI/Web/src/app/_single-module/edit-chapter-modal/edit-chapter-modal.component.html b/UI/Web/src/app/_single-module/edit-chapter-modal/edit-chapter-modal.component.html index 979794d20..e2cd10260 100644 --- a/UI/Web/src/app/_single-module/edit-chapter-modal/edit-chapter-modal.component.html +++ b/UI/Web/src/app/_single-module/edit-chapter-modal/edit-chapter-modal.component.html @@ -9,7 +9,7 @@