Spaces:
Sleeping
Sleeping
Update src/styles/grid.css
Browse files- src/styles/grid.css +37 -27
src/styles/grid.css
CHANGED
|
@@ -4,14 +4,24 @@
|
|
| 4 |
|
| 5 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 6 |
|
| 7 |
-
/*
|
| 8 |
-
body,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
|
| 10 |
}
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
/* ββ AG-Grid must fill its wrapper div ββββββββββββββββββββββββββββββββββ */
|
| 13 |
-
.ag-theme-
|
| 14 |
-
.ag-theme-
|
| 15 |
height: 100% !important;
|
| 16 |
width: 100% !important;
|
| 17 |
--ag-font-family: 'Inter', 'Segoe UI', sans-serif;
|
|
@@ -23,7 +33,7 @@ body, * {
|
|
| 23 |
}
|
| 24 |
|
| 25 |
/* ββ LIGHT THEME ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 26 |
-
.ag-theme-
|
| 27 |
--ag-background-color: #ffffff;
|
| 28 |
--ag-header-background-color: #f8fafc;
|
| 29 |
--ag-row-hover-color: #eff6ff;
|
|
@@ -33,14 +43,14 @@ body, * {
|
|
| 33 |
--ag-foreground-color: #1e293b;
|
| 34 |
--ag-border-color: #e2e8f0;
|
| 35 |
--ag-secondary-border-color: #f1f5f9;
|
| 36 |
-
--ag-
|
| 37 |
--ag-input-focus-border-color: #3b82f6;
|
| 38 |
--ag-checkbox-unchecked-color: #94a3b8;
|
| 39 |
--ag-checkbox-checked-color: #3b82f6;
|
| 40 |
}
|
| 41 |
|
| 42 |
/* ββ DARK THEME βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 43 |
-
.ag-theme-
|
| 44 |
--ag-background-color: #0f1624;
|
| 45 |
--ag-header-background-color: #141d2e;
|
| 46 |
--ag-row-hover-color: #192540;
|
|
@@ -50,7 +60,7 @@ body, * {
|
|
| 50 |
--ag-foreground-color: #c8d6ef;
|
| 51 |
--ag-border-color: #1e2843;
|
| 52 |
--ag-secondary-border-color: #192030;
|
| 53 |
-
--ag-
|
| 54 |
--ag-input-focus-border-color: #3b82f6;
|
| 55 |
--ag-odd-row-background-color: #111828;
|
| 56 |
--ag-control-panel-background-color: #141d2e;
|
|
@@ -59,51 +69,51 @@ body, * {
|
|
| 59 |
}
|
| 60 |
|
| 61 |
/* ββ Alternating row stripe βββββββββββββββββββββββββββββββββββββββββββββ */
|
| 62 |
-
.ag-theme-
|
| 63 |
background-color: rgba(241, 245, 249, 0.5) !important;
|
| 64 |
}
|
| 65 |
-
.ag-theme-
|
| 66 |
background-color: rgba(16, 24, 40, 0.6) !important;
|
| 67 |
}
|
| 68 |
|
| 69 |
/* ββ Header ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 70 |
-
.ag-theme-
|
| 71 |
-
.ag-theme-
|
| 72 |
font-weight: 600 !important;
|
| 73 |
font-size: 11.5px !important;
|
| 74 |
text-transform: uppercase;
|
| 75 |
letter-spacing: 0.04em;
|
| 76 |
}
|
| 77 |
-
.ag-theme-
|
| 78 |
-
.ag-theme-
|
| 79 |
background: rgba(59,130,246,0.07) !important;
|
| 80 |
}
|
| 81 |
|
| 82 |
/* ββ Frozen / pinned column accent ββββββββββββββββββββββββββββββββββββββ */
|
| 83 |
-
.ag-theme-
|
| 84 |
-
.ag-theme-
|
| 85 |
border-right: 2px solid rgba(59,130,246,0.4) !important;
|
| 86 |
}
|
| 87 |
-
.ag-theme-
|
| 88 |
-
.ag-theme-
|
| 89 |
border-right: 2px solid rgba(59,130,246,0.3) !important;
|
| 90 |
}
|
| 91 |
|
| 92 |
/* ββ Cell focus ring ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 93 |
-
.ag-theme-
|
| 94 |
-
.ag-theme-
|
| 95 |
border: 2px solid #3b82f6 !important;
|
| 96 |
}
|
| 97 |
|
| 98 |
/* Value change flash */
|
| 99 |
-
.ag-theme-
|
| 100 |
-
.ag-theme-
|
| 101 |
background-color: rgba(251,191,36,0.28) !important;
|
| 102 |
}
|
| 103 |
|
| 104 |
/* ββ Status bar βββββββββββββββββββββββββββββββοΏ½οΏ½ββββββββββββββββββββββββββ */
|
| 105 |
-
.ag-theme-
|
| 106 |
-
.ag-theme-
|
| 107 |
font-size: 11px !important;
|
| 108 |
min-height: 26px !important;
|
| 109 |
padding: 0 10px !important;
|
|
@@ -112,8 +122,8 @@ body, * {
|
|
| 112 |
/* ββ Scrollbars inside grid ββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 113 |
.ag-body-viewport::-webkit-scrollbar { width: 7px; height: 7px; }
|
| 114 |
.ag-body-viewport::-webkit-scrollbar-track { background: transparent; }
|
| 115 |
-
.ag-theme-
|
| 116 |
-
.ag-theme-
|
| 117 |
|
| 118 |
/* ββ No scrollbar helper ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 119 |
.no-scrollbar::-webkit-scrollbar { display: none; }
|
|
@@ -123,4 +133,4 @@ body, * {
|
|
| 123 |
@keyframes pulse {
|
| 124 |
from { opacity: 0.4; transform: scale(0.85); }
|
| 125 |
to { opacity: 1; transform: scale(1.15); }
|
| 126 |
-
}
|
|
|
|
| 4 |
|
| 5 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 6 |
|
| 7 |
+
/* Use Inter for app text, but do not override AG Grid's icon font */
|
| 8 |
+
body,
|
| 9 |
+
input,
|
| 10 |
+
button,
|
| 11 |
+
select,
|
| 12 |
+
textarea {
|
| 13 |
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
|
| 14 |
}
|
| 15 |
|
| 16 |
+
/* AG Grid Quartz icons rely on their own font-face */
|
| 17 |
+
.ag-theme-quartz .ag-icon,
|
| 18 |
+
.ag-theme-quartz-dark .ag-icon {
|
| 19 |
+
font-family: var(--ag-icon-font-family) !important;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
/* ββ AG-Grid must fill its wrapper div ββββββββββββββββββββββββββββββββββ */
|
| 23 |
+
.ag-theme-quartz,
|
| 24 |
+
.ag-theme-quartz-dark {
|
| 25 |
height: 100% !important;
|
| 26 |
width: 100% !important;
|
| 27 |
--ag-font-family: 'Inter', 'Segoe UI', sans-serif;
|
|
|
|
| 33 |
}
|
| 34 |
|
| 35 |
/* ββ LIGHT THEME ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 36 |
+
.ag-theme-quartz {
|
| 37 |
--ag-background-color: #ffffff;
|
| 38 |
--ag-header-background-color: #f8fafc;
|
| 39 |
--ag-row-hover-color: #eff6ff;
|
|
|
|
| 43 |
--ag-foreground-color: #1e293b;
|
| 44 |
--ag-border-color: #e2e8f0;
|
| 45 |
--ag-secondary-border-color: #f1f5f9;
|
| 46 |
+
--ag-quartz-active-color: #3b82f6;
|
| 47 |
--ag-input-focus-border-color: #3b82f6;
|
| 48 |
--ag-checkbox-unchecked-color: #94a3b8;
|
| 49 |
--ag-checkbox-checked-color: #3b82f6;
|
| 50 |
}
|
| 51 |
|
| 52 |
/* ββ DARK THEME βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 53 |
+
.ag-theme-quartz-dark {
|
| 54 |
--ag-background-color: #0f1624;
|
| 55 |
--ag-header-background-color: #141d2e;
|
| 56 |
--ag-row-hover-color: #192540;
|
|
|
|
| 60 |
--ag-foreground-color: #c8d6ef;
|
| 61 |
--ag-border-color: #1e2843;
|
| 62 |
--ag-secondary-border-color: #192030;
|
| 63 |
+
--ag-quartz-active-color: #3b82f6;
|
| 64 |
--ag-input-focus-border-color: #3b82f6;
|
| 65 |
--ag-odd-row-background-color: #111828;
|
| 66 |
--ag-control-panel-background-color: #141d2e;
|
|
|
|
| 69 |
}
|
| 70 |
|
| 71 |
/* ββ Alternating row stripe βββββββββββββββββββββββββββββββββββββββββββββ */
|
| 72 |
+
.ag-theme-quartz .ag-row.row-stripe {
|
| 73 |
background-color: rgba(241, 245, 249, 0.5) !important;
|
| 74 |
}
|
| 75 |
+
.ag-theme-quartz-dark .ag-row.row-stripe {
|
| 76 |
background-color: rgba(16, 24, 40, 0.6) !important;
|
| 77 |
}
|
| 78 |
|
| 79 |
/* ββ Header ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 80 |
+
.ag-theme-quartz .ag-header-cell,
|
| 81 |
+
.ag-theme-quartz-dark .ag-header-cell {
|
| 82 |
font-weight: 600 !important;
|
| 83 |
font-size: 11.5px !important;
|
| 84 |
text-transform: uppercase;
|
| 85 |
letter-spacing: 0.04em;
|
| 86 |
}
|
| 87 |
+
.ag-theme-quartz .ag-header-cell:hover,
|
| 88 |
+
.ag-theme-quartz-dark .ag-header-cell:hover {
|
| 89 |
background: rgba(59,130,246,0.07) !important;
|
| 90 |
}
|
| 91 |
|
| 92 |
/* ββ Frozen / pinned column accent ββββββββββββββββββββββββββββββββββββββ */
|
| 93 |
+
.ag-theme-quartz .ag-pinned-left-header,
|
| 94 |
+
.ag-theme-quartz-dark .ag-pinned-left-header {
|
| 95 |
border-right: 2px solid rgba(59,130,246,0.4) !important;
|
| 96 |
}
|
| 97 |
+
.ag-theme-quartz .ag-pinned-left-cols-container,
|
| 98 |
+
.ag-theme-quartz-dark .ag-pinned-left-cols-container {
|
| 99 |
border-right: 2px solid rgba(59,130,246,0.3) !important;
|
| 100 |
}
|
| 101 |
|
| 102 |
/* ββ Cell focus ring ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 103 |
+
.ag-theme-quartz .ag-cell-focus,
|
| 104 |
+
.ag-theme-quartz-dark .ag-cell-focus {
|
| 105 |
border: 2px solid #3b82f6 !important;
|
| 106 |
}
|
| 107 |
|
| 108 |
/* Value change flash */
|
| 109 |
+
.ag-theme-quartz .ag-cell-data-changed,
|
| 110 |
+
.ag-theme-quartz-dark .ag-cell-data-changed {
|
| 111 |
background-color: rgba(251,191,36,0.28) !important;
|
| 112 |
}
|
| 113 |
|
| 114 |
/* ββ Status bar βββββββββββββββββββββββββββββββοΏ½οΏ½ββββββββββββββββββββββββββ */
|
| 115 |
+
.ag-theme-quartz .ag-status-bar,
|
| 116 |
+
.ag-theme-quartz-dark .ag-status-bar {
|
| 117 |
font-size: 11px !important;
|
| 118 |
min-height: 26px !important;
|
| 119 |
padding: 0 10px !important;
|
|
|
|
| 122 |
/* ββ Scrollbars inside grid ββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 123 |
.ag-body-viewport::-webkit-scrollbar { width: 7px; height: 7px; }
|
| 124 |
.ag-body-viewport::-webkit-scrollbar-track { background: transparent; }
|
| 125 |
+
.ag-theme-quartz .ag-body-viewport::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
|
| 126 |
+
.ag-theme-quartz-dark .ag-body-viewport::-webkit-scrollbar-thumb { background: #253048; border-radius: 4px; }
|
| 127 |
|
| 128 |
/* ββ No scrollbar helper ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 129 |
.no-scrollbar::-webkit-scrollbar { display: none; }
|
|
|
|
| 133 |
@keyframes pulse {
|
| 134 |
from { opacity: 0.4; transform: scale(0.85); }
|
| 135 |
to { opacity: 1; transform: scale(1.15); }
|
| 136 |
+
}
|