Bhanushray commited on
Commit
199fe26
Β·
verified Β·
1 Parent(s): 0c19ea4

Update src/styles/grid.css

Browse files
Files changed (1) hide show
  1. 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
- /* Force Inter everywhere */
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-alpine,
14
- .ag-theme-alpine-dark {
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-alpine {
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-alpine-active-color: #3b82f6;
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-alpine-dark {
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-alpine-active-color: #3b82f6;
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-alpine .ag-row.row-stripe {
63
  background-color: rgba(241, 245, 249, 0.5) !important;
64
  }
65
- .ag-theme-alpine-dark .ag-row.row-stripe {
66
  background-color: rgba(16, 24, 40, 0.6) !important;
67
  }
68
 
69
  /* ── Header ──────────────────────────────────────────────────────────── */
70
- .ag-theme-alpine .ag-header-cell,
71
- .ag-theme-alpine-dark .ag-header-cell {
72
  font-weight: 600 !important;
73
  font-size: 11.5px !important;
74
  text-transform: uppercase;
75
  letter-spacing: 0.04em;
76
  }
77
- .ag-theme-alpine .ag-header-cell:hover,
78
- .ag-theme-alpine-dark .ag-header-cell:hover {
79
  background: rgba(59,130,246,0.07) !important;
80
  }
81
 
82
  /* ── Frozen / pinned column accent ────────────────────────────────────── */
83
- .ag-theme-alpine .ag-pinned-left-header,
84
- .ag-theme-alpine-dark .ag-pinned-left-header {
85
  border-right: 2px solid rgba(59,130,246,0.4) !important;
86
  }
87
- .ag-theme-alpine .ag-pinned-left-cols-container,
88
- .ag-theme-alpine-dark .ag-pinned-left-cols-container {
89
  border-right: 2px solid rgba(59,130,246,0.3) !important;
90
  }
91
 
92
  /* ── Cell focus ring ──────────────────────────────────────────────────── */
93
- .ag-theme-alpine .ag-cell-focus,
94
- .ag-theme-alpine-dark .ag-cell-focus {
95
  border: 2px solid #3b82f6 !important;
96
  }
97
 
98
  /* Value change flash */
99
- .ag-theme-alpine .ag-cell-data-changed,
100
- .ag-theme-alpine-dark .ag-cell-data-changed {
101
  background-color: rgba(251,191,36,0.28) !important;
102
  }
103
 
104
  /* ── Status bar ───────────────────────────────��────────────────────────── */
105
- .ag-theme-alpine .ag-status-bar,
106
- .ag-theme-alpine-dark .ag-status-bar {
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-alpine .ag-body-viewport::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
116
- .ag-theme-alpine-dark .ag-body-viewport::-webkit-scrollbar-thumb { background: #253048; border-radius: 4px; }
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
+ }