From 63e91c031a5f4639f6364e01945e831eacb41a55 Mon Sep 17 00:00:00 2001 From: David Ma Date: Fri, 8 Sep 2023 09:57:49 -0600 Subject: [PATCH] refactor: remove tailwind utility from components --- src/assets/utilities.scss | 24 +++++++++ src/components/ActionsDropdown.vue | 8 ++- .../ApiDocumentation/DocumentSections.vue | 20 +++++-- src/components/AuthCard.vue | 18 +++++-- src/components/Catalog.vue | 20 +++++-- src/components/CatalogCardList.vue | 31 +++++++++-- src/components/CatalogItem.vue | 26 ++++++++-- src/components/CatalogTableList.vue | 6 ++- src/components/Content.vue | 11 +++- src/components/CopyButton.vue | 21 ++++++-- src/components/DisplayNameModal.vue | 16 ++++-- src/components/ErrorWrapper.vue | 26 ++++++++-- src/components/Nav.vue | 24 +++++++-- src/components/PageTitle.vue | 20 ++++--- src/components/PaginationBar.vue | 7 ++- src/components/UserDropdown.vue | 23 ++++++-- src/components/ViewSpecModal.vue | 6 ++- src/components/ViewSpecRegistrationModal.vue | 52 ++++++++++++++----- src/components/product/Sidebar.vue | 29 ++++++++--- src/components/product/sidebar/Section.vue | 8 ++- .../vitals/AnalyticsMetricsCard.vue | 6 +-- src/components/vitals/ChartPanel.vue | 5 +- 22 files changed, 330 insertions(+), 77 deletions(-) diff --git a/src/assets/utilities.scss b/src/assets/utilities.scss index 43fe5252..c112a303 100644 --- a/src/assets/utilities.scss +++ b/src/assets/utilities.scss @@ -195,4 +195,28 @@ .uuid-icon-wrapper { display: flex; margin-left: 4px; +} + +.responsive-container { + width: 100% ; + + @media (min-width: $kui-breakpoint-mobile) { + max-width: $kui-breakpoint-mobile !important; + } + + @media (min-width: $kui-breakpoint-phablet) { + max-width: $kui-breakpoint-phablet !important; + } + + @media (min-width: $kui-breakpoint-tablet) { + max-width: $kui-breakpoint-tablet !important; + } + + @media (min-width: $kui-breakpoint-laptop) { + max-width: $kui-breakpoint-laptop !important; + } + + @media (min-width: $kui-breakpoint-desktop) { + max-width: $kui-breakpoint-desktop !important; + } } \ No newline at end of file diff --git a/src/components/ActionsDropdown.vue b/src/components/ActionsDropdown.vue index 76a53882..3414e5b1 100644 --- a/src/components/ActionsDropdown.vue +++ b/src/components/ActionsDropdown.vue @@ -3,7 +3,7 @@ ref="popRef" :popover-timeout="0" popover-classes="mt-1 action-dropdown" - class="float-right" + class="popover" placement="bottomEnd" width="150" hide-caret @@ -18,7 +18,7 @@ @@ -78,6 +78,10 @@ export default defineComponent({ align-items: center; } +.popover { + float: right; +} + .action-dropdown-button { --KButtonOutlineBorder: var(--section_colors-stroke); border: none; diff --git a/src/components/ApiDocumentation/DocumentSections.vue b/src/components/ApiDocumentation/DocumentSections.vue index e5131d4a..d0baeef7 100644 --- a/src/components/ApiDocumentation/DocumentSections.vue +++ b/src/components/ApiDocumentation/DocumentSections.vue @@ -10,9 +10,8 @@ :key="item.slug" :class="{ active: activeHeading === item.slug, - 'mt-4':true, - 'pl-4': true, - ['ml-'+(item.level-1)*4]: true + 'document-section': true, + ['indent-level-'+(item.level-1)]: true }" > -
+