From 6306ac6d57de8e25726a046f71cf8255b2bf5046 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Wed, 13 Dec 2023 17:42:01 +0100 Subject: [PATCH 1/4] Replace typography classes with standard Tailwind utility classes --- .../application.tailwind.css.erb | 28 ------------------- .../layout/feedback/component.html.erb | 2 +- .../navigation/account/component.html.erb | 6 ++-- .../layout/navigation/component.html.erb | 6 ++-- .../layout/navigation/item/component.html.erb | 4 +-- .../solidus_admin/layout/page_helpers.rb | 2 +- .../layout/skip_link/component.rb | 2 +- .../orders/cart/component.html.erb | 10 +++---- .../orders/cart/result/component.html.erb | 8 +++--- .../orders/index/component.html.erb | 2 +- .../orders/show/address/component.html.erb | 2 +- .../orders/show/component.html.erb | 20 ++++++------- .../customer_search/result/component.html.erb | 4 +-- .../orders/show/email/component.html.erb | 4 +-- .../products/show/component.html.erb | 2 +- .../refunds_and_returns/component.html.erb | 2 +- .../solidus_admin/shipping/component.html.erb | 2 +- .../solidus_admin/taxes/component.html.erb | 2 +- .../solidus_admin/ui/dropdown/component.rb | 3 +- .../ui/forms/field/component.html.erb | 5 ++-- .../solidus_admin/ui/forms/input/component.rb | 6 ++-- .../ui/forms/switch_field/component.html.erb | 4 +-- .../solidus_admin/ui/panel/component.html.erb | 2 +- .../ui/resource_item/component.html.erb | 4 +-- .../solidus_admin/ui/tab/component.rb | 6 ++-- .../solidus_admin/ui/toast/component.html.erb | 2 +- .../ui/toggletip/component.html.erb | 2 +- .../solidus_admin/application.html.erb | 2 +- .../typography_preview/overview.html.erb | 18 ++++++------ 29 files changed, 67 insertions(+), 95 deletions(-) diff --git a/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb b/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb index f876640838e..490eb3698d9 100644 --- a/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb +++ b/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb @@ -14,34 +14,6 @@ } @layer components { - .body-tiny { - @apply font-sans font-normal text-xs; - } - - .body-tiny-bold { - @apply font-sans font-semibold text-xs; - } - - .body-small { - @apply font-sans font-normal text-sm; - } - - .body-small-bold { - @apply font-sans font-semibold text-sm; - } - - .body-text { - @apply font-sans font-normal text-base; - } - - .body-text-bold { - @apply font-sans font-semibold text-base; - } - - .body-title { - @apply font-sans font-semibold text-xl; - } - .body-link { @apply text-blue hover:underline; } diff --git a/admin/app/components/solidus_admin/layout/feedback/component.html.erb b/admin/app/components/solidus_admin/layout/feedback/component.html.erb index 4ce8d630bc4..1e0c7899a6d 100644 --- a/admin/app/components/solidus_admin/layout/feedback/component.html.erb +++ b/admin/app/components/solidus_admin/layout/feedback/component.html.erb @@ -9,7 +9,7 @@ <%= t(".give_feedback") %> - + <%= t(".feedback_description_html") %> <% end %> diff --git a/admin/app/components/solidus_admin/layout/navigation/account/component.html.erb b/admin/app/components/solidus_admin/layout/navigation/account/component.html.erb index 20c470861ba..4c4250ef850 100644 --- a/admin/app/components/solidus_admin/layout/navigation/account/component.html.erb +++ b/admin/app/components/solidus_admin/layout/navigation/account/component.html.erb @@ -9,11 +9,11 @@ class=" flex gap-1.5 p-3 mt-2 rounded - body-small-bold text-gray-500 + font-semibold text-sm text-gray-500 hover:bg-gray-25 [[open]_>_&]:bg-gray-25 cursor-pointer "> - <%= icon_tag("user-smile-fill", class: "inline-block align-text-bottom shrink-0 w-6 h-6 rounded-[4.81rem] body-small fill-yellow bg-black") %> + <%= icon_tag("user-smile-fill", class: "inline-block align-text-bottom shrink-0 w-6 h-6 rounded-[4.81rem] font-normal text-sm fill-yellow bg-black") %> <%= @user_label %> @@ -22,7 +22,7 @@