Sid-WC121
bugfix2 + update
8ac8526
Raw History Blame Contribute Delete
3.79 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
body {
@apply text-gray-900 antialiased overflow-x-hidden max-w-full;
}
#root {
@apply min-h-screen overflow-x-hidden max-w-full;
}
}
/* Prevent flex children from overflowing */
.flex-1 {
min-width: 0;
}
@layer components {
.cell-card {
@apply bg-white rounded-xl border border-gray-200 shadow-sm hover:shadow-md transition-shadow;
}
.btn-primary {
@apply px-4 py-2 bg-brand-600 text-white rounded-lg hover:bg-brand-700 transition-colors font-medium text-sm;
}
.btn-secondary {
@apply px-4 py-2 bg-white text-gray-700 border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors font-medium text-sm;
}
.input-field {
@apply w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-2 focus:ring-brand-500 focus:border-brand-500 outline-none;
}
.badge {
@apply inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium;
}
.badge-numeric { @apply bg-blue-100 text-blue-800; }
.badge-categorical { @apply bg-amber-100 text-amber-800; }
.badge-datetime { @apply bg-green-100 text-green-800; }
.badge-text { @apply bg-purple-100 text-purple-800; }
.badge-geo { @apply bg-red-100 text-red-800; }
.badge-boolean { @apply bg-cyan-100 text-cyan-800; }
/* Sidebar tab styling */
.sidebar-tab {
@apply flex-1 py-2 text-xs font-medium text-center transition-colors border-b-2;
}
.sidebar-tab-active {
@apply text-brand-700 border-brand-600 bg-brand-50;
}
.sidebar-tab-inactive {
@apply text-gray-500 border-transparent hover:text-gray-700 hover:bg-gray-50;
}
/* Operation category section */
.op-category-header {
@apply text-[10px] font-bold uppercase tracking-wider text-gray-400 mb-1.5 mt-3 first:mt-0;
}
.op-btn {
@apply w-full text-left px-3 py-2 rounded-lg text-sm transition-colors;
}
.op-btn-available {
@apply text-gray-700 hover:bg-brand-50 hover:text-brand-700;
}
.op-btn-unavailable {
@apply text-gray-300 cursor-not-allowed;
}
.op-btn-selected {
@apply bg-brand-50 text-brand-700 font-medium ring-1 ring-brand-200;
}
/* Subtle N/A indicator for non-numeric stats */
.stat-na {
@apply text-gray-200 text-xs select-none;
}
}
/* Leaflet overrides */
.leaflet-container {
height: 400px;
width: 100%;
border-radius: 8px;
z-index: 1;
}
/* ECharts container */
.echarts-container {
width: 100%;
height: 100%;
min-height: 300px;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
@apply bg-gray-300 rounded-full;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-gray-400;
}
/* Table styling */
.data-table th {
@apply bg-gray-50 text-gray-600 font-medium text-xs uppercase tracking-wider px-3 py-2 text-left whitespace-nowrap sticky top-0 z-10;
}
.data-table td {
@apply px-3 py-2 text-sm text-gray-700 border-t border-gray-100 whitespace-nowrap;
}
.data-table tr:hover td {
@apply bg-brand-50;
}
/* Editable cell styling */
.data-table td.editable {
@apply cursor-pointer;
}
.data-table td.editable:hover {
@apply bg-brand-50 ring-1 ring-inset ring-brand-300;
}
.data-table td.editing-active {
@apply bg-brand-50 ring-2 ring-inset ring-brand-400;
}
/* Edit mode indicator */
.edit-mode-hint {
@apply inline-flex items-center gap-1 text-[10px] text-brand-500 bg-brand-50 px-2 py-0.5 rounded-full;
}
/* Sidebar scrollable */
.sidebar-scroll {
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
}
.sidebar-scroll::-webkit-scrollbar {
width: 4px;
}
/* Chart container — prevent flex overflow */
.chart-cell-container {
min-width: 0;
width: 100%;
overflow: hidden;
}