diff --git a/frontend/src/__test__/components/InterimStep.test.tsx b/frontend/src/__test__/components/InterimStep.test.tsx index 8ae3ab361..56885a9b9 100644 --- a/frontend/src/__test__/components/InterimStep.test.tsx +++ b/frontend/src/__test__/components/InterimStep.test.tsx @@ -50,7 +50,7 @@ describe('Interim Storage Step test', () => { titleStorage: 'Storage information', subtitleStorage: 'Enter the interim storage information for this seedlot' } - const titleBox = component.getElementsByClassName('interim-agency-title')[0]; + const titleBox = component.getElementsByClassName('interim-title-row')[0]; expect(titleBox).toHaveTextContent(content.title); expect(titleBox).toHaveTextContent(content.subtitle); expect(screen.getByText(content.titleStorage)).toBeInTheDocument(); diff --git a/frontend/src/components/ApplicantInformationForm/styles.scss b/frontend/src/components/ApplicantInformationForm/styles.scss index eaf57211d..3bf41014a 100644 --- a/frontend/src/components/ApplicantInformationForm/styles.scss +++ b/frontend/src/components/ApplicantInformationForm/styles.scss @@ -3,7 +3,6 @@ .applicant-information-form { margin-top: 1rem; - padding-left: 2.5rem; } .applicant-information-form h2 { @@ -34,10 +33,3 @@ .save-button { margin-bottom: 3rem; } - - -@media only screen and (max-width: 1584px) { - .applicant-information-form { - padding-left: 2rem; - } -} diff --git a/frontend/src/components/Card/StandardCard/styles.scss b/frontend/src/components/Card/StandardCard/styles.scss index 22c28baa7..0a8b33e41 100644 --- a/frontend/src/components/Card/StandardCard/styles.scss +++ b/frontend/src/components/Card/StandardCard/styles.scss @@ -20,7 +20,7 @@ p.std-card-title { display: flex; flex-direction: column; padding: 1.25rem 1rem; - margin: 0.5rem; + margin: 0.5rem 2rem 0.5rem 0; width: 20.25rem; height: 22.5625rem; background: var(--bcgov-layer-02); diff --git a/frontend/src/components/FavouriteActivities/index.tsx b/frontend/src/components/FavouriteActivities/index.tsx index ae5713cdb..116845c8d 100644 --- a/frontend/src/components/FavouriteActivities/index.tsx +++ b/frontend/src/components/FavouriteActivities/index.tsx @@ -26,7 +26,7 @@ const FavouriteActivities = () => { return ( - +

My favourite activities

{
- + {favActQuery.isLoading && } {favActQuery.isSuccess && ( diff --git a/frontend/src/components/FavouriteActivities/styles.scss b/frontend/src/components/FavouriteActivities/styles.scss index 598d39686..3d100618c 100644 --- a/frontend/src/components/FavouriteActivities/styles.scss +++ b/frontend/src/components/FavouriteActivities/styles.scss @@ -3,12 +3,8 @@ @use '@carbon/type'; .favourite-activities { - background-color: var(--bcgov-layer-01); - padding: 2rem 0; -} - -.favourite-activities-title { - padding-left: 3.5rem; + background-color: var(--#{vars.$bcgov-prefix}-layer-01); + padding: 2rem; } .favourite-activities-title > h2 { @@ -16,6 +12,10 @@ margin-bottom: 0.5rem; } +.#{vars.$bcgov-prefix}--row > .favourite-activities-title { + padding-left: 0.5rem; +} + .favourite-activities-subtitle { display: inline; } @@ -34,29 +34,3 @@ button.tooltip-button > svg { top: 0.1875rem; padding-left: 0.3125rem; } - -@media only screen and (max-width: 1584px) { - .favourite-activities-title { - padding-left: 3rem; - } -} - -@media only screen and (max-width: 1056px) { - .favourite-activities-cards { - padding-left: 3.5rem; - } -} - -@media only screen and (max-width: 672px) { - .favourite-activities-title { - padding-left: 2rem; - } - - .favourite-activities-cards { - padding-left: 2.5rem; - } - - .cards-row { - flex-direction: column; - } -} diff --git a/frontend/src/components/PageTitle/index.tsx b/frontend/src/components/PageTitle/index.tsx index d517f2922..4b9b12c67 100644 --- a/frontend/src/components/PageTitle/index.tsx +++ b/frontend/src/components/PageTitle/index.tsx @@ -54,7 +54,7 @@ const PageTitle = ({ const isFavourited = thisFavAct !== undefined; return ( - +

{title}

{enableFavourite && activity && ( diff --git a/frontend/src/components/RecentActivities/index.tsx b/frontend/src/components/RecentActivities/index.tsx index dafb4fa64..8b4d11a21 100644 --- a/frontend/src/components/RecentActivities/index.tsx +++ b/frontend/src/components/RecentActivities/index.tsx @@ -61,63 +61,67 @@ const RecentActivities = () => { ]; return ( - - -

My recent activities

- -
- - - - Requests - Files & Docs. - - - - { - listItems.length === 0 - ? ( -
- + + +

My recent activities

+ +
+
+ + + + + Requests + Files & Docs. + + + + { + listItems.length === 0 + ? ( +
+ +
+ ) + : ( + -
- ) - : ( - - ) - } -
- - { - filesDocsItems.length === 0 - ? ( -
- + + { + filesDocsItems.length === 0 + ? ( +
+ +
+ ) + : ( + -
- ) - : ( - - ) - } -
-
-
-
-
+ ) + } + + + + + + ); }; diff --git a/frontend/src/components/RecentActivities/styles.scss b/frontend/src/components/RecentActivities/styles.scss index 63c6d2fb4..2523e15ec 100644 --- a/frontend/src/components/RecentActivities/styles.scss +++ b/frontend/src/components/RecentActivities/styles.scss @@ -6,55 +6,22 @@ p.recent-activity-subtitle { padding-bottom: 1rem; } -.recent-activity { - background-color: var(--bcgov-background) !important; -} - -.activity-table { - padding: 0 !important; -} +.recent-activity-title-row { + padding-left: 2.5rem; + padding-right: 2.5rem; -.recent-activity-title { - padding-left: 3.5rem; + h2 { + @include type.type-style('heading-03'); + margin-bottom: 0.5rem; + } } -.recent-activity-title > h2 { - @include type.type-style('heading-03'); - margin-bottom: 0.5rem; -} -.recent-activity { +.recent-activity-table { .#{vars.$bcgov-prefix}--tabs { padding-left: 1.5rem; } } + .empty-recent-activities { margin: 3.44rem 0; } - -@media only screen and (max-width: 1584px) { - .recent-activity-title { - padding-left: 3rem; - } - - .recent-activity { - .#{vars.$bcgov-prefix}--tabs { - padding-left: 1rem; - } - } -} - -@media only screen and (max-width: 672px) { - .recent-activity-title { - padding-left: 2rem; - } - - .recent-activity { - .#{vars.$bcgov-prefix}--tabs { - padding-left: 0; - } - } - - .recent-activity { - overflow-x: scroll; - } -} diff --git a/frontend/src/components/RecentSeedlots/styles.scss b/frontend/src/components/RecentSeedlots/styles.scss index 312f27e5a..a78c845ed 100644 --- a/frontend/src/components/RecentSeedlots/styles.scss +++ b/frontend/src/components/RecentSeedlots/styles.scss @@ -6,11 +6,9 @@ p.recent-seedlots-subtitle { } .recent-seedlots { - background-color: var(--bcgov-layer-02) !important; - margin-left: 2rem; - margin-right: 2rem; - margin-bottom: 2rem; - border: 1px solid var(--bcgov-border-subtle-02); + background-color: var(--#{vars.$bcgov-prefix}-layer-02) !important; + margin: 0 2rem 2rem 2rem; + border: 1px solid var(--#{vars.$bcgov-prefix}-border-subtle-02); border-radius: 4px; } diff --git a/frontend/src/components/SeedlotActivities/index.tsx b/frontend/src/components/SeedlotActivities/index.tsx index 7ea5fffde..95fd7960b 100644 --- a/frontend/src/components/SeedlotActivities/index.tsx +++ b/frontend/src/components/SeedlotActivities/index.tsx @@ -59,23 +59,21 @@ const SeedlotActivities = () => { ]; return ( -
- - {cards.map((card) => ( - - ))} - -
+ + {cards.map((card) => ( + + ))} + ); }; diff --git a/frontend/src/components/SeedlotActivities/styles.scss b/frontend/src/components/SeedlotActivities/styles.scss index fc9ad8417..809f8d53e 100644 --- a/frontend/src/components/SeedlotActivities/styles.scss +++ b/frontend/src/components/SeedlotActivities/styles.scss @@ -1,16 +1,4 @@ -.seedlot-activities { - margin-left: 2.5rem; +.seedlot-activities-cards { + margin-left: 2rem; margin-right: 2.5rem; } - -@media only screen and (max-width: 1056px) { - .seedlot-activities-cards { - padding-left: 3.5rem; - } -} - -@media only screen and (max-width: 672px) { - .seedlot-activities-cards { - padding-left: 2.5rem; - } -} diff --git a/frontend/src/components/SeedlotRegistrationSteps/CollectionStep/index.tsx b/frontend/src/components/SeedlotRegistrationSteps/CollectionStep/index.tsx index bb2a24671..0f1bdf392 100644 --- a/frontend/src/components/SeedlotRegistrationSteps/CollectionStep/index.tsx +++ b/frontend/src/components/SeedlotRegistrationSteps/CollectionStep/index.tsx @@ -193,7 +193,7 @@ const CollectionStep = ( - + - + - + - + - + - + - + + + { isOtherChecked && ( - +