hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching·0 forks·TypeScript·5.5 MiB·d962efe·Burak Boduroğlu·4 months ago·146 commits
| 1 | @import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap"); |
| 2 | |
| 3 | @tailwind base; |
| 4 | @tailwind components; |
| 5 | @tailwind utilities; |
| 6 | |
| 7 | @layer base { |
| 8 | :root { |
| 9 | --ui-bg: 180 7% 97%; |
| 10 | --ui-surface-1: 0 0% 100%; |
| 11 | --ui-surface-2: 180 8% 95%; |
| 12 | --ui-surface-3: 180 7% 91%; |
| 13 | --ui-border-1: 180 7% 86%; |
| 14 | --ui-border-2: 180 6% 79%; |
| 15 | --ui-text-1: 180 11% 7%; |
| 16 | --ui-text-2: 180 6% 31%; |
| 17 | --ui-text-3: 180 4% 49%; |
| 18 | --ui-accent: 204 86% 48%; |
| 19 | --ui-accent-muted: 204 88% 91%; |
| 20 | --ui-success: 142 72% 29%; |
| 21 | --ui-success-muted: 138 76% 97%; |
| 22 | --ui-warning: 32 95% 44%; |
| 23 | --ui-warning-muted: 48 96% 89%; |
| 24 | --ui-danger: 0 74% 42%; |
| 25 | --ui-danger-muted: 0 93% 94%; |
| 26 | --ui-info: 200 98% 33%; |
| 27 | --ui-info-muted: 204 94% 94%; |
| 28 | --space-1: 0.25rem; |
| 29 | --space-2: 0.5rem; |
| 30 | --space-3: 0.75rem; |
| 31 | --space-4: 1rem; |
| 32 | --space-5: 1.25rem; |
| 33 | --space-6: 1.5rem; |
| 34 | --space-8: 2rem; |
| 35 | --background: var(--ui-bg); |
| 36 | --foreground: var(--ui-text-1); |
| 37 | --card: var(--ui-surface-1); |
| 38 | --card-foreground: var(--ui-text-1); |
| 39 | --popover: var(--ui-surface-1); |
| 40 | --popover-foreground: var(--ui-text-1); |
| 41 | --primary: var(--ui-accent); |
| 42 | --primary-foreground: 0 0% 100%; |
| 43 | --secondary: var(--ui-surface-2); |
| 44 | --secondary-foreground: var(--ui-text-1); |
| 45 | --muted: var(--ui-surface-2); |
| 46 | --muted-foreground: var(--ui-text-2); |
| 47 | --accent: var(--ui-accent-muted); |
| 48 | --accent-foreground: 204 86% 25%; |
| 49 | --destructive: var(--ui-danger); |
| 50 | --destructive-foreground: 0 0% 100%; |
| 51 | --border: var(--ui-border-1); |
| 52 | --input: var(--ui-border-1); |
| 53 | --ring: var(--ui-accent); |
| 54 | --radius: 0.75rem; |
| 55 | --success: var(--ui-success); |
| 56 | --warning: var(--ui-warning); |
| 57 | --info: var(--ui-info); |
| 58 | --surface-elevated: var(--ui-surface-1); |
| 59 | --sidebar: var(--ui-surface-1); |
| 60 | --sidebar-foreground: var(--ui-text-2); |
| 61 | } |
| 62 | |
| 63 | [data-kb-theme="dark"] { |
| 64 | --ui-bg: 210 12% 5%; |
| 65 | --ui-surface-1: 200 10% 8%; |
| 66 | --ui-surface-2: 200 10% 11%; |
| 67 | --ui-surface-3: 200 10% 16%; |
| 68 | --ui-border-1: 200 10% 18%; |
| 69 | --ui-border-2: 200 10% 24%; |
| 70 | --ui-text-1: 180 14% 94%; |
| 71 | --ui-text-2: 180 8% 67%; |
| 72 | --ui-text-3: 190 6% 48%; |
| 73 | --ui-accent: 199 92% 62%; |
| 74 | --ui-accent-muted: 199 48% 16%; |
| 75 | --ui-success: 142 69% 58%; |
| 76 | --ui-success-muted: 142 39% 10%; |
| 77 | --ui-warning: 38 92% 50%; |
| 78 | --ui-warning-muted: 35 64% 13%; |
| 79 | --ui-danger: 0 91% 71%; |
| 80 | --ui-danger-muted: 0 50% 14%; |
| 81 | --ui-info: 199 89% 63%; |
| 82 | --ui-info-muted: 200 50% 13%; |
| 83 | --primary-foreground: 210 20% 98%; |
| 84 | --accent-foreground: 199 92% 84%; |
| 85 | --destructive-foreground: 0 0% 100%; |
| 86 | } |
| 87 | |
| 88 | * { |
| 89 | @apply border-border; |
| 90 | } |
| 91 | |
| 92 | html { |
| 93 | @apply scroll-smooth; |
| 94 | } |
| 95 | |
| 96 | body { |
| 97 | @apply min-h-screen bg-background font-sans text-foreground antialiased; |
| 98 | } |
| 99 | |
| 100 | ::selection { |
| 101 | background: hsl(var(--primary) / 0.2); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | @layer components { |
| 106 | .font-display { |
| 107 | font-family: "DM Sans", system-ui, sans-serif; |
| 108 | } |
| 109 | |
| 110 | .surface-card { |
| 111 | @apply rounded-md border bg-card text-card-foreground shadow-none; |
| 112 | } |
| 113 | |
| 114 | [data-kb-theme="dark"] .surface-card { |
| 115 | @apply shadow-none; |
| 116 | border-color: hsl(var(--border)); |
| 117 | } |
| 118 | |
| 119 | .stat-tile { |
| 120 | @apply surface-card relative overflow-hidden p-4 transition-colors duration-150 hover:border-primary/35; |
| 121 | } |
| 122 | |
| 123 | .focus-ring { |
| 124 | @apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background; |
| 125 | } |
| 126 | |
| 127 | .data-shell { |
| 128 | @apply rounded-xl border border-border bg-card shadow-sm; |
| 129 | } |
| 130 | |
| 131 | .data-table-wrap { |
| 132 | @apply max-h-[62vh] overflow-auto rounded-lg border border-border bg-card; |
| 133 | } |
| 134 | |
| 135 | .data-table { |
| 136 | @apply w-full caption-bottom text-[13px]; |
| 137 | } |
| 138 | |
| 139 | .data-table thead { |
| 140 | @apply sticky top-0 z-10 border-b border-border bg-muted/95 text-muted-foreground backdrop-blur; |
| 141 | } |
| 142 | |
| 143 | .data-table th { |
| 144 | @apply h-8 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/60 px-3 text-left text-[10px] font-semibold uppercase tracking-[0.11em] last:border-r-0; |
| 145 | } |
| 146 | |
| 147 | .data-table td { |
| 148 | @apply h-10 whitespace-nowrap border-r border-border/40 px-3 py-1.5 align-middle last:border-r-0; |
| 149 | } |
| 150 | |
| 151 | .data-table tbody tr { |
| 152 | @apply border-b border-border/70 transition-colors hover:bg-muted/60; |
| 153 | } |
| 154 | |
| 155 | .data-table tbody tr:nth-child(even) { |
| 156 | background-color: hsl(var(--muted) / 0.28); |
| 157 | } |
| 158 | |
| 159 | .detail-breadcrumb { |
| 160 | @apply flex flex-wrap items-center gap-1 text-xs text-muted-foreground; |
| 161 | } |
| 162 | |
| 163 | .detail-breadcrumb a { |
| 164 | @apply transition-colors hover:text-foreground; |
| 165 | } |
| 166 | |
| 167 | .detail-action-group { |
| 168 | @apply flex w-full flex-wrap items-center gap-1 rounded-lg border border-border bg-card p-1 shadow-sm sm:w-auto; |
| 169 | } |
| 170 | |
| 171 | .detail-action-divider { |
| 172 | @apply flex flex-1 items-center gap-1 border-t border-border pt-1 sm:ml-1 sm:flex-none sm:border-l sm:border-t-0 sm:pl-1 sm:pt-0; |
| 173 | } |
| 174 | |
| 175 | .detail-metric-card { |
| 176 | @apply rounded-lg border border-border bg-muted/25 p-3; |
| 177 | } |
| 178 | |
| 179 | .side-panel-body form { |
| 180 | @apply space-y-5 pb-5; |
| 181 | } |
| 182 | |
| 183 | .side-panel-body form > .space-y-3, |
| 184 | .side-panel-body form > .space-y-4, |
| 185 | .side-panel-body form > .space-y-1\.5, |
| 186 | .side-panel-body form > .grid { |
| 187 | @apply rounded-xl border border-border/80 bg-card p-4 shadow-sm; |
| 188 | } |
| 189 | |
| 190 | .side-panel-body label { |
| 191 | @apply text-[11px] font-semibold uppercase tracking-[0.12em] text-muted-foreground; |
| 192 | } |
| 193 | |
| 194 | .side-panel-body input, |
| 195 | .side-panel-body textarea, |
| 196 | .side-panel-body select { |
| 197 | @apply rounded-lg bg-background/80; |
| 198 | } |
| 199 | |
| 200 | .side-panel-body form > .flex:last-child, |
| 201 | .side-panel-body form > .flex.flex-wrap:last-child { |
| 202 | @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/95 px-6 py-3 shadow-[0_-16px_32px_hsl(var(--background)/0.9)]; |
| 203 | } |
| 204 | |
| 205 | .side-panel-body form > .flex:last-child button, |
| 206 | .side-panel-body form > .flex.flex-wrap:last-child button { |
| 207 | @apply rounded-lg; |
| 208 | } |
| 209 | |
| 210 | .num, |
| 211 | .mono { |
| 212 | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; |
| 213 | font-variant-numeric: tabular-nums; |
| 214 | } |
| 215 | } |