Skip to content

Commit 43a4f4c

Browse files
committed
Fix Nostr Statistics dropdown graphs to match liquid blue theme - remove white background and apply dark glass morphism with cyan accents
1 parent fb3cff1 commit 43a4f4c

3 files changed

Lines changed: 251 additions & 510 deletions

File tree

src/components/common/BaseTable/BaseTable.styles.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ export const Table = styled(AntdTable)`
1818
font-size: ${FONT_SIZE.xs};
1919
line-height: 1.25rem;
2020
}
21+
22+
/* Ensure expanded rows have transparent background */
23+
& .ant-table-expanded-row {
24+
background: transparent !important;
25+
background-color: transparent !important;
26+
27+
> td {
28+
background: transparent !important;
29+
background-color: transparent !important;
30+
}
31+
}
32+
33+
/* Remove any default white backgrounds on expansion cells */
34+
& .ant-table-tbody > tr.ant-table-expanded-row > td {
35+
background: transparent !important;
36+
background-color: transparent !important;
37+
}
2138
2239
& tbody .ant-table-row-expand-icon {
2340
min-height: 1.25rem;

src/components/tables/Tables/Tables.styles.ts

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,78 @@ import { BaseCard as CommonCard } from '@app/components/common/BaseCard/BaseCard
33
const borderRad = '.5rem';
44
export const TablesWrapper = styled.div`
55
margin-top: 1.875rem;
6+
7+
.ant-table-row {
8+
transition: all 0.3s ease;
9+
10+
&:hover {
11+
background: rgba(0, 191, 255, 0.05) !important;
12+
}
13+
14+
&.expanded-row {
15+
background: rgba(0, 191, 255, 0.08) !important;
16+
17+
td {
18+
border-bottom: 1px solid rgba(0, 191, 255, 0.2) !important;
19+
}
20+
}
21+
}
22+
23+
.ant-table-expanded-row {
24+
background: transparent !important;
25+
26+
&:hover {
27+
background: transparent !important;
28+
}
29+
30+
> td {
31+
padding: 0 !important;
32+
background: transparent !important;
33+
background-color: transparent !important;
34+
border-bottom: 1px solid rgba(0, 191, 255, 0.2) !important;
35+
}
36+
37+
.ant-table-expanded-row-fixed {
38+
background: transparent !important;
39+
}
40+
}
41+
42+
.ant-table-tbody > tr {
43+
cursor: pointer;
44+
}
45+
46+
.anticon-caret-down,
47+
.anticon-caret-right {
48+
color: rgba(0, 191, 255, 1);
49+
font-size: 14px;
50+
transition: transform 0.3s ease;
51+
}
52+
53+
.anticon-caret-down {
54+
filter: drop-shadow(0 0 4px rgba(0, 191, 255, 0.8));
55+
}
56+
57+
/* Ensure chart backgrounds are transparent */
58+
canvas {
59+
background: transparent !important;
60+
background-color: transparent !important;
61+
}
62+
63+
/* Chart.js canvas container and all wrappers */
64+
.chartjs-render-monitor,
65+
.chartjs-size-monitor,
66+
[class*="chart-container"] {
67+
background: transparent !important;
68+
background-color: transparent !important;
69+
}
70+
71+
/* Ant Table expanded row content area */
72+
.ant-table-expanded-row-fixed,
73+
.ant-table-tbody > .ant-table-expanded-row > td,
74+
.ant-table-expanded-row-level-1 {
75+
background: transparent !important;
76+
background-color: transparent !important;
77+
}
678
`;
779

880
export const Card = styled(CommonCard)`

0 commit comments

Comments
 (0)