From 022d0b0ea306d18f97cb13881f1150e10fbef35f Mon Sep 17 00:00:00 2001 From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Date: Mon, 19 Dec 2022 14:11:11 +0530 Subject: [PATCH] chore: Enable prototyping classes for foundation (#5945) * chore: Enable prototyping classes for foundation * Marcros css clean up * Imports utilities separately * Fix macro position * Changes global margin Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> --- .../assets/scss/_foundation-settings.scss | 4 +- .../dashboard/assets/scss/_woot.scss | 18 ++++++ .../conversation/Macros/MacroItem.vue | 17 +---- .../conversation/Macros/MacroPreview.vue | 26 ++++---- .../conversation/labels/LabelBox.vue | 2 +- .../settings/macros/ActionButton.vue | 58 ----------------- .../dashboard/settings/macros/MacroForm.vue | 4 +- .../dashboard/settings/macros/MacroNode.vue | 64 +++++++++---------- .../dashboard/settings/macros/MacroNodes.vue | 56 +++++++++++----- .../routes/dashboard/settings/macros/Pill.vue | 30 --------- .../shared/assets/stylesheets/spacing.scss | 2 - 11 files changed, 108 insertions(+), 173 deletions(-) delete mode 100644 app/javascript/dashboard/routes/dashboard/settings/macros/ActionButton.vue delete mode 100644 app/javascript/dashboard/routes/dashboard/settings/macros/Pill.vue diff --git a/app/javascript/dashboard/assets/scss/_foundation-settings.scss b/app/javascript/dashboard/assets/scss/_foundation-settings.scss index 52fa64ba2..414cb2539 100644 --- a/app/javascript/dashboard/assets/scss/_foundation-settings.scss +++ b/app/javascript/dashboard/assets/scss/_foundation-settings.scss @@ -74,8 +74,8 @@ Tahoma, Arial, sans-serif; $body-antialiased: true; -$global-margin: $space-one; -$global-padding: $space-one; +$global-margin: $space-small; +$global-padding: $space-micro; $global-weight-normal: normal; $global-weight-bold: bold; $global-radius: 0; diff --git a/app/javascript/dashboard/assets/scss/_woot.scss b/app/javascript/dashboard/assets/scss/_woot.scss index 416aa808b..675771715 100644 --- a/app/javascript/dashboard/assets/scss/_woot.scss +++ b/app/javascript/dashboard/assets/scss/_woot.scss @@ -20,6 +20,24 @@ @include foundation-everything($flex: true); +@include foundation-prototype-text-utilities; +@include foundation-prototype-text-transformation; +@include foundation-prototype-text-decoration; +@include foundation-prototype-font-styling; +@include foundation-prototype-list-style-type; +@include foundation-prototype-rounded; +@include foundation-prototype-bordered; +@include foundation-prototype-shadow; +@include foundation-prototype-separator; +@include foundation-prototype-overflow; +@include foundation-prototype-display; +@include foundation-prototype-position; +@include foundation-prototype-border-box; +@include foundation-prototype-border-none; +@include foundation-prototype-sizing; +@include foundation-prototype-spacing; + + @import 'typography'; @import 'layout'; @import 'animations'; diff --git a/app/javascript/dashboard/routes/dashboard/conversation/Macros/MacroItem.vue b/app/javascript/dashboard/routes/dashboard/conversation/Macros/MacroItem.vue index 6baf6c21a..e013af14c 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/Macros/MacroItem.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/Macros/MacroItem.vue @@ -1,5 +1,5 @@