From 2846821526f89fa4b9b13eece8fc5ca86cc0e8ba Mon Sep 17 00:00:00 2001 From: Maxwell Austensen Date: Wed, 28 Feb 2024 15:30:36 -0500 Subject: [PATCH 01/12] change base font size to 16 in spectre.css overrides --- client/src/styles/spectre.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/styles/spectre.scss b/client/src/styles/spectre.scss index f60cf045f..1b9eda550 100644 --- a/client/src/styles/spectre.scss +++ b/client/src/styles/spectre.scss @@ -9,6 +9,10 @@ @import "spectre.scss/spectre-icons.scss"; // various overwrites +html { + font-size: 16px; +} + a { text-decoration: underline; color: darken($justfix-blue, 10%); @@ -18,12 +22,12 @@ a:focus, .form-input:focus, .btn:focus { // @include control-shadow($gray); - box-shadow: 0 0 0 0.1rem fade-in($gray-light, 0.15); + box-shadow: 0 0 0 0.06rem fade-in($gray-light, 0.15); border-color: $gray-dark; } .menu { - box-shadow: 0 0.1rem (0.1rem+0.1rem) * 2 fade-in($gray-light, 0.3); + box-shadow: 0 0.06rem (0.06rem+0.06rem) * 2 fade-in($gray-light, 0.3); } p { From 062cd8675192f7f19573d7238be3ab6a915eaf8c Mon Sep 17 00:00:00 2001 From: Maxwell Austensen Date: Wed, 28 Feb 2024 15:31:20 -0500 Subject: [PATCH 02/12] update all rem sizes with `Math.round($1 / 1.6 * 100) / 100` --- client/src/components/CloseButton.tsx | 12 +- client/src/containers/PrivacyPolicyPage.tsx | 2 +- client/src/containers/TermsOfUsePage.tsx | 2 +- client/src/styles/AboutPage.scss | 2 +- client/src/styles/Accordion.scss | 4 +- client/src/styles/AccountSettingsPage.scss | 30 ++-- client/src/styles/AddressPage.scss | 4 +- client/src/styles/AddressSearch.scss | 2 +- client/src/styles/AddressToolbar.scss | 6 +- client/src/styles/App.scss | 36 ++--- client/src/styles/DetailView.scss | 48 +++--- client/src/styles/Dropdown.scss | 16 +- client/src/styles/EmailAlertSignup.scss | 20 +-- client/src/styles/FeatureCalloutWidget.scss | 6 +- client/src/styles/ForgotPasswordPage.scss | 18 +-- client/src/styles/HomePage.scss | 38 ++--- client/src/styles/Indicators.scss | 42 ++--- client/src/styles/LandlordSearch.scss | 4 +- client/src/styles/LegalFooter.scss | 2 +- client/src/styles/Login.scss | 40 ++--- client/src/styles/Modal.scss | 8 +- client/src/styles/NotRegisteredPage.scss | 14 +- client/src/styles/Password.scss | 10 +- client/src/styles/PortfolioFilters.scss | 166 ++++++++++---------- client/src/styles/PortfolioTable.scss | 46 +++--- client/src/styles/PropertiesList.scss | 2 +- client/src/styles/PropertiesMap.scss | 34 ++-- client/src/styles/PropertiesSummary.scss | 28 ++-- client/src/styles/Subscribe.scss | 2 +- client/src/styles/UserSetting.scss | 2 +- client/src/styles/_alert.scss | 30 ++-- client/src/styles/_button.scss | 30 ++-- client/src/styles/_datatable.scss | 14 +- client/src/styles/_input.scss | 2 +- client/src/styles/_minmaxselect.scss | 44 +++--- client/src/styles/_modal.scss | 10 +- client/src/styles/_multiselect.scss | 56 +++---- client/src/styles/_scrollbar.scss | 2 +- client/src/styles/_tabs.scss | 4 +- client/src/styles/_typography.scss | 26 +-- client/src/styles/_vars.scss | 26 +-- 41 files changed, 445 insertions(+), 445 deletions(-) diff --git a/client/src/components/CloseButton.tsx b/client/src/components/CloseButton.tsx index edce2e32f..0858b2461 100644 --- a/client/src/components/CloseButton.tsx +++ b/client/src/components/CloseButton.tsx @@ -7,15 +7,15 @@ import classNames from "classnames"; type CloseButtonProps = withI18nProps & { onClick: () => void; /** - * Stroke width for the X svg (Default: "0.1rem") + * Stroke width for the X svg (Default: "0.06rem") */ strokeWidth?: number | string; /** - * Width for the X svg (Default: "1.6rem") + * Width for the X svg (Default: "1rem") */ width?: number | string; /** - * Height for the X svg (Default: "1.6rem") + * Height for the X svg (Default: "1rem") */ height?: number | string; className?: string; @@ -29,9 +29,9 @@ export const CloseButton = withI18n()( ({ i18n, onClick, - strokeWidth = "0.1rem", - height = "1.6rem", - width = "1.6rem", + strokeWidth = "0.06rem", + height = "1rem", + width = "1rem", className, }: CloseButtonProps) => (