From dafb07375a6c209b7cdeec7e15db958ca0919b03 Mon Sep 17 00:00:00 2001 From: Moein Moradi Date: Tue, 2 Sep 2025 11:31:21 +0330 Subject: [PATCH] refactor: clean up Gantt chart style --- resources/js/pages/dashboards/gantt.vue | 694 +++++++++++++----------- 1 file changed, 386 insertions(+), 308 deletions(-) diff --git a/resources/js/pages/dashboards/gantt.vue b/resources/js/pages/dashboards/gantt.vue index 619f8b7..489094c 100644 --- a/resources/js/pages/dashboards/gantt.vue +++ b/resources/js/pages/dashboards/gantt.vue @@ -780,31 +780,35 @@ onBeforeUnmount(() => { .gantt-container { width: 100%; height: 650px; - background: white; - border: 1px solid #e5e7eb; - border-radius: 8px; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + background: rgb(var(--v-theme-surface)); + border: 1px solid rgb(var(--v-border-color), var(--v-border-opacity)); + border-radius: 12px; + font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + color: rgb(var(--v-theme-on-surface)); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + transition: all 0.3s ease; + overflow: hidden; } .gantt-toolbar { - padding: 12px 16px; - background: #fafbfc; - border-bottom: 1px solid #e5e7eb; + padding: 16px 20px; + background: rgb(var(--v-theme-surface-variant)); + border-bottom: 1px solid rgb(var(--v-border-color), var(--v-border-opacity)); display: flex; - gap: 8px; + gap: 12px; } .btn { display: inline-flex; align-items: center; - padding: 8px 14px; - border: 1px solid transparent; - border-radius: 6px; + padding: 10px 16px; + border: none; + border-radius: 8px; cursor: pointer; - font-size: 13px; + font-size: 14px; font-weight: 500; - transition: all 0.15s ease; - gap: 6px; + transition: all 0.2s ease; + gap: 8px; } .btn-icon { @@ -812,242 +816,57 @@ onBeforeUnmount(() => { } .btn-primary { - background: #0969da; - color: white; - border-color: #0969da; + background: rgb(var(--v-theme-primary)); + color: rgb(var(--v-theme-on-primary)); + box-shadow: 0 2px 4px rgba(var(--v-theme-primary), 0.3); } .btn-primary:hover { - background: #0860ca; - border-color: #0860ca; + background: rgb(var(--v-theme-primary-darken-1)); + transform: translateY(-1px); + box-shadow: 0 4px 8px rgba(var(--v-theme-primary), 0.4); } .btn-danger { - background: #d1242f; - color: white; - border-color: #d1242f; + background: rgb(var(--v-theme-error)); + color: rgb(var(--v-theme-on-error)); + box-shadow: 0 2px 4px rgba(var(--v-theme-error), 0.3); } .btn-danger:hover { - background: #b91c1c; - border-color: #b91c1c; + background: rgb(var(--v-theme-error-darken-1)); + transform: translateY(-1px); + box-shadow: 0 4px 8px rgba(var(--v-theme-error), 0.4); } .btn-success { - background: #1a7f37; - color: white; - border-color: #1a7f37; + background: rgb(var(--v-theme-success)); + color: rgb(var(--v-theme-on-success)); + box-shadow: 0 2px 4px rgba(var(--v-theme-success), 0.3); } .btn-success:hover { - background: #166a2e; - border-color: #166a2e; + background: rgb(var(--v-theme-success-darken-1)); + transform: translateY(-1px); + box-shadow: 0 4px 8px rgba(var(--v-theme-success), 0.4); } .btn-secondary { - background: #f6f8fa; - color: #24292f; - border-color: #d1d9e0; + background: rgb(var(--v-theme-surface-light)); + color: rgb(var(--v-theme-on-surface-light)); + border: 1px solid rgb(var(--v-border-color), var(--v-border-opacity)); } .btn-secondary:hover { - background: #f3f4f6; - border-color: #c7d2da; + background: rgb(var(--v-theme-grey-200)); + border-color: rgb(var(--v-theme-grey-400)); + transform: translateY(-1px); } .gantt-chart { - height: calc(100% - 60px); + height: calc(100% - 77px); min-height: 500px; } - - - + + \ No newline at end of file