From b0eb7c16cdf02d0eb4e3f2535bd48db854a2e829 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 17 Jan 2025 19:26:27 -0300 Subject: [PATCH] migration to scss --- src/renderer/src/app.scss | 2 +- src/renderer/src/components/modal/modal.scss | 4 +- src/renderer/src/components/modal/modal.tsx | 4 +- .../components/select-field/select-field.scss | 6 +- .../components/select-field/select-field.tsx | 2 +- .../src/components/sidebar/sidebar.scss | 4 +- .../src/components/sidebar/sidebar.tsx | 4 +- .../src/components/text-field/text-field.scss | 10 +- .../src/components/text-field/text-field.tsx | 6 +- src/renderer/src/components/toast/toast.scss | 4 +- src/renderer/src/components/toast/toast.tsx | 3 +- .../pages/achievements/achievement-list.tsx | 14 +- .../pages/achievements/achievement-panel.scss | 2 +- .../pages/achievements/achievement-panel.tsx | 15 +- .../achievements/achievements-content.tsx | 4 +- .../achievements/achievements-skeleton.tsx | 10 +- .../src/pages/achievements/achievements.tsx | 5 +- .../compared-achievement-list.tsx | 24 +- .../src/pages/downloads/delete-game-modal.tsx | 5 +- .../src/pages/downloads/download-group.tsx | 24 +- .../src/pages/downloads/downloads.tsx | 12 +- src/renderer/src/pages/editor/editor.scss | 15 +- src/renderer/src/pages/editor/editor.tsx | 43 +-- .../cloud-sync-files-modal.tsx | 7 +- .../cloud-sync-modal/cloud-sync-modal.tsx | 19 +- .../gallery-slider/gallery-slider.scss | 5 +- .../gallery-slider/gallery-slider.tsx | 41 ++- .../game-details/game-details-content.tsx | 24 +- .../game-details/game-details-skeleton.tsx | 42 +-- .../src/pages/game-details/game-details.scss | 3 +- .../src/pages/game-details/game-details.tsx | 9 +- .../game-details/hero/hero-panel-actions.scss | 2 +- .../game-details/hero/hero-panel-actions.tsx | 18 +- .../game-details/hero/hero-panel-playtime.tsx | 6 +- .../pages/game-details/hero/hero-panel.scss | 2 +- .../pages/game-details/hero/hero-panel.tsx | 26 +- .../modals/download-settings-modal.tsx | 20 +- .../modals/game-options-modal.tsx | 32 +- .../modals/remove-from-library-modal.tsx | 2 +- .../game-details/modals/repacks-modal.tsx | 12 +- .../modals/reset-achievements-modal.tsx | 4 +- .../sidebar-section/sidebar-section.tsx | 10 +- .../sidebar/how-long-to-beat-section.tsx | 18 +- .../pages/game-details/sidebar/sidebar.tsx | 321 +++++++++--------- src/renderer/src/pages/home/home.tsx | 22 +- .../edit-profile-modal.scss | 8 +- .../edit-profile-modal/edit-profile-modal.tsx | 21 +- .../profile/profile-content/friends-box.tsx | 15 +- .../profile-content/locked-profile.scss | 2 +- .../profile-content/locked-profile.tsx | 6 +- .../profile-content/profile-content.scss | 41 ++- .../profile-content/profile-content.tsx | 19 +- .../profile-content/recent-games-box.tsx | 18 +- .../user-library-game-card.tsx | 53 +-- .../profile-content/user-stats-box.tsx | 40 ++- .../profile/profile-hero/profile-hero.scss | 9 +- .../profile/profile-hero/profile-hero.tsx | 36 +- src/renderer/src/pages/profile/profile.tsx | 9 +- .../report-profile/report-profile.scss | 12 +- .../profile/report-profile/report-profile.tsx | 14 +- .../upload-background-image-button.scss | 2 +- .../upload-background-image-button.tsx | 5 +- .../settings/add-download-source-modal.scss | 23 ++ .../settings/add-download-source-modal.tsx | 21 +- .../src/pages/settings/appearance.tsx | 4 +- .../src/pages/settings/settings-account.scss | 20 ++ .../src/pages/settings/settings-account.tsx | 54 +-- .../settings/settings-download-sources.tsx | 14 +- .../pages/settings/settings-real-debrid.scss | 9 + .../pages/settings/settings-real-debrid.tsx | 11 +- src/renderer/src/pages/settings/settings.tsx | 8 +- .../hydra-cloud/hydra-cloud-modal.tsx | 9 +- .../hydra-cloud/hydra-cloud.scss | 10 + .../user-friend-modal/user-friend-item.tsx | 42 +-- .../user-friend-modal-add-friend.tsx | 30 +- .../user-friend-modal-list.tsx | 11 +- .../user-friend-modal/user-friend-modal.scss | 30 +- src/renderer/src/scss/_variables.scss | 5 + 78 files changed, 739 insertions(+), 739 deletions(-) create mode 100644 src/renderer/src/pages/settings/add-download-source-modal.scss create mode 100644 src/renderer/src/pages/shared-modals/hydra-cloud/hydra-cloud.scss diff --git a/src/renderer/src/app.scss b/src/renderer/src/app.scss index 1623e83d..5363829b 100644 --- a/src/renderer/src/app.scss +++ b/src/renderer/src/app.scss @@ -1,4 +1,4 @@ -@import "../../scss/variables"; +@import "./scss/variables"; * { box-sizing: border-box; diff --git a/src/renderer/src/components/modal/modal.scss b/src/renderer/src/components/modal/modal.scss index 5bf420d6..7082670d 100644 --- a/src/renderer/src/components/modal/modal.scss +++ b/src/renderer/src/components/modal/modal.scss @@ -14,12 +14,12 @@ display: flex; flex-direction: column; - &--closing { + &__closing { animation-name: scale-fade-out; opacity: 0; } - &--large { + &__large { width: 800px; max-width: 800px; } diff --git a/src/renderer/src/components/modal/modal.tsx b/src/renderer/src/components/modal/modal.tsx index ed2a4f02..a8846687 100644 --- a/src/renderer/src/components/modal/modal.tsx +++ b/src/renderer/src/components/modal/modal.tsx @@ -110,8 +110,8 @@ export function Modal({