From 4cda297d9d50b018cbd6f548d82e6b2d211f6d74 Mon Sep 17 00:00:00 2001 From: hfcRed Date: Fri, 26 Dec 2025 20:26:22 +0100 Subject: [PATCH] Big progress --- app/components/AddNewButton.module.css | 29 +- app/components/CustomizedColorsInput.tsx | 1 - app/components/Input.tsx | 1 + app/components/elements/Button.module.css | 38 +- app/components/elements/Button.tsx | 9 +- app/components/elements/DatePicker.tsx | 11 +- app/components/elements/Select.module.css | 50 +-- app/components/elements/Select.tsx | 2 +- app/components/elements/Tabs.module.css | 1 - app/components/elements/Toast.module.css | 32 +- app/components/elements/Toast.tsx | 1 + app/components/elements/TournamentSearch.tsx | 2 +- app/components/elements/UserSearch.tsx | 2 +- app/components/form/DateFormField.tsx | 4 - app/components/form/InputFormField.tsx | 4 - app/components/form/SelectFormField.tsx | 9 +- app/components/form/form-utils.ts | 11 - app/features/art/routes/art.new.tsx | 1 - app/features/badges/routes/badges.tsx | 2 +- .../components/TagsFormField.module.css | 1 + app/features/calendar/routes/calendar.new.tsx | 1 - .../components-showcase/routes/components.tsx | 15 +- app/features/img-upload/routes/upload.tsx | 1 - .../components/NotificationList.module.css | 4 +- .../routes/object-damage-calculator.tsx | 4 +- .../scrims/components/ScrimFiltersDialog.tsx | 4 - app/features/scrims/routes/scrims.new.tsx | 2 - .../sendouq/components/MemberAdder.module.css | 4 - .../sendouq/components/MemberAdder.tsx | 5 +- app/features/sendouq/routes/q.looking.tsx | 4 +- .../tier-list-maker/components/TierRow.tsx | 1 - .../components/TeamRosterInputs.tsx | 2 +- .../tournament/routes/to.$id.register.tsx | 1 - .../user-page/routes/u.$identifier.edit.tsx | 7 +- app/features/vods/routes/vods.new.tsx | 3 - app/root.tsx | 2 +- app/styles/badges.css | 6 - app/styles/common.css | 379 +++++++++++------- app/styles/elements.css | 64 ++- app/styles/u.$identifier.module.css | 19 +- app/styles/vars.css | 15 +- 41 files changed, 401 insertions(+), 353 deletions(-) delete mode 100644 app/components/form/form-utils.ts delete mode 100644 app/features/sendouq/components/MemberAdder.module.css diff --git a/app/components/AddNewButton.module.css b/app/components/AddNewButton.module.css index 5c8e94a02..bb98b7005 100644 --- a/app/components/AddNewButton.module.css +++ b/app/components/AddNewButton.module.css @@ -1,14 +1,7 @@ .addNewButton { - --picture-size: 18px; - --icon-size: 14px; - --button-height: 28px; - --border-width: 2px; - --inner-border-radius: 6px; - - padding-block: 0 !important; - padding-inline: 0 !important; - background-color: transparent !important; - height: var(--button-height); + padding: 0; + height: var(--input-height-small); + overflow: hidden; } .iconsContainer { @@ -17,32 +10,24 @@ align-items: center; justify-content: center; background-color: var(--color-accent-low); - height: calc(var(--button-height) - var(--border-width) * 2); - border-radius: var(--inner-border-radius) 0 0 var(--inner-border-radius); + height: 100%; padding-inline: var(--s-1); } .iconsContainer > svg { - max-width: var(--icon-size); - max-height: var(--icon-size); - min-width: var(--icon-size); - min-height: var(--icon-size); + width: calc(var(--input-height-small) / 2); color: var(--color-text-accent); stroke-width: 4px; } .iconsContainer > picture { - max-width: var(--picture-size); - max-height: var(--picture-size); - min-width: var(--picture-size); - min-height: var(--picture-size); + width: fit-content; } .textContainer { padding-inline: var(--s-1-5); background-color: var(--color-text-accent) !important; - height: calc(var(--button-height) - var(--border-width) * 2); + height: 100%; display: flex; align-items: center; - border-radius: 0 var(--inner-border-radius) var(--inner-border-radius) 0; } diff --git a/app/components/CustomizedColorsInput.tsx b/app/components/CustomizedColorsInput.tsx index d47a28b42..c05b11c86 100644 --- a/app/components/CustomizedColorsInput.tsx +++ b/app/components/CustomizedColorsInput.tsx @@ -95,7 +95,6 @@ export function CustomizedColorsInput({
{t(`custom.colors.${cssVar}`)}
{ const extras: Record = {}; diff --git a/app/components/Input.tsx b/app/components/Input.tsx index d0b219b2a..40e0a8903 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -53,6 +53,7 @@ export function Input({ > {leftAddon ?
{leftAddon}
: null} label: string; bottomText?: string; errorText?: string; - size?: FormFieldSize; } export function SendouDatePicker({ label, errorText, bottomText, - size, isRequired, ...rest }: SendouDatePickerProps) { return ( {label} - + {(segment) => }