From 1be97fe7fb4ef6bf86c9874cb90c5deb94b2509a Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Thu, 11 Mar 2021 21:25:46 -0500 Subject: [PATCH] refactor(css): add new global classes & card border hover styling (#1156) --- src/components/CompanyCard/index.tsx | 8 +-- .../Discover/NetworkSlider/index.tsx | 8 ++- .../Discover/StudioSlider/index.tsx | 8 ++- src/components/Discover/index.tsx | 50 ++++++++---------- src/components/Layout/SearchInput/index.tsx | 2 +- src/components/Layout/UserDropdown/index.tsx | 2 +- src/components/Login/LocalLogin.tsx | 4 +- .../MediaSlider/ShowMoreCard/index.tsx | 2 +- src/components/MediaSlider/index.tsx | 52 +++++++++---------- src/components/PersonCard/index.tsx | 6 ++- .../ResetPassword/RequestResetLink.tsx | 2 +- src/components/ResetPassword/index.tsx | 4 +- .../Notifications/NotificationsDiscord.tsx | 6 +-- .../Notifications/NotificationsEmail.tsx | 26 +++++----- .../NotificationsPushbullet/index.tsx | 2 +- .../NotificationsPushover/index.tsx | 4 +- .../NotificationsSlack/index.tsx | 2 +- .../Notifications/NotificationsTelegram.tsx | 6 +-- .../NotificationsWebhook/index.tsx | 6 +-- src/components/Settings/RadarrModal/index.tsx | 16 +++--- src/components/Settings/SettingsMain.tsx | 8 +-- src/components/Settings/SettingsPlex.tsx | 22 ++++---- src/components/Settings/SonarrModal/index.tsx | 22 ++++---- src/components/Slider/index.tsx | 8 ++- src/components/TitleCard/index.tsx | 6 ++- src/components/UserList/index.tsx | 4 +- .../UserGeneralSettings/index.tsx | 4 +- .../UserNotificationSettings/index.tsx | 4 +- .../UserSettings/UserPasswordChange/index.tsx | 6 +-- src/styles/globals.css | 16 ++++++ tailwind.config.js | 1 + 31 files changed, 165 insertions(+), 152 deletions(-) diff --git a/src/components/CompanyCard/index.tsx b/src/components/CompanyCard/index.tsx index dd6af067a..3e4c59387 100644 --- a/src/components/CompanyCard/index.tsx +++ b/src/components/CompanyCard/index.tsx @@ -13,9 +13,11 @@ const CompanyCard: React.FC = ({ image, url, name }) => { return ( { setHovered(true); }} diff --git a/src/components/Discover/NetworkSlider/index.tsx b/src/components/Discover/NetworkSlider/index.tsx index 69b2b2bb7..983d0ec07 100644 --- a/src/components/Discover/NetworkSlider/index.tsx +++ b/src/components/Discover/NetworkSlider/index.tsx @@ -123,11 +123,9 @@ const NetworkSlider: React.FC = () => { return ( <> -
-
-
- {intl.formatMessage(messages.networks)} -
+
+
+ {intl.formatMessage(messages.networks)}
{ return ( <> -
-
-
- {intl.formatMessage(messages.studios)} -
+
+
+ {intl.formatMessage(messages.studios)}
{ return ( <> -
-
-
- {intl.formatMessage(messages.recentlyAdded)} -
+
+
+ {intl.formatMessage(messages.recentlyAdded)}
{ /> ))} /> -
- + { 0 ? '1.75rem' : '' }} - className="block w-full py-2 pl-10 text-white placeholder-gray-300 bg-gray-900 border border-gray-600 rounded-full focus:border-gray-500 focus:outline-none focus:ring-0 focus:placeholder-gray-400 sm:text-base" + className="block w-full py-2 pl-10 text-white placeholder-gray-300 bg-gray-900 border border-gray-600 rounded-full focus:border-gray-500 hover:border-gray-500 focus:outline-none focus:ring-0 focus:placeholder-gray-400 sm:text-base" placeholder={intl.formatMessage(messages.searchPlaceholder)} type="search" value={searchValue} diff --git a/src/components/Layout/UserDropdown/index.tsx b/src/components/Layout/UserDropdown/index.tsx index 89d0db61a..f1fe07fe1 100644 --- a/src/components/Layout/UserDropdown/index.tsx +++ b/src/components/Layout/UserDropdown/index.tsx @@ -31,7 +31,7 @@ const UserDropdown: React.FC = () => {