From edf740d7aa72f8f5548e857784454f7593471b3b Mon Sep 17 00:00:00 2001 From: wendybujalski Date: Thu, 21 Nov 2024 19:35:20 -0500 Subject: [PATCH] refactoring to replace CSS with Tailwind --- app/web/src/App.vue | 27 +- .../AttributesPanel/TreeFormItem.vue | 295 +++++------------- .../src/design-system/forms/VormInput.vue | 37 +-- lib/vue-lib/src/tailwind/main.css | 29 -- 4 files changed, 101 insertions(+), 287 deletions(-) diff --git a/app/web/src/App.vue b/app/web/src/App.vue index 7c54c76f2d..bd467f1f61 100644 --- a/app/web/src/App.vue +++ b/app/web/src/App.vue @@ -163,24 +163,6 @@ const realtimeStore = useRealtimeStore(); ); } -/* some global css vars to be used in a few places... */ -body.light { - --input-border-color: @colors-neutral-400; - --input-bg-color: @colors-neutral-100; - --input-focus-bg-color: @colors-white; - --input-focus-border-color: @colors-action-400; - --toast-text-color: @colors-black; - --toast-bg-color: @colors-white; -} -body.dark { - --input-border-color: @colors-neutral-600; - --input-bg-color: @colors-neutral-900; - --input-focus-bg-color: @colors-black; - --input-focus-border-color: @colors-action-300; - --toast-text-color: @colors-white; - --toast-bg-color: @colors-black; -} - @keyframes siToastFadeIn { from { opacity: 0; @@ -219,6 +201,15 @@ body.dark { min-height: 0; } +body.light { + --toast-text-color: @colors-black; + --toast-bg-color: @colors-white; +} +body.dark { + --toast-text-color: @colors-white; + --toast-bg-color: @colors-black; +} + .Vue-Toastification__container.diagram-toast-container { position: absolute; // default is fixed, but we want it positioned within its container, so go absolute padding: 0; diff --git a/app/web/src/components/AttributesPanel/TreeFormItem.vue b/app/web/src/components/AttributesPanel/TreeFormItem.vue index a09a513789..d99f8b84a3 100644 --- a/app/web/src/components/AttributesPanel/TreeFormItem.vue +++ b/app/web/src/components/AttributesPanel/TreeFormItem.vue @@ -4,7 +4,7 @@ :class=" clsx( 'attributes-panel-item', - 'relative text-sm', + 'relative text-sm first:mt-xs', isFocus && '--focus', isHover && '--hover', isSectionHover && '--section-hover', @@ -79,11 +79,7 @@ name="nested-arrow-right" size="none" /> - +
1" >
set:
{{ propSource }}
@@ -231,7 +232,7 @@